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 |
---|---|---|---|---|---|---|
Add a first tab.
|
public void Add0(String[] ss, String s) {
theList0 = Add(ss, s);
theSelected0 = new boolean[ss.length];
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}",
"public void addTab(String filename) {\n\t\t\n\t\tMinLFile nminl = new MinLFile(filename);\n\t\tJComponent panel = nminl;\n\t\t\n\t\ttabbedPane.addTab(filename, null, panel,\n\t\t\t\tfilename);\t\t\n\t\ttabbedPane.setMnemonicAt(0, 0);\n\t}",
"private void selectFirstTab() {\n Tab tab = view\n .getNationsTabPane()\n .getTabs().get(0);\n\n tabChanged(tab, tab);\n }",
"@Override\n\tpublic void addTab(Tab tab, int position) {\n\t\t\n\t}",
"private void addNewTab(SingleDocumentModel model) {\n\t\tString title = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().getFileName().toString();\n\t\tImageIcon icon = createIcon(\"icons/green.png\");\n\t\tJScrollPane component = new JScrollPane(model.getTextComponent());\n\t\tString toolTip = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().toAbsolutePath().toString();\n\t\taddTab(title, icon, component, toolTip);\n\t\tsetSelectedComponent(component);\n\t}",
"public void addTab(Tab tab)\n\t{\n\t\ttabs.add(tab);\n\t}",
"public void addNewTab() {\n int count = workspaceTabs.getComponentCount() + 1;\n String title = \"Workspace \" + count;\n WorkspacePanel panel = new WorkspacePanel(title);\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n workspaceTabs.addTab(panel).setCaption(title);\n }",
"private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }",
"protected void addTab(Tab tab) {\n mUi.addTab(tab);\n }",
"@Override\n public void addTab(String title, Component component) {\n this.addTab(title, null, component, null, null);\n }",
"public void add(TabLike tab){\n TabLabel btn = tabLabelCreator.create(tab.getName(), this);\n\n tab.setVisible(tabs.isEmpty());\n btn.setDisable(tabs.isEmpty());\n if (tabs.isEmpty()){\n selected = btn;\n }\n\n tabs.add(tab);\n nameTab.getChildren().add(btn);\n tabContent.getChildren().add(tab);\n tab.setContainer(this);\n }",
"public void setFirstVisibleTab(int arg0) {\n\n\t}",
"@Override\n\tpublic void addTab(Tab tab, int position, boolean setSelected) {\n\t\t\n\t}",
"public void onCreateTabClicked(View view) {\n if (mAdapter.isEmpty()) {\n Toast.makeText(this, R.string.you_must_create_at_least_one_tab, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<TabInformation> list = new ArrayList<>(mAdapter.getTabInformation());\n startActivity(new Intent(this, DisplayTabsActivity.class).putExtra(TAB_CONTENT, list));\n }",
"private void addChatTab(ChatPanel chatPanel)\n {\n ChatSession chatSession = chatPanel.getChatSession();\n String chatName = chatSession.getChatName();\n\n ChatPanel currentChatPanel = getCurrentChat();\n\n if (currentChatPanel == null)\n {\n this.mainPanel.add(chatPanel, BorderLayout.CENTER);\n }\n else if (getChatTabCount() == 0)\n {\n ChatSession firstChatSession = currentChatPanel.getChatSession();\n\n // Add first two tabs to the tabbed pane.\n chatTabbedPane.addTab( firstChatSession.getChatName(),\n firstChatSession.getChatStatusIcon(),\n currentChatPanel);\n\n chatTabbedPane.addTab( chatName,\n chatSession.getChatStatusIcon(),\n chatPanel);\n\n // When added to the tabbed pane, the first chat panel should\n // rest the selected component.\n chatTabbedPane.setSelectedComponent(currentChatPanel);\n\n //add the chatTabbedPane to the window\n this.mainPanel.add(chatTabbedPane, BorderLayout.CENTER);\n this.mainPanel.validate();\n }\n else\n {\n // The tabbed pane already contains tabs.\n\n chatTabbedPane.addTab(\n chatName,\n chatSession.getChatStatusIcon(),\n chatPanel);\n\n chatTabbedPane.getParent().validate();\n }\n }",
"private static void AddTab(MenuActivity activity, TabHost tabHost,\n TabHost.TabSpec tabSpec, TabInfo tabInfo) {\n tabSpec.setContent(activity.new TabFactory(activity));\n tabHost.addTab(tabSpec);\n Log.i(\"LOG\",\"Cria Aba\");\n }",
"private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}",
"@Override\n\tpublic void addTab(Tab tab, boolean setSelected) {\n\t\t\n\t}",
"private void setupTabs() {\n }",
"private void addTab(String title, File file, String contents) {\n \tTextPane newTextPane = new TextPane(parentFrame,TextPane.getProperties(false), false);\r\n\r\n \t// 2nd create the tab\r\n \tStyledTab tab = new StyledTab(title);\r\n \tTextPaneTab paneTab = new TextPaneTab(file, newTextPane, tab);\r\n\r\n \t// 3rd add contents if any\r\n \tif (contents != null) {\r\n \t\tnewTextPane.getBuffer().insert(0, contents);\r\n \t\tnewTextPane.setCaretPosition(0);\r\n \t\tpaneTab.setModified(false);\r\n \t}\r\n\r\n \t// 4th add new TextPaneTab\r\n \tpanes.add(paneTab);\r\n\r\n \t// 5th create the pane and add it to manager\r\n \tJPanel pane = new JPanel();\r\n \tpane.setLayout(new BorderLayout());\r\n\t\tJPanel textPaneContainer = new JPanel();\r\n\t\ttextPaneContainer.setBorder(BorderFactory.createLineBorder(new Color(102, 102, 102), 1));\r\n\t\ttextPaneContainer.setLayout(new BorderLayout());\r\n\t\ttextPaneContainer.add(newTextPane, BorderLayout.CENTER);\r\n \tpane.add(textPaneContainer, BorderLayout.CENTER);\r\n \tpane.add(makePrgButtonPanel(), BorderLayout.EAST);\r\n \tint index = getTabCount()-1;\r\n \tinsertTab(title, null, pane, null, index);\r\n \tsetTabComponentAt(index,tab);\r\n \tif (!file.isDirectory())\r\n \t\tsetToolTipTextAt(index, file.getAbsolutePath());\r\n }",
"private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}",
"private void initTab()\n {\n \n }",
"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 createSingleTab(String text, Path path) {\r\n\t\tif (text == null) {\r\n\t\t\ttext = \"\";\r\n\t\t}\r\n\t\t\r\n\t\tJTextArea txtArea = new JTextArea(text);\r\n\t\ttxtArea.getDocument().addDocumentListener(new DocumentListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\t\t\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\t\t\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tprivate void changeIcon() {\r\n\t\t\t\ttabbedPane.setIconAt(tabbedPane.getSelectedIndex(), redIcon);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttxtArea.addCaretListener(new CaretListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void caretUpdate(CaretEvent e) {\r\n\t\t\t\tlengthLab.setText(\"Length: \"+txtArea.getText().length());\r\n\t\t\t\t\r\n\t\t\t\tint offset = txtArea.getCaretPosition();\r\n\t int line= 1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tline = txtArea.getLineOfOffset(offset);\r\n\t\t\t\t} catch (BadLocationException ignorable) {}\r\n\t\t\t\tlnLab.setText(\"Ln: \"+(line+1));\r\n\t\t\t\t\r\n\t\t\t\tint col = 1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcol = offset - txtArea.getLineStartOffset(line);\r\n\t\t\t\t} catch (BadLocationException ignorable) {}\r\n\t\t\t\tcolLab.setText(\"Col: \"+ (col+1));\r\n\t\t\t\t\r\n\t\t\t\tint sel = Math.abs(txtArea.getSelectionStart() - txtArea.getSelectionEnd());\t\r\n\t\t\t\tselLab.setText(\"sel: \"+sel);\r\n\t\t\t\tfor (JMenuItem i : toggable) {\r\n\t\t\t\t\tboolean enabled;\r\n\t\t\t\t\tenabled = sel != 0;\r\n\t\t\t\t\ti.setEnabled(enabled);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJScrollPane scrPane = new JScrollPane(txtArea);\r\n\t\tif (path == null) {\t//create empty tab\t\r\n\t\t\tString name = \"New \" + (count +1);\r\n\t\t\ttabbedPane.addTab(name, greenIcon, scrPane, \"\");\r\n\t\t\tcount++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttabbedPane.addTab(path.getFileName().toString(), greenIcon, scrPane, path.toString());\r\n\t\tcount++;\r\n\t}",
"@Override\n\tpublic Tab newTab() {\n\t\treturn null;\n\t}",
"private void addTabs() {\n TabsPagerAdapter tabsAdapter = new TabsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.pager);\n viewPager.setAdapter(tabsAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.connect);\n tabLayout.getTabAt(1).setIcon(R.drawable.speak);\n tabLayout.getTabAt(2).setIcon(R.drawable.walk);\n tabLayout.getTabAt(3).setIcon(R.drawable.camera);\n tabLayout.getTabAt(4).setIcon(R.drawable.moves);\n }",
"private void addScheduleTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n SessionsExpandableListActivity.CHILD_MODE_VISIBLE_TRACKS);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_SCHEDULE);\n spec.setIndicator(mResources.getString(R.string.schedule), mResources\n .getDrawable(R.drawable.ic_tab_schedule));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"public void openTab(String tabName){\r\n\r\n\t\tTabView selectedTabView = new TabView(this);\r\n\t\ttabViews.add(selectedTabView);\r\n\t\t\r\n\t\t\r\n\t\tif(tabName == null){ // If a new tab..\r\n\t\t\t// Ensure that there isn't already a model with that name\r\n\t\t\twhile(propertiesMemento.getTabNames().contains(tabName) || tabName == null){\r\n\t\t\t\ttabName = \"New Model \" + newModelIndex;\r\n\t\t\t\tnewModelIndex++;\r\n\t\t\t}\r\n\t\t}\r\n logger.info(\"Adding tab:\" + tabName);\r\n\r\n\t\t// Just resizes and doesn't scroll - so don't need the scroll pane\r\n\t\t/*JScrollPane scrollPane = new JScrollPane(selectedTabView, \r\n \t\t\t\t\t\t\t\t JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, \r\n \t\t\t\t\t\t\t\t JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.getVerticalScrollBar().setUnitIncrement(20);\r\n tabbedPane.addTab(tabName, scrollPane);*/\r\n\r\n\t\ttabbedPane.addTab(tabName, selectedTabView);\r\n\r\n currentView = selectedTabView;\r\n tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);\r\n setTabName(tabName);\r\n\t\t\t\t\r\n tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\t new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));\r\n \r\n // Add Mouse motion Listener \r\n currentView.addMouseMotionListener(currentView);\r\n currentView.addMouseListener(currentView);\r\n\r\n // Record the tab in the memento\r\n propertiesMemento.addTabRecord(tabName);\r\n \r\n setTabButtons(true);\r\n \r\n setStatusBarText(\"Ready\");\r\n\r\n requestFocusInWindow();\r\n\t}",
"public KonTabbedPane() {\n // Initialize the ArrayList\n graphInterfaces = new ArrayList<DrawingLibraryInterface>();\n\n DirectedGraph<String, DefaultEdge> graph = CreateTestGraph();\n\n /*\n * Adds a tab\n */\n DrawingLibraryInterface<String, DefaultEdge> graphInterface =\n DrawingLibraryFactory.createNewInterface(graph);\n \n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n addTab(\"First Tab\", graphInterface.getPanel());\n\n /*\n * Adds a tab\n */\n graphInterface = DrawingLibraryFactory.createNewInterface(graph);\n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n\n graphInterface.getGraphManipulationInterface().highlightNode(graph\n .vertexSet().iterator().next(), true);\n\n addTab(\"Second Tab\", graphInterface.getPanel());\n }",
"public void addTab (String tabname, boolean closeable, Widget widget, final String key) {\n\n\n\t\tPanel localTP = new Panel();\n\t\tlocalTP.setClosable(closeable);\n\t\tlocalTP.setTitle(tabname);\n\t\tlocalTP.setId(key + id);\n\t\tlocalTP.setAutoScroll(true);\n\t\tlocalTP.add(widget);\n\n\t\ttp.add(localTP, this.centerLayoutData);\n\n\t\tlocalTP.addListener(new PanelListenerAdapter() {\n\n\t\t\tpublic void onDestroy(Component component) {\n\t\t\t\topenedTabs.remove(key);\n\t\t\t}\n\t\t});\n\n\n\t\ttp.activate(localTP.getId());\n\n\n\n\n\t\topenedTabs.put(key, localTP);\n\t}",
"private void addStarredTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n SessionsExpandableListActivity.CHILD_MODE_STARRED);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_STARRED);\n spec.setIndicator(mResources.getString(R.string.starred), mResources\n .getDrawable(R.drawable.ic_tab_starred));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"public AutomatedTestingTabbedPane()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tthis.setBackground(Constants.WHITE);\r\n\t\tthis.setForeground(Constants.BLUE);\r\n\t\t\r\n\t\tthis.setFont(new Font(\"sans-serif\", Font.PLAIN, 16));\r\n\t\tthis.addTab(\"CXCParticipant\", participantPanel);\r\n\t\tthis.setMnemonicAt(0, KeyEvent.VK_1);\r\n\t\t\r\n\t\tthis.addTab(\"CXCToken\", tokenPanel);\r\n\t\tthis.setMnemonicAt(1, KeyEvent.VK_2);\r\n\t\t\r\n\t\tthis.addTab(\"CXCRecipient\", recipientPanel);\r\n\t\tthis.setMnemonicAt(2, KeyEvent.VK_3);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPayment\", paymentPanel);\r\n\t\tthis.setMnemonicAt(3, KeyEvent.VK_4);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPaymentRequest\", paymentRequestPanel);\r\n\t\tthis.setMnemonicAt(4, KeyEvent.VK_5);\r\n\t\t\r\n//\t\tthis.addTab(\"Export\", exportPanel);\r\n//\t\tthis.setMnemonicAt(5, KeyEvent.VK_6);\r\n\r\n\t}",
"private void createTabsDiv() {\n tabsDiv = new Block(Block.Div, \"id='tabs'\");\n page.add(tabsDiv);\n }",
"public void setDefaultTab() {\r\n\t\t\tgetActionBar().selectTab(getActionBar().getTabAt(CLASSIFICATION_TAB_INDEX));\t\r\n\t\t}",
"public void addMainTab(String label, String historyToken, String contentUrl, TabOptions options) {\n addTab(MainTabPanelPresenter.TYPE_RequestTabs,\n MainTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, true, contentUrl, options);\n }",
"private void insertarTabs(ViewGroup container) {\n View padre = (View) container.getParent();\n pestanas = (TabLayout)padre.findViewById(R.id.tabs);\n }",
"public void addCompositeToTab(String tabName){\r\n\t\tTabItem item = new TabItem(folderReference, SWT.NONE);\r\n\t\titem.setText(tabName);\r\n\t\t\r\n\t\tfolderReference.getItem(compositeIndex).setControl(compositeMap.get(compositeIndex));\r\n\t\t++compositeIndex;\r\n\t}",
"private void initTabs() {\n\t\tmContainer.removeAllViews();\n\n\t\tif(mAdapter==null||mViewPager==null){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<mViewPager.getAdapter().getCount();i++){\n\t\t\tfinal int index=i;\n\t\t\tButton tabs= (Button) mAdapter.getView(index);\n\t\t\tLayoutParams layoutParams=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\tlayoutParams.weight=1;\n\t\t\tmContainer.addView(tabs,layoutParams);\n\t\t\t\n\t\t\ttabs.setOnClickListener(new OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t\tselectTab(0);\n\t}",
"private void addTabs(List<TemplateAttribute> templateAttributes, TemplateRelation tr) {\n ObjectGroupTab otv = null;\n int prevTgId = 0;\n for (TemplateAttribute ta : templateAttributes) {\n if (ta.getTgId() != prevTgId) {\n prevTgId = ta.getTgId();\n if (ta.getTg().getSubRank() == 0) {\n otv = tr == null ? new ObjectGroupTab(this, ta.getTg())\n : new ObjectRelationGroupTab(this, tr, ta.getTg());\n add(otv, ta.getTg().getName());\n final int iTab = getTabBar().getTabCount() - 1;\n getTabBar().getTab(iTab).addClickHandler(new ClickHandler() {\n\n @Override\n public void onClick(ClickEvent event) {\n getModel().setTemplateRelation(null);\n }\n });\n }\n otv.displayGroupLabel(ta.getTg());\n }\n\n TemplateWidget tw = otv.display(ta);\n if (tw != null)\n tw.initialize();\n }\n if (getTabBar().getTabCount() > 0)\n selectTab(0);\n }",
"private void addTab(String label, int drawableId, Intent i) {\n \tTabHost.TabSpec spec = tabHost.newTabSpec(label);\r\n \tView tabIndicator = LayoutInflater.from(this).inflate(R.layout.tabs, getTabWidget(), false);\r\n \tTextView title = (TextView) tabIndicator.findViewById(R.id.title);\r\n \ttitle.setText(label);\r\n// \tImageView icon = (ImageView) tabIndicator.findViewById(R.id.icon);\r\n// \ticon.setImageResource(drawableId);\r\n \tspec.setIndicator(tabIndicator).setContent(i);\r\n \ttabHost.addTab(spec);\r\n }",
"private void initTabComponent(DocumentWrapper file, int i) {\n\t\tpane.setTabComponentAt(i,\n\t\t\t\tnew ButtonTabComponent(pane, file, this));\n\t}",
"public void addedToDom() {\n activateTab();\n }",
"private void initFileTab()\n\t{\n\t\t\n\t\tMainApp.getMainController().requestAddTab(fileTab);\n\t\t\n\t\t\n\t\tfileTab.getCodeArea().textProperty().addListener((obs, oldv, newv) -> dirty.set(true));\n\t\t\n\t\tdirty.addListener((obs, oldv, newv) -> {\n\t\t\t\n\t\t\tString tabTitle = fileTab.getText();\n\t\t\t\n\t\t\tif (newv && !tabTitle.endsWith(\"*\"))\n\t\t\t\tfileTab.setText(tabTitle + \"*\");\n\t\t\t\n\t\t\telse if (!newv && tabTitle.endsWith(\"*\"))\n\t\t\t\tfileTab.setText(tabTitle.substring(0, tabTitle.length()-1));\n\t\t});\n\t\t\n\t\t\n\t\tfileTab.setOnCloseRequest(e -> {\n\t\t\t\n\t\t\tboolean success = FileManager.closeFile(this);\n\t\t\t\n\t\t\tif (!success)\n\t\t\t\te.consume();\n\t\t});\n\t\t\n\t\tMainApp.getMainController().selectTab(fileTab);\n\t}",
"public void addFirst(Object o) {\r\n addBefore(o, header.next);\r\n }",
"public void applyTab();",
"private JList Add(String[] ss, String s) {\n\t\t// if (ss.length > 0) {\n\t\tJList l = new JList(ss);\n\t\tint indices[] = new int[ss.length];\n\t\tfor (int i = 0; i < ss.length; i++) {\n\t\t\tindices[i] = i;\n\t\t}\n\t\tl.setSelectedIndices(indices);\n\t\ttheTabbedPane.addTab(s, new JScrollPane(l));\n\t\treturn l;\n\t\t// }\n\t\t// return null;\n\t}",
"public void init() {\n\t\ttabbed = new JTabbedPane();\n\t\ttabbed.insertTab(\"Sesion\", null, getPanelSesion(), \"Control de la sesion\", 0);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, new JPanel(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, new JPanel(), \"Control de los eventos\", 2);\n\t\ttabbed.insertTab(\"Control de Agentes\", null, getPanelAgentes(), \"Control de los agentes\", 3);\n\t\tgetContentPane().add(tabbed);\n\t\ttabbed.setEnabledAt(1, false);\n\t\ttabbed.setEnabledAt(2, false);\n\t\tsetSize(new Dimension(800, 600));\n\t}",
"public static void setActiveTab(Tab tab) {\n\n try {\n controller.tabPane.getTabs().add(controller.appointmentTab);\n controller.tabPane.getTabs().add(controller.bookingTab);\n controller.tabPane.getTabs().add(controller.customerTab);\n controller.tabPane.getTabs().add(controller.employeeTab);\n controller.tabPane.getTabs().add(controller.malfunctionTab);\n controller.tabPane.getTabs().add(controller.statisticTab);\n controller.tabPane.getTabs().add(controller.vehicleTab);\n\n SingleSelectionModel<Tab> selectionModel = controller.tabPane.getSelectionModel();\n\n selectionModel.select(tab);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }",
"public void addTable(String title, Object[] header) {\n\t\t\n\t\t// Create panel\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\t\t\n\t\t// Create and add text editor to panel\n\t\tConsoleTable table = new ConsoleTable(new Object[][]{}, header);\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tpanel.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t\t// Add the tab\n\t\taddTab(title, null, scrollPane);\n\t\t\n\t\t// Store it in the map\n\t\tthis.tabPanelsMap.put(title, table);\n\t}",
"private static void addPanelInMainTabView(TabComponent tc, PlotPanel pnl) {\n EDACCPlotTabView tabView = getMainTabView();\n if (tc == null) {\n tabView.addPanel(pnl);\n } else {\n tabView.addPanel(tc, pnl);\n }\n }",
"public void initializeTabs() {\n\n\t\tTabHost.TabSpec spec;\n\n\t\tspec = mTabHost.newTabSpec(Const.EVENTS);\n\t\tmTabHost.setCurrentTab(0);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_events_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(1);\n\t\tspec = mTabHost.newTabSpec(Const.FEED);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_feed_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(2);\n\t\tspec = mTabHost.newTabSpec(Const.INFO);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_info_selector));\n\t\tmTabHost.addTab(spec);\n\n\t}",
"@Override\r\n\tpublic void insertTab(String title, Icon icon,\r\n\t\t\tComponent component, String tip, int index) {\n\t\tsuper.insertTab(title, icon, component, tip, index);\r\n\t\tif (index < 10)\r\n\t\t\tsetMnemonicAt(index, TAB_MNEMONICS[index]);\r\n\t}",
"public int getFirstVisibleTab() {\n\t\treturn 0;\n\t}",
"private void eric_function()\n\t{\n \ttabHost = (TabHost) findViewById(R.id.mytab1);\n \ttabHost.setup();\n \t \n \t//tabHost.setBackgroundColor(Color.argb(150, 20, 80, 150));\n \ttabHost.setBackgroundResource(R.drawable.ic_launcher);\n \t\n \t\n \t//\n \tTabSpec tabSpec;\n \t// 1\n \ttabSpec = tabHost.newTabSpec(tab_list[0]);\n \ttabSpec.setIndicator(\"a.1\");\n \ttabSpec.setContent(R.id.widget_layout_blue2);\n \ttabHost.addTab(tabSpec);\n \t// 2\n \ttabSpec = tabHost.newTabSpec(tab_list[1]);\n \ttabSpec.setIndicator(\"a2\");\n \ttabSpec.setContent(R.id.widget_layout_green2);\n \ttabHost.addTab(tabSpec); \t\n \t// 3\n \ttabSpec = tabHost.newTabSpec(tab_list[2]);\n \ttabSpec.setIndicator(\"a3\");\n \ttabSpec.setContent(R.id.widget_layout_red2);\n \ttabHost.addTab(tabSpec); \t\n \t//\n\t\ttabHost.setOnTabChangedListener(listener1);\n \t//\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private void createTab() {\n tab = new char[tabSize];\n for (int i = 0; i < tabSize; i++) {\n tab[i] = tabChar;\n }\n }",
"private void addTheTab(final String title, final Component comp) {\n\t\tif (comp==null) {\n\t\t\tthrow new IllegalArgumentException(\"The component can't be null\");\n\t\t}\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tint i = indexOfComponent(errorTab);\n\t\t\t\tif (i!=-1) {\n\t\t\t\t\tinsertTab(title, null, comp, null, i);\n\t\t\t\t} else {\n\t\t\t\t\taddTab(title,null,comp);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"protected abstract void doAddTab(GridTab tab, JPiereIADTabpanel tabPanel);",
"public void addTab(DocumentWrapper file, String text) {\n\t\tJTextArea textEditor = new JTextArea();\n\n\t\ttextEditor.setText(text);\n\t\ttextEditor.getDocument().putProperty(\"changed\", false);\n\t\ttextEditor.addCaretListener(new CaretListener() {\n\t\t\t@Override\n\t\t\tpublic void caretUpdate(CaretEvent arg0) {\n\t\t\t\tint dot = arg0.getDot();\n\t\t\t\tint mark = arg0.getMark();\n\n\t\t\t\tint caretpos = textEditor.getCaretPosition();\n\t\t\t\tint lineNum = 1;\n\t\t\t\tint columnNum = 1;\n\t\t\t\ttry {\n\t\t\t\t\tlineNum = textEditor.getLineOfOffset(caretpos);\n\t\t\t\t\tcolumnNum = 1 + caretpos - textEditor.getLineStartOffset(lineNum);\n\t\t\t\t\tlineNum += 1;\n\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tstatusLabel.setText(\"length : \" + textEditor.getText().length());\n\t\t\t\tlineLabel.setText(\"Ln : \" + lineNum);\n\t\t\t\tcolumnLabel.setText(\"Col : \" + columnNum);\n\t\t\t\tselectedLabel.setText(\"Sel : \" + Math.abs(dot - mark));\n\t\t\t\t;\n\n\t\t\t\tif (dot == mark) {\n\t\t\t\t\titemInvert.setEnabled(false);\n\t\t\t\t\titemLower.setEnabled(false);\n\t\t\t\t\titemUpper.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\titemInvert.setEnabled(true);\n\t\t\t\t\titemLower.setEnabled(true);\n\t\t\t\t\titemUpper.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttextEditor.getDocument().addDocumentListener(new DocumentListener() {\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t\tButtonTabComponent comp = (ButtonTabComponent) pane.getTabComponentAt(pane.getSelectedIndex());\n\n\t\t\t\tcomp.setImage(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\t\t});\n\n\t\tfile.setEditor(textEditor);\n\n\t\tJScrollPane scPane = new JScrollPane(textEditor);\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.add(scPane, BorderLayout.CENTER);\n\n\t\tint index = pane.getTabCount();\n\n\t\tpane.addTab(file.getName(), textEditor);\n\n\t\tinitTabComponent(file, index);\n\t}",
"public static void AddTab(EventActivity activity, TabHost tabHost, TabHost.TabSpec tabSpec, TabInfo tabInfo) {\n\t\t// Attach a Tab view factory to the spec\n\t\ttabSpec.setContent(new Utils.TabFactory(activity));\n tabHost.addTab(tabSpec);\n\t}",
"@Override\n\tpublic void addTab(final String newTitle, final Component theComponent) {\n\t\tif (newTitle==null || newTitle.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid tab title\");\n\t\t}\n\t\tif (theComponent.getName()==null || theComponent.getName().isEmpty()) {\n\t\t\ttheComponent.setName(newTitle);\n\t\t}\n\t\t// Check if the component is already present\n\t\tfor (int i=0; i<getTabCount(); i++) {\n\t\t\tComponent c= getTabComponentAt(i);\n\t\t\tif (c!=null) {\n\t\t\t\tif (c.getName().equals(theComponent.getName())) {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Component already displayed: \"+c.getName());\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\tif (EventQueue.isDispatchThread()) {\n\t\t\taddTheTab(newTitle, theComponent);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\taddTheTab(newTitle, theComponent);\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Exception caught while adding \"+theComponent+\" with a TAB having title \"+newTitle+\": \"+e.getMessage());\n\t\t}\n\t}",
"public void addTab(ActionBar.Tab tab, Class<?> fragmentClass, Bundle args) {\r\n\t\t\tTabInfo info = new TabInfo(fragmentClass, args);\r\n\t\t\ttab.setTag(info);\r\n\t\t\ttab.setTabListener(this);\r\n\t\t\tgetTabs().add(info);\r\n\t\t\tgetActionBar().addTab(tab);\r\n\t\t\tnotifyDataSetChanged();\r\n\t\t}",
"public Tabs() {\n initComponents();\n }",
"private void initialiseTabHost(Bundle args) {\n\t\tmTabHost = (TabHost)findViewById(android.R.id.tabhost);\n mTabHost.setup();\n TabInfo tabInfo = null;\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab1\").setIndicator(\"Waveform\"), ( tabInfo = new TabInfo(\"Tab1\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab2\").setIndicator(\"FFT\"), ( tabInfo = new TabInfo(\"Tab2\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab3\").setIndicator(\"AC\"), ( tabInfo = new TabInfo(\"Tab3\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab4\").setIndicator(\"Pitch\"), ( tabInfo = new TabInfo(\"Tab4\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n // Default to first tab\n this.onTabChanged(\"Tab1\");\n //\n mTabHost.setOnTabChangedListener(this);\n\t}",
"private void initTabs()\n {\n updateDayTab();\n\n // Set initial time on time tab\n updateTimeTab();\n }",
"public void switchNextTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i + 1 <= tabItems.length - 1)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(0);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Modulo1() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n //línea para habilitar o deshabilitar pestañas\n //jTabbedPane.removeTabAt(0);\n \n }",
"private void setupTabLayout() {\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n });\n tabLayout.getTabAt(0).select();\n View root = tabLayout.getChildAt(0);\n //create divider between the tabs\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColorFilter(0xffff0000, PorterDuff.Mode.MULTIPLY);\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n }",
"public void add(View v) {\n\t\tint type = tabHost.getCurrentTab() + 1;\n\t\tIntent i = new Intent(this, AddActivity.class);\n\t\ti.putExtra(\"type\", type);\n\t\tstartActivityForResult(i, MainActivity.REQUEST_ADD);\n\t}",
"public JTabbedPane initTabs() {\n\t\treturn null;\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.welcome);\n th = (TabHost) findViewById(R.id.tabHost);\n th.setup();\n th.addTab(th.newTabSpec(\"1\").setIndicator(\"eMasomo\").setContent(R.id.tab1));\n th.addTab(th.newTabSpec(\"2\").setIndicator(\"Past Papers\").setContent(R.id.tab2));\n th.addTab(th.newTabSpec(\"3\").setIndicator(\"Library\").setContent(R.id.tab3));\n th.addTab(th.newTabSpec(\"4\").setIndicator(\"Forum\").setContent(R.id.tab4));\n }",
"public TabPane createTabPane(TableauFrame parent) {\n\t\t\tTabPaneExtensionExample tpee = new TabPaneExtensionExample();\n\n\t\t\t/*\n\t\t\t * Optionally you can create a method called setTabName and use the\n\t\t\t * \"name\" value from the configuration.xml file by calling\n\t\t\t * this.getName(). For Example if you have <property\n\t\t\t * name=\"randomTestTab\"\n\t\t\t * class=\"org.kepler.gui.TabPaneExtensionExample$Factory\" /> in\n\t\t\t * configuration.xml then the name of the tab in the GUI becomes\n\t\t\t * randomTestTab\n\t\t\t */\n\t\t\ttpee.setTabName(this.getName());\n\n\t\t\treturn tpee;\n\t\t}",
"public void addTableNavigation(String title) {\n\n\t\t// Create panel\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// Create and add text editor to panel\n\t\tConsoleTableNavigation table = new ConsoleTableNavigation();\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tpanel.add(scrollPane, BorderLayout.CENTER);\n\n\t\t// Add the tab\n\t\taddTab(title, null, scrollPane);\n\n\t\t// Store it in the map\n\t\tthis.tabPanelsMap.put(title, table);\n\t}",
"private void addTracksTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n //intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n // SessionsExpandableListActivity.CHILD_MODE_STARRED);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_TWITTER);\n spec.setIndicator(mResources.getString(R.string.tracks), mResources\n .getDrawable(R.drawable.ic_menu_archive));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n start =0;\n setContentView(R.layout.tabs);\n th = (TabHost)findViewById(R.id.tabHost);\n Button newtab = (Button)findViewById(R.id.bAddTab);\n Button bStart = (Button)findViewById(R.id.bStartWatch);\n Button bStop = (Button)findViewById(R.id.bStopWatch);\n showResults = (TextView)findViewById(R.id.textView);\n bStart.setOnClickListener(this);\n bStop.setOnClickListener(this);\n newtab.setOnClickListener(this);\n th.setup();\n TabHost.TabSpec specs = th.newTabSpec(\"tag1\");\n specs.setContent(R.id.tab1); //the linear layout we set up in tabhost\n specs.setIndicator(\"StopWatch\");\n th.addTab(specs);\n specs = th.newTabSpec(\"tag2\");\n specs.setContent(R.id.tab2); //the linear layout we set up in tabhost\n specs.setIndicator(\"Tab 2\");\n th.addTab(specs);\n specs = th.newTabSpec(\"tag3\");\n specs.setContent(R.id.tab3); //the linear layout we set up in tabhost\n specs.setIndicator(\"Add a tab\");\n th.addTab(specs);\n\n }",
"private void fuenteTab() {\n\n\n View view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n TextView tv=(TextView) view.findViewById(R.id.pestanias_txt);\n ImageView imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.detalles);\n tv.setTypeface(fuente2);\n tv.setText(\"Detalles\");\n tabLayout.getTabAt(0).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.marciano);\n tv.setTypeface(fuente2);\n tv.setText(\"Juegos\");\n tabLayout.getTabAt(1).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.tienda);\n tv.setTypeface(fuente2);\n tv.setText(\"Tienda\");\n tabLayout.getTabAt(2).setCustomView(view);\n\n }",
"public void setSelectedTab(int arg0) {\n\n\t}",
"private void layoutTabs() {\n\tJTabbedPane tabs = new JTabbedPane();\n\ttabs.add(\"MAIN MENU\", mainMenu);\n\ttabs.add(\"LEVEL EDITOR\", levelEditor);\n\tthis.getContentPane().add(tabs);\n }",
"public DoctorMainTabbedPane() {\n super();\n initialize();\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t// Otteniamo il riferimento al TabHost\n\t\tTabHost tabHost = getTabHost();\n\t\t// Aggiungiamo un secondo tab che utilizza una factory\n\t\ttabHost.addTab(tabHost.newTabSpec(\"Factory\").setContent(\n\t\t\t\tnew MyTabContentFactory(this)).setIndicator(\"Factory\"));\n\t\t// Aggiungiamo il terzo Tab relativo ad un Intent\n\t\tIntent newIntent = new Intent(this,SecondActivity.class);\n\t\ttabHost.addTab(tabHost.newTabSpec(\"Intent\").setContent(newIntent).setIndicator(\"Intent\"));\t\t\n\t}",
"public static Fragment Home_Tab_start(String Id, String section) {\n BodyTab_Sub fragment = new BodyTab_Sub();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, Id);\n args.putString(ARG_PARAM2, section);\n fragment.setArguments(args);\n return fragment;\n }",
"public CloseableTabbedPane(String name, JPanel component, Supplier<Void> addListener) {\n super();\n this.addListener = addListener;\n super.addTab(name, new JScrollPane(component, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER));\n JPanel empty = new JPanel();\n iconCallback.put(empty, addListener);\n super.addTab(\"\", null, empty, \"Click here to create new script\");\n initializeMouseListener();\n setEnabledAt(1, false);\n setDisabledIconAt(1, new NewTabIcon());\n /*addChangeListener((l)->{\n if (getTabCount() -1 == getSelectedIndex()) {\n addListener.get();\n }\n });*/\n }",
"public void setTab(int i) {\n TabLayout.Tab tab = mTabLayout.getTabAt(i);\n tab.select();\n }",
"public static void addPanelInMainTabView(String title, PlotPanel pnl) {\n if (title == null) {\n addPanelInMainTabView((TabComponent) null, pnl);\n } else {\n getMainTabView().addPanel(title, pnl);\n }\n }",
"public static void new_tab(By locator) throws CheetahException {\n\t\ttry {\n\t\t\tWebElement element = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(element);\n\t\t\tdriverUtils.unHighlightElement(element);\n\t\t\telement.sendKeys(Keys.CONTROL, \"t\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\n\t}",
"public void onFirstDrawTabbedActivity() {\n mThreadChecker.assertOnValidThread();\n onFirstDraw(UMA_TABBED_ACTIVITY);\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 static void addScratchPanel() {\n scratchDetailPanel = new ScratchDetailPanel();\n JTabbedPane scratchTP = ScratchPanel.getScratchTP();\n numScratchLabels++;\n \n boolean debug = false;\n if (debug) { \n System.out.println(\"prior numScratchPanels \" + numScratchPanelsAdded);\n System.out.println(\"prior num Components \" + scratchTP.getComponentCount());\n System.out.println(\"numScratchPanelsRemoved \" + numScratchPanelsRemoved);\n }\n\n\n try {\n scratchTP.add(scratchDetailPanel, \"Scratch \" + numScratchLabels,numScratchPanelsAdded - numScratchPanelsRemoved);\n } catch (Exception e) {\n // ignore any errors here\n }\n \n if (debug) System.out.println(\"panel added\");\n \n if (numScratchPanelsAdded >= 1) scratchTP.setSelectedComponent(scratchDetailPanel);\n try {\n scratchTP.setTabComponentAt(numScratchPanelsAdded - numScratchPanelsRemoved, new ButtonTabComponent(scratchTP));\n } catch (Exception e) {\n //ignore any errors here\n }\n numScratchPanelsAdded++;\n \n \n if (debug) { \n System.out.println(\"post numScratchPanels \" + numScratchPanelsAdded);\n System.out.println(\"post num Components \" + scratchTP.getComponentCount());\n }\n\n }",
"private void addPanel(TabComponent tabComp, PlotPanel pnl) {\n tabbedPanePlots.addTab(null, null, pnl, tabComp.getTitle());\n pnl.setParent(this);\n // replace the tab component and select this new tab\n tabbedPanePlots.setTabComponentAt(tabbedPanePlots.getTabCount() - 1, tabComp);\n tabbedPanePlots.setSelectedIndex(tabbedPanePlots.getTabCount() - 1);\n requestFocus();\n }",
"public void buttonNewTab(ActionEvent actionEvent) {\n }",
"public void undo() {\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().add(topsoilTab);\n }",
"public NewPageWizard(IXWikiSpace sapce)\n {\n super();\n setWindowTitle(\"Add New Page...\");\n setNeedsProgressMonitor(false);\n this.space = sapce;\n }",
"private Tab getNextTab() {\n int pos = mTabControl.getCurrentPosition() + 1;\n if (pos >= mTabControl.getTabCount()) {\n pos = 0;\n }\n return mTabControl.getTab(pos);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.tab);\n\t\tTabHost th =getTabHost();\n\t\tTabSpec tab1 = (TabSpec) th.newTabSpec(\"Arrival\");\n\t TabSpec tab2 = (TabSpec) th.newTabSpec(\"Alternate\");\n\t \n\t tab1.setIndicator(\"Plan Journey\", null).setContent(\n\t new Intent(this, TrainSearchActivity.class));\n\t tab2.setIndicator(\"Alternate\", null).setContent(\n\t new Intent(this, AlternateRoute.class));\n\t \n\t th.addTab(tab1);\n\t th.addTab(tab2);\n\t \n\t}",
"protected void tabToNext(FunctionEditor editor) {\n if (editor == paramEditor) {\n initEditor.getTable().requestFocusInWindow();\n } else super.tabToNext(editor);\n }",
"public void newFile() {\n\t\tString filename = \"untitled\";\n\t\tfilename = JOptionPane.showInputDialog(null,\n\t\t\t\t\"Enter the new file name\");\n\t\taddTab(filename+\".minl\");\n\t}",
"@Override\n\tpublic JTabbedPane initTabs() {\n\t\treturn null;\n\t}",
"public void init(){\n tabHost = (TabHost)findViewById(android.R.id.tabhost);\n\n //Creating tab menu.\n TabHost.TabSpec TabMenu1 = tabHost.newTabSpec(\"First tab\");\n TabHost.TabSpec TabMenu2 = tabHost.newTabSpec(\"Second tab\");\n TabHost.TabSpec TabMenu3 = tabHost.newTabSpec(\"Third tab\");\n\n //Setting up tab 1 name.\n TabMenu1.setIndicator(getResources().getString(R.string.map));\n //Set tab 1 activity to tab 1 menu.\n Intent intent = new Intent(this, MapsActivity.class);\n intent.putExtra(\"studentObj\", student);\n TabMenu1.setContent(intent);\n\n\n //Setting up tab 2 name.\n TabMenu2.setIndicator(getResources().getString(R.string.people));\n intent = new Intent(this, PeopleActivity.class);\n TabMenu2.setContent(intent);\n\n //Setting up tab 2 name.\n TabMenu3.setIndicator(getResources().getString(R.string.setting));\n intent = new Intent(this, SettingActivity.class);\n TabMenu3.setContent(intent);\n\n //\n tabHost.addTab(TabMenu1);\n tabHost.addTab(TabMenu2);\n tabHost.addTab(TabMenu3);\n }",
"private void createTabList() throws UnsupportedEncodingException {\n\n org.mortbay.html.List tabList =\n new org.mortbay.html.List(org.mortbay.html.List.Unordered);\n tabsDiv.add(tabList);\n Integer tabCount = 1;\n for (Map.Entry letterPairs : startLetterList.entrySet()) {\n Character startLetter = (Character) letterPairs.getKey();\n Character endLetter = (Character) letterPairs.getValue();\n Link tabLink = new Link(\"DisplayContentTab?start=\" + startLetter + \"&end=\" + endLetter + \"&group=\"\n + grouping + \"&type=\" + type + \"&filter=\" + filterKey +\n \"&timeKey=\" + timeKey, startLetter + \" - \" + endLetter);\n Composite tabListItem = tabList.newItem();\n tabListItem.add(tabLink);\n Block loadingDiv = new Block(Block.Div, \"id='ui-tabs-\" + tabCount++ + \"'\");\n Image loadingImage = new Image(LOADING_SPINNER);\n loadingImage.alt(\"Loading...\");\n loadingDiv.add(loadingImage);\n loadingDiv.add(\" Loading...\");\n tabsDiv.add(loadingDiv);\n }\n }",
"public void addFirst(Item item) {\n Node oldFirst = first;\n first = new Node(null, item, oldFirst);\n if (oldFirst == null)\n last = first;\n else\n oldFirst.prev = first;\n size++;\n }",
"public void bukaTabAwal() {\n Intent i = getIntent();\n if (i != null) {\n int tab_number;\n if (JENIS_USER.equals(JENIS_USER_ALUMNI)) {\n tab_number = i.getIntExtra(INDEX_OPENED_TAB_KEY, 2);\n } else if (JENIS_USER.equals(JENIS_USER_PIMPINAN)) {\n tab_number = i.getIntExtra(INDEX_OPENED_TAB_KEY, 0);\n } else {\n tab_number = i.getIntExtra(INDEX_OPENED_TAB_KEY, 1);\n }\n\n if (tab_number == 0) {\n tabLayout.getTabAt(1).select();\n tabLayout.getTabAt(0).select();\n INDEX_OPENED_TAB = 0;\n } else {\n tabLayout.getTabAt(tab_number).select();\n INDEX_OPENED_TAB = tab_number;\n }\n }\n }",
"public static EDACCPlotTabView getMainTabView() {\n if (tabViews.size() == 0) {\n EDACCPlotTabView tabView = new EDACCPlotTabView();\n tabView.updateTitle(\"\");\n tabViews.add(tabView);\n tabViewCountChanged();\n }\n return tabViews.get(0);\n }"
] |
[
"0.7016202",
"0.7004047",
"0.69706905",
"0.6889334",
"0.6874861",
"0.68553925",
"0.6822275",
"0.6683881",
"0.6630864",
"0.6548178",
"0.65428835",
"0.6374662",
"0.6315695",
"0.6303467",
"0.629407",
"0.62188184",
"0.62154824",
"0.6194327",
"0.6158398",
"0.61498564",
"0.60604286",
"0.6043765",
"0.6023448",
"0.5975162",
"0.59353447",
"0.59310985",
"0.59238464",
"0.587771",
"0.5873697",
"0.5867019",
"0.58635974",
"0.5854747",
"0.58458865",
"0.58120924",
"0.57740057",
"0.5734217",
"0.5718745",
"0.5699898",
"0.56980693",
"0.56852335",
"0.5664209",
"0.5662967",
"0.5659686",
"0.56585366",
"0.56155187",
"0.5609898",
"0.56072223",
"0.5600498",
"0.55987",
"0.558924",
"0.5581749",
"0.55571884",
"0.5553366",
"0.5532659",
"0.5507587",
"0.54980457",
"0.54950374",
"0.5485676",
"0.5482942",
"0.54818755",
"0.5480231",
"0.5473613",
"0.5473592",
"0.5466543",
"0.5449634",
"0.54493856",
"0.5446643",
"0.54297525",
"0.5421241",
"0.54194087",
"0.5418402",
"0.540617",
"0.5395563",
"0.5380018",
"0.53722334",
"0.536571",
"0.535679",
"0.53531533",
"0.5350759",
"0.5350442",
"0.533699",
"0.53347903",
"0.53293145",
"0.53237814",
"0.53117555",
"0.5298757",
"0.52982956",
"0.5293004",
"0.5286347",
"0.5282758",
"0.5281295",
"0.52758354",
"0.52721363",
"0.5270334",
"0.52677125",
"0.52629966",
"0.523964",
"0.5234495",
"0.5216602",
"0.5212716",
"0.52106375"
] |
0.0
|
-1
|
Add a second tab.
|
public void Add1(String[] ss, String s) {
theList1 = Add(ss, s);
theSelected1 = new boolean[ss.length];
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}",
"public void addNewTab() {\n int count = workspaceTabs.getComponentCount() + 1;\n String title = \"Workspace \" + count;\n WorkspacePanel panel = new WorkspacePanel(title);\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n workspaceTabs.addTab(panel).setCaption(title);\n }",
"public void addTab(Tab tab)\n\t{\n\t\ttabs.add(tab);\n\t}",
"@Override\n\tpublic void addTab(Tab tab, int position) {\n\t\t\n\t}",
"protected void addTab(Tab tab) {\n mUi.addTab(tab);\n }",
"@Override\n\tpublic void addTab(Tab tab, int position, boolean setSelected) {\n\t\t\n\t}",
"public void addTab (String tabname, boolean closeable, Widget widget, final String key) {\n\n\n\t\tPanel localTP = new Panel();\n\t\tlocalTP.setClosable(closeable);\n\t\tlocalTP.setTitle(tabname);\n\t\tlocalTP.setId(key + id);\n\t\tlocalTP.setAutoScroll(true);\n\t\tlocalTP.add(widget);\n\n\t\ttp.add(localTP, this.centerLayoutData);\n\n\t\tlocalTP.addListener(new PanelListenerAdapter() {\n\n\t\t\tpublic void onDestroy(Component component) {\n\t\t\t\topenedTabs.remove(key);\n\t\t\t}\n\t\t});\n\n\n\t\ttp.activate(localTP.getId());\n\n\n\n\n\t\topenedTabs.put(key, localTP);\n\t}",
"public void add(TabLike tab){\n TabLabel btn = tabLabelCreator.create(tab.getName(), this);\n\n tab.setVisible(tabs.isEmpty());\n btn.setDisable(tabs.isEmpty());\n if (tabs.isEmpty()){\n selected = btn;\n }\n\n tabs.add(tab);\n nameTab.getChildren().add(btn);\n tabContent.getChildren().add(tab);\n tab.setContainer(this);\n }",
"public void addTab(String filename) {\n\t\t\n\t\tMinLFile nminl = new MinLFile(filename);\n\t\tJComponent panel = nminl;\n\t\t\n\t\ttabbedPane.addTab(filename, null, panel,\n\t\t\t\tfilename);\t\t\n\t\ttabbedPane.setMnemonicAt(0, 0);\n\t}",
"@Override\n\tpublic void addTab(Tab tab, boolean setSelected) {\n\t\t\n\t}",
"private static void AddTab(MenuActivity activity, TabHost tabHost,\n TabHost.TabSpec tabSpec, TabInfo tabInfo) {\n tabSpec.setContent(activity.new TabFactory(activity));\n tabHost.addTab(tabSpec);\n Log.i(\"LOG\",\"Cria Aba\");\n }",
"@Override\n public void addTab(String title, Component component) {\n this.addTab(title, null, component, null, null);\n }",
"private void addNewTab(SingleDocumentModel model) {\n\t\tString title = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().getFileName().toString();\n\t\tImageIcon icon = createIcon(\"icons/green.png\");\n\t\tJScrollPane component = new JScrollPane(model.getTextComponent());\n\t\tString toolTip = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().toAbsolutePath().toString();\n\t\taddTab(title, icon, component, toolTip);\n\t\tsetSelectedComponent(component);\n\t}",
"private void addScheduleTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n SessionsExpandableListActivity.CHILD_MODE_VISIBLE_TRACKS);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_SCHEDULE);\n spec.setIndicator(mResources.getString(R.string.schedule), mResources\n .getDrawable(R.drawable.ic_tab_schedule));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"private void addTab(String title, File file, String contents) {\n \tTextPane newTextPane = new TextPane(parentFrame,TextPane.getProperties(false), false);\r\n\r\n \t// 2nd create the tab\r\n \tStyledTab tab = new StyledTab(title);\r\n \tTextPaneTab paneTab = new TextPaneTab(file, newTextPane, tab);\r\n\r\n \t// 3rd add contents if any\r\n \tif (contents != null) {\r\n \t\tnewTextPane.getBuffer().insert(0, contents);\r\n \t\tnewTextPane.setCaretPosition(0);\r\n \t\tpaneTab.setModified(false);\r\n \t}\r\n\r\n \t// 4th add new TextPaneTab\r\n \tpanes.add(paneTab);\r\n\r\n \t// 5th create the pane and add it to manager\r\n \tJPanel pane = new JPanel();\r\n \tpane.setLayout(new BorderLayout());\r\n\t\tJPanel textPaneContainer = new JPanel();\r\n\t\ttextPaneContainer.setBorder(BorderFactory.createLineBorder(new Color(102, 102, 102), 1));\r\n\t\ttextPaneContainer.setLayout(new BorderLayout());\r\n\t\ttextPaneContainer.add(newTextPane, BorderLayout.CENTER);\r\n \tpane.add(textPaneContainer, BorderLayout.CENTER);\r\n \tpane.add(makePrgButtonPanel(), BorderLayout.EAST);\r\n \tint index = getTabCount()-1;\r\n \tinsertTab(title, null, pane, null, index);\r\n \tsetTabComponentAt(index,tab);\r\n \tif (!file.isDirectory())\r\n \t\tsetToolTipTextAt(index, file.getAbsolutePath());\r\n }",
"private void addChatTab(ChatPanel chatPanel)\n {\n ChatSession chatSession = chatPanel.getChatSession();\n String chatName = chatSession.getChatName();\n\n ChatPanel currentChatPanel = getCurrentChat();\n\n if (currentChatPanel == null)\n {\n this.mainPanel.add(chatPanel, BorderLayout.CENTER);\n }\n else if (getChatTabCount() == 0)\n {\n ChatSession firstChatSession = currentChatPanel.getChatSession();\n\n // Add first two tabs to the tabbed pane.\n chatTabbedPane.addTab( firstChatSession.getChatName(),\n firstChatSession.getChatStatusIcon(),\n currentChatPanel);\n\n chatTabbedPane.addTab( chatName,\n chatSession.getChatStatusIcon(),\n chatPanel);\n\n // When added to the tabbed pane, the first chat panel should\n // rest the selected component.\n chatTabbedPane.setSelectedComponent(currentChatPanel);\n\n //add the chatTabbedPane to the window\n this.mainPanel.add(chatTabbedPane, BorderLayout.CENTER);\n this.mainPanel.validate();\n }\n else\n {\n // The tabbed pane already contains tabs.\n\n chatTabbedPane.addTab(\n chatName,\n chatSession.getChatStatusIcon(),\n chatPanel);\n\n chatTabbedPane.getParent().validate();\n }\n }",
"private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }",
"private void addStarredTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n SessionsExpandableListActivity.CHILD_MODE_STARRED);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_STARRED);\n spec.setIndicator(mResources.getString(R.string.starred), mResources\n .getDrawable(R.drawable.ic_tab_starred));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"public void openTab(String tabName){\r\n\r\n\t\tTabView selectedTabView = new TabView(this);\r\n\t\ttabViews.add(selectedTabView);\r\n\t\t\r\n\t\t\r\n\t\tif(tabName == null){ // If a new tab..\r\n\t\t\t// Ensure that there isn't already a model with that name\r\n\t\t\twhile(propertiesMemento.getTabNames().contains(tabName) || tabName == null){\r\n\t\t\t\ttabName = \"New Model \" + newModelIndex;\r\n\t\t\t\tnewModelIndex++;\r\n\t\t\t}\r\n\t\t}\r\n logger.info(\"Adding tab:\" + tabName);\r\n\r\n\t\t// Just resizes and doesn't scroll - so don't need the scroll pane\r\n\t\t/*JScrollPane scrollPane = new JScrollPane(selectedTabView, \r\n \t\t\t\t\t\t\t\t JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, \r\n \t\t\t\t\t\t\t\t JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.getVerticalScrollBar().setUnitIncrement(20);\r\n tabbedPane.addTab(tabName, scrollPane);*/\r\n\r\n\t\ttabbedPane.addTab(tabName, selectedTabView);\r\n\r\n currentView = selectedTabView;\r\n tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);\r\n setTabName(tabName);\r\n\t\t\t\t\r\n tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\t new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));\r\n \r\n // Add Mouse motion Listener \r\n currentView.addMouseMotionListener(currentView);\r\n currentView.addMouseListener(currentView);\r\n\r\n // Record the tab in the memento\r\n propertiesMemento.addTabRecord(tabName);\r\n \r\n setTabButtons(true);\r\n \r\n setStatusBarText(\"Ready\");\r\n\r\n requestFocusInWindow();\r\n\t}",
"public void addCompositeToTab(String tabName){\r\n\t\tTabItem item = new TabItem(folderReference, SWT.NONE);\r\n\t\titem.setText(tabName);\r\n\t\t\r\n\t\tfolderReference.getItem(compositeIndex).setControl(compositeMap.get(compositeIndex));\r\n\t\t++compositeIndex;\r\n\t}",
"protected abstract void doAddTab(GridTab tab, JPiereIADTabpanel tabPanel);",
"private void addPanel(TabComponent tabComp, PlotPanel pnl) {\n tabbedPanePlots.addTab(null, null, pnl, tabComp.getTitle());\n pnl.setParent(this);\n // replace the tab component and select this new tab\n tabbedPanePlots.setTabComponentAt(tabbedPanePlots.getTabCount() - 1, tabComp);\n tabbedPanePlots.setSelectedIndex(tabbedPanePlots.getTabCount() - 1);\n requestFocus();\n }",
"private void addTab(String label, int drawableId, Intent i) {\n \tTabHost.TabSpec spec = tabHost.newTabSpec(label);\r\n \tView tabIndicator = LayoutInflater.from(this).inflate(R.layout.tabs, getTabWidget(), false);\r\n \tTextView title = (TextView) tabIndicator.findViewById(R.id.title);\r\n \ttitle.setText(label);\r\n// \tImageView icon = (ImageView) tabIndicator.findViewById(R.id.icon);\r\n// \ticon.setImageResource(drawableId);\r\n \tspec.setIndicator(tabIndicator).setContent(i);\r\n \ttabHost.addTab(spec);\r\n }",
"private void addTracksTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n //intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n // SessionsExpandableListActivity.CHILD_MODE_STARRED);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_TWITTER);\n spec.setIndicator(mResources.getString(R.string.tracks), mResources\n .getDrawable(R.drawable.ic_menu_archive));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"private void addTabs() {\n TabsPagerAdapter tabsAdapter = new TabsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.pager);\n viewPager.setAdapter(tabsAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.connect);\n tabLayout.getTabAt(1).setIcon(R.drawable.speak);\n tabLayout.getTabAt(2).setIcon(R.drawable.walk);\n tabLayout.getTabAt(3).setIcon(R.drawable.camera);\n tabLayout.getTabAt(4).setIcon(R.drawable.moves);\n }",
"protected WMSLayersPanel addTab(int position, String server) {\n\t\ttry {\n\t\t\tWMSLayersPanel layersPanel = new WMSLayersPanel(this.getWwd(), server, wmsPanelSize);\n\t\t\tthis.tabbedPane.add(layersPanel, BorderLayout.CENTER);\n\t\t\tString title = layersPanel.getServerDisplayString();\n\t\t\tthis.tabbedPane.setTitleAt(position, title != null && title.length() > 0 ? title : server);\n\n\t\t\t// Add a listener to notice wms layer selections and tell the layer\n\t\t\t// panel to reflect the new state.\n\t\t\tlayersPanel.addPropertyChangeListener(\"LayersPanelUpdated\", new PropertyChangeListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent propertyChangeEvent) {\n\t\t\t\t\tLayer newLayer = (Layer) propertyChangeEvent.getNewValue();\n\t\t\t\t\t// AppFrame.this.getLayerPanel().update(WMSLayerManager.this.getWwd());\n\t\t\t\t\tTacsitManager.getInstance().getWorldWindowJPanel().getModel().getLayers().add(newLayer);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn layersPanel;\n\t\t} catch (URISyntaxException e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Server URL is invalid\", \"Invalid Server URL\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\ttabbedPane.setSelectedIndex(previousTabIndex);\n\t\t\treturn null;\n\t\t}\n\t}",
"private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}",
"public void addTab(ActionBar.Tab tab, Class<?> fragmentClass, Bundle args) {\r\n\t\t\tTabInfo info = new TabInfo(fragmentClass, args);\r\n\t\t\ttab.setTag(info);\r\n\t\t\ttab.setTabListener(this);\r\n\t\t\tgetTabs().add(info);\r\n\t\t\tgetActionBar().addTab(tab);\r\n\t\t\tnotifyDataSetChanged();\r\n\t\t}",
"public void addMainTab(String label, String historyToken, String contentUrl, TabOptions options) {\n addTab(MainTabPanelPresenter.TYPE_RequestTabs,\n MainTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, true, contentUrl, options);\n }",
"public void addSubTab(EntityType entityType, String label, String historyToken, String contentUrl,\n TabOptions options) {\n switch (entityType) {\n case DataCenter:\n addTab(DataCenterSubTabPanelPresenter.TYPE_RequestTabs,\n DataCenterSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Cluster:\n addTab(ClusterSubTabPanelPresenter.TYPE_RequestTabs,\n ClusterSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Host:\n addTab(HostSubTabPanelPresenter.TYPE_RequestTabs,\n HostSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Storage:\n addTab(StorageSubTabPanelPresenter.TYPE_RequestTabs,\n StorageSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Disk:\n addTab(DiskSubTabPanelPresenter.TYPE_RequestTabs,\n DiskSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case VirtualMachine:\n addTab(VirtualMachineSubTabPanelPresenter.TYPE_RequestTabs,\n VirtualMachineSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Template:\n addTab(TemplateSubTabPanelPresenter.TYPE_RequestTabs,\n TemplateSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n }\n }",
"public void applyTab();",
"private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}",
"private void setupTabs() {\n }",
"@Test\n @SmallTest\n @Feature(\"MultiWindow\")\n @DisabledTest(message = \"https://crbug.com/1417018\")\n public void testTabbedActivity2TaskRunning() {\n ChromeTabbedActivity activity2 =\n createSecondChromeTabbedActivity(mActivityTestRule.getActivity());\n Assert.assertTrue(MultiWindowUtils.getInstance().getTabbedActivity2TaskRunning());\n\n activity2.finishAndRemoveTask();\n MultiWindowUtils.getInstance().getTabbedActivityForIntent(\n mActivityTestRule.getActivity().getIntent(), mActivityTestRule.getActivity());\n Assert.assertFalse(MultiWindowUtils.getInstance().getTabbedActivity2TaskRunning());\n }",
"@Override\n\tpublic void addTab(final String newTitle, final Component theComponent) {\n\t\tif (newTitle==null || newTitle.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid tab title\");\n\t\t}\n\t\tif (theComponent.getName()==null || theComponent.getName().isEmpty()) {\n\t\t\ttheComponent.setName(newTitle);\n\t\t}\n\t\t// Check if the component is already present\n\t\tfor (int i=0; i<getTabCount(); i++) {\n\t\t\tComponent c= getTabComponentAt(i);\n\t\t\tif (c!=null) {\n\t\t\t\tif (c.getName().equals(theComponent.getName())) {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Component already displayed: \"+c.getName());\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\tif (EventQueue.isDispatchThread()) {\n\t\t\taddTheTab(newTitle, theComponent);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\taddTheTab(newTitle, theComponent);\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Exception caught while adding \"+theComponent+\" with a TAB having title \"+newTitle+\": \"+e.getMessage());\n\t\t}\n\t}",
"public void add(View v) {\n\t\tint type = tabHost.getCurrentTab() + 1;\n\t\tIntent i = new Intent(this, AddActivity.class);\n\t\ti.putExtra(\"type\", type);\n\t\tstartActivityForResult(i, MainActivity.REQUEST_ADD);\n\t}",
"public void buttonNewTab(ActionEvent actionEvent) {\n }",
"private Tab getNextTab() {\n int pos = mTabControl.getCurrentPosition() + 1;\n if (pos >= mTabControl.getTabCount()) {\n pos = 0;\n }\n return mTabControl.getTab(pos);\n }",
"private static void addPanelInMainTabView(TabComponent tc, PlotPanel pnl) {\n EDACCPlotTabView tabView = getMainTabView();\n if (tc == null) {\n tabView.addPanel(pnl);\n } else {\n tabView.addPanel(tc, pnl);\n }\n }",
"public static void AddTab(EventActivity activity, TabHost tabHost, TabHost.TabSpec tabSpec, TabInfo tabInfo) {\n\t\t// Attach a Tab view factory to the spec\n\t\ttabSpec.setContent(new Utils.TabFactory(activity));\n tabHost.addTab(tabSpec);\n\t}",
"public void navigateToTab(String tabName) {\n if (tabName.equals(\"File\") || tabName.equals(\"Appreciation\") ||\n tabName.equals(\"Announcement\") || tabName.equals(\"Workflow\")) {\n WebElement more = driver.findElement(By.xpath(\"//span[@id='feed-add-post-form-link-text' and contains(text(),'More')]\"));\n more.click();\n BrowserUtils.wait(3);\n WebElement subModule=driver.findElement(By.xpath(\"//span[@class='menu-popup-item-text' and contains(text(),'\"+tabName+\"')]\"));\n subModule.click();\n } else {\n String tabXpath = \"//span[@class='feed-add-post-form-link']//span[text()='\" + tabName + \"']\";\n WebElement tab = driver.findElement(By.xpath(tabXpath));\n\n tab.click();\n }\n }",
"private void addTheTab(final String title, final Component comp) {\n\t\tif (comp==null) {\n\t\t\tthrow new IllegalArgumentException(\"The component can't be null\");\n\t\t}\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tint i = indexOfComponent(errorTab);\n\t\t\t\tif (i!=-1) {\n\t\t\t\t\tinsertTab(title, null, comp, null, i);\n\t\t\t\t} else {\n\t\t\t\t\taddTab(title,null,comp);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void onCreateTabClicked(View view) {\n if (mAdapter.isEmpty()) {\n Toast.makeText(this, R.string.you_must_create_at_least_one_tab, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<TabInformation> list = new ArrayList<>(mAdapter.getTabInformation());\n startActivity(new Intent(this, DisplayTabsActivity.class).putExtra(TAB_CONTENT, list));\n }",
"private void eric_function()\n\t{\n \ttabHost = (TabHost) findViewById(R.id.mytab1);\n \ttabHost.setup();\n \t \n \t//tabHost.setBackgroundColor(Color.argb(150, 20, 80, 150));\n \ttabHost.setBackgroundResource(R.drawable.ic_launcher);\n \t\n \t\n \t//\n \tTabSpec tabSpec;\n \t// 1\n \ttabSpec = tabHost.newTabSpec(tab_list[0]);\n \ttabSpec.setIndicator(\"a.1\");\n \ttabSpec.setContent(R.id.widget_layout_blue2);\n \ttabHost.addTab(tabSpec);\n \t// 2\n \ttabSpec = tabHost.newTabSpec(tab_list[1]);\n \ttabSpec.setIndicator(\"a2\");\n \ttabSpec.setContent(R.id.widget_layout_green2);\n \ttabHost.addTab(tabSpec); \t\n \t// 3\n \ttabSpec = tabHost.newTabSpec(tab_list[2]);\n \ttabSpec.setIndicator(\"a3\");\n \ttabSpec.setContent(R.id.widget_layout_red2);\n \ttabHost.addTab(tabSpec); \t\n \t//\n\t\ttabHost.setOnTabChangedListener(listener1);\n \t//\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public final void rule__InsertSQL__TabAssignment_2_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1899:1: ( ( ruleTab ) )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1900:1: ( ruleTab )\n {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1900:1: ( ruleTab )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1901:1: ruleTab\n {\n before(grammarAccess.getInsertSQLAccess().getTabTabParserRuleCall_2_3_0()); \n pushFollow(FOLLOW_ruleTab_in_rule__InsertSQL__TabAssignment_2_33755);\n ruleTab();\n\n state._fsp--;\n\n after(grammarAccess.getInsertSQLAccess().getTabTabParserRuleCall_2_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\n\tpublic Tab newTab() {\n\t\treturn null;\n\t}",
"private void fuenteTab() {\n\n\n View view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n TextView tv=(TextView) view.findViewById(R.id.pestanias_txt);\n ImageView imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.detalles);\n tv.setTypeface(fuente2);\n tv.setText(\"Detalles\");\n tabLayout.getTabAt(0).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.marciano);\n tv.setTypeface(fuente2);\n tv.setText(\"Juegos\");\n tabLayout.getTabAt(1).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.tienda);\n tv.setTypeface(fuente2);\n tv.setText(\"Tienda\");\n tabLayout.getTabAt(2).setCustomView(view);\n\n }",
"private void createTabsDiv() {\n tabsDiv = new Block(Block.Div, \"id='tabs'\");\n page.add(tabsDiv);\n }",
"public void addTab(DocumentWrapper file, String text) {\n\t\tJTextArea textEditor = new JTextArea();\n\n\t\ttextEditor.setText(text);\n\t\ttextEditor.getDocument().putProperty(\"changed\", false);\n\t\ttextEditor.addCaretListener(new CaretListener() {\n\t\t\t@Override\n\t\t\tpublic void caretUpdate(CaretEvent arg0) {\n\t\t\t\tint dot = arg0.getDot();\n\t\t\t\tint mark = arg0.getMark();\n\n\t\t\t\tint caretpos = textEditor.getCaretPosition();\n\t\t\t\tint lineNum = 1;\n\t\t\t\tint columnNum = 1;\n\t\t\t\ttry {\n\t\t\t\t\tlineNum = textEditor.getLineOfOffset(caretpos);\n\t\t\t\t\tcolumnNum = 1 + caretpos - textEditor.getLineStartOffset(lineNum);\n\t\t\t\t\tlineNum += 1;\n\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tstatusLabel.setText(\"length : \" + textEditor.getText().length());\n\t\t\t\tlineLabel.setText(\"Ln : \" + lineNum);\n\t\t\t\tcolumnLabel.setText(\"Col : \" + columnNum);\n\t\t\t\tselectedLabel.setText(\"Sel : \" + Math.abs(dot - mark));\n\t\t\t\t;\n\n\t\t\t\tif (dot == mark) {\n\t\t\t\t\titemInvert.setEnabled(false);\n\t\t\t\t\titemLower.setEnabled(false);\n\t\t\t\t\titemUpper.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\titemInvert.setEnabled(true);\n\t\t\t\t\titemLower.setEnabled(true);\n\t\t\t\t\titemUpper.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttextEditor.getDocument().addDocumentListener(new DocumentListener() {\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t\tButtonTabComponent comp = (ButtonTabComponent) pane.getTabComponentAt(pane.getSelectedIndex());\n\n\t\t\t\tcomp.setImage(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\t\t});\n\n\t\tfile.setEditor(textEditor);\n\n\t\tJScrollPane scPane = new JScrollPane(textEditor);\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.add(scPane, BorderLayout.CENTER);\n\n\t\tint index = pane.getTabCount();\n\n\t\tpane.addTab(file.getName(), textEditor);\n\n\t\tinitTabComponent(file, index);\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t// Otteniamo il riferimento al TabHost\n\t\tTabHost tabHost = getTabHost();\n\t\t// Aggiungiamo un secondo tab che utilizza una factory\n\t\ttabHost.addTab(tabHost.newTabSpec(\"Factory\").setContent(\n\t\t\t\tnew MyTabContentFactory(this)).setIndicator(\"Factory\"));\n\t\t// Aggiungiamo il terzo Tab relativo ad un Intent\n\t\tIntent newIntent = new Intent(this,SecondActivity.class);\n\t\ttabHost.addTab(tabHost.newTabSpec(\"Intent\").setContent(newIntent).setIndicator(\"Intent\"));\t\t\n\t}",
"private Component setTabPanel(){\n String componentKey = Integer.toString(focusL1) + \"-\" + Integer.toString(focusL2);\n\n Component wrapper = getComponentById(wrapperName);\n Component replacedPanel = getComponentById(panelName);\n\n Component panel;\n panel = panelMap.getPanelMap().get(componentKey);\n replacedPanel.replaceWith( panel );\n\n return wrapper;\n }",
"public void addTableNavigation(String title) {\n\n\t\t// Create panel\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// Create and add text editor to panel\n\t\tConsoleTableNavigation table = new ConsoleTableNavigation();\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tpanel.add(scrollPane, BorderLayout.CENTER);\n\n\t\t// Add the tab\n\t\taddTab(title, null, scrollPane);\n\n\t\t// Store it in the map\n\t\tthis.tabPanelsMap.put(title, table);\n\t}",
"public void renameTabs(){\n\t\tfor(int i =0;i<nbTabs;i++){\n\t\t\tif(!tabs.getTitleAt(i).equals(\"Exemples\"))\n\t\t\t\ttabs.setTitleAt(i,(\"Génération\"+(i+1)));\n\t\t}\n\t}",
"void addTab(Type<RequestTabsHandler> requestTabsEventType,\n Type<RevealContentHandler<?>> revealContentEventType,\n String label, String historyToken, boolean isMainTab,\n String contentUrl, TabOptions options) {\n dynamicUrlContentTabProxyFactory.create(\n requestTabsEventType, revealContentEventType,\n label, historyToken, isMainTab, contentUrl,\n options.getAlignRight() ? Align.RIGHT : Align.LEFT);\n\n // Redraw the corresponding tab container\n RedrawDynamicTabContainerEvent.fire(this, requestTabsEventType);\n }",
"private JList Add(String[] ss, String s) {\n\t\t// if (ss.length > 0) {\n\t\tJList l = new JList(ss);\n\t\tint indices[] = new int[ss.length];\n\t\tfor (int i = 0; i < ss.length; i++) {\n\t\t\tindices[i] = i;\n\t\t}\n\t\tl.setSelectedIndices(indices);\n\t\ttheTabbedPane.addTab(s, new JScrollPane(l));\n\t\treturn l;\n\t\t// }\n\t\t// return null;\n\t}",
"private void initTab()\n {\n \n }",
"public void setCollaboratorTab(Tab newTab) {\r\n this.collaboratorTab = newTab;\r\n HomeController.enableTabsOnCloseRequest(this.collaboratorTab);\r\n }",
"public void undo() {\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().add(topsoilTab);\n }",
"private void createSingleTab(String text, Path path) {\r\n\t\tif (text == null) {\r\n\t\t\ttext = \"\";\r\n\t\t}\r\n\t\t\r\n\t\tJTextArea txtArea = new JTextArea(text);\r\n\t\ttxtArea.getDocument().addDocumentListener(new DocumentListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\t\t\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\t\t\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tprivate void changeIcon() {\r\n\t\t\t\ttabbedPane.setIconAt(tabbedPane.getSelectedIndex(), redIcon);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttxtArea.addCaretListener(new CaretListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void caretUpdate(CaretEvent e) {\r\n\t\t\t\tlengthLab.setText(\"Length: \"+txtArea.getText().length());\r\n\t\t\t\t\r\n\t\t\t\tint offset = txtArea.getCaretPosition();\r\n\t int line= 1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tline = txtArea.getLineOfOffset(offset);\r\n\t\t\t\t} catch (BadLocationException ignorable) {}\r\n\t\t\t\tlnLab.setText(\"Ln: \"+(line+1));\r\n\t\t\t\t\r\n\t\t\t\tint col = 1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcol = offset - txtArea.getLineStartOffset(line);\r\n\t\t\t\t} catch (BadLocationException ignorable) {}\r\n\t\t\t\tcolLab.setText(\"Col: \"+ (col+1));\r\n\t\t\t\t\r\n\t\t\t\tint sel = Math.abs(txtArea.getSelectionStart() - txtArea.getSelectionEnd());\t\r\n\t\t\t\tselLab.setText(\"sel: \"+sel);\r\n\t\t\t\tfor (JMenuItem i : toggable) {\r\n\t\t\t\t\tboolean enabled;\r\n\t\t\t\t\tenabled = sel != 0;\r\n\t\t\t\t\ti.setEnabled(enabled);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJScrollPane scrPane = new JScrollPane(txtArea);\r\n\t\tif (path == null) {\t//create empty tab\t\r\n\t\t\tString name = \"New \" + (count +1);\r\n\t\t\ttabbedPane.addTab(name, greenIcon, scrPane, \"\");\r\n\t\t\tcount++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttabbedPane.addTab(path.getFileName().toString(), greenIcon, scrPane, path.toString());\r\n\t\tcount++;\r\n\t}",
"@Override\r\n\tpublic void insertTab(String title, Icon icon,\r\n\t\t\tComponent component, String tip, int index) {\n\t\tsuper.insertTab(title, icon, component, tip, index);\r\n\t\tif (index < 10)\r\n\t\t\tsetMnemonicAt(index, TAB_MNEMONICS[index]);\r\n\t}",
"public void addedToDom() {\n activateTab();\n }",
"private void showTab(int tab) {\n switch (tab) {\n case OUTING_TAB_EXPENSES:\n switchToExpensesTab();\n break;\n case OUTING_TAB_BUDDIES:\n switchToBuddiesTab();\n break;\n }\n\n this.activeTab = tab;\n }",
"private void addControl() {\n // Gan adapter va danh sach tab\n PagerAdapter adapter = new PagerAdapter(getSupportFragmentManager());\n // Them noi dung cac tab\n adapter.AddFragment(new TourMapTab());\n adapter.AddFragment(new TourInfoTab());\n adapter.AddFragment(new TourMapImageTab());\n // Set adapter danh sach tab\n ViewPager viewPager = ActivityManager.getInstance().activityTourTabsBinding.viewpager;\n TabLayout tabLayout = ActivityManager.getInstance().activityTourTabsBinding.tablayout;\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n // Them vach ngan cach cac tab\n View root = tabLayout.getChildAt(0);\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColor(getResources().getColor(R.color.colorPrimaryDark));\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n // Icon cac tab\n tabLayout.getTabAt(0).setIcon(R.drawable.tour_map_icon_select);\n tabLayout.getTabAt(1).setIcon(R.mipmap.tour_info_icon);\n tabLayout.getTabAt(2).setIcon(R.mipmap.tour_map_image_icon);\n\n // Doi mau tab icon khi click\n tabLayout.addOnTabSelectedListener(new TabLayout.ViewPagerOnTabSelectedListener(viewPager) {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n super.onTabSelected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.drawable.tour_map_icon_select);\n break;\n case 1:\n tab.setIcon(R.drawable.tour_info_icon_select);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon_select);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n super.onTabUnselected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.mipmap.tour_map_icon);\n break;\n case 1:\n tab.setIcon(R.mipmap.tour_info_icon);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n super.onTabReselected(tab);\n }\n }\n );\n }",
"private void insertarTabs(ViewGroup container) {\n View padre = (View) container.getParent();\n pestanas = (TabLayout)padre.findViewById(R.id.tabs);\n }",
"public KonTabbedPane() {\n // Initialize the ArrayList\n graphInterfaces = new ArrayList<DrawingLibraryInterface>();\n\n DirectedGraph<String, DefaultEdge> graph = CreateTestGraph();\n\n /*\n * Adds a tab\n */\n DrawingLibraryInterface<String, DefaultEdge> graphInterface =\n DrawingLibraryFactory.createNewInterface(graph);\n \n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n addTab(\"First Tab\", graphInterface.getPanel());\n\n /*\n * Adds a tab\n */\n graphInterface = DrawingLibraryFactory.createNewInterface(graph);\n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n\n graphInterface.getGraphManipulationInterface().highlightNode(graph\n .vertexSet().iterator().next(), true);\n\n addTab(\"Second Tab\", graphInterface.getPanel());\n }",
"public Controle_De_Acesso_02_Cadastrar_Visualizar( Home Home2, JTabbedPane JTabbedPane_Recebido2, String status_cadastro2 ) {\n initComponents();\n \n Home = Home2; \n status_cadastro = status_cadastro2;\n JTabbedPane_Recebido = JTabbedPane_Recebido2;\n setar_Dados_Iniciais();\n \n }",
"public void switchToAddFragment() {\n FragmentManager manager = getSupportFragmentManager();\n manager.beginTransaction().replace(R.id.fragment_container, new AddActivity()).commit();\n }",
"@Override public void addTab(String title, Component content) {\n super.addTab(title, new JLabel(\"Loading...\"));\n JProgressBar bar = new JProgressBar();\n int currentIndex = getTabCount() - 1;\n JLabel label = new JLabel(title);\n Dimension dim = label.getPreferredSize();\n int w = Math.max(80, dim.width);\n label.setPreferredSize(new Dimension(w, dim.height));\n Insets tabInsets = UIManager.getInsets(\"TabbedPane.tabInsets\");\n bar.setPreferredSize(new Dimension(w, dim.height - tabInsets.top - 1));\n // bar.setString(title);\n // bar.setUI(new BasicProgressBarUI());\n setTabComponentAt(currentIndex, bar);\n SwingWorker<String, Integer> worker = new BackgroundTask() {\n @Override protected void process(List<Integer> chunks) {\n if (!isDisplayable()) {\n // System.out.println(\"process: DISPOSE_ON_CLOSE\");\n cancel(true);\n }\n }\n\n @Override protected void done() {\n if (!isDisplayable()) {\n // System.out.println(\"done: DISPOSE_ON_CLOSE\");\n cancel(true);\n return;\n }\n setTabComponentAt(currentIndex, label);\n setComponentAt(currentIndex, content);\n String txt;\n try {\n txt = get();\n } catch (InterruptedException ex) {\n txt = \"Interrupted\";\n Thread.currentThread().interrupt();\n } catch (ExecutionException ex) {\n txt = \"Exception\";\n }\n label.setToolTipText(txt);\n }\n };\n worker.addPropertyChangeListener(new ProgressListener(bar));\n // executor.execute(worker);\n worker.execute();\n }",
"public static void addPanelInMainTabView(String title, PlotPanel pnl) {\n if (title == null) {\n addPanelInMainTabView((TabComponent) null, pnl);\n } else {\n getMainTabView().addPanel(title, pnl);\n }\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.tab);\n\t\tTabHost th =getTabHost();\n\t\tTabSpec tab1 = (TabSpec) th.newTabSpec(\"Arrival\");\n\t TabSpec tab2 = (TabSpec) th.newTabSpec(\"Alternate\");\n\t \n\t tab1.setIndicator(\"Plan Journey\", null).setContent(\n\t new Intent(this, TrainSearchActivity.class));\n\t tab2.setIndicator(\"Alternate\", null).setContent(\n\t new Intent(this, AlternateRoute.class));\n\t \n\t th.addTab(tab1);\n\t th.addTab(tab2);\n\t \n\t}",
"@Override\n public void onClick(View v) {\n tabChangeInterface.switchToTheNextTab();\n }",
"public static void addScratchPanel() {\n scratchDetailPanel = new ScratchDetailPanel();\n JTabbedPane scratchTP = ScratchPanel.getScratchTP();\n numScratchLabels++;\n \n boolean debug = false;\n if (debug) { \n System.out.println(\"prior numScratchPanels \" + numScratchPanelsAdded);\n System.out.println(\"prior num Components \" + scratchTP.getComponentCount());\n System.out.println(\"numScratchPanelsRemoved \" + numScratchPanelsRemoved);\n }\n\n\n try {\n scratchTP.add(scratchDetailPanel, \"Scratch \" + numScratchLabels,numScratchPanelsAdded - numScratchPanelsRemoved);\n } catch (Exception e) {\n // ignore any errors here\n }\n \n if (debug) System.out.println(\"panel added\");\n \n if (numScratchPanelsAdded >= 1) scratchTP.setSelectedComponent(scratchDetailPanel);\n try {\n scratchTP.setTabComponentAt(numScratchPanelsAdded - numScratchPanelsRemoved, new ButtonTabComponent(scratchTP));\n } catch (Exception e) {\n //ignore any errors here\n }\n numScratchPanelsAdded++;\n \n \n if (debug) { \n System.out.println(\"post numScratchPanels \" + numScratchPanelsAdded);\n System.out.println(\"post num Components \" + scratchTP.getComponentCount());\n }\n\n }",
"public void onTabSelected(Tab tab, android.app.FragmentTransaction ft) {\n FragmentTransaction sft = mActivity.getSupportFragmentManager().beginTransaction();\n // Check if the fragment is already initialized\n MainActivity.tab = tab.getPosition();\n switch (tab.getPosition()) {\n case 0:\n // My List\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"My List\" + \"</font>\"));\n break;\n \n case 1:\n // Favorites\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Favorites \" + \"</font>\"));\n break;\n \n case 2:\n // Search\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Search\" + \"</font>\"));\n break;\n\n case 3:\n // Recipes\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Recipes\" + \"</font>\"));\n break;\n\n default:\n break;\n }\n if (mFragment == null) {\n // If not, instantiate and add it to the activity\n mFragment = Fragment.instantiate(mActivity, mClass.getName());\n sft.add(mfragmentContainerId, mFragment, mTag);\n } else {\n // If it exists, simply attach it in order to show it\n sft.attach(mFragment);\n }\n sft.commit();\n }",
"@Then(\"^user clicks on new customer tab$\")\n\tpublic void user_clicks_on_new_customer_tab() {\n\t driver.findElement(By.xpath(\"//a[@href='addcustomerpage.php']\")).click();\n\t \n\t}",
"public static void new_tab(By locator) throws CheetahException {\n\t\ttry {\n\t\t\tWebElement element = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(element);\n\t\t\tdriverUtils.unHighlightElement(element);\n\t\t\telement.sendKeys(Keys.CONTROL, \"t\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\n\t}",
"public void switchNextTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i + 1 <= tabItems.length - 1)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(0);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void addAdditionalFieldsTab()\n {\n\t\t// START OF ADDITIONAL FIELDS TAB ///\n\t\t// ////////////////////////\n \twAdditionalFieldsTab = new CTabItem(wTabFolder, SWT.NONE);\n \twAdditionalFieldsTab.setText(BaseMessages.getString(PKG, \"AccessInputDialog.AdditionalFieldsTab.TabTitle\"));\n\n \twAdditionalFieldsComp = new Composite(wTabFolder, SWT.NONE);\n\t\tprops.setLook(wAdditionalFieldsComp);\n\n\t\tFormLayout fieldsLayout = new FormLayout();\n\t\tfieldsLayout.marginWidth = 3;\n\t\tfieldsLayout.marginHeight = 3;\n\t\twAdditionalFieldsComp.setLayout(fieldsLayout);\n\t\t\n\t\t// ShortFileFieldName line\n\t\twlShortFileFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlShortFileFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ShortFileFieldName.Label\"));\n\t\tprops.setLook(wlShortFileFieldName);\n\t\tfdlShortFileFieldName = new FormData();\n\t\tfdlShortFileFieldName.left = new FormAttachment(0, 0);\n\t\tfdlShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\tfdlShortFileFieldName.right = new FormAttachment(middle, -margin);\n\t\twlShortFileFieldName.setLayoutData(fdlShortFileFieldName);\n\n\t\twShortFileFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wShortFileFieldName);\n\t\twShortFileFieldName.addModifyListener(lsMod);\n\t\tfdShortFileFieldName = new FormData();\n\t\tfdShortFileFieldName.left = new FormAttachment(middle, 0);\n\t\tfdShortFileFieldName.right = new FormAttachment(100, -margin);\n\t\tfdShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\twShortFileFieldName.setLayoutData(fdShortFileFieldName);\n\t\t\n\t\t\n\t\t// ExtensionFieldName line\n\t\twlExtensionFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlExtensionFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ExtensionFieldName.Label\"));\n\t\tprops.setLook(wlExtensionFieldName);\n\t\tfdlExtensionFieldName = new FormData();\n\t\tfdlExtensionFieldName.left = new FormAttachment(0, 0);\n\t\tfdlExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\tfdlExtensionFieldName.right = new FormAttachment(middle, -margin);\n\t\twlExtensionFieldName.setLayoutData(fdlExtensionFieldName);\n\n\t\twExtensionFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wExtensionFieldName);\n\t\twExtensionFieldName.addModifyListener(lsMod);\n\t\tfdExtensionFieldName = new FormData();\n\t\tfdExtensionFieldName.left = new FormAttachment(middle, 0);\n\t\tfdExtensionFieldName.right = new FormAttachment(100, -margin);\n\t\tfdExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\twExtensionFieldName.setLayoutData(fdExtensionFieldName);\n\t\t\n\t\t\n\t\t// PathFieldName line\n\t\twlPathFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlPathFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.PathFieldName.Label\"));\n\t\tprops.setLook(wlPathFieldName);\n\t\tfdlPathFieldName = new FormData();\n\t\tfdlPathFieldName.left = new FormAttachment(0, 0);\n\t\tfdlPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\tfdlPathFieldName.right = new FormAttachment(middle, -margin);\n\t\twlPathFieldName.setLayoutData(fdlPathFieldName);\n\n\t\twPathFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wPathFieldName);\n\t\twPathFieldName.addModifyListener(lsMod);\n\t\tfdPathFieldName = new FormData();\n\t\tfdPathFieldName.left = new FormAttachment(middle, 0);\n\t\tfdPathFieldName.right = new FormAttachment(100, -margin);\n\t\tfdPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\twPathFieldName.setLayoutData(fdPathFieldName);\n\t\t\n\n\n \t\t// SizeFieldName line\n\t\twlSizeFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlSizeFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.SizeFieldName.Label\"));\n\t\tprops.setLook(wlSizeFieldName);\n\t\tfdlSizeFieldName = new FormData();\n\t\tfdlSizeFieldName.left = new FormAttachment(0, 0);\n\t\tfdlSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\tfdlSizeFieldName.right = new FormAttachment(middle, -margin);\n\t\twlSizeFieldName.setLayoutData(fdlSizeFieldName);\n\n\t\twSizeFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wSizeFieldName);\n\t\twSizeFieldName.addModifyListener(lsMod);\n\t\tfdSizeFieldName = new FormData();\n\t\tfdSizeFieldName.left = new FormAttachment(middle, 0);\n\t\tfdSizeFieldName.right = new FormAttachment(100, -margin);\n\t\tfdSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\twSizeFieldName.setLayoutData(fdSizeFieldName);\n\t\t\n\t\t\n\t\t// IsHiddenName line\n\t\twlIsHiddenName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlIsHiddenName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.IsHiddenName.Label\"));\n\t\tprops.setLook(wlIsHiddenName);\n\t\tfdlIsHiddenName = new FormData();\n\t\tfdlIsHiddenName.left = new FormAttachment(0, 0);\n\t\tfdlIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\tfdlIsHiddenName.right = new FormAttachment(middle, -margin);\n\t\twlIsHiddenName.setLayoutData(fdlIsHiddenName);\n\n\t\twIsHiddenName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wIsHiddenName);\n\t\twIsHiddenName.addModifyListener(lsMod);\n\t\tfdIsHiddenName = new FormData();\n\t\tfdIsHiddenName.left = new FormAttachment(middle, 0);\n\t\tfdIsHiddenName.right = new FormAttachment(100, -margin);\n\t\tfdIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\twIsHiddenName.setLayoutData(fdIsHiddenName);\n\t\t\n\t\t// LastModificationTimeName line\n\t\twlLastModificationTimeName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlLastModificationTimeName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.LastModificationTimeName.Label\"));\n\t\tprops.setLook(wlLastModificationTimeName);\n\t\tfdlLastModificationTimeName = new FormData();\n\t\tfdlLastModificationTimeName.left = new FormAttachment(0, 0);\n\t\tfdlLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\tfdlLastModificationTimeName.right = new FormAttachment(middle, -margin);\n\t\twlLastModificationTimeName.setLayoutData(fdlLastModificationTimeName);\n\n\t\twLastModificationTimeName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wLastModificationTimeName);\n\t\twLastModificationTimeName.addModifyListener(lsMod);\n\t\tfdLastModificationTimeName = new FormData();\n\t\tfdLastModificationTimeName.left = new FormAttachment(middle, 0);\n\t\tfdLastModificationTimeName.right = new FormAttachment(100, -margin);\n\t\tfdLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\twLastModificationTimeName.setLayoutData(fdLastModificationTimeName);\n\t\t\n\t\t// UriName line\n\t\twlUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.UriName.Label\"));\n\t\tprops.setLook(wlUriName);\n\t\tfdlUriName = new FormData();\n\t\tfdlUriName.left = new FormAttachment(0, 0);\n\t\tfdlUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\tfdlUriName.right = new FormAttachment(middle, -margin);\n\t\twlUriName.setLayoutData(fdlUriName);\n\n\t\twUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wUriName);\n\t\twUriName.addModifyListener(lsMod);\n\t\tfdUriName = new FormData();\n\t\tfdUriName.left = new FormAttachment(middle, 0);\n\t\tfdUriName.right = new FormAttachment(100, -margin);\n\t\tfdUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\twUriName.setLayoutData(fdUriName);\n\t\t\n\t\t// RootUriName line\n\t\twlRootUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlRootUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.RootUriName.Label\"));\n\t\tprops.setLook(wlRootUriName);\n\t\tfdlRootUriName = new FormData();\n\t\tfdlRootUriName.left = new FormAttachment(0, 0);\n\t\tfdlRootUriName.top = new FormAttachment(wUriName, margin);\n\t\tfdlRootUriName.right = new FormAttachment(middle, -margin);\n\t\twlRootUriName.setLayoutData(fdlRootUriName);\n\n\t\twRootUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wRootUriName);\n\t\twRootUriName.addModifyListener(lsMod);\n\t\tfdRootUriName = new FormData();\n\t\tfdRootUriName.left = new FormAttachment(middle, 0);\n\t\tfdRootUriName.right = new FormAttachment(100, -margin);\n\t\tfdRootUriName.top = new FormAttachment(wUriName, margin);\n\t\twRootUriName.setLayoutData(fdRootUriName);\n\t\n\n\t\tfdAdditionalFieldsComp = new FormData();\n\t\tfdAdditionalFieldsComp.left = new FormAttachment(0, 0);\n\t\tfdAdditionalFieldsComp.top = new FormAttachment(wStepname, margin);\n\t\tfdAdditionalFieldsComp.right = new FormAttachment(100, 0);\n\t\tfdAdditionalFieldsComp.bottom = new FormAttachment(100, 0);\n\t\twAdditionalFieldsComp.setLayoutData(fdAdditionalFieldsComp);\n\n\t\twAdditionalFieldsComp.layout();\n\t\twAdditionalFieldsTab.setControl(wAdditionalFieldsComp);\n\n\t\t// ///////////////////////////////////////////////////////////\n\t\t// / END OF ADDITIONAL FIELDS TAB\n\t\t// ///////////////////////////////////////////////////////////\n\n\t\t\n \t\n }",
"@Test\n @SmallTest\n @Feature(\"MultiWindow\")\n public void testTabbedActivityForIntentWithExtraWindowId() {\n ChromeTabbedActivity activity1 = mActivityTestRule.getActivity();\n createSecondChromeTabbedActivity(activity1);\n\n Intent intent = activity1.getIntent();\n intent.putExtra(IntentHandler.EXTRA_WINDOW_ID, 2);\n\n Assert.assertEquals(\n \"ChromeTabbedActivity2 should be used when EXTRA_WINDOW_ID is set to 2.\",\n ChromeTabbedActivity2.class,\n MultiWindowUtils.getInstance().getTabbedActivityForIntent(intent, activity1));\n }",
"public Tab switchToTab(Palette tab) {\n click(tab.getTabPath());\n return this;\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 boolean newTabOpener() {\n\t\tString selectLinkOpeninNewTab = Keys.chord(Keys.CONTROL, \"t\");\n\t\tdriver.findElement(By.tagName(\"html\")).sendKeys(selectLinkOpeninNewTab);\n\t\treturn true;\n\t}",
"public void addPanel(String title, PlotPanel pnl) {\n addPanel(new TabComponent(this, title), pnl);\n updateTitle(title);\n updateAdditionalInformations(pnl);\n }",
"private void createTabMenu(Tab tab, MenuItem saveItemTab) {\n Menu tabMenu = new Menu();\n MenuItem closeItem = new MenuItem(\"Close\");\n closeItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n tabCloseEvent(tab);\n }\n });\n MenuItem closeOtersItem = new MenuItem(\"Close Others\");\n closeOtersItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) != editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeLeftItem = new MenuItem(\"Close Tabs to the Left\");\n closeLeftItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) < editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeRightItem = new MenuItem(\"Close Tabs to the Right\");\n closeRightItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) > editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeAllItem = new MenuItem(\"Close All\");\n closeAllItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n tabCloseEvent(closeTab);\n }\n }\n });\n MenuItemSeparator sep = new MenuItemSeparator();\n if (saveItemTab != null) {\n MenuItemIfFunction enableCondition = new MenuItemIfFunction() {\n public boolean execute(Canvas target, Menu menu, MenuItem item) {\n return tab == editorTabSet.getSelectedTab();\n }\n };\n\n saveItemTab.setEnableIfCondition(enableCondition);\n saveItemTab.setKeyTitle(\"Ctrl + S\");\n\n // If you use addItem, the association with the shortcut key is lost.\n tabMenu.setItems(saveItemTab, sep, closeItem, closeOtersItem, closeLeftItem, closeRightItem, sep, closeAllItem);\n } else {\n tabMenu.setItems(closeItem, closeOtersItem, closeLeftItem, closeRightItem, sep, closeAllItem);\n }\n tab.setContextMenu(tabMenu);\n }",
"public static void registerTab(String name, Item item) {\n\t\ttabs.put(name.toLowerCase(), new CreativeTabImpl(CreativeTabs.getNextID(), name, item));\n\t}",
"public static void addAshPanel(int sid,long serial, int instanceNumber) {\n // search the ashPanel vector to see if this panel already exists\n boolean exists = false;\n SessionASHPanel tmpASHP = null;\n for (int i=0; i < ashV.size(); i++) {\n tmpASHP = (SessionASHPanel)ashV.elementAt(i);\n if (tmpASHP.sid == sid) {\n exists = true;\n break;\n }\n }\n\n if (exists) {\n // switch focus\n SessionPanel.sessionTP.setSelectedComponent(tmpASHP);\n }\n else {\n JTabbedPane sessionTP = SessionPanel.sessionTP;\n \n // create the ashPanel\n SessionASHPanel ashPanel = new SessionASHPanel(sid,serial,instanceNumber);\n \n // add the ashPanel to the consoleTP\n String label = \"ASH \" + instanceNumber + \" | \" + sid;\n try {\n sessionTP.add(ashPanel, label);\n } catch (Exception e) {\n \n }\n\n // add ashPanel to ashV Vector\n boolean ok = ashV.add(ashPanel);\n\n // make this ashPanel the focused tab\n sessionTP.setSelectedComponent(ashPanel);\n try {\n sessionTP.setTabComponentAt(numSessionPanelsAdded - numSessionPanelsRemoved,new ButtonTabComponent(sessionTP));\n } catch (Exception e) {\n \n }\n numSessionPanelsAdded++;\n }\n }",
"public static void handleTabs() {\n ArrayList<String> allTabs = new ArrayList<String>(driver.getWindowHandles());\n // There will always be 2 tabs.\n driver.switchTo().window(allTabs.get(1));\n driver.close();\n driver.switchTo().window(allTabs.get(0));\n }",
"protected void reuseTab(Tab appTab, UrlData urlData) {\n dismissSubWindow(appTab);\n // Since we might kill the WebView, remove it from the\n // content view first.\n mUi.detachTab(appTab);\n // Recreate the main WebView after destroying the old one.\n mTabControl.recreateWebView(appTab);\n // TODO: analyze why the remove and add are necessary\n mUi.attachTab(appTab);\n if (mTabControl.getCurrentTab() != appTab) {\n switchToTab(appTab);\n loadUrlDataIn(appTab, urlData);\n } else {\n // If the tab was the current tab, we have to attach\n // it to the view system again.\n setActiveTab(appTab);\n loadUrlDataIn(appTab, urlData);\n }\n }",
"public static void setActiveTab(Tab tab) {\n\n try {\n controller.tabPane.getTabs().add(controller.appointmentTab);\n controller.tabPane.getTabs().add(controller.bookingTab);\n controller.tabPane.getTabs().add(controller.customerTab);\n controller.tabPane.getTabs().add(controller.employeeTab);\n controller.tabPane.getTabs().add(controller.malfunctionTab);\n controller.tabPane.getTabs().add(controller.statisticTab);\n controller.tabPane.getTabs().add(controller.vehicleTab);\n\n SingleSelectionModel<Tab> selectionModel = controller.tabPane.getSelectionModel();\n\n selectionModel.select(tab);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }",
"protected void openNewTab(WebElement el) {\n\t\taguardaElemento(ExpectedConditions.visibilityOf(el));\n\t\taguardaElemento(ExpectedConditions.elementToBeClickable(el));\n\t\tActions actions = new Actions(Capabilities.getDriver()); \n\t\tactions.moveToElement(el);\n\t\tactions.keyDown(Keys.CONTROL).click(el).keyUp(Keys.CONTROL).build().perform();\n\t}",
"private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPanel2);\n jdpFondo.add(jtpcContenedor, BorderLayout.CENTER);\n jdpFondo.add(jpnlPanelPrincilal);\n }",
"public void addNestedWidget(SlotWidget widget, String slotName,\r\n String tabName, String widgetName) {\r\n widgets.add(widget);\r\n WidgetHolder wh = new WidgetHolder();\r\n tabbedPane.add(tabName, (Component) widget);\r\n wh.tabName = tabName;\r\n wh.widgetName = widgetName;\r\n wh.slotName = slotName;\r\n widgetContainers.put(widget, wh);\r\n }",
"private static void addPanel(MouseEvent evt, TabComponent tabComp, PlotPanel pnl) {\n EDACCPlotTabView tabView = new EDACCPlotTabView();\n tabView.setLocation(evt.getXOnScreen(), evt.getYOnScreen());\n if (tabViews.size() > 0) {\n tabView.setSize(tabViews.get(0).getSize());\n } else {\n tabView.updateTitle(\"\");\n }\n tabViews.add(tabView);\n tabComp.setParent(tabView);\n tabView.addPanel(tabComp, pnl);\n tabView.updateAdditionalInformations(pnl);\n tabView.updateTitle(pnl.getPlot().getPlotTitle());\n tabViewCountChanged();\n }",
"private void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }",
"public static void addSessionPanel(int inst_id,int sid) {\n String combinedInstSid = String.valueOf(inst_id) + '|' + String.valueOf(sid);\n\n // search the sessionPanel vector to see if this panel already exists\n boolean exists = false;\n SessionDetailPanel tmpSessP = null;\n for (int i=0; i < sessionV.size(); i++) {\n tmpSessP = (SessionDetailPanel)sessionV.elementAt(i);\n String tmpCombinedInstSid = String.valueOf(tmpSessP.getInst_id()) + '|' + String.valueOf(tmpSessP.getSid());\n // System.out.println(\"iteration thru sessionV : \" + i + \": tmpCombinedInstSid :\" + tmpCombinedInstSid + \": combinedInstSid: \" + combinedInstSid);\n if (tmpCombinedInstSid.equals(combinedInstSid)) {\n exists = true;\n break;\n }\n }\n\n if (exists) {\n // switch focus\n consoleTP.setSelectedIndex(6);\n SessionPanel.sessionTP.setSelectedComponent(tmpSessP);\n }\n else {\n JTabbedPane sessionTP = SessionPanel.sessionTP;\n // create the sessionPanel\n SessionDetailPanel sessionDetailPanel = new SessionDetailPanel(inst_id,sid);\n \n // add the sessionPanel to the consoleTP\n String label = inst_id + \" | \" + sid;\n // try {\n sessionTP.add(sessionDetailPanel, label);\n // } catch (Exception e) {\n \n // }\n\n // add sessionPanel to sessionV Vector\n boolean ok = sessionV.add(sessionDetailPanel);\n\n // make this sessionPanel the focused tab\n consoleTP.setSelectedIndex(6);\n sessionTP.setSelectedComponent(sessionDetailPanel);\n try {\n sessionTP.setTabComponentAt(sessionTP.getSelectedIndex(),new ButtonTabComponent(SessionPanel.sessionTP));\n }\n catch (Exception e) {\n \n }\n numSessionPanelsAdded++;\n }\n }",
"public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft)\n {\n // Check if the fragment is already initialized\n if (mFragment == null)\n {\n // If not, instantiate and add it to the activity\n mFragment = Fragment.instantiate(mActivity, mClass.getName());\n ft.add(android.R.id.content, mFragment, mTag);\n }\n else\n {\n // If it exists, simply attach it in order to show it\n ft.attach(mFragment);\n }\n\n if(mTag.equals(MiNoteConstants.NOTES_TAB))\n {\n createNotes(true);\n\n isNoteTabSelected = true;\n\n if(areNoteButtonCreated)\n {\n makeNoteButtonsInvisible();\n }\n }\n else if(mTag.equals(MiNoteConstants.EVENTS_TAB))\n {\n createNotes(false);\n\n isNoteTabSelected = false;\n\n if(areNoteButtonCreated)\n {\n makeNoteButtonsInvisible();\n }\n }\n }",
"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 }",
"public void newFile() {\n\t\tString filename = \"untitled\";\n\t\tfilename = JOptionPane.showInputDialog(null,\n\t\t\t\t\"Enter the new file name\");\n\t\taddTab(filename+\".minl\");\n\t}",
"private void addTabs(List<TemplateAttribute> templateAttributes, TemplateRelation tr) {\n ObjectGroupTab otv = null;\n int prevTgId = 0;\n for (TemplateAttribute ta : templateAttributes) {\n if (ta.getTgId() != prevTgId) {\n prevTgId = ta.getTgId();\n if (ta.getTg().getSubRank() == 0) {\n otv = tr == null ? new ObjectGroupTab(this, ta.getTg())\n : new ObjectRelationGroupTab(this, tr, ta.getTg());\n add(otv, ta.getTg().getName());\n final int iTab = getTabBar().getTabCount() - 1;\n getTabBar().getTab(iTab).addClickHandler(new ClickHandler() {\n\n @Override\n public void onClick(ClickEvent event) {\n getModel().setTemplateRelation(null);\n }\n });\n }\n otv.displayGroupLabel(ta.getTg());\n }\n\n TemplateWidget tw = otv.display(ta);\n if (tw != null)\n tw.initialize();\n }\n if (getTabBar().getTabCount() > 0)\n selectTab(0);\n }",
"public void clickCruisesTab() {\n\t\tcruisesTab.click();\n\t}",
"public TabItem(@NotNull String str, @NotNull String str2, @Nullable Integer num) {\n super(str, num, str2);\n Intrinsics.checkNotNullParameter(str, \"title\");\n Intrinsics.checkNotNullParameter(str2, \"shortcut\");\n }",
"@Test\n @SmallTest\n @Feature(\"MultiWindow\")\n public void testTabbedActivityForIntentOnlyActivity2IsRunning() {\n ChromeTabbedActivity activity1 = mActivityTestRule.getActivity();\n createSecondChromeTabbedActivity(activity1);\n activity1.finishAndRemoveTask();\n\n Assert.assertEquals(\n \"ChromeTabbedActivity2 should be used for intents if ChromeTabbedActivity is \"\n + \"not running.\",\n ChromeTabbedActivity2.class,\n MultiWindowUtils.getInstance().getTabbedActivityForIntent(\n activity1.getIntent(), activity1));\n }"
] |
[
"0.72846246",
"0.7052276",
"0.6992522",
"0.69910526",
"0.6879947",
"0.6535454",
"0.6511171",
"0.6459328",
"0.6428293",
"0.64147145",
"0.6408477",
"0.63907903",
"0.63609296",
"0.62691283",
"0.6252594",
"0.615374",
"0.61531657",
"0.614245",
"0.61360633",
"0.61212766",
"0.6094591",
"0.5981378",
"0.5966412",
"0.5893423",
"0.58814067",
"0.5872976",
"0.5867386",
"0.5850994",
"0.58421147",
"0.5830967",
"0.5823925",
"0.5818335",
"0.5808146",
"0.57812864",
"0.5757541",
"0.5754786",
"0.56803536",
"0.5673379",
"0.566739",
"0.5653615",
"0.56479776",
"0.5632803",
"0.5627958",
"0.56108475",
"0.5559982",
"0.55431014",
"0.5525799",
"0.5501307",
"0.5490573",
"0.5472526",
"0.54665494",
"0.5458874",
"0.54553986",
"0.5447138",
"0.54359674",
"0.54356456",
"0.5380641",
"0.53629863",
"0.53607064",
"0.5349797",
"0.53455895",
"0.53445166",
"0.53341633",
"0.532878",
"0.5322332",
"0.5320314",
"0.5318121",
"0.5306843",
"0.530521",
"0.53034806",
"0.5299302",
"0.5288073",
"0.5282053",
"0.52707046",
"0.5254521",
"0.52533513",
"0.5249764",
"0.5244244",
"0.5239394",
"0.52299565",
"0.522935",
"0.5227942",
"0.52214587",
"0.52199924",
"0.52108973",
"0.52023757",
"0.5187431",
"0.5180255",
"0.5176766",
"0.5162628",
"0.51615655",
"0.51549363",
"0.51447654",
"0.5133664",
"0.51222277",
"0.5116615",
"0.51152635",
"0.51114",
"0.51052296",
"0.5104923",
"0.5103628"
] |
0.0
|
-1
|
Add a third tab.
|
public void Add2(String[] ss, String s) {
theList2 = Add(ss, s);
theSelected2 = new boolean[ss.length];
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void addTab(Tab tab, int position) {\n\t\t\n\t}",
"@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}",
"public void addNewTab() {\n int count = workspaceTabs.getComponentCount() + 1;\n String title = \"Workspace \" + count;\n WorkspacePanel panel = new WorkspacePanel(title);\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n workspaceTabs.addTab(panel).setCaption(title);\n }",
"public void addTab(Tab tab)\n\t{\n\t\ttabs.add(tab);\n\t}",
"public void addTab(String filename) {\n\t\t\n\t\tMinLFile nminl = new MinLFile(filename);\n\t\tJComponent panel = nminl;\n\t\t\n\t\ttabbedPane.addTab(filename, null, panel,\n\t\t\t\tfilename);\t\t\n\t\ttabbedPane.setMnemonicAt(0, 0);\n\t}",
"private void addNewTab(SingleDocumentModel model) {\n\t\tString title = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().getFileName().toString();\n\t\tImageIcon icon = createIcon(\"icons/green.png\");\n\t\tJScrollPane component = new JScrollPane(model.getTextComponent());\n\t\tString toolTip = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().toAbsolutePath().toString();\n\t\taddTab(title, icon, component, toolTip);\n\t\tsetSelectedComponent(component);\n\t}",
"protected void addTab(Tab tab) {\n mUi.addTab(tab);\n }",
"private void addTab(String title, File file, String contents) {\n \tTextPane newTextPane = new TextPane(parentFrame,TextPane.getProperties(false), false);\r\n\r\n \t// 2nd create the tab\r\n \tStyledTab tab = new StyledTab(title);\r\n \tTextPaneTab paneTab = new TextPaneTab(file, newTextPane, tab);\r\n\r\n \t// 3rd add contents if any\r\n \tif (contents != null) {\r\n \t\tnewTextPane.getBuffer().insert(0, contents);\r\n \t\tnewTextPane.setCaretPosition(0);\r\n \t\tpaneTab.setModified(false);\r\n \t}\r\n\r\n \t// 4th add new TextPaneTab\r\n \tpanes.add(paneTab);\r\n\r\n \t// 5th create the pane and add it to manager\r\n \tJPanel pane = new JPanel();\r\n \tpane.setLayout(new BorderLayout());\r\n\t\tJPanel textPaneContainer = new JPanel();\r\n\t\ttextPaneContainer.setBorder(BorderFactory.createLineBorder(new Color(102, 102, 102), 1));\r\n\t\ttextPaneContainer.setLayout(new BorderLayout());\r\n\t\ttextPaneContainer.add(newTextPane, BorderLayout.CENTER);\r\n \tpane.add(textPaneContainer, BorderLayout.CENTER);\r\n \tpane.add(makePrgButtonPanel(), BorderLayout.EAST);\r\n \tint index = getTabCount()-1;\r\n \tinsertTab(title, null, pane, null, index);\r\n \tsetTabComponentAt(index,tab);\r\n \tif (!file.isDirectory())\r\n \t\tsetToolTipTextAt(index, file.getAbsolutePath());\r\n }",
"@Override\n public void addTab(String title, Component component) {\n this.addTab(title, null, component, null, null);\n }",
"@Override\n\tpublic void addTab(Tab tab, int position, boolean setSelected) {\n\t\t\n\t}",
"private static void AddTab(MenuActivity activity, TabHost tabHost,\n TabHost.TabSpec tabSpec, TabInfo tabInfo) {\n tabSpec.setContent(activity.new TabFactory(activity));\n tabHost.addTab(tabSpec);\n Log.i(\"LOG\",\"Cria Aba\");\n }",
"private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }",
"private void addTabs() {\n TabsPagerAdapter tabsAdapter = new TabsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.pager);\n viewPager.setAdapter(tabsAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.connect);\n tabLayout.getTabAt(1).setIcon(R.drawable.speak);\n tabLayout.getTabAt(2).setIcon(R.drawable.walk);\n tabLayout.getTabAt(3).setIcon(R.drawable.camera);\n tabLayout.getTabAt(4).setIcon(R.drawable.moves);\n }",
"public final void rule__InsertSQL__TabAssignment_2_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1899:1: ( ( ruleTab ) )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1900:1: ( ruleTab )\n {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1900:1: ( ruleTab )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1901:1: ruleTab\n {\n before(grammarAccess.getInsertSQLAccess().getTabTabParserRuleCall_2_3_0()); \n pushFollow(FOLLOW_ruleTab_in_rule__InsertSQL__TabAssignment_2_33755);\n ruleTab();\n\n state._fsp--;\n\n after(grammarAccess.getInsertSQLAccess().getTabTabParserRuleCall_2_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void add(TabLike tab){\n TabLabel btn = tabLabelCreator.create(tab.getName(), this);\n\n tab.setVisible(tabs.isEmpty());\n btn.setDisable(tabs.isEmpty());\n if (tabs.isEmpty()){\n selected = btn;\n }\n\n tabs.add(tab);\n nameTab.getChildren().add(btn);\n tabContent.getChildren().add(tab);\n tab.setContainer(this);\n }",
"public void addTab (String tabname, boolean closeable, Widget widget, final String key) {\n\n\n\t\tPanel localTP = new Panel();\n\t\tlocalTP.setClosable(closeable);\n\t\tlocalTP.setTitle(tabname);\n\t\tlocalTP.setId(key + id);\n\t\tlocalTP.setAutoScroll(true);\n\t\tlocalTP.add(widget);\n\n\t\ttp.add(localTP, this.centerLayoutData);\n\n\t\tlocalTP.addListener(new PanelListenerAdapter() {\n\n\t\t\tpublic void onDestroy(Component component) {\n\t\t\t\topenedTabs.remove(key);\n\t\t\t}\n\t\t});\n\n\n\t\ttp.activate(localTP.getId());\n\n\n\n\n\t\topenedTabs.put(key, localTP);\n\t}",
"@Override\n\tpublic void addTab(Tab tab, boolean setSelected) {\n\t\t\n\t}",
"private void setupTabs() {\n }",
"protected abstract void doAddTab(GridTab tab, JPiereIADTabpanel tabPanel);",
"private void addTabs(List<TemplateAttribute> templateAttributes, TemplateRelation tr) {\n ObjectGroupTab otv = null;\n int prevTgId = 0;\n for (TemplateAttribute ta : templateAttributes) {\n if (ta.getTgId() != prevTgId) {\n prevTgId = ta.getTgId();\n if (ta.getTg().getSubRank() == 0) {\n otv = tr == null ? new ObjectGroupTab(this, ta.getTg())\n : new ObjectRelationGroupTab(this, tr, ta.getTg());\n add(otv, ta.getTg().getName());\n final int iTab = getTabBar().getTabCount() - 1;\n getTabBar().getTab(iTab).addClickHandler(new ClickHandler() {\n\n @Override\n public void onClick(ClickEvent event) {\n getModel().setTemplateRelation(null);\n }\n });\n }\n otv.displayGroupLabel(ta.getTg());\n }\n\n TemplateWidget tw = otv.display(ta);\n if (tw != null)\n tw.initialize();\n }\n if (getTabBar().getTabCount() > 0)\n selectTab(0);\n }",
"private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}",
"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 }",
"private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}",
"private void addAdditionalFieldsTab()\n {\n\t\t// START OF ADDITIONAL FIELDS TAB ///\n\t\t// ////////////////////////\n \twAdditionalFieldsTab = new CTabItem(wTabFolder, SWT.NONE);\n \twAdditionalFieldsTab.setText(BaseMessages.getString(PKG, \"AccessInputDialog.AdditionalFieldsTab.TabTitle\"));\n\n \twAdditionalFieldsComp = new Composite(wTabFolder, SWT.NONE);\n\t\tprops.setLook(wAdditionalFieldsComp);\n\n\t\tFormLayout fieldsLayout = new FormLayout();\n\t\tfieldsLayout.marginWidth = 3;\n\t\tfieldsLayout.marginHeight = 3;\n\t\twAdditionalFieldsComp.setLayout(fieldsLayout);\n\t\t\n\t\t// ShortFileFieldName line\n\t\twlShortFileFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlShortFileFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ShortFileFieldName.Label\"));\n\t\tprops.setLook(wlShortFileFieldName);\n\t\tfdlShortFileFieldName = new FormData();\n\t\tfdlShortFileFieldName.left = new FormAttachment(0, 0);\n\t\tfdlShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\tfdlShortFileFieldName.right = new FormAttachment(middle, -margin);\n\t\twlShortFileFieldName.setLayoutData(fdlShortFileFieldName);\n\n\t\twShortFileFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wShortFileFieldName);\n\t\twShortFileFieldName.addModifyListener(lsMod);\n\t\tfdShortFileFieldName = new FormData();\n\t\tfdShortFileFieldName.left = new FormAttachment(middle, 0);\n\t\tfdShortFileFieldName.right = new FormAttachment(100, -margin);\n\t\tfdShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\twShortFileFieldName.setLayoutData(fdShortFileFieldName);\n\t\t\n\t\t\n\t\t// ExtensionFieldName line\n\t\twlExtensionFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlExtensionFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ExtensionFieldName.Label\"));\n\t\tprops.setLook(wlExtensionFieldName);\n\t\tfdlExtensionFieldName = new FormData();\n\t\tfdlExtensionFieldName.left = new FormAttachment(0, 0);\n\t\tfdlExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\tfdlExtensionFieldName.right = new FormAttachment(middle, -margin);\n\t\twlExtensionFieldName.setLayoutData(fdlExtensionFieldName);\n\n\t\twExtensionFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wExtensionFieldName);\n\t\twExtensionFieldName.addModifyListener(lsMod);\n\t\tfdExtensionFieldName = new FormData();\n\t\tfdExtensionFieldName.left = new FormAttachment(middle, 0);\n\t\tfdExtensionFieldName.right = new FormAttachment(100, -margin);\n\t\tfdExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\twExtensionFieldName.setLayoutData(fdExtensionFieldName);\n\t\t\n\t\t\n\t\t// PathFieldName line\n\t\twlPathFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlPathFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.PathFieldName.Label\"));\n\t\tprops.setLook(wlPathFieldName);\n\t\tfdlPathFieldName = new FormData();\n\t\tfdlPathFieldName.left = new FormAttachment(0, 0);\n\t\tfdlPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\tfdlPathFieldName.right = new FormAttachment(middle, -margin);\n\t\twlPathFieldName.setLayoutData(fdlPathFieldName);\n\n\t\twPathFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wPathFieldName);\n\t\twPathFieldName.addModifyListener(lsMod);\n\t\tfdPathFieldName = new FormData();\n\t\tfdPathFieldName.left = new FormAttachment(middle, 0);\n\t\tfdPathFieldName.right = new FormAttachment(100, -margin);\n\t\tfdPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\twPathFieldName.setLayoutData(fdPathFieldName);\n\t\t\n\n\n \t\t// SizeFieldName line\n\t\twlSizeFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlSizeFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.SizeFieldName.Label\"));\n\t\tprops.setLook(wlSizeFieldName);\n\t\tfdlSizeFieldName = new FormData();\n\t\tfdlSizeFieldName.left = new FormAttachment(0, 0);\n\t\tfdlSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\tfdlSizeFieldName.right = new FormAttachment(middle, -margin);\n\t\twlSizeFieldName.setLayoutData(fdlSizeFieldName);\n\n\t\twSizeFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wSizeFieldName);\n\t\twSizeFieldName.addModifyListener(lsMod);\n\t\tfdSizeFieldName = new FormData();\n\t\tfdSizeFieldName.left = new FormAttachment(middle, 0);\n\t\tfdSizeFieldName.right = new FormAttachment(100, -margin);\n\t\tfdSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\twSizeFieldName.setLayoutData(fdSizeFieldName);\n\t\t\n\t\t\n\t\t// IsHiddenName line\n\t\twlIsHiddenName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlIsHiddenName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.IsHiddenName.Label\"));\n\t\tprops.setLook(wlIsHiddenName);\n\t\tfdlIsHiddenName = new FormData();\n\t\tfdlIsHiddenName.left = new FormAttachment(0, 0);\n\t\tfdlIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\tfdlIsHiddenName.right = new FormAttachment(middle, -margin);\n\t\twlIsHiddenName.setLayoutData(fdlIsHiddenName);\n\n\t\twIsHiddenName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wIsHiddenName);\n\t\twIsHiddenName.addModifyListener(lsMod);\n\t\tfdIsHiddenName = new FormData();\n\t\tfdIsHiddenName.left = new FormAttachment(middle, 0);\n\t\tfdIsHiddenName.right = new FormAttachment(100, -margin);\n\t\tfdIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\twIsHiddenName.setLayoutData(fdIsHiddenName);\n\t\t\n\t\t// LastModificationTimeName line\n\t\twlLastModificationTimeName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlLastModificationTimeName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.LastModificationTimeName.Label\"));\n\t\tprops.setLook(wlLastModificationTimeName);\n\t\tfdlLastModificationTimeName = new FormData();\n\t\tfdlLastModificationTimeName.left = new FormAttachment(0, 0);\n\t\tfdlLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\tfdlLastModificationTimeName.right = new FormAttachment(middle, -margin);\n\t\twlLastModificationTimeName.setLayoutData(fdlLastModificationTimeName);\n\n\t\twLastModificationTimeName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wLastModificationTimeName);\n\t\twLastModificationTimeName.addModifyListener(lsMod);\n\t\tfdLastModificationTimeName = new FormData();\n\t\tfdLastModificationTimeName.left = new FormAttachment(middle, 0);\n\t\tfdLastModificationTimeName.right = new FormAttachment(100, -margin);\n\t\tfdLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\twLastModificationTimeName.setLayoutData(fdLastModificationTimeName);\n\t\t\n\t\t// UriName line\n\t\twlUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.UriName.Label\"));\n\t\tprops.setLook(wlUriName);\n\t\tfdlUriName = new FormData();\n\t\tfdlUriName.left = new FormAttachment(0, 0);\n\t\tfdlUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\tfdlUriName.right = new FormAttachment(middle, -margin);\n\t\twlUriName.setLayoutData(fdlUriName);\n\n\t\twUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wUriName);\n\t\twUriName.addModifyListener(lsMod);\n\t\tfdUriName = new FormData();\n\t\tfdUriName.left = new FormAttachment(middle, 0);\n\t\tfdUriName.right = new FormAttachment(100, -margin);\n\t\tfdUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\twUriName.setLayoutData(fdUriName);\n\t\t\n\t\t// RootUriName line\n\t\twlRootUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlRootUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.RootUriName.Label\"));\n\t\tprops.setLook(wlRootUriName);\n\t\tfdlRootUriName = new FormData();\n\t\tfdlRootUriName.left = new FormAttachment(0, 0);\n\t\tfdlRootUriName.top = new FormAttachment(wUriName, margin);\n\t\tfdlRootUriName.right = new FormAttachment(middle, -margin);\n\t\twlRootUriName.setLayoutData(fdlRootUriName);\n\n\t\twRootUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wRootUriName);\n\t\twRootUriName.addModifyListener(lsMod);\n\t\tfdRootUriName = new FormData();\n\t\tfdRootUriName.left = new FormAttachment(middle, 0);\n\t\tfdRootUriName.right = new FormAttachment(100, -margin);\n\t\tfdRootUriName.top = new FormAttachment(wUriName, margin);\n\t\twRootUriName.setLayoutData(fdRootUriName);\n\t\n\n\t\tfdAdditionalFieldsComp = new FormData();\n\t\tfdAdditionalFieldsComp.left = new FormAttachment(0, 0);\n\t\tfdAdditionalFieldsComp.top = new FormAttachment(wStepname, margin);\n\t\tfdAdditionalFieldsComp.right = new FormAttachment(100, 0);\n\t\tfdAdditionalFieldsComp.bottom = new FormAttachment(100, 0);\n\t\twAdditionalFieldsComp.setLayoutData(fdAdditionalFieldsComp);\n\n\t\twAdditionalFieldsComp.layout();\n\t\twAdditionalFieldsTab.setControl(wAdditionalFieldsComp);\n\n\t\t// ///////////////////////////////////////////////////////////\n\t\t// / END OF ADDITIONAL FIELDS TAB\n\t\t// ///////////////////////////////////////////////////////////\n\n\t\t\n \t\n }",
"public void addTab(DocumentWrapper file, String text) {\n\t\tJTextArea textEditor = new JTextArea();\n\n\t\ttextEditor.setText(text);\n\t\ttextEditor.getDocument().putProperty(\"changed\", false);\n\t\ttextEditor.addCaretListener(new CaretListener() {\n\t\t\t@Override\n\t\t\tpublic void caretUpdate(CaretEvent arg0) {\n\t\t\t\tint dot = arg0.getDot();\n\t\t\t\tint mark = arg0.getMark();\n\n\t\t\t\tint caretpos = textEditor.getCaretPosition();\n\t\t\t\tint lineNum = 1;\n\t\t\t\tint columnNum = 1;\n\t\t\t\ttry {\n\t\t\t\t\tlineNum = textEditor.getLineOfOffset(caretpos);\n\t\t\t\t\tcolumnNum = 1 + caretpos - textEditor.getLineStartOffset(lineNum);\n\t\t\t\t\tlineNum += 1;\n\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tstatusLabel.setText(\"length : \" + textEditor.getText().length());\n\t\t\t\tlineLabel.setText(\"Ln : \" + lineNum);\n\t\t\t\tcolumnLabel.setText(\"Col : \" + columnNum);\n\t\t\t\tselectedLabel.setText(\"Sel : \" + Math.abs(dot - mark));\n\t\t\t\t;\n\n\t\t\t\tif (dot == mark) {\n\t\t\t\t\titemInvert.setEnabled(false);\n\t\t\t\t\titemLower.setEnabled(false);\n\t\t\t\t\titemUpper.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\titemInvert.setEnabled(true);\n\t\t\t\t\titemLower.setEnabled(true);\n\t\t\t\t\titemUpper.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttextEditor.getDocument().addDocumentListener(new DocumentListener() {\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t\tButtonTabComponent comp = (ButtonTabComponent) pane.getTabComponentAt(pane.getSelectedIndex());\n\n\t\t\t\tcomp.setImage(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\t\t});\n\n\t\tfile.setEditor(textEditor);\n\n\t\tJScrollPane scPane = new JScrollPane(textEditor);\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.add(scPane, BorderLayout.CENTER);\n\n\t\tint index = pane.getTabCount();\n\n\t\tpane.addTab(file.getName(), textEditor);\n\n\t\tinitTabComponent(file, index);\n\t}",
"public void applyTab();",
"private void addTab(String label, int drawableId, Intent i) {\n \tTabHost.TabSpec spec = tabHost.newTabSpec(label);\r\n \tView tabIndicator = LayoutInflater.from(this).inflate(R.layout.tabs, getTabWidget(), false);\r\n \tTextView title = (TextView) tabIndicator.findViewById(R.id.title);\r\n \ttitle.setText(label);\r\n// \tImageView icon = (ImageView) tabIndicator.findViewById(R.id.icon);\r\n// \ticon.setImageResource(drawableId);\r\n \tspec.setIndicator(tabIndicator).setContent(i);\r\n \ttabHost.addTab(spec);\r\n }",
"public void onCreateTabClicked(View view) {\n if (mAdapter.isEmpty()) {\n Toast.makeText(this, R.string.you_must_create_at_least_one_tab, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<TabInformation> list = new ArrayList<>(mAdapter.getTabInformation());\n startActivity(new Intent(this, DisplayTabsActivity.class).putExtra(TAB_CONTENT, list));\n }",
"public void addTab(ActionBar.Tab tab, Class<?> fragmentClass, Bundle args) {\r\n\t\t\tTabInfo info = new TabInfo(fragmentClass, args);\r\n\t\t\ttab.setTag(info);\r\n\t\t\ttab.setTabListener(this);\r\n\t\t\tgetTabs().add(info);\r\n\t\t\tgetActionBar().addTab(tab);\r\n\t\t\tnotifyDataSetChanged();\r\n\t\t}",
"private void eric_function()\n\t{\n \ttabHost = (TabHost) findViewById(R.id.mytab1);\n \ttabHost.setup();\n \t \n \t//tabHost.setBackgroundColor(Color.argb(150, 20, 80, 150));\n \ttabHost.setBackgroundResource(R.drawable.ic_launcher);\n \t\n \t\n \t//\n \tTabSpec tabSpec;\n \t// 1\n \ttabSpec = tabHost.newTabSpec(tab_list[0]);\n \ttabSpec.setIndicator(\"a.1\");\n \ttabSpec.setContent(R.id.widget_layout_blue2);\n \ttabHost.addTab(tabSpec);\n \t// 2\n \ttabSpec = tabHost.newTabSpec(tab_list[1]);\n \ttabSpec.setIndicator(\"a2\");\n \ttabSpec.setContent(R.id.widget_layout_green2);\n \ttabHost.addTab(tabSpec); \t\n \t// 3\n \ttabSpec = tabHost.newTabSpec(tab_list[2]);\n \ttabSpec.setIndicator(\"a3\");\n \ttabSpec.setContent(R.id.widget_layout_red2);\n \ttabHost.addTab(tabSpec); \t\n \t//\n\t\ttabHost.setOnTabChangedListener(listener1);\n \t//\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void AddTab(EventActivity activity, TabHost tabHost, TabHost.TabSpec tabSpec, TabInfo tabInfo) {\n\t\t// Attach a Tab view factory to the spec\n\t\ttabSpec.setContent(new Utils.TabFactory(activity));\n tabHost.addTab(tabSpec);\n\t}",
"private void createTabsDiv() {\n tabsDiv = new Block(Block.Div, \"id='tabs'\");\n page.add(tabsDiv);\n }",
"public void add(View v) {\n\t\tint type = tabHost.getCurrentTab() + 1;\n\t\tIntent i = new Intent(this, AddActivity.class);\n\t\ti.putExtra(\"type\", type);\n\t\tstartActivityForResult(i, MainActivity.REQUEST_ADD);\n\t}",
"private void addTracksTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n //intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n // SessionsExpandableListActivity.CHILD_MODE_STARRED);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_TWITTER);\n spec.setIndicator(mResources.getString(R.string.tracks), mResources\n .getDrawable(R.drawable.ic_menu_archive));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"public void addSubTab(EntityType entityType, String label, String historyToken, String contentUrl,\n TabOptions options) {\n switch (entityType) {\n case DataCenter:\n addTab(DataCenterSubTabPanelPresenter.TYPE_RequestTabs,\n DataCenterSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Cluster:\n addTab(ClusterSubTabPanelPresenter.TYPE_RequestTabs,\n ClusterSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Host:\n addTab(HostSubTabPanelPresenter.TYPE_RequestTabs,\n HostSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Storage:\n addTab(StorageSubTabPanelPresenter.TYPE_RequestTabs,\n StorageSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Disk:\n addTab(DiskSubTabPanelPresenter.TYPE_RequestTabs,\n DiskSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case VirtualMachine:\n addTab(VirtualMachineSubTabPanelPresenter.TYPE_RequestTabs,\n VirtualMachineSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Template:\n addTab(TemplateSubTabPanelPresenter.TYPE_RequestTabs,\n TemplateSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n }\n }",
"private void fuenteTab() {\n\n\n View view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n TextView tv=(TextView) view.findViewById(R.id.pestanias_txt);\n ImageView imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.detalles);\n tv.setTypeface(fuente2);\n tv.setText(\"Detalles\");\n tabLayout.getTabAt(0).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.marciano);\n tv.setTypeface(fuente2);\n tv.setText(\"Juegos\");\n tabLayout.getTabAt(1).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.tienda);\n tv.setTypeface(fuente2);\n tv.setText(\"Tienda\");\n tabLayout.getTabAt(2).setCustomView(view);\n\n }",
"@Override\r\n\tpublic void insertTab(String title, Icon icon,\r\n\t\t\tComponent component, String tip, int index) {\n\t\tsuper.insertTab(title, icon, component, tip, index);\r\n\t\tif (index < 10)\r\n\t\t\tsetMnemonicAt(index, TAB_MNEMONICS[index]);\r\n\t}",
"private void wordMultiTabEkle(XWPFRun r, int adet)\n {\n for (int i = 0; i < adet; i++)\n r.addTab();\n }",
"private void addChatTab(ChatPanel chatPanel)\n {\n ChatSession chatSession = chatPanel.getChatSession();\n String chatName = chatSession.getChatName();\n\n ChatPanel currentChatPanel = getCurrentChat();\n\n if (currentChatPanel == null)\n {\n this.mainPanel.add(chatPanel, BorderLayout.CENTER);\n }\n else if (getChatTabCount() == 0)\n {\n ChatSession firstChatSession = currentChatPanel.getChatSession();\n\n // Add first two tabs to the tabbed pane.\n chatTabbedPane.addTab( firstChatSession.getChatName(),\n firstChatSession.getChatStatusIcon(),\n currentChatPanel);\n\n chatTabbedPane.addTab( chatName,\n chatSession.getChatStatusIcon(),\n chatPanel);\n\n // When added to the tabbed pane, the first chat panel should\n // rest the selected component.\n chatTabbedPane.setSelectedComponent(currentChatPanel);\n\n //add the chatTabbedPane to the window\n this.mainPanel.add(chatTabbedPane, BorderLayout.CENTER);\n this.mainPanel.validate();\n }\n else\n {\n // The tabbed pane already contains tabs.\n\n chatTabbedPane.addTab(\n chatName,\n chatSession.getChatStatusIcon(),\n chatPanel);\n\n chatTabbedPane.getParent().validate();\n }\n }",
"public void addCompositeToTab(String tabName){\r\n\t\tTabItem item = new TabItem(folderReference, SWT.NONE);\r\n\t\titem.setText(tabName);\r\n\t\t\r\n\t\tfolderReference.getItem(compositeIndex).setControl(compositeMap.get(compositeIndex));\r\n\t\t++compositeIndex;\r\n\t}",
"private void insertarTabs(ViewGroup container) {\n View padre = (View) container.getParent();\n pestanas = (TabLayout)padre.findViewById(R.id.tabs);\n }",
"private void addTheTab(final String title, final Component comp) {\n\t\tif (comp==null) {\n\t\t\tthrow new IllegalArgumentException(\"The component can't be null\");\n\t\t}\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tint i = indexOfComponent(errorTab);\n\t\t\t\tif (i!=-1) {\n\t\t\t\t\tinsertTab(title, null, comp, null, i);\n\t\t\t\t} else {\n\t\t\t\t\taddTab(title,null,comp);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tpublic void addTab(final String newTitle, final Component theComponent) {\n\t\tif (newTitle==null || newTitle.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid tab title\");\n\t\t}\n\t\tif (theComponent.getName()==null || theComponent.getName().isEmpty()) {\n\t\t\ttheComponent.setName(newTitle);\n\t\t}\n\t\t// Check if the component is already present\n\t\tfor (int i=0; i<getTabCount(); i++) {\n\t\t\tComponent c= getTabComponentAt(i);\n\t\t\tif (c!=null) {\n\t\t\t\tif (c.getName().equals(theComponent.getName())) {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Component already displayed: \"+c.getName());\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\tif (EventQueue.isDispatchThread()) {\n\t\t\taddTheTab(newTitle, theComponent);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\taddTheTab(newTitle, theComponent);\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Exception caught while adding \"+theComponent+\" with a TAB having title \"+newTitle+\": \"+e.getMessage());\n\t\t}\n\t}",
"private void createSingleTab(String text, Path path) {\r\n\t\tif (text == null) {\r\n\t\t\ttext = \"\";\r\n\t\t}\r\n\t\t\r\n\t\tJTextArea txtArea = new JTextArea(text);\r\n\t\ttxtArea.getDocument().addDocumentListener(new DocumentListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\t\t\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\t\t\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tprivate void changeIcon() {\r\n\t\t\t\ttabbedPane.setIconAt(tabbedPane.getSelectedIndex(), redIcon);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttxtArea.addCaretListener(new CaretListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void caretUpdate(CaretEvent e) {\r\n\t\t\t\tlengthLab.setText(\"Length: \"+txtArea.getText().length());\r\n\t\t\t\t\r\n\t\t\t\tint offset = txtArea.getCaretPosition();\r\n\t int line= 1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tline = txtArea.getLineOfOffset(offset);\r\n\t\t\t\t} catch (BadLocationException ignorable) {}\r\n\t\t\t\tlnLab.setText(\"Ln: \"+(line+1));\r\n\t\t\t\t\r\n\t\t\t\tint col = 1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcol = offset - txtArea.getLineStartOffset(line);\r\n\t\t\t\t} catch (BadLocationException ignorable) {}\r\n\t\t\t\tcolLab.setText(\"Col: \"+ (col+1));\r\n\t\t\t\t\r\n\t\t\t\tint sel = Math.abs(txtArea.getSelectionStart() - txtArea.getSelectionEnd());\t\r\n\t\t\t\tselLab.setText(\"sel: \"+sel);\r\n\t\t\t\tfor (JMenuItem i : toggable) {\r\n\t\t\t\t\tboolean enabled;\r\n\t\t\t\t\tenabled = sel != 0;\r\n\t\t\t\t\ti.setEnabled(enabled);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJScrollPane scrPane = new JScrollPane(txtArea);\r\n\t\tif (path == null) {\t//create empty tab\t\r\n\t\t\tString name = \"New \" + (count +1);\r\n\t\t\ttabbedPane.addTab(name, greenIcon, scrPane, \"\");\r\n\t\t\tcount++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttabbedPane.addTab(path.getFileName().toString(), greenIcon, scrPane, path.toString());\r\n\t\tcount++;\r\n\t}",
"public void buttonNewTab(ActionEvent actionEvent) {\n }",
"private static void addPanelInMainTabView(TabComponent tc, PlotPanel pnl) {\n EDACCPlotTabView tabView = getMainTabView();\n if (tc == null) {\n tabView.addPanel(pnl);\n } else {\n tabView.addPanel(tc, pnl);\n }\n }",
"private void addPanel(TabComponent tabComp, PlotPanel pnl) {\n tabbedPanePlots.addTab(null, null, pnl, tabComp.getTitle());\n pnl.setParent(this);\n // replace the tab component and select this new tab\n tabbedPanePlots.setTabComponentAt(tabbedPanePlots.getTabCount() - 1, tabComp);\n tabbedPanePlots.setSelectedIndex(tabbedPanePlots.getTabCount() - 1);\n requestFocus();\n }",
"@Test\n\tpublic void section1DisplaysParagraphTab3() {\n\t\tassertTrue(AccordionLogic.section1DisplaysParagraphTab3());\n\t}",
"public final void rule__InsertSQL__Group_2__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:762:1: ( ( ( rule__InsertSQL__TabAssignment_2_3 ) ) )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:763:1: ( ( rule__InsertSQL__TabAssignment_2_3 ) )\n {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:763:1: ( ( rule__InsertSQL__TabAssignment_2_3 ) )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:764:1: ( rule__InsertSQL__TabAssignment_2_3 )\n {\n before(grammarAccess.getInsertSQLAccess().getTabAssignment_2_3()); \n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:765:1: ( rule__InsertSQL__TabAssignment_2_3 )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:765:2: rule__InsertSQL__TabAssignment_2_3\n {\n pushFollow(FOLLOW_rule__InsertSQL__TabAssignment_2_3_in_rule__InsertSQL__Group_2__3__Impl1538);\n rule__InsertSQL__TabAssignment_2_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getInsertSQLAccess().getTabAssignment_2_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public static Tab3Fragment newInstance(Bundle args ) {\n Tab3Fragment fragment = new Tab3Fragment();\n fragment.setArguments(args);\n return fragment;\n }",
"private void addScheduleTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n SessionsExpandableListActivity.CHILD_MODE_VISIBLE_TRACKS);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_SCHEDULE);\n spec.setIndicator(mResources.getString(R.string.schedule), mResources\n .getDrawable(R.drawable.ic_tab_schedule));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"private void initTabComponent(DocumentWrapper file, int i) {\n\t\tpane.setTabComponentAt(i,\n\t\t\t\tnew ButtonTabComponent(pane, file, this));\n\t}",
"private void addControl() {\n // Gan adapter va danh sach tab\n PagerAdapter adapter = new PagerAdapter(getSupportFragmentManager());\n // Them noi dung cac tab\n adapter.AddFragment(new TourMapTab());\n adapter.AddFragment(new TourInfoTab());\n adapter.AddFragment(new TourMapImageTab());\n // Set adapter danh sach tab\n ViewPager viewPager = ActivityManager.getInstance().activityTourTabsBinding.viewpager;\n TabLayout tabLayout = ActivityManager.getInstance().activityTourTabsBinding.tablayout;\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n // Them vach ngan cach cac tab\n View root = tabLayout.getChildAt(0);\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColor(getResources().getColor(R.color.colorPrimaryDark));\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n // Icon cac tab\n tabLayout.getTabAt(0).setIcon(R.drawable.tour_map_icon_select);\n tabLayout.getTabAt(1).setIcon(R.mipmap.tour_info_icon);\n tabLayout.getTabAt(2).setIcon(R.mipmap.tour_map_image_icon);\n\n // Doi mau tab icon khi click\n tabLayout.addOnTabSelectedListener(new TabLayout.ViewPagerOnTabSelectedListener(viewPager) {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n super.onTabSelected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.drawable.tour_map_icon_select);\n break;\n case 1:\n tab.setIcon(R.drawable.tour_info_icon_select);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon_select);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n super.onTabUnselected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.mipmap.tour_map_icon);\n break;\n case 1:\n tab.setIcon(R.mipmap.tour_info_icon);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n super.onTabReselected(tab);\n }\n }\n );\n }",
"void addTabularData(TabularData data);",
"public static void new_tab(By locator) throws CheetahException {\n\t\ttry {\n\t\t\tWebElement element = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(element);\n\t\t\tdriverUtils.unHighlightElement(element);\n\t\t\telement.sendKeys(Keys.CONTROL, \"t\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\n\t}",
"private void initTab()\n {\n \n }",
"public AutomatedTestingTabbedPane()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tthis.setBackground(Constants.WHITE);\r\n\t\tthis.setForeground(Constants.BLUE);\r\n\t\t\r\n\t\tthis.setFont(new Font(\"sans-serif\", Font.PLAIN, 16));\r\n\t\tthis.addTab(\"CXCParticipant\", participantPanel);\r\n\t\tthis.setMnemonicAt(0, KeyEvent.VK_1);\r\n\t\t\r\n\t\tthis.addTab(\"CXCToken\", tokenPanel);\r\n\t\tthis.setMnemonicAt(1, KeyEvent.VK_2);\r\n\t\t\r\n\t\tthis.addTab(\"CXCRecipient\", recipientPanel);\r\n\t\tthis.setMnemonicAt(2, KeyEvent.VK_3);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPayment\", paymentPanel);\r\n\t\tthis.setMnemonicAt(3, KeyEvent.VK_4);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPaymentRequest\", paymentRequestPanel);\r\n\t\tthis.setMnemonicAt(4, KeyEvent.VK_5);\r\n\t\t\r\n//\t\tthis.addTab(\"Export\", exportPanel);\r\n//\t\tthis.setMnemonicAt(5, KeyEvent.VK_6);\r\n\r\n\t}",
"protected WMSLayersPanel addTab(int position, String server) {\n\t\ttry {\n\t\t\tWMSLayersPanel layersPanel = new WMSLayersPanel(this.getWwd(), server, wmsPanelSize);\n\t\t\tthis.tabbedPane.add(layersPanel, BorderLayout.CENTER);\n\t\t\tString title = layersPanel.getServerDisplayString();\n\t\t\tthis.tabbedPane.setTitleAt(position, title != null && title.length() > 0 ? title : server);\n\n\t\t\t// Add a listener to notice wms layer selections and tell the layer\n\t\t\t// panel to reflect the new state.\n\t\t\tlayersPanel.addPropertyChangeListener(\"LayersPanelUpdated\", new PropertyChangeListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent propertyChangeEvent) {\n\t\t\t\t\tLayer newLayer = (Layer) propertyChangeEvent.getNewValue();\n\t\t\t\t\t// AppFrame.this.getLayerPanel().update(WMSLayerManager.this.getWwd());\n\t\t\t\t\tTacsitManager.getInstance().getWorldWindowJPanel().getModel().getLayers().add(newLayer);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn layersPanel;\n\t\t} catch (URISyntaxException e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Server URL is invalid\", \"Invalid Server URL\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\ttabbedPane.setSelectedIndex(previousTabIndex);\n\t\t\treturn null;\n\t\t}\n\t}",
"public KonTabbedPane() {\n // Initialize the ArrayList\n graphInterfaces = new ArrayList<DrawingLibraryInterface>();\n\n DirectedGraph<String, DefaultEdge> graph = CreateTestGraph();\n\n /*\n * Adds a tab\n */\n DrawingLibraryInterface<String, DefaultEdge> graphInterface =\n DrawingLibraryFactory.createNewInterface(graph);\n \n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n addTab(\"First Tab\", graphInterface.getPanel());\n\n /*\n * Adds a tab\n */\n graphInterface = DrawingLibraryFactory.createNewInterface(graph);\n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n\n graphInterface.getGraphManipulationInterface().highlightNode(graph\n .vertexSet().iterator().next(), true);\n\n addTab(\"Second Tab\", graphInterface.getPanel());\n }",
"private void setTabLayout() {\n View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n TextView title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n ImageView imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.MOVIES);\n imgIcon.setImageResource(R.mipmap.ic_home);\n mTabLayout.getTabAt(0).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n count = (TextView) view.findViewById(R.id.item_tablayout_count_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.FAVOURITE);\n imgIcon.setImageResource(R.mipmap.ic_favorite);\n count.setVisibility(View.VISIBLE);\n mTabLayout.getTabAt(1).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.SETTINGS);\n imgIcon.setImageResource(R.mipmap.ic_settings);\n mTabLayout.getTabAt(2).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.ABOUT);\n imgIcon.setImageResource(R.mipmap.ic_info);\n mTabLayout.getTabAt(3).setCustomView(view);\n }",
"private void layoutTabs() {\n\tJTabbedPane tabs = new JTabbedPane();\n\ttabs.add(\"MAIN MENU\", mainMenu);\n\ttabs.add(\"LEVEL EDITOR\", levelEditor);\n\tthis.getContentPane().add(tabs);\n }",
"private void setupTab(final View view, final String tag) {\r\n\t\tView tabview = createTabView(mTabHost.getContext(), tag);\r\n\r\n\t\tTabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview)\r\n\t\t\t\t.setContent(new TabContentFactory() {\r\n\t\t\t\t\tpublic View createTabContent(String tag) {\r\n\t\t\t\t\t\tView view;\r\n\t\t\t\t\t\tif (tag.contains(\"EXTENDED\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_2_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedNO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET1);\r\n\t\t\t\t\t\t\tedNIO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET2);\r\n\t\t\t\t\t\t\tedNP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET3);\r\n\t\t\t\t\t\t\tedNIP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET4);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tedNO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNP.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tNO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB1);\r\n\t\t\t\t\t\t\tNIO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB2);\r\n\t\t\t\t\t\t\tNP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB3);\r\n\t\t\t\t\t\t\tNIP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB4);\r\n\t\t\t\t\t\t\tNO.setEnabled(false); \r\n\t\t\t\t\t\t\tNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tNP.setEnabled(false);\r\n\t\t\t\t\t\t\tNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\textended = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB0);\r\n\t\t\t\t\t\t\textended.setOnClickListener(S3R4Listener2);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if (tag.contains(\"CUSTOM\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_3_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_1_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedlevels = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET1);\r\n\t\t\t\t\t\t\tedSons = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET2);\r\n\t\t\t\t\t\t\tedlevel = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET3);\r\n\t\t\t\t\t\t\tedpruduct = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET4);\r\n\t\t\t\t\t\t\tedcampaign = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET5);\r\n\t\t\t\t\t\t\tedadd = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET6);\r\n\t\t\t\t\t\t\tedlevels.setEnabled(false);\r\n\t\t\t\t\t\t\tedSons.setEnabled(false);\r\n\t\t\t\t\t\t\tedlevel.setEnabled(false);\r\n\t\t\t\t\t\t\tedpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tedcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tedadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlevel= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB3);\r\n\t\t\t\t\t\t\tpruduct= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB4);\r\n\t\t\t\t\t\t\tcampaign= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB5);\r\n\t\t\t\t\t\t\tadd= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB6);\r\n\t\t\t\t\t\t\tlevel.setEnabled(false); \r\n\t\t\t\t\t\t\tpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tStructure = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB1);\r\n\t\t\t\t\t\t\tRules = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB2);\r\n\t\t\t\t\t\t\tStructure.setOnClickListener(S3R4Listener);\r\n\t\t\t\t\t\t\tRules.setOnClickListener(S3R4Listener);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn view;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tmTabHost.addTab(setContent);\r\n\r\n\t}",
"public void add3() {\n board.add3(deck);\n }",
"public void addTableNavigation(String title) {\n\n\t\t// Create panel\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// Create and add text editor to panel\n\t\tConsoleTableNavigation table = new ConsoleTableNavigation();\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tpanel.add(scrollPane, BorderLayout.CENTER);\n\n\t\t// Add the tab\n\t\taddTab(title, null, scrollPane);\n\n\t\t// Store it in the map\n\t\tthis.tabPanelsMap.put(title, table);\n\t}",
"public void initializeTabs() {\n\n\t\tTabHost.TabSpec spec;\n\n\t\tspec = mTabHost.newTabSpec(Const.EVENTS);\n\t\tmTabHost.setCurrentTab(0);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_events_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(1);\n\t\tspec = mTabHost.newTabSpec(Const.FEED);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_feed_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(2);\n\t\tspec = mTabHost.newTabSpec(Const.INFO);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_info_selector));\n\t\tmTabHost.addTab(spec);\n\n\t}",
"private void initialiseTabHost(Bundle args) {\n\t\tmTabHost = (TabHost)findViewById(android.R.id.tabhost);\n mTabHost.setup();\n TabInfo tabInfo = null;\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab1\").setIndicator(\"Waveform\"), ( tabInfo = new TabInfo(\"Tab1\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab2\").setIndicator(\"FFT\"), ( tabInfo = new TabInfo(\"Tab2\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab3\").setIndicator(\"AC\"), ( tabInfo = new TabInfo(\"Tab3\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab4\").setIndicator(\"Pitch\"), ( tabInfo = new TabInfo(\"Tab4\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n // Default to first tab\n this.onTabChanged(\"Tab1\");\n //\n mTabHost.setOnTabChangedListener(this);\n\t}",
"private static void addPanel(MouseEvent evt, TabComponent tabComp, PlotPanel pnl) {\n EDACCPlotTabView tabView = new EDACCPlotTabView();\n tabView.setLocation(evt.getXOnScreen(), evt.getYOnScreen());\n if (tabViews.size() > 0) {\n tabView.setSize(tabViews.get(0).getSize());\n } else {\n tabView.updateTitle(\"\");\n }\n tabViews.add(tabView);\n tabComp.setParent(tabView);\n tabView.addPanel(tabComp, pnl);\n tabView.updateAdditionalInformations(pnl);\n tabView.updateTitle(pnl.getPlot().getPlotTitle());\n tabViewCountChanged();\n }",
"private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView = (ImageView) showLayout.getChildAt(0);\r\n\t\tTextView textView = (TextView) showLayout.getChildAt(1);\r\n\t\timageView.setImageResource(R.drawable.main_selector);\r\n\t\ttextView.setText(R.string.show);\r\n\r\n\t\taddLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView1 = (ImageView) addLayout.getChildAt(0);\r\n\t\tTextView textView1 = (TextView) addLayout.getChildAt(1);\r\n\t\timageView1.setImageResource(R.drawable.add_selector);\r\n\t\ttextView1.setText(R.string.add_record);\r\n\r\n\t\tchartLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView2 = (ImageView) chartLayout.getChildAt(0);\r\n\t\tTextView textView2 = (TextView) chartLayout.getChildAt(1);\r\n\t\timageView2.setImageResource(R.drawable.chart_selector);\r\n\t\ttextView2.setText(R.string.chart_show);\r\n\t}",
"public void openTab(String tabName){\r\n\r\n\t\tTabView selectedTabView = new TabView(this);\r\n\t\ttabViews.add(selectedTabView);\r\n\t\t\r\n\t\t\r\n\t\tif(tabName == null){ // If a new tab..\r\n\t\t\t// Ensure that there isn't already a model with that name\r\n\t\t\twhile(propertiesMemento.getTabNames().contains(tabName) || tabName == null){\r\n\t\t\t\ttabName = \"New Model \" + newModelIndex;\r\n\t\t\t\tnewModelIndex++;\r\n\t\t\t}\r\n\t\t}\r\n logger.info(\"Adding tab:\" + tabName);\r\n\r\n\t\t// Just resizes and doesn't scroll - so don't need the scroll pane\r\n\t\t/*JScrollPane scrollPane = new JScrollPane(selectedTabView, \r\n \t\t\t\t\t\t\t\t JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, \r\n \t\t\t\t\t\t\t\t JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.getVerticalScrollBar().setUnitIncrement(20);\r\n tabbedPane.addTab(tabName, scrollPane);*/\r\n\r\n\t\ttabbedPane.addTab(tabName, selectedTabView);\r\n\r\n currentView = selectedTabView;\r\n tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);\r\n setTabName(tabName);\r\n\t\t\t\t\r\n tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\t new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));\r\n \r\n // Add Mouse motion Listener \r\n currentView.addMouseMotionListener(currentView);\r\n currentView.addMouseListener(currentView);\r\n\r\n // Record the tab in the memento\r\n propertiesMemento.addTabRecord(tabName);\r\n \r\n setTabButtons(true);\r\n \r\n setStatusBarText(\"Ready\");\r\n\r\n requestFocusInWindow();\r\n\t}",
"private void addStarredTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n SessionsExpandableListActivity.CHILD_MODE_STARRED);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_STARRED);\n spec.setIndicator(mResources.getString(R.string.starred), mResources\n .getDrawable(R.drawable.ic_tab_starred));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"public CreativeTabImpl(int par1, String par2Str, Item par3Item) {\n\t\t\tsuper(par1, par2Str);\n\t\t\tthis.par3Item = par3Item;\n\t\t}",
"public void newComponent(byte i ){\n\t\tif(nbTabs > 2)\n\t\t\tJOptionPane.showMessageDialog(null, \"Nombre maximal d'onglets atteint\");\n\t\telse {\n\t\t\tnbTabs++;\n\t\t\tswitch(i){\n\t\t\t\tcase 1:\n\t\t\t\t\ttabs.addTab(\"Génération\" + nbTabs,new Tab(this));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0:\n\t\t\t\t\ttabs.addTab(\"Exemples\" ,new Example(this));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"private void initTabs() {\n\t\tmContainer.removeAllViews();\n\n\t\tif(mAdapter==null||mViewPager==null){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<mViewPager.getAdapter().getCount();i++){\n\t\t\tfinal int index=i;\n\t\t\tButton tabs= (Button) mAdapter.getView(index);\n\t\t\tLayoutParams layoutParams=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\tlayoutParams.weight=1;\n\t\t\tmContainer.addView(tabs,layoutParams);\n\t\t\t\n\t\t\ttabs.setOnClickListener(new OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t\tselectTab(0);\n\t}",
"public void addMainTab(String label, String historyToken, String contentUrl, TabOptions options) {\n addTab(MainTabPanelPresenter.TYPE_RequestTabs,\n MainTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, true, contentUrl, options);\n }",
"private void createTabFolder() {\r\n\t\tGridData gridData1 = new GridData();\r\n\t\tgridData1.grabExcessHorizontalSpace = true;\r\n\t\tgridData1.heightHint = 500;\r\n\t\tgridData1.grabExcessVerticalSpace = true;\r\n\t\tgridData1.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;\r\n\t\tgridData1.widthHint = 600;\r\n\t\ttabFolder = new TabFolder(sShell, SWT.NONE);\r\n\t\ttabFolder.setLayoutData(gridData1);\r\n\t\tcreateCompositeRoomMange();\r\n\t\tcreateCompositeGoodsMange();\r\n\t\tcreateCompositeStaffMange();\r\n\t\tcreateCompositeUserMange();\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"房间管理\");\r\n\t\ttabItem.setControl(compositeRoomMange);\r\n\t\tTabItem tabItem1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem1.setText(\"商品管理\");\r\n\t\ttabItem1.setControl(compositeGoodsMange);\r\n\t\tTabItem tabItem2 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem2.setText(\"员工管理\");\r\n\t\ttabItem2.setControl(compositeStaffMange);\r\n\t\tTabItem tabItem3 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem3.setText(\"系统用户管理\");\r\n\t\ttabItem3.setControl(compositeUserMange);\r\n\t}",
"private void createTabList() throws UnsupportedEncodingException {\n\n org.mortbay.html.List tabList =\n new org.mortbay.html.List(org.mortbay.html.List.Unordered);\n tabsDiv.add(tabList);\n Integer tabCount = 1;\n for (Map.Entry letterPairs : startLetterList.entrySet()) {\n Character startLetter = (Character) letterPairs.getKey();\n Character endLetter = (Character) letterPairs.getValue();\n Link tabLink = new Link(\"DisplayContentTab?start=\" + startLetter + \"&end=\" + endLetter + \"&group=\"\n + grouping + \"&type=\" + type + \"&filter=\" + filterKey +\n \"&timeKey=\" + timeKey, startLetter + \" - \" + endLetter);\n Composite tabListItem = tabList.newItem();\n tabListItem.add(tabLink);\n Block loadingDiv = new Block(Block.Div, \"id='ui-tabs-\" + tabCount++ + \"'\");\n Image loadingImage = new Image(LOADING_SPINNER);\n loadingImage.alt(\"Loading...\");\n loadingDiv.add(loadingImage);\n loadingDiv.add(\" Loading...\");\n tabsDiv.add(loadingDiv);\n }\n }",
"@Test\n public void addAndRemovePlaylist() throws Exception\n {\n TabLayout tabs = (TabLayout) mActivityRule.getActivity().findViewById(R.id.tab_layout);\n int tabsCount = tabs.getTabCount();\n\n //Open menu and click on add new playlist\n addPlaylist();\n assertEquals(tabsCount + 1, tabs.getTabCount());\n assertEquals(tabsCount, tabs.getSelectedTabPosition());\n\n onView(withText(mActivityRule.getActivity().getString(R.string.main_playlist_name))).perform(click());\n\n addPlaylist();\n assertEquals(tabsCount + 2, tabs.getTabCount());\n assertEquals(tabsCount + 1, tabs.getSelectedTabPosition());\n //Remove the just added playlist\n removePlaylist();\n removePlaylist();\n assertEquals(tabsCount, tabs.getTabCount());\n }",
"private void setupTabLayout() {\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n });\n tabLayout.getTabAt(0).select();\n View root = tabLayout.getChildAt(0);\n //create divider between the tabs\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColorFilter(0xffff0000, PorterDuff.Mode.MULTIPLY);\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n }",
"public final void rule__Tab__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1638:1: ( rule__Tab__Group__3__Impl )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1639:2: rule__Tab__Group__3__Impl\n {\n pushFollow(FOLLOW_rule__Tab__Group__3__Impl_in_rule__Tab__Group__33249);\n rule__Tab__Group__3__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void addText(String title) {\n\t\t\n\t\t// Create panel\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\t\t\n\t\t// Create and add text editor to panel\n\t\tJTextPane textPane = new JTextPane();\n\t\ttextPane.setFont(new Font(\"Consolas\",Font.PLAIN, 14));\n\t\ttextPane.setEditable(false);\n\t\tJScrollPane scrollPane = new JScrollPane(textPane);\n\t\tpanel.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t\t// Add the tab\n\t\taddTab(title, null, scrollPane);\n\t\t\n\t\t// Store it in the map\n\t\tthis.tabPanelsMap.put(title, textPane);\n\t}",
"private void createTabMenu(Tab tab, MenuItem saveItemTab) {\n Menu tabMenu = new Menu();\n MenuItem closeItem = new MenuItem(\"Close\");\n closeItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n tabCloseEvent(tab);\n }\n });\n MenuItem closeOtersItem = new MenuItem(\"Close Others\");\n closeOtersItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) != editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeLeftItem = new MenuItem(\"Close Tabs to the Left\");\n closeLeftItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) < editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeRightItem = new MenuItem(\"Close Tabs to the Right\");\n closeRightItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) > editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeAllItem = new MenuItem(\"Close All\");\n closeAllItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n tabCloseEvent(closeTab);\n }\n }\n });\n MenuItemSeparator sep = new MenuItemSeparator();\n if (saveItemTab != null) {\n MenuItemIfFunction enableCondition = new MenuItemIfFunction() {\n public boolean execute(Canvas target, Menu menu, MenuItem item) {\n return tab == editorTabSet.getSelectedTab();\n }\n };\n\n saveItemTab.setEnableIfCondition(enableCondition);\n saveItemTab.setKeyTitle(\"Ctrl + S\");\n\n // If you use addItem, the association with the shortcut key is lost.\n tabMenu.setItems(saveItemTab, sep, closeItem, closeOtersItem, closeLeftItem, closeRightItem, sep, closeAllItem);\n } else {\n tabMenu.setItems(closeItem, closeOtersItem, closeLeftItem, closeRightItem, sep, closeAllItem);\n }\n tab.setContextMenu(tabMenu);\n }",
"public DatasetTab(int index) {\n tab = new VerticalLayout();\n replicatesSheet = new TabSheet();\n for (int replicateIndex = 0;\n replicateIndex < presenter.getNumberOfReplicates();\n replicateIndex++) {\n ReplicateTab replicateTab = new ReplicateTab(index, replicateIndex);\n replicatesSheet.addTab(replicateTab, \"Replicate \" + createAlphabeticalIndex(replicateIndex));\n }\n setCompositionRoot(tab);\n }",
"private void TabbedPaneMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_TabbedPaneMouseClicked\n DefaultPieDataset pieDataset = new DefaultPieDataset();\n // import spending data\n getSpendingData();\n // assign data a title & add to chart\n pieDataset.setValue(\"mortgage\", mort);\n pieDataset.setValue(\"credit\", cred);\n pieDataset.setValue(\"loans\", loan);\n pieDataset.setValue(\"auto\", auto);\n pieDataset.setValue(\"grocery\", groc);\n pieDataset.setValue(\"medical\", medi);\n pieDataset.setValue(\"utilities\", util);\n pieDataset.setValue(\"entertainment\", ente);\n pieDataset.setValue(\"other\", othe);\n\n JFreeChart chart = ChartFactory.createPieChart3D(\"How You Spend Your Money\",\n pieDataset, true, true, true);\n PiePlot3D P = (PiePlot3D) chart.getPlot();\n // Add chart to existing JPanel...\n chartPanel.setLayout(new java.awt.BorderLayout());\n ChartPanel CP = new ChartPanel(chart);\n chartPanel.add(CP, BorderLayout.CENTER);\n chartPanel.validate();\n }",
"protected void addData(TreeMap treeMap) {\n AnchorPane container = createTabContent(treeMap);\n Tab tab = new Tab(treeMap.getData().getName(), container);\n tab.setClosable(false);\n tabPane.getTabs().add(tab);\n }",
"public void renameTabs(){\n\t\tfor(int i =0;i<nbTabs;i++){\n\t\t\tif(!tabs.getTitleAt(i).equals(\"Exemples\"))\n\t\t\t\ttabs.setTitleAt(i,(\"Génération\"+(i+1)));\n\t\t}\n\t}",
"void addTab(Type<RequestTabsHandler> requestTabsEventType,\n Type<RevealContentHandler<?>> revealContentEventType,\n String label, String historyToken, boolean isMainTab,\n String contentUrl, TabOptions options) {\n dynamicUrlContentTabProxyFactory.create(\n requestTabsEventType, revealContentEventType,\n label, historyToken, isMainTab, contentUrl,\n options.getAlignRight() ? Align.RIGHT : Align.LEFT);\n\n // Redraw the corresponding tab container\n RedrawDynamicTabContainerEvent.fire(this, requestTabsEventType);\n }",
"public void addTable(String title, Object[] header) {\n\t\t\n\t\t// Create panel\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\t\t\n\t\t// Create and add text editor to panel\n\t\tConsoleTable table = new ConsoleTable(new Object[][]{}, header);\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tpanel.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t\t// Add the tab\n\t\taddTab(title, null, scrollPane);\n\t\t\n\t\t// Store it in the map\n\t\tthis.tabPanelsMap.put(title, table);\n\t}",
"public void onModuleLoad() {\n\t\tTabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);\n\t\tFlexTable ft3 = new FlexTable();\n\t\tFlexCellFormatter cf3 = ft3.getFlexCellFormatter();\n\t\tDecoratorPanel dp3 = new DecoratorPanel();\n\t\tHorizontalPanel hp = new HorizontalPanel();\n\t\tButton plusButton = new Button(\"+\");\n\t\tButton minusButton = new Button(\"-\");\n\t\tButton devideButton = new Button(\"/\");\n\t\tButton multiplyButton = new Button(\"*\");\n\t\thp.add(plusButton);\n\t\thp.add(minusButton);\n\t\thp.add(devideButton);\n\t\thp.add(multiplyButton);\n\t\tfinal TextBox l1 = new TextBox();\n\t\tfinal TextBox l2 = new TextBox();\n\t\tfinal Label wynik = new Label();\n\t\tft3.setHTML(0,0,\"Podaj pierwsza liczbe:\");\n\t\tft3.setWidget(0,1, l1);\n\t\tft3.setHTML(1,0, \"Podaj druga liczbe:\");\n\t\tft3.setWidget(1,1,l2);\n\t\tft3.setHTML(2,0, \"Wybierz operacje:\");\n\t\tft3.setWidget(2, 1, hp);\n\t\tft3.setHTML(3,0, \"Wynik\");\n\t\tft3.setWidget(3,1, wynik);\n\t\tdp3.add(ft3);\n\t\t//RootPanel.get(\"mainContainer\").add(hp);\n\t\t//pan1.add(hp);\n\t\ttabPanel.add(dp3, new HTML(\"Prosty kalkulator\"));\n\t\tfinal TextBox t1 = new TextBox();\n\t\tfinal ListBox list = new ListBox();\n\t\tlist.addItem(\"2\");\n\t\tlist.addItem(\"4\");\n\t\tlist.addItem(\"8\");\n\t\tlist.addItem(\"16\");\n\t\tfinal Label wynik10 = new Label();\n\t\tFlexTable ft = new FlexTable();\n\t\tButton przeliczButton = new Button(\"Przelicz\");\n\t\tft.setHTML(0, 0, \"Podaj liczbe w systemie 10:\");\n\t\tft.setWidget(0, 1, t1);\n\t\tft.setHTML(1, 0, \"Podaj docelowy system liczbowy:\");\n\t\tft.setWidget(1, 1, list);\n\t\tft.setHTML(2, 0, \"Wynik:\");\n\t\tft.setWidget(2, 1, wynik10);\n\t\tft.setWidget(3, 0, przeliczButton);\n\t\tFlexCellFormatter cf = ft.getFlexCellFormatter();\n\t\tDecoratorPanel dp = new DecoratorPanel();\n\t\tcf.setColSpan(3,0,2);\n\t\tcf.setHorizontalAlignment(3,0,HasHorizontalAlignment.ALIGN_CENTER);\n\t\tdp.setWidget(ft);\n\t\ttabPanel.add(dp, new HTML(\"Przeliczanie z 10 na inne\"));\n\t\tFlexTable ft2 = new FlexTable();\n\t\tFlexCellFormatter cf2 = ft2.getFlexCellFormatter();\n\t\tDecoratorPanel dp2 = new DecoratorPanel();\n\t\tfinal TextBox t2 = new TextBox();\n\t\tfinal ListBox list2 = new ListBox();\n\t\tlist2.addItem(\"2\");\n\t\tlist2.addItem(\"4\");\n\t\tlist2.addItem(\"8\");\n\t\tlist2.addItem(\"16\");\n\t\tButton przelicztoButton = new Button(\"Przelicz\");\n\t\tfinal Label wynik20 = new Label();\n\t\tft2.setHTML(0, 0, \"Podaj system w jakim zapisana jest liczba:\");\n\t\tft2.setWidget(0, 1, list2);\n\t\tft2.setHTML(1, 0, \"Podaj liczbe:\");\n\t\tft2.setWidget(1, 1, t2);\n\t\tft2.setHTML(2, 0, \"Wynik:\");\n\t\tft2.setWidget(2, 1, wynik20);\n\t\tft2.setWidget(3, 0, przelicztoButton);\n\t\tcf2.setColSpan(3,0,2);\n\t\tcf2.setHorizontalAlignment(3,0,HasHorizontalAlignment.ALIGN_CENTER);\n\t\tdp2.setWidget(ft2);\n\t\t//RootPanel.get(\"mainContainer\").add(tabPanel);\n\t\ttabPanel.add(dp2, new HTML(\"Przeliczanie do systemu 10\"));\n\t\tRootLayoutPanel.get().add(tabPanel);\n\t\tprzelicztoButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.przeliczto10(t2.getText(), Integer.parseInt(list.getItemText(list.getSelectedIndex())), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik20.setText(\" \" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tprzeliczButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.przelicz10(Integer.parseInt(t1.getText()), Integer.parseInt(list.getItemText(list.getSelectedIndex())), new AsyncCallback<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\t\twynik10.setText(\" \" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tplusButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.dodaj(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tminusButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.odejmij(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tdevideButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.dziel(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Double>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Double result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmultiplyButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.mnoz(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Double>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Double result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tpublic Tab newTab() {\n\t\treturn null;\n\t}",
"private void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }",
"public void moveTab(IPresentablePart part, int index) {\r\n\t\ttabs.move(part, index);\r\n\t\tfolder.layout(true);\r\n\t}",
"public void onTabSelected(Tab tab, android.app.FragmentTransaction ft) {\n FragmentTransaction sft = mActivity.getSupportFragmentManager().beginTransaction();\n // Check if the fragment is already initialized\n MainActivity.tab = tab.getPosition();\n switch (tab.getPosition()) {\n case 0:\n // My List\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"My List\" + \"</font>\"));\n break;\n \n case 1:\n // Favorites\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Favorites \" + \"</font>\"));\n break;\n \n case 2:\n // Search\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Search\" + \"</font>\"));\n break;\n\n case 3:\n // Recipes\n // access the actionbar of the MainActivity.java and changes the subtitle\n mActivity.getActionBar().setSubtitle(Html.fromHtml(\"<font color=\\\"#848484\\\">\" + \"Recipes\" + \"</font>\"));\n break;\n\n default:\n break;\n }\n if (mFragment == null) {\n // If not, instantiate and add it to the activity\n mFragment = Fragment.instantiate(mActivity, mClass.getName());\n sft.add(mfragmentContainerId, mFragment, mTag);\n } else {\n // If it exists, simply attach it in order to show it\n sft.attach(mFragment);\n }\n sft.commit();\n }",
"public void addTab(String title, Icon extraIcon, Component component, String tip, Supplier<Void> iconCallback) {\n if (iconCallback != null) {\n this.iconCallback.put(component, iconCallback);\n }\n if (extraIcon != null) {\n super.insertTab(title, extraIcon, component, tip, getTabCount() - 1);\n } else {\n super.insertTab(title, null, component, null, getTabCount() - 1);\n }\n }",
"private void createNewListSection() {\n\t\tImageIcon image10 = new ImageIcon(sURLFCL1);\n\t\tImageIcon image11 = new ImageIcon(sURLFCL2);\n\t\tImageIcon image12 = new ImageIcon(sURLFCL3);\n\t\tjbCreateLists = new JButton(\"New PlayList\");\n\t\tjbCreateLists.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbCreateLists.setForeground(new Color(150,100,100));\n\t\tjbCreateLists.setIcon(image10);\n\t\tjbCreateLists.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setRolloverIcon(image11);\n\t\tjbCreateLists.setRolloverSelectedIcon(image12);\t\n\t\tjbCreateLists.setContentAreaFilled(false);\n\t\tjbCreateLists.setFocusable(false);\n\t\tjbCreateLists.setBorderPainted(false);\n\t}",
"private JList Add(String[] ss, String s) {\n\t\t// if (ss.length > 0) {\n\t\tJList l = new JList(ss);\n\t\tint indices[] = new int[ss.length];\n\t\tfor (int i = 0; i < ss.length; i++) {\n\t\t\tindices[i] = i;\n\t\t}\n\t\tl.setSelectedIndices(indices);\n\t\ttheTabbedPane.addTab(s, new JScrollPane(l));\n\t\treturn l;\n\t\t// }\n\t\t// return null;\n\t}",
"public void createPage3()\n {\n panel3 = new JPanel();\n VelocityMessageList = new DefaultListModel<>();\n list3 = new JList(VelocityMessageList);\n panel3.add(list3);\n }",
"public void addDirectory3(View view){\n\t\tcontrol(3);\n\t}",
"public void setTab(int i) {\n TabLayout.Tab tab = mTabLayout.getTabAt(i);\n tab.select();\n }",
"public void addAttributeTestFragment() {\n AttributeTestFragment newFragment = new AttributeTestFragment();\n\n FragmentTransaction transaction = getActivity().getSupportFragmentManager().beginTransaction();\n transaction.add(R.id.attribute_test_tab_fragment_container, newFragment);\n transaction.addToBackStack(null);\n // Commit the transaction\n transaction.commit();\n }",
"public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft)\n {\n // Check if the fragment is already initialized\n if (mFragment == null)\n {\n // If not, instantiate and add it to the activity\n mFragment = Fragment.instantiate(mActivity, mClass.getName());\n ft.add(android.R.id.content, mFragment, mTag);\n }\n else\n {\n // If it exists, simply attach it in order to show it\n ft.attach(mFragment);\n }\n\n if(mTag.equals(MiNoteConstants.NOTES_TAB))\n {\n createNotes(true);\n\n isNoteTabSelected = true;\n\n if(areNoteButtonCreated)\n {\n makeNoteButtonsInvisible();\n }\n }\n else if(mTag.equals(MiNoteConstants.EVENTS_TAB))\n {\n createNotes(false);\n\n isNoteTabSelected = false;\n\n if(areNoteButtonCreated)\n {\n makeNoteButtonsInvisible();\n }\n }\n }",
"public void undo() {\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().add(topsoilTab);\n }"
] |
[
"0.70770913",
"0.7049795",
"0.689835",
"0.67706245",
"0.6611072",
"0.6604117",
"0.6598366",
"0.6584225",
"0.64079666",
"0.64038765",
"0.62979335",
"0.6218183",
"0.61731786",
"0.6161303",
"0.6156926",
"0.6147759",
"0.6094071",
"0.6081948",
"0.60573953",
"0.60493284",
"0.5985089",
"0.5979577",
"0.5941337",
"0.59176046",
"0.587448",
"0.5830852",
"0.58092624",
"0.57893103",
"0.57776797",
"0.57492536",
"0.57451195",
"0.5740187",
"0.57382065",
"0.5714274",
"0.5710695",
"0.56894577",
"0.5670982",
"0.5662183",
"0.56569654",
"0.5652148",
"0.5620942",
"0.5615388",
"0.5605747",
"0.560407",
"0.55973905",
"0.5592735",
"0.55452245",
"0.5532593",
"0.5522465",
"0.55210286",
"0.55121493",
"0.5510765",
"0.5506808",
"0.5504897",
"0.54758626",
"0.5459641",
"0.543316",
"0.5428256",
"0.54273725",
"0.5415301",
"0.5407938",
"0.53953964",
"0.53952825",
"0.53917134",
"0.53886527",
"0.53602475",
"0.535676",
"0.53506845",
"0.5348056",
"0.53465295",
"0.5340396",
"0.5340128",
"0.53326017",
"0.5331231",
"0.53243464",
"0.5320126",
"0.5314504",
"0.5303885",
"0.5299916",
"0.5289252",
"0.52837175",
"0.5283531",
"0.5276313",
"0.52742857",
"0.52689403",
"0.52460295",
"0.52438",
"0.5240709",
"0.5240241",
"0.5208277",
"0.52019763",
"0.52013874",
"0.5200573",
"0.51908994",
"0.51906145",
"0.5174041",
"0.5164013",
"0.51554126",
"0.5149832",
"0.5140964",
"0.51378506"
] |
0.0
|
-1
|
Add a fourth tab.
|
public void Add3(String[] ss, String s) {
theList3 = Add(ss, s);
theSelected3 = new boolean[ss.length];
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void addTab(Tab tab, int position) {\n\t\t\n\t}",
"@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}",
"public void addTab(String filename) {\n\t\t\n\t\tMinLFile nminl = new MinLFile(filename);\n\t\tJComponent panel = nminl;\n\t\t\n\t\ttabbedPane.addTab(filename, null, panel,\n\t\t\t\tfilename);\t\t\n\t\ttabbedPane.setMnemonicAt(0, 0);\n\t}",
"private void addTabs() {\n TabsPagerAdapter tabsAdapter = new TabsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.pager);\n viewPager.setAdapter(tabsAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.connect);\n tabLayout.getTabAt(1).setIcon(R.drawable.speak);\n tabLayout.getTabAt(2).setIcon(R.drawable.walk);\n tabLayout.getTabAt(3).setIcon(R.drawable.camera);\n tabLayout.getTabAt(4).setIcon(R.drawable.moves);\n }",
"public void addNewTab() {\n int count = workspaceTabs.getComponentCount() + 1;\n String title = \"Workspace \" + count;\n WorkspacePanel panel = new WorkspacePanel(title);\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n workspaceTabs.addTab(panel).setCaption(title);\n }",
"private void addNewTab(SingleDocumentModel model) {\n\t\tString title = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().getFileName().toString();\n\t\tImageIcon icon = createIcon(\"icons/green.png\");\n\t\tJScrollPane component = new JScrollPane(model.getTextComponent());\n\t\tString toolTip = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().toAbsolutePath().toString();\n\t\taddTab(title, icon, component, toolTip);\n\t\tsetSelectedComponent(component);\n\t}",
"public void addTab(Tab tab)\n\t{\n\t\ttabs.add(tab);\n\t}",
"protected void addTab(Tab tab) {\n mUi.addTab(tab);\n }",
"private void setupTabs() {\n }",
"private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }",
"@Override\n\tpublic void addTab(Tab tab, int position, boolean setSelected) {\n\t\t\n\t}",
"private void addTabs(List<TemplateAttribute> templateAttributes, TemplateRelation tr) {\n ObjectGroupTab otv = null;\n int prevTgId = 0;\n for (TemplateAttribute ta : templateAttributes) {\n if (ta.getTgId() != prevTgId) {\n prevTgId = ta.getTgId();\n if (ta.getTg().getSubRank() == 0) {\n otv = tr == null ? new ObjectGroupTab(this, ta.getTg())\n : new ObjectRelationGroupTab(this, tr, ta.getTg());\n add(otv, ta.getTg().getName());\n final int iTab = getTabBar().getTabCount() - 1;\n getTabBar().getTab(iTab).addClickHandler(new ClickHandler() {\n\n @Override\n public void onClick(ClickEvent event) {\n getModel().setTemplateRelation(null);\n }\n });\n }\n otv.displayGroupLabel(ta.getTg());\n }\n\n TemplateWidget tw = otv.display(ta);\n if (tw != null)\n tw.initialize();\n }\n if (getTabBar().getTabCount() > 0)\n selectTab(0);\n }",
"private void wordMultiTabEkle(XWPFRun r, int adet)\n {\n for (int i = 0; i < adet; i++)\n r.addTab();\n }",
"private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}",
"protected abstract void doAddTab(GridTab tab, JPiereIADTabpanel tabPanel);",
"public void applyTab();",
"private void addScheduleTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n SessionsExpandableListActivity.CHILD_MODE_VISIBLE_TRACKS);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_SCHEDULE);\n spec.setIndicator(mResources.getString(R.string.schedule), mResources\n .getDrawable(R.drawable.ic_tab_schedule));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"@Override\n\tpublic void addTab(Tab tab, boolean setSelected) {\n\t\t\n\t}",
"private void addTab(String title, File file, String contents) {\n \tTextPane newTextPane = new TextPane(parentFrame,TextPane.getProperties(false), false);\r\n\r\n \t// 2nd create the tab\r\n \tStyledTab tab = new StyledTab(title);\r\n \tTextPaneTab paneTab = new TextPaneTab(file, newTextPane, tab);\r\n\r\n \t// 3rd add contents if any\r\n \tif (contents != null) {\r\n \t\tnewTextPane.getBuffer().insert(0, contents);\r\n \t\tnewTextPane.setCaretPosition(0);\r\n \t\tpaneTab.setModified(false);\r\n \t}\r\n\r\n \t// 4th add new TextPaneTab\r\n \tpanes.add(paneTab);\r\n\r\n \t// 5th create the pane and add it to manager\r\n \tJPanel pane = new JPanel();\r\n \tpane.setLayout(new BorderLayout());\r\n\t\tJPanel textPaneContainer = new JPanel();\r\n\t\ttextPaneContainer.setBorder(BorderFactory.createLineBorder(new Color(102, 102, 102), 1));\r\n\t\ttextPaneContainer.setLayout(new BorderLayout());\r\n\t\ttextPaneContainer.add(newTextPane, BorderLayout.CENTER);\r\n \tpane.add(textPaneContainer, BorderLayout.CENTER);\r\n \tpane.add(makePrgButtonPanel(), BorderLayout.EAST);\r\n \tint index = getTabCount()-1;\r\n \tinsertTab(title, null, pane, null, index);\r\n \tsetTabComponentAt(index,tab);\r\n \tif (!file.isDirectory())\r\n \t\tsetToolTipTextAt(index, file.getAbsolutePath());\r\n }",
"@Override\n public void addTab(String title, Component component) {\n this.addTab(title, null, component, null, null);\n }",
"public void add(TabLike tab){\n TabLabel btn = tabLabelCreator.create(tab.getName(), this);\n\n tab.setVisible(tabs.isEmpty());\n btn.setDisable(tabs.isEmpty());\n if (tabs.isEmpty()){\n selected = btn;\n }\n\n tabs.add(tab);\n nameTab.getChildren().add(btn);\n tabContent.getChildren().add(tab);\n tab.setContainer(this);\n }",
"private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}",
"public static final String tab(int count) {\n if (count == 1)\n return TAB;\n return repeat(\"TAB\"/*I18nOK:EMS*/, count);\n }",
"private void layoutTabs() {\n\tJTabbedPane tabs = new JTabbedPane();\n\ttabs.add(\"MAIN MENU\", mainMenu);\n\ttabs.add(\"LEVEL EDITOR\", levelEditor);\n\tthis.getContentPane().add(tabs);\n }",
"private void addAdditionalFieldsTab()\n {\n\t\t// START OF ADDITIONAL FIELDS TAB ///\n\t\t// ////////////////////////\n \twAdditionalFieldsTab = new CTabItem(wTabFolder, SWT.NONE);\n \twAdditionalFieldsTab.setText(BaseMessages.getString(PKG, \"AccessInputDialog.AdditionalFieldsTab.TabTitle\"));\n\n \twAdditionalFieldsComp = new Composite(wTabFolder, SWT.NONE);\n\t\tprops.setLook(wAdditionalFieldsComp);\n\n\t\tFormLayout fieldsLayout = new FormLayout();\n\t\tfieldsLayout.marginWidth = 3;\n\t\tfieldsLayout.marginHeight = 3;\n\t\twAdditionalFieldsComp.setLayout(fieldsLayout);\n\t\t\n\t\t// ShortFileFieldName line\n\t\twlShortFileFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlShortFileFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ShortFileFieldName.Label\"));\n\t\tprops.setLook(wlShortFileFieldName);\n\t\tfdlShortFileFieldName = new FormData();\n\t\tfdlShortFileFieldName.left = new FormAttachment(0, 0);\n\t\tfdlShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\tfdlShortFileFieldName.right = new FormAttachment(middle, -margin);\n\t\twlShortFileFieldName.setLayoutData(fdlShortFileFieldName);\n\n\t\twShortFileFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wShortFileFieldName);\n\t\twShortFileFieldName.addModifyListener(lsMod);\n\t\tfdShortFileFieldName = new FormData();\n\t\tfdShortFileFieldName.left = new FormAttachment(middle, 0);\n\t\tfdShortFileFieldName.right = new FormAttachment(100, -margin);\n\t\tfdShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\twShortFileFieldName.setLayoutData(fdShortFileFieldName);\n\t\t\n\t\t\n\t\t// ExtensionFieldName line\n\t\twlExtensionFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlExtensionFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ExtensionFieldName.Label\"));\n\t\tprops.setLook(wlExtensionFieldName);\n\t\tfdlExtensionFieldName = new FormData();\n\t\tfdlExtensionFieldName.left = new FormAttachment(0, 0);\n\t\tfdlExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\tfdlExtensionFieldName.right = new FormAttachment(middle, -margin);\n\t\twlExtensionFieldName.setLayoutData(fdlExtensionFieldName);\n\n\t\twExtensionFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wExtensionFieldName);\n\t\twExtensionFieldName.addModifyListener(lsMod);\n\t\tfdExtensionFieldName = new FormData();\n\t\tfdExtensionFieldName.left = new FormAttachment(middle, 0);\n\t\tfdExtensionFieldName.right = new FormAttachment(100, -margin);\n\t\tfdExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\twExtensionFieldName.setLayoutData(fdExtensionFieldName);\n\t\t\n\t\t\n\t\t// PathFieldName line\n\t\twlPathFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlPathFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.PathFieldName.Label\"));\n\t\tprops.setLook(wlPathFieldName);\n\t\tfdlPathFieldName = new FormData();\n\t\tfdlPathFieldName.left = new FormAttachment(0, 0);\n\t\tfdlPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\tfdlPathFieldName.right = new FormAttachment(middle, -margin);\n\t\twlPathFieldName.setLayoutData(fdlPathFieldName);\n\n\t\twPathFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wPathFieldName);\n\t\twPathFieldName.addModifyListener(lsMod);\n\t\tfdPathFieldName = new FormData();\n\t\tfdPathFieldName.left = new FormAttachment(middle, 0);\n\t\tfdPathFieldName.right = new FormAttachment(100, -margin);\n\t\tfdPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\twPathFieldName.setLayoutData(fdPathFieldName);\n\t\t\n\n\n \t\t// SizeFieldName line\n\t\twlSizeFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlSizeFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.SizeFieldName.Label\"));\n\t\tprops.setLook(wlSizeFieldName);\n\t\tfdlSizeFieldName = new FormData();\n\t\tfdlSizeFieldName.left = new FormAttachment(0, 0);\n\t\tfdlSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\tfdlSizeFieldName.right = new FormAttachment(middle, -margin);\n\t\twlSizeFieldName.setLayoutData(fdlSizeFieldName);\n\n\t\twSizeFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wSizeFieldName);\n\t\twSizeFieldName.addModifyListener(lsMod);\n\t\tfdSizeFieldName = new FormData();\n\t\tfdSizeFieldName.left = new FormAttachment(middle, 0);\n\t\tfdSizeFieldName.right = new FormAttachment(100, -margin);\n\t\tfdSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\twSizeFieldName.setLayoutData(fdSizeFieldName);\n\t\t\n\t\t\n\t\t// IsHiddenName line\n\t\twlIsHiddenName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlIsHiddenName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.IsHiddenName.Label\"));\n\t\tprops.setLook(wlIsHiddenName);\n\t\tfdlIsHiddenName = new FormData();\n\t\tfdlIsHiddenName.left = new FormAttachment(0, 0);\n\t\tfdlIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\tfdlIsHiddenName.right = new FormAttachment(middle, -margin);\n\t\twlIsHiddenName.setLayoutData(fdlIsHiddenName);\n\n\t\twIsHiddenName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wIsHiddenName);\n\t\twIsHiddenName.addModifyListener(lsMod);\n\t\tfdIsHiddenName = new FormData();\n\t\tfdIsHiddenName.left = new FormAttachment(middle, 0);\n\t\tfdIsHiddenName.right = new FormAttachment(100, -margin);\n\t\tfdIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\twIsHiddenName.setLayoutData(fdIsHiddenName);\n\t\t\n\t\t// LastModificationTimeName line\n\t\twlLastModificationTimeName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlLastModificationTimeName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.LastModificationTimeName.Label\"));\n\t\tprops.setLook(wlLastModificationTimeName);\n\t\tfdlLastModificationTimeName = new FormData();\n\t\tfdlLastModificationTimeName.left = new FormAttachment(0, 0);\n\t\tfdlLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\tfdlLastModificationTimeName.right = new FormAttachment(middle, -margin);\n\t\twlLastModificationTimeName.setLayoutData(fdlLastModificationTimeName);\n\n\t\twLastModificationTimeName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wLastModificationTimeName);\n\t\twLastModificationTimeName.addModifyListener(lsMod);\n\t\tfdLastModificationTimeName = new FormData();\n\t\tfdLastModificationTimeName.left = new FormAttachment(middle, 0);\n\t\tfdLastModificationTimeName.right = new FormAttachment(100, -margin);\n\t\tfdLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\twLastModificationTimeName.setLayoutData(fdLastModificationTimeName);\n\t\t\n\t\t// UriName line\n\t\twlUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.UriName.Label\"));\n\t\tprops.setLook(wlUriName);\n\t\tfdlUriName = new FormData();\n\t\tfdlUriName.left = new FormAttachment(0, 0);\n\t\tfdlUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\tfdlUriName.right = new FormAttachment(middle, -margin);\n\t\twlUriName.setLayoutData(fdlUriName);\n\n\t\twUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wUriName);\n\t\twUriName.addModifyListener(lsMod);\n\t\tfdUriName = new FormData();\n\t\tfdUriName.left = new FormAttachment(middle, 0);\n\t\tfdUriName.right = new FormAttachment(100, -margin);\n\t\tfdUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\twUriName.setLayoutData(fdUriName);\n\t\t\n\t\t// RootUriName line\n\t\twlRootUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlRootUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.RootUriName.Label\"));\n\t\tprops.setLook(wlRootUriName);\n\t\tfdlRootUriName = new FormData();\n\t\tfdlRootUriName.left = new FormAttachment(0, 0);\n\t\tfdlRootUriName.top = new FormAttachment(wUriName, margin);\n\t\tfdlRootUriName.right = new FormAttachment(middle, -margin);\n\t\twlRootUriName.setLayoutData(fdlRootUriName);\n\n\t\twRootUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wRootUriName);\n\t\twRootUriName.addModifyListener(lsMod);\n\t\tfdRootUriName = new FormData();\n\t\tfdRootUriName.left = new FormAttachment(middle, 0);\n\t\tfdRootUriName.right = new FormAttachment(100, -margin);\n\t\tfdRootUriName.top = new FormAttachment(wUriName, margin);\n\t\twRootUriName.setLayoutData(fdRootUriName);\n\t\n\n\t\tfdAdditionalFieldsComp = new FormData();\n\t\tfdAdditionalFieldsComp.left = new FormAttachment(0, 0);\n\t\tfdAdditionalFieldsComp.top = new FormAttachment(wStepname, margin);\n\t\tfdAdditionalFieldsComp.right = new FormAttachment(100, 0);\n\t\tfdAdditionalFieldsComp.bottom = new FormAttachment(100, 0);\n\t\twAdditionalFieldsComp.setLayoutData(fdAdditionalFieldsComp);\n\n\t\twAdditionalFieldsComp.layout();\n\t\twAdditionalFieldsTab.setControl(wAdditionalFieldsComp);\n\n\t\t// ///////////////////////////////////////////////////////////\n\t\t// / END OF ADDITIONAL FIELDS TAB\n\t\t// ///////////////////////////////////////////////////////////\n\n\t\t\n \t\n }",
"private void addTab(String label, int drawableId, Intent i) {\n \tTabHost.TabSpec spec = tabHost.newTabSpec(label);\r\n \tView tabIndicator = LayoutInflater.from(this).inflate(R.layout.tabs, getTabWidget(), false);\r\n \tTextView title = (TextView) tabIndicator.findViewById(R.id.title);\r\n \ttitle.setText(label);\r\n// \tImageView icon = (ImageView) tabIndicator.findViewById(R.id.icon);\r\n// \ticon.setImageResource(drawableId);\r\n \tspec.setIndicator(tabIndicator).setContent(i);\r\n \ttabHost.addTab(spec);\r\n }",
"public void addTab (String tabname, boolean closeable, Widget widget, final String key) {\n\n\n\t\tPanel localTP = new Panel();\n\t\tlocalTP.setClosable(closeable);\n\t\tlocalTP.setTitle(tabname);\n\t\tlocalTP.setId(key + id);\n\t\tlocalTP.setAutoScroll(true);\n\t\tlocalTP.add(widget);\n\n\t\ttp.add(localTP, this.centerLayoutData);\n\n\t\tlocalTP.addListener(new PanelListenerAdapter() {\n\n\t\t\tpublic void onDestroy(Component component) {\n\t\t\t\topenedTabs.remove(key);\n\t\t\t}\n\t\t});\n\n\n\t\ttp.activate(localTP.getId());\n\n\n\n\n\t\topenedTabs.put(key, localTP);\n\t}",
"private static void AddTab(MenuActivity activity, TabHost tabHost,\n TabHost.TabSpec tabSpec, TabInfo tabInfo) {\n tabSpec.setContent(activity.new TabFactory(activity));\n tabHost.addTab(tabSpec);\n Log.i(\"LOG\",\"Cria Aba\");\n }",
"private void eric_function()\n\t{\n \ttabHost = (TabHost) findViewById(R.id.mytab1);\n \ttabHost.setup();\n \t \n \t//tabHost.setBackgroundColor(Color.argb(150, 20, 80, 150));\n \ttabHost.setBackgroundResource(R.drawable.ic_launcher);\n \t\n \t\n \t//\n \tTabSpec tabSpec;\n \t// 1\n \ttabSpec = tabHost.newTabSpec(tab_list[0]);\n \ttabSpec.setIndicator(\"a.1\");\n \ttabSpec.setContent(R.id.widget_layout_blue2);\n \ttabHost.addTab(tabSpec);\n \t// 2\n \ttabSpec = tabHost.newTabSpec(tab_list[1]);\n \ttabSpec.setIndicator(\"a2\");\n \ttabSpec.setContent(R.id.widget_layout_green2);\n \ttabHost.addTab(tabSpec); \t\n \t// 3\n \ttabSpec = tabHost.newTabSpec(tab_list[2]);\n \ttabSpec.setIndicator(\"a3\");\n \ttabSpec.setContent(R.id.widget_layout_red2);\n \ttabHost.addTab(tabSpec); \t\n \t//\n\t\ttabHost.setOnTabChangedListener(listener1);\n \t//\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void add(View v) {\n\t\tint type = tabHost.getCurrentTab() + 1;\n\t\tIntent i = new Intent(this, AddActivity.class);\n\t\ti.putExtra(\"type\", type);\n\t\tstartActivityForResult(i, MainActivity.REQUEST_ADD);\n\t}",
"private void fuenteTab() {\n\n\n View view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n TextView tv=(TextView) view.findViewById(R.id.pestanias_txt);\n ImageView imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.detalles);\n tv.setTypeface(fuente2);\n tv.setText(\"Detalles\");\n tabLayout.getTabAt(0).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.marciano);\n tv.setTypeface(fuente2);\n tv.setText(\"Juegos\");\n tabLayout.getTabAt(1).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.tienda);\n tv.setTypeface(fuente2);\n tv.setText(\"Tienda\");\n tabLayout.getTabAt(2).setCustomView(view);\n\n }",
"private void createTabList() throws UnsupportedEncodingException {\n\n org.mortbay.html.List tabList =\n new org.mortbay.html.List(org.mortbay.html.List.Unordered);\n tabsDiv.add(tabList);\n Integer tabCount = 1;\n for (Map.Entry letterPairs : startLetterList.entrySet()) {\n Character startLetter = (Character) letterPairs.getKey();\n Character endLetter = (Character) letterPairs.getValue();\n Link tabLink = new Link(\"DisplayContentTab?start=\" + startLetter + \"&end=\" + endLetter + \"&group=\"\n + grouping + \"&type=\" + type + \"&filter=\" + filterKey +\n \"&timeKey=\" + timeKey, startLetter + \" - \" + endLetter);\n Composite tabListItem = tabList.newItem();\n tabListItem.add(tabLink);\n Block loadingDiv = new Block(Block.Div, \"id='ui-tabs-\" + tabCount++ + \"'\");\n Image loadingImage = new Image(LOADING_SPINNER);\n loadingImage.alt(\"Loading...\");\n loadingDiv.add(loadingImage);\n loadingDiv.add(\" Loading...\");\n tabsDiv.add(loadingDiv);\n }\n }",
"private void createTabsDiv() {\n tabsDiv = new Block(Block.Div, \"id='tabs'\");\n page.add(tabsDiv);\n }",
"private void addTracksTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n //intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n // SessionsExpandableListActivity.CHILD_MODE_STARRED);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_TWITTER);\n spec.setIndicator(mResources.getString(R.string.tracks), mResources\n .getDrawable(R.drawable.ic_menu_archive));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"private void setupTabLayout() {\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n });\n tabLayout.getTabAt(0).select();\n View root = tabLayout.getChildAt(0);\n //create divider between the tabs\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColorFilter(0xffff0000, PorterDuff.Mode.MULTIPLY);\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n }",
"public final void rule__InsertSQL__TabAssignment_2_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1899:1: ( ( ruleTab ) )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1900:1: ( ruleTab )\n {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1900:1: ( ruleTab )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1901:1: ruleTab\n {\n before(grammarAccess.getInsertSQLAccess().getTabTabParserRuleCall_2_3_0()); \n pushFollow(FOLLOW_ruleTab_in_rule__InsertSQL__TabAssignment_2_33755);\n ruleTab();\n\n state._fsp--;\n\n after(grammarAccess.getInsertSQLAccess().getTabTabParserRuleCall_2_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void onCreateTabClicked(View view) {\n if (mAdapter.isEmpty()) {\n Toast.makeText(this, R.string.you_must_create_at_least_one_tab, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<TabInformation> list = new ArrayList<>(mAdapter.getTabInformation());\n startActivity(new Intent(this, DisplayTabsActivity.class).putExtra(TAB_CONTENT, list));\n }",
"private String getNumberOfTabs(int numOfTabs) {\r\n String tabs = \"\";\r\n // If numOfTabs is 0, return an empty string\r\n if (numOfTabs == 0)\r\n return \"\";\r\n // Loop through until the number of tabs required is added to tabs\r\n while (numOfTabs > 0) {\r\n // Add a tab character to tabs\r\n tabs += \"\\t\";\r\n // Decrement numOfTabs\r\n numOfTabs--;\r\n }\r\n // Return the string of numOfTabs of tabs\r\n return tabs;\r\n }",
"private void setTabLayout() {\n View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n TextView title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n ImageView imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.MOVIES);\n imgIcon.setImageResource(R.mipmap.ic_home);\n mTabLayout.getTabAt(0).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n count = (TextView) view.findViewById(R.id.item_tablayout_count_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.FAVOURITE);\n imgIcon.setImageResource(R.mipmap.ic_favorite);\n count.setVisibility(View.VISIBLE);\n mTabLayout.getTabAt(1).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.SETTINGS);\n imgIcon.setImageResource(R.mipmap.ic_settings);\n mTabLayout.getTabAt(2).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.ABOUT);\n imgIcon.setImageResource(R.mipmap.ic_info);\n mTabLayout.getTabAt(3).setCustomView(view);\n }",
"private void addStarredTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n SessionsExpandableListActivity.CHILD_MODE_STARRED);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_STARRED);\n spec.setIndicator(mResources.getString(R.string.starred), mResources\n .getDrawable(R.drawable.ic_tab_starred));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"public void renameTabs(){\n\t\tfor(int i =0;i<nbTabs;i++){\n\t\t\tif(!tabs.getTitleAt(i).equals(\"Exemples\"))\n\t\t\t\ttabs.setTitleAt(i,(\"Génération\"+(i+1)));\n\t\t}\n\t}",
"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 void print(int tabOrder);",
"public void moveTab(IPresentablePart part, int index) {\r\n\t\ttabs.move(part, index);\r\n\t\tfolder.layout(true);\r\n\t}",
"@Override\r\n\tpublic void insertTab(String title, Icon icon,\r\n\t\t\tComponent component, String tip, int index) {\n\t\tsuper.insertTab(title, icon, component, tip, index);\r\n\t\tif (index < 10)\r\n\t\t\tsetMnemonicAt(index, TAB_MNEMONICS[index]);\r\n\t}",
"private void insertarTabs(ViewGroup container) {\n View padre = (View) container.getParent();\n pestanas = (TabLayout)padre.findViewById(R.id.tabs);\n }",
"private void createSingleTab(String text, Path path) {\r\n\t\tif (text == null) {\r\n\t\t\ttext = \"\";\r\n\t\t}\r\n\t\t\r\n\t\tJTextArea txtArea = new JTextArea(text);\r\n\t\ttxtArea.getDocument().addDocumentListener(new DocumentListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\t\t\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\t\t\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\r\n\t\t\t\tchangeIcon();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tprivate void changeIcon() {\r\n\t\t\t\ttabbedPane.setIconAt(tabbedPane.getSelectedIndex(), redIcon);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttxtArea.addCaretListener(new CaretListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void caretUpdate(CaretEvent e) {\r\n\t\t\t\tlengthLab.setText(\"Length: \"+txtArea.getText().length());\r\n\t\t\t\t\r\n\t\t\t\tint offset = txtArea.getCaretPosition();\r\n\t int line= 1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tline = txtArea.getLineOfOffset(offset);\r\n\t\t\t\t} catch (BadLocationException ignorable) {}\r\n\t\t\t\tlnLab.setText(\"Ln: \"+(line+1));\r\n\t\t\t\t\r\n\t\t\t\tint col = 1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcol = offset - txtArea.getLineStartOffset(line);\r\n\t\t\t\t} catch (BadLocationException ignorable) {}\r\n\t\t\t\tcolLab.setText(\"Col: \"+ (col+1));\r\n\t\t\t\t\r\n\t\t\t\tint sel = Math.abs(txtArea.getSelectionStart() - txtArea.getSelectionEnd());\t\r\n\t\t\t\tselLab.setText(\"sel: \"+sel);\r\n\t\t\t\tfor (JMenuItem i : toggable) {\r\n\t\t\t\t\tboolean enabled;\r\n\t\t\t\t\tenabled = sel != 0;\r\n\t\t\t\t\ti.setEnabled(enabled);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJScrollPane scrPane = new JScrollPane(txtArea);\r\n\t\tif (path == null) {\t//create empty tab\t\r\n\t\t\tString name = \"New \" + (count +1);\r\n\t\t\ttabbedPane.addTab(name, greenIcon, scrPane, \"\");\r\n\t\t\tcount++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttabbedPane.addTab(path.getFileName().toString(), greenIcon, scrPane, path.toString());\r\n\t\tcount++;\r\n\t}",
"public DatasetTab(int index) {\n tab = new VerticalLayout();\n replicatesSheet = new TabSheet();\n for (int replicateIndex = 0;\n replicateIndex < presenter.getNumberOfReplicates();\n replicateIndex++) {\n ReplicateTab replicateTab = new ReplicateTab(index, replicateIndex);\n replicatesSheet.addTab(replicateTab, \"Replicate \" + createAlphabeticalIndex(replicateIndex));\n }\n setCompositionRoot(tab);\n }",
"private void initTab()\n {\n \n }",
"protected void showTabs() {\r\n\t\tif (getPageCount() > 1) {\r\n\t\t\tsetPageText(0, getString(\"_UI_SelectionPage_label\"));\r\n\t\t\tif (getContainer() instanceof CTabFolder) {\r\n\t\t\t\t((CTabFolder) getContainer()).setTabHeight(SWT.DEFAULT);\r\n\t\t\t\tPoint point = getContainer().getSize();\r\n\t\t\t\tgetContainer().setSize(point.x, point.y - 6);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void setupTab(final View view, final String tag) {\r\n\t\tView tabview = createTabView(mTabHost.getContext(), tag);\r\n\r\n\t\tTabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview)\r\n\t\t\t\t.setContent(new TabContentFactory() {\r\n\t\t\t\t\tpublic View createTabContent(String tag) {\r\n\t\t\t\t\t\tView view;\r\n\t\t\t\t\t\tif (tag.contains(\"EXTENDED\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_2_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedNO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET1);\r\n\t\t\t\t\t\t\tedNIO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET2);\r\n\t\t\t\t\t\t\tedNP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET3);\r\n\t\t\t\t\t\t\tedNIP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET4);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tedNO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNP.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tNO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB1);\r\n\t\t\t\t\t\t\tNIO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB2);\r\n\t\t\t\t\t\t\tNP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB3);\r\n\t\t\t\t\t\t\tNIP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB4);\r\n\t\t\t\t\t\t\tNO.setEnabled(false); \r\n\t\t\t\t\t\t\tNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tNP.setEnabled(false);\r\n\t\t\t\t\t\t\tNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\textended = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB0);\r\n\t\t\t\t\t\t\textended.setOnClickListener(S3R4Listener2);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if (tag.contains(\"CUSTOM\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_3_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_1_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedlevels = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET1);\r\n\t\t\t\t\t\t\tedSons = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET2);\r\n\t\t\t\t\t\t\tedlevel = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET3);\r\n\t\t\t\t\t\t\tedpruduct = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET4);\r\n\t\t\t\t\t\t\tedcampaign = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET5);\r\n\t\t\t\t\t\t\tedadd = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET6);\r\n\t\t\t\t\t\t\tedlevels.setEnabled(false);\r\n\t\t\t\t\t\t\tedSons.setEnabled(false);\r\n\t\t\t\t\t\t\tedlevel.setEnabled(false);\r\n\t\t\t\t\t\t\tedpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tedcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tedadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlevel= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB3);\r\n\t\t\t\t\t\t\tpruduct= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB4);\r\n\t\t\t\t\t\t\tcampaign= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB5);\r\n\t\t\t\t\t\t\tadd= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB6);\r\n\t\t\t\t\t\t\tlevel.setEnabled(false); \r\n\t\t\t\t\t\t\tpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tStructure = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB1);\r\n\t\t\t\t\t\t\tRules = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB2);\r\n\t\t\t\t\t\t\tStructure.setOnClickListener(S3R4Listener);\r\n\t\t\t\t\t\t\tRules.setOnClickListener(S3R4Listener);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn view;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tmTabHost.addTab(setContent);\r\n\r\n\t}",
"private void changesetTabSelection(int i) {\n\t\tif (i == 1)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_direct_double_name));\r\n\t\t}\r\n\t\tif (i == 2)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_120_name));\r\n\t\t}\r\n\t\tif (i == 3)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_60_name));\r\n\t\t}\r\n\t\tif (i == 4)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_30_name));\r\n\t\t}\r\n\t\tif (i == 5)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_20_name));\r\n\t\t}\r\n\t\tif (i == 6)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_10_name));\r\n\t\t}\r\n\t\tif (i == 7)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_5_name));\r\n\t\t}\r\n\t\tif (i == 8)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_direct_double_name));\r\n\t\t}\r\n\t\tif (i == 9)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_group_24_name));\r\n\t\t}\r\n\t\tif (i == 10)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_group_12_name));\r\n\t\t}\r\n\t\tif (i == 11)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_direct_double_name));\r\n\t\t}\r\n\t\tif (i == 12)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_three_name));\r\n\t\t}\r\n\t\tif (i == 13)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_six_name));\r\n\t\t}\r\n\t\tif (i == 14)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_sum_name));\r\n\t\t}\r\n\t\tif (i == 15)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_container_name));\r\n\t\t}\r\n\t\tif (i == 16)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_direct_double_name));\r\n\t\t}\r\n\t\tif (i == 17)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_group_span_name));\r\n\t\t}\r\n\t\tif (i == 18)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_group_three_name));\r\n\t\t}\r\n\t\tif (i == 19)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_group_six_name));\r\n\t\t}\r\n\t\tif (i == 20)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_group_sum_name));\r\n\t\t}\r\n\t\tif (i == 21)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_group_container_name));\r\n\t\t}\r\n\t\tif (i == 22)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_bottomtwo_double_name));\r\n\t\t}\r\n\t\tif (i == 23)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_bottomtwo_sum_name));\r\n\t\t}\r\n\t\tif (i == 24)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_bottomtwo_span_name));\r\n\t\t}\r\n\t\tif (i == 25)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_toptwo_double_name));\r\n\t\t}\r\n\t\tif (i == 26)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_toptwo_span_name));\r\n\t\t}\r\n\t\tif (i == 27)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_bottomtwo_double_name));\r\n\t\t}\r\n\t\tif (i == 28)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_toptwo_double_name));\r\n\t\t}\r\n\t\tif (i == 29)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.fixed_position_name));\r\n\t\t}\r\n\t\tif (i == 30)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.three_bottomthree_one_notposition_name));\r\n\t\t}\r\n\t\tif (i == 31)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.three_bottomthree_two_notposition_name));\r\n\t\t}\r\n\t\tif (i == 32)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.three_topthree_one_notposition_name));\r\n\t\t}\r\n\t\tif (i == 33)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.three_topthree_two_notposition_name));\r\n\t\t}\r\n\t\tif (i == 34)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_bottomfour_two_notposition_name));\r\n\t\t}\r\n\t\tif (i == 35)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_bottomfive_two_notposition_name));\r\n\t\t}\r\n\t\tif (i == 36)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_bottomfive_three_notposition_name));\r\n\t\t}\r\n\t\tif (i == 37)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_toptwo_sum_name));\r\n\t\t}\r\n\t\tif (i == 38)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_group_6_name));\r\n\t\t}\r\n\t\tif (i == 39)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_group_4_name));\r\n\t\t}\r\n\t\tif (i == 40)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_direct_sum_name));\r\n\t\t}\r\n\t\tif (i == 41)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_direct_sum_name));\r\n\t\t}\r\n\t\tif (i == 42)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_direct_span_name));\r\n\t\t}\r\n\t\tif (i == 43)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_sum_end_name));\r\n\t\t}\r\n\t\tif (i == 44)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_sum_end_name));\r\n\t\t}\r\n\t\tif (i == 45)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_toptwo_sum_name));\r\n\t\t}\r\n\t\tif (i == 46)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_toptwo_container_name));\r\n\t\t}\r\n\t\tif (i == 47)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_bottomtwo_container_name));\r\n\t\t}\r\n\t\tif (i == 48)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_bottomtwo_sum_name));\r\n\t\t}\r\n\t\tif (i == 49)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_bottomfour_one_notposition_name));\r\n\t\t}\r\n\t\tif (i == 50)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.maxmin_bottomtwo_name));\r\n\t\t}\r\n\t\tif (i == 51)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.maxmin_bottomthree_name));\r\n\t\t}\r\n\t\tif (i == 52)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.maxmin_toptwo_name));\r\n\t\t}\r\n\t\tif (i == 53)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.maxmin_topthree_name));\r\n\t\t}\r\n\t\tif (i == 54)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_direct_single_name));\r\n\t\t}\r\n\t\tif (i == 55)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_direct_single_name));\r\n\t\t}\r\n\t\tif (i == 56)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_three_single_name));\r\n\t\t}\r\n\t\tif (i == 57)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_six_single_name));\r\n\t\t}\r\n\t\tif (i == 58)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_direct_single_name));\r\n\t\t}\r\n\t\tif (i == 59)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_direct_single_name));\r\n\t\t}\r\n\t\tif (i == 60)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottompthree_group_three_single_name));\r\n\t\t}\r\n\t\tif (i == 61)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottompthree_group_six_single_name));\r\n\t\t}\r\n\t\tif (i == 62)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_toptwo_single_name));\r\n\t\t}\r\n\t\tif (i == 63)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_toptwo_single_name));\r\n\t\t}\r\n\t\tif (i == 64)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_bottomtwo_single_name));\r\n\t\t}\r\n\t\tif (i == 65)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_bottomtwo_single_name));\r\n\t\t}\r\n\t\tif (i == 66)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_mix_group_name));\r\n\t\t}\r\n\t\tif (i == 67)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottompthree_mix_group_name));\r\n\t\t}\r\n\t\twrite(i);\r\n\t}",
"private void createTab() {\n tab = new char[tabSize];\n for (int i = 0; i < tabSize; i++) {\n tab[i] = tabChar;\n }\n }",
"public AutomatedTestingTabbedPane()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tthis.setBackground(Constants.WHITE);\r\n\t\tthis.setForeground(Constants.BLUE);\r\n\t\t\r\n\t\tthis.setFont(new Font(\"sans-serif\", Font.PLAIN, 16));\r\n\t\tthis.addTab(\"CXCParticipant\", participantPanel);\r\n\t\tthis.setMnemonicAt(0, KeyEvent.VK_1);\r\n\t\t\r\n\t\tthis.addTab(\"CXCToken\", tokenPanel);\r\n\t\tthis.setMnemonicAt(1, KeyEvent.VK_2);\r\n\t\t\r\n\t\tthis.addTab(\"CXCRecipient\", recipientPanel);\r\n\t\tthis.setMnemonicAt(2, KeyEvent.VK_3);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPayment\", paymentPanel);\r\n\t\tthis.setMnemonicAt(3, KeyEvent.VK_4);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPaymentRequest\", paymentRequestPanel);\r\n\t\tthis.setMnemonicAt(4, KeyEvent.VK_5);\r\n\t\t\r\n//\t\tthis.addTab(\"Export\", exportPanel);\r\n//\t\tthis.setMnemonicAt(5, KeyEvent.VK_6);\r\n\r\n\t}",
"public static void patchTabs() throws NoSuchFieldException, IllegalAccessException {\n LegacySupportUtility.INSTANCE.invokeClassSafely(\"com.intellij.ide.ui.laf.darcula.ui.DarculaSeparatorUI\", () -> {\n final int baseHeight = JBUI.scale(6);\n final int tabsHeight = MTConfig.getInstance().getTabsHeight() / 2 - baseHeight;\n StaticPatcher.setFinalStatic(TabsUtil.class, \"TAB_VERTICAL_PADDING\", new JBValue.Float(tabsHeight));\n });\n }",
"public void initializeTabs() {\n\n\t\tTabHost.TabSpec spec;\n\n\t\tspec = mTabHost.newTabSpec(Const.EVENTS);\n\t\tmTabHost.setCurrentTab(0);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_events_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(1);\n\t\tspec = mTabHost.newTabSpec(Const.FEED);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_feed_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(2);\n\t\tspec = mTabHost.newTabSpec(Const.INFO);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_info_selector));\n\t\tmTabHost.addTab(spec);\n\n\t}",
"private void addControl() {\n // Gan adapter va danh sach tab\n PagerAdapter adapter = new PagerAdapter(getSupportFragmentManager());\n // Them noi dung cac tab\n adapter.AddFragment(new TourMapTab());\n adapter.AddFragment(new TourInfoTab());\n adapter.AddFragment(new TourMapImageTab());\n // Set adapter danh sach tab\n ViewPager viewPager = ActivityManager.getInstance().activityTourTabsBinding.viewpager;\n TabLayout tabLayout = ActivityManager.getInstance().activityTourTabsBinding.tablayout;\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n // Them vach ngan cach cac tab\n View root = tabLayout.getChildAt(0);\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColor(getResources().getColor(R.color.colorPrimaryDark));\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n // Icon cac tab\n tabLayout.getTabAt(0).setIcon(R.drawable.tour_map_icon_select);\n tabLayout.getTabAt(1).setIcon(R.mipmap.tour_info_icon);\n tabLayout.getTabAt(2).setIcon(R.mipmap.tour_map_image_icon);\n\n // Doi mau tab icon khi click\n tabLayout.addOnTabSelectedListener(new TabLayout.ViewPagerOnTabSelectedListener(viewPager) {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n super.onTabSelected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.drawable.tour_map_icon_select);\n break;\n case 1:\n tab.setIcon(R.drawable.tour_info_icon_select);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon_select);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n super.onTabUnselected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.mipmap.tour_map_icon);\n break;\n case 1:\n tab.setIcon(R.mipmap.tour_info_icon);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n super.onTabReselected(tab);\n }\n }\n );\n }",
"public void addDirectory4(View view){\n\t\tcontrol(4);\n\t}",
"public KonTabbedPane() {\n // Initialize the ArrayList\n graphInterfaces = new ArrayList<DrawingLibraryInterface>();\n\n DirectedGraph<String, DefaultEdge> graph = CreateTestGraph();\n\n /*\n * Adds a tab\n */\n DrawingLibraryInterface<String, DefaultEdge> graphInterface =\n DrawingLibraryFactory.createNewInterface(graph);\n \n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n addTab(\"First Tab\", graphInterface.getPanel());\n\n /*\n * Adds a tab\n */\n graphInterface = DrawingLibraryFactory.createNewInterface(graph);\n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n\n graphInterface.getGraphManipulationInterface().highlightNode(graph\n .vertexSet().iterator().next(), true);\n\n addTab(\"Second Tab\", graphInterface.getPanel());\n }",
"protected void addData(TreeMap treeMap) {\n AnchorPane container = createTabContent(treeMap);\n Tab tab = new Tab(treeMap.getData().getName(), container);\n tab.setClosable(false);\n tabPane.getTabs().add(tab);\n }",
"public void setTab(int i) {\n TabLayout.Tab tab = mTabLayout.getTabAt(i);\n tab.select();\n }",
"public AttributedStringBuilder tabs(int tabsize) {\n/* 378 */ if (tabsize < 0) {\n/* 379 */ throw new IllegalArgumentException(\"Tab size must be non negative\");\n/* */ }\n/* 381 */ return tabs(Arrays.asList(new Integer[] { Integer.valueOf(tabsize) }));\n/* */ }",
"public int getTabindex();",
"private static String manualTab(String entry)\r\n\t{\r\n\t\tString tab = \"\";\r\n\t\tfor(int count=0; count < 15 - entry.length(); count++)\r\n\t\t\ttab += \" \";\r\n\t\treturn tab;\r\n\t}",
"private Tab getNextTab() {\n int pos = mTabControl.getCurrentPosition() + 1;\n if (pos >= mTabControl.getTabCount()) {\n pos = 0;\n }\n return mTabControl.getTab(pos);\n }",
"public void addTab(DocumentWrapper file, String text) {\n\t\tJTextArea textEditor = new JTextArea();\n\n\t\ttextEditor.setText(text);\n\t\ttextEditor.getDocument().putProperty(\"changed\", false);\n\t\ttextEditor.addCaretListener(new CaretListener() {\n\t\t\t@Override\n\t\t\tpublic void caretUpdate(CaretEvent arg0) {\n\t\t\t\tint dot = arg0.getDot();\n\t\t\t\tint mark = arg0.getMark();\n\n\t\t\t\tint caretpos = textEditor.getCaretPosition();\n\t\t\t\tint lineNum = 1;\n\t\t\t\tint columnNum = 1;\n\t\t\t\ttry {\n\t\t\t\t\tlineNum = textEditor.getLineOfOffset(caretpos);\n\t\t\t\t\tcolumnNum = 1 + caretpos - textEditor.getLineStartOffset(lineNum);\n\t\t\t\t\tlineNum += 1;\n\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tstatusLabel.setText(\"length : \" + textEditor.getText().length());\n\t\t\t\tlineLabel.setText(\"Ln : \" + lineNum);\n\t\t\t\tcolumnLabel.setText(\"Col : \" + columnNum);\n\t\t\t\tselectedLabel.setText(\"Sel : \" + Math.abs(dot - mark));\n\t\t\t\t;\n\n\t\t\t\tif (dot == mark) {\n\t\t\t\t\titemInvert.setEnabled(false);\n\t\t\t\t\titemLower.setEnabled(false);\n\t\t\t\t\titemUpper.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\titemInvert.setEnabled(true);\n\t\t\t\t\titemLower.setEnabled(true);\n\t\t\t\t\titemUpper.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttextEditor.getDocument().addDocumentListener(new DocumentListener() {\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t\tButtonTabComponent comp = (ButtonTabComponent) pane.getTabComponentAt(pane.getSelectedIndex());\n\n\t\t\t\tcomp.setImage(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\t\t});\n\n\t\tfile.setEditor(textEditor);\n\n\t\tJScrollPane scPane = new JScrollPane(textEditor);\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.add(scPane, BorderLayout.CENTER);\n\n\t\tint index = pane.getTabCount();\n\n\t\tpane.addTab(file.getName(), textEditor);\n\n\t\tinitTabComponent(file, index);\n\t}",
"private void initialiseTabHost(Bundle args) {\n\t\tmTabHost = (TabHost)findViewById(android.R.id.tabhost);\n mTabHost.setup();\n TabInfo tabInfo = null;\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab1\").setIndicator(\"Waveform\"), ( tabInfo = new TabInfo(\"Tab1\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab2\").setIndicator(\"FFT\"), ( tabInfo = new TabInfo(\"Tab2\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab3\").setIndicator(\"AC\"), ( tabInfo = new TabInfo(\"Tab3\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab4\").setIndicator(\"Pitch\"), ( tabInfo = new TabInfo(\"Tab4\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n // Default to first tab\n this.onTabChanged(\"Tab1\");\n //\n mTabHost.setOnTabChangedListener(this);\n\t}",
"void addTab(Type<RequestTabsHandler> requestTabsEventType,\n Type<RevealContentHandler<?>> revealContentEventType,\n String label, String historyToken, boolean isMainTab,\n String contentUrl, TabOptions options) {\n dynamicUrlContentTabProxyFactory.create(\n requestTabsEventType, revealContentEventType,\n label, historyToken, isMainTab, contentUrl,\n options.getAlignRight() ? Align.RIGHT : Align.LEFT);\n\n // Redraw the corresponding tab container\n RedrawDynamicTabContainerEvent.fire(this, requestTabsEventType);\n }",
"private void initTabs() {\n\t\tmContainer.removeAllViews();\n\n\t\tif(mAdapter==null||mViewPager==null){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<mViewPager.getAdapter().getCount();i++){\n\t\t\tfinal int index=i;\n\t\t\tButton tabs= (Button) mAdapter.getView(index);\n\t\t\tLayoutParams layoutParams=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\tlayoutParams.weight=1;\n\t\t\tmContainer.addView(tabs,layoutParams);\n\t\t\t\n\t\t\ttabs.setOnClickListener(new OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t\tselectTab(0);\n\t}",
"private org.gwtbootstrap3.client.ui.NavTabs get_f_NavTabs42() {\n return build_f_NavTabs42();\n }",
"private void tabPrinter() {\n IntStream.range(0, tabs).forEach(i -> writer.print(\" \"));\n }",
"private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView = (ImageView) showLayout.getChildAt(0);\r\n\t\tTextView textView = (TextView) showLayout.getChildAt(1);\r\n\t\timageView.setImageResource(R.drawable.main_selector);\r\n\t\ttextView.setText(R.string.show);\r\n\r\n\t\taddLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView1 = (ImageView) addLayout.getChildAt(0);\r\n\t\tTextView textView1 = (TextView) addLayout.getChildAt(1);\r\n\t\timageView1.setImageResource(R.drawable.add_selector);\r\n\t\ttextView1.setText(R.string.add_record);\r\n\r\n\t\tchartLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView2 = (ImageView) chartLayout.getChildAt(0);\r\n\t\tTextView textView2 = (TextView) chartLayout.getChildAt(1);\r\n\t\timageView2.setImageResource(R.drawable.chart_selector);\r\n\t\ttextView2.setText(R.string.chart_show);\r\n\t}",
"private static void addPanelInMainTabView(TabComponent tc, PlotPanel pnl) {\n EDACCPlotTabView tabView = getMainTabView();\n if (tc == null) {\n tabView.addPanel(pnl);\n } else {\n tabView.addPanel(tc, pnl);\n }\n }",
"public void onModuleLoad() {\n\t\tTabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);\n\t\tFlexTable ft3 = new FlexTable();\n\t\tFlexCellFormatter cf3 = ft3.getFlexCellFormatter();\n\t\tDecoratorPanel dp3 = new DecoratorPanel();\n\t\tHorizontalPanel hp = new HorizontalPanel();\n\t\tButton plusButton = new Button(\"+\");\n\t\tButton minusButton = new Button(\"-\");\n\t\tButton devideButton = new Button(\"/\");\n\t\tButton multiplyButton = new Button(\"*\");\n\t\thp.add(plusButton);\n\t\thp.add(minusButton);\n\t\thp.add(devideButton);\n\t\thp.add(multiplyButton);\n\t\tfinal TextBox l1 = new TextBox();\n\t\tfinal TextBox l2 = new TextBox();\n\t\tfinal Label wynik = new Label();\n\t\tft3.setHTML(0,0,\"Podaj pierwsza liczbe:\");\n\t\tft3.setWidget(0,1, l1);\n\t\tft3.setHTML(1,0, \"Podaj druga liczbe:\");\n\t\tft3.setWidget(1,1,l2);\n\t\tft3.setHTML(2,0, \"Wybierz operacje:\");\n\t\tft3.setWidget(2, 1, hp);\n\t\tft3.setHTML(3,0, \"Wynik\");\n\t\tft3.setWidget(3,1, wynik);\n\t\tdp3.add(ft3);\n\t\t//RootPanel.get(\"mainContainer\").add(hp);\n\t\t//pan1.add(hp);\n\t\ttabPanel.add(dp3, new HTML(\"Prosty kalkulator\"));\n\t\tfinal TextBox t1 = new TextBox();\n\t\tfinal ListBox list = new ListBox();\n\t\tlist.addItem(\"2\");\n\t\tlist.addItem(\"4\");\n\t\tlist.addItem(\"8\");\n\t\tlist.addItem(\"16\");\n\t\tfinal Label wynik10 = new Label();\n\t\tFlexTable ft = new FlexTable();\n\t\tButton przeliczButton = new Button(\"Przelicz\");\n\t\tft.setHTML(0, 0, \"Podaj liczbe w systemie 10:\");\n\t\tft.setWidget(0, 1, t1);\n\t\tft.setHTML(1, 0, \"Podaj docelowy system liczbowy:\");\n\t\tft.setWidget(1, 1, list);\n\t\tft.setHTML(2, 0, \"Wynik:\");\n\t\tft.setWidget(2, 1, wynik10);\n\t\tft.setWidget(3, 0, przeliczButton);\n\t\tFlexCellFormatter cf = ft.getFlexCellFormatter();\n\t\tDecoratorPanel dp = new DecoratorPanel();\n\t\tcf.setColSpan(3,0,2);\n\t\tcf.setHorizontalAlignment(3,0,HasHorizontalAlignment.ALIGN_CENTER);\n\t\tdp.setWidget(ft);\n\t\ttabPanel.add(dp, new HTML(\"Przeliczanie z 10 na inne\"));\n\t\tFlexTable ft2 = new FlexTable();\n\t\tFlexCellFormatter cf2 = ft2.getFlexCellFormatter();\n\t\tDecoratorPanel dp2 = new DecoratorPanel();\n\t\tfinal TextBox t2 = new TextBox();\n\t\tfinal ListBox list2 = new ListBox();\n\t\tlist2.addItem(\"2\");\n\t\tlist2.addItem(\"4\");\n\t\tlist2.addItem(\"8\");\n\t\tlist2.addItem(\"16\");\n\t\tButton przelicztoButton = new Button(\"Przelicz\");\n\t\tfinal Label wynik20 = new Label();\n\t\tft2.setHTML(0, 0, \"Podaj system w jakim zapisana jest liczba:\");\n\t\tft2.setWidget(0, 1, list2);\n\t\tft2.setHTML(1, 0, \"Podaj liczbe:\");\n\t\tft2.setWidget(1, 1, t2);\n\t\tft2.setHTML(2, 0, \"Wynik:\");\n\t\tft2.setWidget(2, 1, wynik20);\n\t\tft2.setWidget(3, 0, przelicztoButton);\n\t\tcf2.setColSpan(3,0,2);\n\t\tcf2.setHorizontalAlignment(3,0,HasHorizontalAlignment.ALIGN_CENTER);\n\t\tdp2.setWidget(ft2);\n\t\t//RootPanel.get(\"mainContainer\").add(tabPanel);\n\t\ttabPanel.add(dp2, new HTML(\"Przeliczanie do systemu 10\"));\n\t\tRootLayoutPanel.get().add(tabPanel);\n\t\tprzelicztoButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.przeliczto10(t2.getText(), Integer.parseInt(list.getItemText(list.getSelectedIndex())), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik20.setText(\" \" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tprzeliczButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.przelicz10(Integer.parseInt(t1.getText()), Integer.parseInt(list.getItemText(list.getSelectedIndex())), new AsyncCallback<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\t\twynik10.setText(\" \" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tplusButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.dodaj(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tminusButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.odejmij(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tdevideButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.dziel(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Double>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Double result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmultiplyButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.mnoz(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Double>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Double result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"@Test\n\tpublic void section1DisplaysParagraphTab3() {\n\t\tassertTrue(AccordionLogic.section1DisplaysParagraphTab3());\n\t}",
"@Override\n\tpublic int getTabCount() {\n\t\treturn 0;\n\t}",
"public void switchNextTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i + 1 <= tabItems.length - 1)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(0);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void AddTab(EventActivity activity, TabHost tabHost, TabHost.TabSpec tabSpec, TabInfo tabInfo) {\n\t\t// Attach a Tab view factory to the spec\n\t\ttabSpec.setContent(new Utils.TabFactory(activity));\n tabHost.addTab(tabSpec);\n\t}",
"private void createTabFolder() {\r\n\t\tGridData gridData1 = new GridData();\r\n\t\tgridData1.grabExcessHorizontalSpace = true;\r\n\t\tgridData1.heightHint = 500;\r\n\t\tgridData1.grabExcessVerticalSpace = true;\r\n\t\tgridData1.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;\r\n\t\tgridData1.widthHint = 600;\r\n\t\ttabFolder = new TabFolder(sShell, SWT.NONE);\r\n\t\ttabFolder.setLayoutData(gridData1);\r\n\t\tcreateCompositeRoomMange();\r\n\t\tcreateCompositeGoodsMange();\r\n\t\tcreateCompositeStaffMange();\r\n\t\tcreateCompositeUserMange();\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"房间管理\");\r\n\t\ttabItem.setControl(compositeRoomMange);\r\n\t\tTabItem tabItem1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem1.setText(\"商品管理\");\r\n\t\ttabItem1.setControl(compositeGoodsMange);\r\n\t\tTabItem tabItem2 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem2.setText(\"员工管理\");\r\n\t\ttabItem2.setControl(compositeStaffMange);\r\n\t\tTabItem tabItem3 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem3.setText(\"系统用户管理\");\r\n\t\ttabItem3.setControl(compositeUserMange);\r\n\t}",
"public void addTab(ActionBar.Tab tab, Class<?> fragmentClass, Bundle args) {\r\n\t\t\tTabInfo info = new TabInfo(fragmentClass, args);\r\n\t\t\ttab.setTag(info);\r\n\t\t\ttab.setTabListener(this);\r\n\t\t\tgetTabs().add(info);\r\n\t\t\tgetActionBar().addTab(tab);\r\n\t\t\tnotifyDataSetChanged();\r\n\t\t}",
"public void addMainTab(String label, String historyToken, String contentUrl, TabOptions options) {\n addTab(MainTabPanelPresenter.TYPE_RequestTabs,\n MainTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, true, contentUrl, options);\n }",
"public void createTabs(ILaunchConfigurationDialog dialog, String mode) {\n setTabs(new ILaunchConfigurationTab[] { new JavaArgumentsTab(),\n new JavaJRETab(), new JavaClasspathTab(), new CommonTab() });\n }",
"public NumericTextController createTabs(ControllerCore genCode) {\n\t\ttabsNTXT = new NumericTextController(\"tabs\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(tabs$1LBL);\n\t\t\t\tsetProperty(\"tabs\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetNumericText().setFormatter(\"######\");\n\t\t\t\t\tsetStyle(SWT.BORDER | SWT.SINGLE | SWT.RIGHT);\n\t\t\t\t\tgetControl().setLayoutData(\"width min:100:150, growx\");\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic Object convertTargetToModel(Object fromObject) {\n\t\t\t\tif (fromObject instanceof Number)\n\t\t\t\t\treturn ((BigDecimal) fromObject).intValue();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t\treturn tabsNTXT;\n\t}",
"private void addPanel(TabComponent tabComp, PlotPanel pnl) {\n tabbedPanePlots.addTab(null, null, pnl, tabComp.getTitle());\n pnl.setParent(this);\n // replace the tab component and select this new tab\n tabbedPanePlots.setTabComponentAt(tabbedPanePlots.getTabCount() - 1, tabComp);\n tabbedPanePlots.setSelectedIndex(tabbedPanePlots.getTabCount() - 1);\n requestFocus();\n }",
"public void indent() {\n ++tabLevel;\n }",
"public void buttonNewTab(ActionEvent actionEvent) {\n }",
"public void newComponent(byte i ){\n\t\tif(nbTabs > 2)\n\t\t\tJOptionPane.showMessageDialog(null, \"Nombre maximal d'onglets atteint\");\n\t\telse {\n\t\t\tnbTabs++;\n\t\t\tswitch(i){\n\t\t\t\tcase 1:\n\t\t\t\t\ttabs.addTab(\"Génération\" + nbTabs,new Tab(this));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0:\n\t\t\t\t\ttabs.addTab(\"Exemples\" ,new Example(this));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public static void addScratchPanel() {\n scratchDetailPanel = new ScratchDetailPanel();\n JTabbedPane scratchTP = ScratchPanel.getScratchTP();\n numScratchLabels++;\n \n boolean debug = false;\n if (debug) { \n System.out.println(\"prior numScratchPanels \" + numScratchPanelsAdded);\n System.out.println(\"prior num Components \" + scratchTP.getComponentCount());\n System.out.println(\"numScratchPanelsRemoved \" + numScratchPanelsRemoved);\n }\n\n\n try {\n scratchTP.add(scratchDetailPanel, \"Scratch \" + numScratchLabels,numScratchPanelsAdded - numScratchPanelsRemoved);\n } catch (Exception e) {\n // ignore any errors here\n }\n \n if (debug) System.out.println(\"panel added\");\n \n if (numScratchPanelsAdded >= 1) scratchTP.setSelectedComponent(scratchDetailPanel);\n try {\n scratchTP.setTabComponentAt(numScratchPanelsAdded - numScratchPanelsRemoved, new ButtonTabComponent(scratchTP));\n } catch (Exception e) {\n //ignore any errors here\n }\n numScratchPanelsAdded++;\n \n \n if (debug) { \n System.out.println(\"post numScratchPanels \" + numScratchPanelsAdded);\n System.out.println(\"post num Components \" + scratchTP.getComponentCount());\n }\n\n }",
"private VTabSheet initTabLayout() {\r\n VTabSheet tabs = new VTabSheet();\r\n Map<Component, Integer> tabComponentMap = new HashMap<Component, Integer>();\r\n Binder<Report> binder = new Binder<>(Report.class);\r\n fireEventTypeComponent = new FireEventTypeDataTab(report,userNeedToPrepare, binder, tabComponentMap);\r\n boolean basicEditRight = !report.getStatus().equals(ReportStatus.APPROVED) && (organizationIsCreator || userNeedToPrepare);\r\n tabs.addTab(getTranslation(\"reportView.tab.basicData.label\"), new ReportBasicDataTab(report, binder, basicEditRight, tabComponentMap, addressServiceRef.get(), this));\r\n tabs.addTab(getTranslation(\"reportView.tab.forcesData.label\"), new ReportForcesTab(report, userNeedToPrepare, organizationServiceRef.get(), vechileServiceRef.get(), reportServiceRef.get()));\r\n fireEventTab = tabs.addTab(getTranslation(\"reportView.tab.fireEventData.label\"), fireEventTypeComponent);\r\n tabs.addTab(getTranslation(\"reportView.tab.authorizationData.label\"), new ReportAuthorizationTab(report, binder, userNeedToPrepare, (userNeedToPrepare || userNeedToApprove), tabs, tabComponentMap, organizationServiceRef.get(), reportServiceRef.get(), notificationServiceRef.get()));\r\n return tabs;\r\n }",
"public static void tab(String tab) {\n Formatting.indent = tab;\n }",
"private static void addPanel(MouseEvent evt, TabComponent tabComp, PlotPanel pnl) {\n EDACCPlotTabView tabView = new EDACCPlotTabView();\n tabView.setLocation(evt.getXOnScreen(), evt.getYOnScreen());\n if (tabViews.size() > 0) {\n tabView.setSize(tabViews.get(0).getSize());\n } else {\n tabView.updateTitle(\"\");\n }\n tabViews.add(tabView);\n tabComp.setParent(tabView);\n tabView.addPanel(tabComp, pnl);\n tabView.updateAdditionalInformations(pnl);\n tabView.updateTitle(pnl.getPlot().getPlotTitle());\n tabViewCountChanged();\n }",
"public void openTab(String tabName){\r\n\r\n\t\tTabView selectedTabView = new TabView(this);\r\n\t\ttabViews.add(selectedTabView);\r\n\t\t\r\n\t\t\r\n\t\tif(tabName == null){ // If a new tab..\r\n\t\t\t// Ensure that there isn't already a model with that name\r\n\t\t\twhile(propertiesMemento.getTabNames().contains(tabName) || tabName == null){\r\n\t\t\t\ttabName = \"New Model \" + newModelIndex;\r\n\t\t\t\tnewModelIndex++;\r\n\t\t\t}\r\n\t\t}\r\n logger.info(\"Adding tab:\" + tabName);\r\n\r\n\t\t// Just resizes and doesn't scroll - so don't need the scroll pane\r\n\t\t/*JScrollPane scrollPane = new JScrollPane(selectedTabView, \r\n \t\t\t\t\t\t\t\t JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, \r\n \t\t\t\t\t\t\t\t JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.getVerticalScrollBar().setUnitIncrement(20);\r\n tabbedPane.addTab(tabName, scrollPane);*/\r\n\r\n\t\ttabbedPane.addTab(tabName, selectedTabView);\r\n\r\n currentView = selectedTabView;\r\n tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);\r\n setTabName(tabName);\r\n\t\t\t\t\r\n tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\t new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));\r\n \r\n // Add Mouse motion Listener \r\n currentView.addMouseMotionListener(currentView);\r\n currentView.addMouseListener(currentView);\r\n\r\n // Record the tab in the memento\r\n propertiesMemento.addTabRecord(tabName);\r\n \r\n setTabButtons(true);\r\n \r\n setStatusBarText(\"Ready\");\r\n\r\n requestFocusInWindow();\r\n\t}",
"private void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }",
"private void initTabs()\n {\n updateDayTab();\n\n // Set initial time on time tab\n updateTimeTab();\n }",
"@Override\n\tpublic void removeTabAt(int position) {\n\t\t\n\t}",
"public TabPane createTabPane(TableauFrame parent) {\n\t\t\tTabPaneExtensionExample tpee = new TabPaneExtensionExample();\n\n\t\t\t/*\n\t\t\t * Optionally you can create a method called setTabName and use the\n\t\t\t * \"name\" value from the configuration.xml file by calling\n\t\t\t * this.getName(). For Example if you have <property\n\t\t\t * name=\"randomTestTab\"\n\t\t\t * class=\"org.kepler.gui.TabPaneExtensionExample$Factory\" /> in\n\t\t\t * configuration.xml then the name of the tab in the GUI becomes\n\t\t\t * randomTestTab\n\t\t\t */\n\t\t\ttpee.setTabName(this.getName());\n\n\t\t\treturn tpee;\n\t\t}",
"void setTabLength(int tabLength) {\n\tGC gc = getGC();\n\tStringBuffer tabBuffer = new StringBuffer(tabLength);\n\tfor (int i = 0; i < tabLength; i++) {\n\t\ttabBuffer.append(' ');\n\t}\n\ttabWidth = gc.stringExtent(tabBuffer.toString()).x;\n\tdisposeGC(gc);\n}",
"public void addSubTab(EntityType entityType, String label, String historyToken, String contentUrl,\n TabOptions options) {\n switch (entityType) {\n case DataCenter:\n addTab(DataCenterSubTabPanelPresenter.TYPE_RequestTabs,\n DataCenterSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Cluster:\n addTab(ClusterSubTabPanelPresenter.TYPE_RequestTabs,\n ClusterSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Host:\n addTab(HostSubTabPanelPresenter.TYPE_RequestTabs,\n HostSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Storage:\n addTab(StorageSubTabPanelPresenter.TYPE_RequestTabs,\n StorageSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Disk:\n addTab(DiskSubTabPanelPresenter.TYPE_RequestTabs,\n DiskSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case VirtualMachine:\n addTab(VirtualMachineSubTabPanelPresenter.TYPE_RequestTabs,\n VirtualMachineSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n case Template:\n addTab(TemplateSubTabPanelPresenter.TYPE_RequestTabs,\n TemplateSubTabPanelPresenter.TYPE_SetTabContent,\n label, historyToken, false, contentUrl, options);\n break;\n }\n }",
"public void addDirectory3(View view){\n\t\tcontrol(3);\n\t}",
"private void addChatTab(ChatPanel chatPanel)\n {\n ChatSession chatSession = chatPanel.getChatSession();\n String chatName = chatSession.getChatName();\n\n ChatPanel currentChatPanel = getCurrentChat();\n\n if (currentChatPanel == null)\n {\n this.mainPanel.add(chatPanel, BorderLayout.CENTER);\n }\n else if (getChatTabCount() == 0)\n {\n ChatSession firstChatSession = currentChatPanel.getChatSession();\n\n // Add first two tabs to the tabbed pane.\n chatTabbedPane.addTab( firstChatSession.getChatName(),\n firstChatSession.getChatStatusIcon(),\n currentChatPanel);\n\n chatTabbedPane.addTab( chatName,\n chatSession.getChatStatusIcon(),\n chatPanel);\n\n // When added to the tabbed pane, the first chat panel should\n // rest the selected component.\n chatTabbedPane.setSelectedComponent(currentChatPanel);\n\n //add the chatTabbedPane to the window\n this.mainPanel.add(chatTabbedPane, BorderLayout.CENTER);\n this.mainPanel.validate();\n }\n else\n {\n // The tabbed pane already contains tabs.\n\n chatTabbedPane.addTab(\n chatName,\n chatSession.getChatStatusIcon(),\n chatPanel);\n\n chatTabbedPane.getParent().validate();\n }\n }",
"@Override\n\tpublic Tab newTab() {\n\t\treturn null;\n\t}"
] |
[
"0.70048225",
"0.6840428",
"0.6640053",
"0.6622929",
"0.662043",
"0.6444349",
"0.64113957",
"0.63789463",
"0.6358721",
"0.63323957",
"0.6260171",
"0.62406945",
"0.6227377",
"0.62190515",
"0.60625386",
"0.6017993",
"0.59625155",
"0.59558636",
"0.5955161",
"0.5934383",
"0.5928285",
"0.59221447",
"0.5854724",
"0.5816364",
"0.58160186",
"0.5802616",
"0.5802251",
"0.580013",
"0.5768802",
"0.5746728",
"0.5746416",
"0.57194144",
"0.57189983",
"0.5712054",
"0.5700088",
"0.56951416",
"0.5693333",
"0.5683975",
"0.56704015",
"0.56683016",
"0.5661782",
"0.5654742",
"0.56352305",
"0.5625805",
"0.5620283",
"0.56152",
"0.5561801",
"0.5561468",
"0.5558566",
"0.5548329",
"0.5536049",
"0.55357265",
"0.55145425",
"0.5503639",
"0.54870164",
"0.5480263",
"0.5477227",
"0.5475479",
"0.54685265",
"0.545309",
"0.5452692",
"0.5449346",
"0.54374427",
"0.54145986",
"0.54136753",
"0.5407602",
"0.5401874",
"0.53880996",
"0.5364883",
"0.536014",
"0.535739",
"0.53546554",
"0.5339564",
"0.5322018",
"0.53194684",
"0.531413",
"0.5314114",
"0.5310035",
"0.5307197",
"0.5306905",
"0.5306353",
"0.5303098",
"0.52910274",
"0.5280987",
"0.52784586",
"0.5277031",
"0.5261646",
"0.52530515",
"0.5232661",
"0.5228017",
"0.5219864",
"0.52189124",
"0.521797",
"0.520928",
"0.5192544",
"0.51885",
"0.5183891",
"0.5181478",
"0.5179871",
"0.5178405",
"0.5168733"
] |
0.0
|
-1
|
Add the Save tab.
|
public void Add9(String s) {
// theFileChooser.setCurrentDirectory(new File("."));
// theFileChooser.setFileFilter(new CsvFileFilter());
// theFileChooser.setControlButtonsAreShown(false);
// theFileChooser.setDialogType(JFileChooser.SAVE_DIALOG);
// thePanel9.removeAll();
// thePanel9.add(theFileChooser, BorderLayout.CENTER);
// thePanel9.add(theSaveButton, BorderLayout.SOUTH);
// theFileChooser.addActionListener(this);
// theSaveButton.addActionListener(this);
// theTabbedPane.addTab(s, thePanel9);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void clickSaveFile(Editor editor, Tab tab) {\n editor.addSaveHandler(createClickSavaHandler(editor, tab));\n }",
"void saveSet() {\n if( file==null ) {\n int returnVal = fc.showSaveDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n }\n System.out.println(\"Saving to: \" + file.getName());\n try {\n int count = tabbedPane.getTabCount();\n ArrayList l = new ArrayList();\n for(int i=0; i< count; i++) {\n rrpanel= (RoombaRecorderPanel)tabbedPane.getComponentAt(i);\n l.add(rrpanel.copy());\n }\n FileOutputStream fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //oos.writeObject(loopButton);\n //oos.writeObject(\n oos.writeObject(l);\n oos.close();\n } catch( Exception e ) {\n System.out.println(\"Save error \"+e);\n }\n }",
"void doSaveAs() {\r\n\t\tMapOpenSaveDialog dlg = new MapOpenSaveDialog(true, labels, saveSettings);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.saveSettings != null) {\r\n\t\t\tsaveSettings = dlg.saveSettings;\r\n\t\t\tfinal String fn = dlg.saveSettings.fileName.getPath();\r\n\t\t\taddRecentEntry(fn);\r\n\t\t\tdoSave();\r\n\t\t}\r\n\t}",
"void onSaveClicked();",
"@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}",
"@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}",
"private void createSaveButton(final ToolBar bar) {\n createButton(bar, \"images/1328102005_Save.png\", \"Save\",\r\n new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent arg0) {\r\n final FileDialog fileDialog = new FileDialog(SHELL,\r\n SWT.SAVE);\r\n fileDialog.setText(\"Save Arena\");\r\n final String filename = fileDialog.open();\r\n if (filename != null) {\r\n fireSave(filename);\r\n }\r\n }\r\n });\r\n }",
"public void addNewTab() {\n int count = workspaceTabs.getComponentCount() + 1;\n String title = \"Workspace \" + count;\n WorkspacePanel panel = new WorkspacePanel(title);\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n workspaceTabs.addTab(panel).setCaption(title);\n }",
"public void clickOnSaveButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Save\"));\r\n\t}",
"public void addSaveBtnListener(ActionListener listenForSaveBtn){\n this.save.addActionListener(listenForSaveBtn);\n }",
"public Component saveButton() {\n saveButton = new JButton(\"Save\");\n setFocusable(false);\n return saveButton;\n }",
"public void makeSaveButton() {\r\n JButton save = new JButton(\"Save account details\");\r\n new Button(save, main);\r\n// save.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// save.setPreferredSize(new Dimension(2500, 100));\r\n// save.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n save.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n saveAccounts();\r\n displayMessage(\"Accounts saved to file\");\r\n }\r\n });\r\n// main.add(save);\r\n }",
"protected void addSaveCookie() {\n if (getLookup().lookup(SaveCookie.class) == null) {\n getCookieSet().add(this.saveCookie);\n }\n }",
"private void saveListener() {\n buttonPanel.getSave().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n toDoList.saveAll(fileLocation);\n }\n });\n }",
"protected void actionPerformedSave ()\n {\n Preferences rootPreferences = Preferences.systemRoot ();\n PreferencesTableModel rootPrefTableModel = new PreferencesTableModel (rootPreferences);\n rootPrefTableModel.syncSave ();\n Preferences userPreferences = Preferences.userRoot ();\n PreferencesTableModel userPrefTableModel = new PreferencesTableModel (userPreferences);\n userPrefTableModel.syncSave ();\n this.setVisible (false);\n this.dispose ();\n }",
"public void onSaveButtonClick(ActionEvent e){\n\t\tsaveFile(false);\n\t}",
"public void save() {\n savePrefs();\n }",
"private void createTabMenu(Tab tab, MenuItem saveItemTab) {\n Menu tabMenu = new Menu();\n MenuItem closeItem = new MenuItem(\"Close\");\n closeItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n tabCloseEvent(tab);\n }\n });\n MenuItem closeOtersItem = new MenuItem(\"Close Others\");\n closeOtersItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) != editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeLeftItem = new MenuItem(\"Close Tabs to the Left\");\n closeLeftItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) < editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeRightItem = new MenuItem(\"Close Tabs to the Right\");\n closeRightItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n if (editorTabSet.getTabNumber(closeTab.getID()) > editorTabSet.getTabNumber(tab.getID())) {\n tabCloseEvent(closeTab);\n }\n }\n }\n });\n MenuItem closeAllItem = new MenuItem(\"Close All\");\n closeAllItem.addClickHandler(new ClickHandler() {\n @Override\n public void onClick(MenuItemClickEvent event) {\n for (Tab closeTab : editorTabSet.getTabs()) {\n tabCloseEvent(closeTab);\n }\n }\n });\n MenuItemSeparator sep = new MenuItemSeparator();\n if (saveItemTab != null) {\n MenuItemIfFunction enableCondition = new MenuItemIfFunction() {\n public boolean execute(Canvas target, Menu menu, MenuItem item) {\n return tab == editorTabSet.getSelectedTab();\n }\n };\n\n saveItemTab.setEnableIfCondition(enableCondition);\n saveItemTab.setKeyTitle(\"Ctrl + S\");\n\n // If you use addItem, the association with the shortcut key is lost.\n tabMenu.setItems(saveItemTab, sep, closeItem, closeOtersItem, closeLeftItem, closeRightItem, sep, closeAllItem);\n } else {\n tabMenu.setItems(closeItem, closeOtersItem, closeLeftItem, closeRightItem, sep, closeAllItem);\n }\n tab.setContextMenu(tabMenu);\n }",
"private void addNewTab(SingleDocumentModel model) {\n\t\tString title = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().getFileName().toString();\n\t\tImageIcon icon = createIcon(\"icons/green.png\");\n\t\tJScrollPane component = new JScrollPane(model.getTextComponent());\n\t\tString toolTip = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().toAbsolutePath().toString();\n\t\taddTab(title, icon, component, toolTip);\n\t\tsetSelectedComponent(component);\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}",
"@UiHandler(\"save\")\n\tvoid onSaveClicked(ClickEvent evt) {\n\t\tScheduler.get().scheduleDeferred(new ScheduledCommand() {\n\t\t\t@Override\n\t\t\tpublic void execute() {\n\t\t\t\tpresenter.save();\n\t\t\t}\n\t\t});\n\t}",
"@FXML\n\tpublic void saveFile() {\n\t\tif (file == null) {\n\t\t\tFileChooser saveFileChooser = new FileChooser();\n\t\t\tsaveFileChooser.setInitialDirectory(userWorkspace);\n\t\t\tsaveFileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text doc(*.txt)\", \"*.txt\"));\n\t\t\tfile = saveFileChooser.showSaveDialog(ap.getScene().getWindow());\n\t\t}\n\n\t\tif (file.getName().endsWith(\".txt\")) {\n\t\t\ttry {\n\t\t\t\tfilePath = file.getAbsolutePath();\n\t\t\t\tStage primStage = (Stage) ap.getScene().getWindow();\n\t\t\t\tprimStage.setTitle(filePath);\n\t\t\t\tTab tab = tabPane.getSelectionModel().getSelectedItem();\n\t\t\t\ttab.setId(filePath);\n\t\t\t\ttab.setText(file.getName());\n\n\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\t\t\tPrintWriter output = new PrintWriter(writer);\n\t\t\t\toutput.write(userText.getText());\n\t\t\t\toutput.flush();\n\t\t\t\toutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(file.getName() + \" has no valid file-extenstion.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }",
"@FXML\n\tprivate void onSaveClicked(){\n\t\tPrintWriter writer = null;\n\t\ttry {\n\t\t\tFile file = new File(\"log.txt\");\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\twriter = new PrintWriter(bw);\n\t\t\twriter.println(\"New record\");\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\twriter.println(list.get(i) +\" & \"+ (dat.get(i)));\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\ttextArea.setText(\"Exception occurred:\" + ioe.getMessage());\n\t\t} finally {\n\t\t\tif (writer != null) {\n\t\t\t\twriter.close();\n\t\t\t}\n\t\t}\n\n\t}",
"private static void addSaves(Document document, Element root, ISaveConfiguration save) {\n appendNodeAndText(document, root, PHASE, save.getCurrentPhase());\n appendNodeAndText(document, root, GAME, save.getGameName());\n appendNodeAndText(document, root, FILE, save.getRulePath());\n appendNodeAndText(document, root, SCORE, \"\" + save.getScore());\n\n root.appendChild(buildCells(document, save));\n }",
"void handleSaveClicked(ActionEvent event);",
"public void save() throws Exception {\n\t\tgetControl(\"saveButton\").click();\n\t\tVoodooUtils.pause(3000);\n\t}",
"public void clickOnSave() {\r\n\t\telement(saveButton).waitUntilVisible();\r\n\t\tsaveButton.click();\r\n\t}",
"public void addTab (String tabname, boolean closeable, Widget widget, final String key) {\n\n\n\t\tPanel localTP = new Panel();\n\t\tlocalTP.setClosable(closeable);\n\t\tlocalTP.setTitle(tabname);\n\t\tlocalTP.setId(key + id);\n\t\tlocalTP.setAutoScroll(true);\n\t\tlocalTP.add(widget);\n\n\t\ttp.add(localTP, this.centerLayoutData);\n\n\t\tlocalTP.addListener(new PanelListenerAdapter() {\n\n\t\t\tpublic void onDestroy(Component component) {\n\t\t\t\topenedTabs.remove(key);\n\t\t\t}\n\t\t});\n\n\n\t\ttp.activate(localTP.getId());\n\n\n\n\n\t\topenedTabs.put(key, localTP);\n\t}",
"private void addScheduleTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n SessionsExpandableListActivity.CHILD_MODE_VISIBLE_TRACKS);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_SCHEDULE);\n spec.setIndicator(mResources.getString(R.string.schedule), mResources\n .getDrawable(R.drawable.ic_tab_schedule));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"private void saveAsButton(){\n SaveAsLabNameTextField.setText(\"\");\n SaveAsErrorLabel.setVisible(false);\n SaveAsDialog.setVisible(true);\n }",
"private void handleMenuSave() {\n String initialDirectory = getInitialDirectory();\n String initialFileName = getInitialFilename(Constants.APP_FILEEXTENSION_SPV);\n File file = FileChooserHelper.showSaveDialog(initialDirectory, initialFileName, this);\n\n if (file == null) {\n return;\n }\n\n handleFileStorageFactoryResult(controller.saveFile(file.getAbsolutePath()));\n }",
"ActionSave(final boolean saveAs)\n {\n super(\"Save\" + (saveAs\n ? \" as\"\n : \"\"));\n this.saveAs = saveAs;\n this.setShortcut(UtilGUI.createKeyStroke('S', true, false, this.saveAs));\n }",
"private void save()\n\t{\n\t\t//get the text\n\t\tString spssTxt = spssText.getText();\n\t\t//save it to a JS place where Java can find it\n\t\tsaveToJS(spssTxt);\n\t\t//make up a file name\n\t\tString fileName = form.getText().replace(\" \", \"_\").replace(\"\\\\\", \"\").replace(\"/\",\"\").replace(\"*\", \"\").replace(\"\\\"\", \"\")\n\t\t\t\t.replace(\"<\", \"\").replace(\">\", \"\").replace(\"#\", \"\").replace(\"'\", \"\") + \".spss\";\t\t\n\t\t\n\t\t\n\t\t\n\t\tappletHtml.setHTML(\"<APPLET codebase=\\\"fileioapplets/\\\"+\" +\n\t\t\t\t\" archive=\\\"kobo_fileIOApplets.jar, plugin.jar\\\" \"+\n\t\t\t\t\" code=\\\"org.oyrm.kobo.fileIOApplets.ui.FileSaveApplet.class\\\" \"+\n\t\t\t\t\" width=\\\"5\\\" HEIGHT=\\\"5\\\" MAYSCRIPT> \"+\n\t\t\t\t\"<param name=\\\"formName\\\" value=\\\"\"+fileName+\"\\\"/>\"+\n\t\t\t\t\"<param name=\\\"save\\\" value=\\\"\"+LocaleText.get(\"SaveSPSSFile\")+\"\\\"/>\"+\n\t\t\t\t\"</APPLET>\");\n\t}",
"public void saveAndCreateNew() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"saveAndCreateNew\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}",
"@Override\n\tpublic void addTab(Tab tab, int position) {\n\t\t\n\t}",
"public void saveAs() {\n editorManager.currentFileManager().saveAs();\n mimaUI.fileChanged();\n }",
"@Override\n public void onCanvasSaved(final Save save) {\n this.savesfragment.addSave(save);\n String message = getString(R.string.savedmessage) + (!dualpane ? \"\\n\"+getString(R.string.longpresssavemessage) : \"\");\n Toast.makeText(TemplateActivity.this, message, Toast.LENGTH_SHORT).show();\n }",
"public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }",
"public void onMenuSave() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n onMenuSaveAs();\n return;\n }\n\n handleFileStorageFactoryResult(controller.saveFile(lastSavedPath));\n }",
"public void saveFile() {\t\n\t\tString fileloc = \"\";\n\t\tif(!prf.foldername.getText().equals(\"\"))\n\t\t\tfileloc += prf.foldername.getText()+\"/\";\n\t\tfileloc += ((MinLFile) tabbedPane.getSelectedComponent()).filename;;\t\t\n\t\tFile fl = new File(fileloc);\n\t\t\n\t\ttry {\n\t\t\tif(fl.exists()) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"The file with this name already exists, do you want to overwrite it?\", \"Save File\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tFiles.delete(fl.toPath());\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\t\tbw.close();\n\t\t\t\t\t\tfw.close();\n\t\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The specified folder doesnt exist.\");\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void onClickButtonSaveAndCreateAnother() {\n if (onClickButtonSave()) {\n startActivity(getIntent());\n }\n }",
"private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"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 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 menuItemSaveListener(ActionListener e){\r\n menuItemSave.addActionListener(e);\r\n }",
"public void addVehicleSaveButton() {\r\n\t\tsafeJavaScriptClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-col-24 button.ant-btn.ant-btn-primary\"));\r\n\t}",
"public void save() {\t\n\t\n\t\n\t}",
"private void saveCurrentFile(String file) {\r\n\t\tJTextArea editor = getSelectedTextArea();\r\n\t\tPath path = Paths.get(file);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFiles.write(path, editor.getText().getBytes(StandardCharsets.UTF_8));\r\n\t\t} catch (Exception ex) {\r\n\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tJNotepadApp.this,\r\n\t\t\t\t\tflp.getString(\"saveError\"),\r\n\t\t\t\t\tflp.getString(\"error\"),\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\tJNotepadApp.this,\r\n\t\t\t\tflp.getString(\"saved\"),\r\n\t\t\t\t\"Info\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\r\n\t\tchangeCurrentIcon(greenIcon);\r\n\t\t\r\n\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\ttabbedPane.setToolTipTextAt(index, path.toString());\r\n\t\ttabbedPane.setTitleAt(index, path.getFileName().toString());\r\n\t\t\r\n\t\tfor (ChangeListener l : tabbedPane.getChangeListeners()) {\r\n\t\t\tl.stateChanged(new ChangeEvent(tabbedPane));\r\n\t\t}\r\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}",
"private void saveFile() {\n\t\ttry {\n\t\t\tFile file = jfc.getSelectedFile();\n\t\t\tint c = -1;\n\t\t\tif(file==null)\n\t\t\t{\n\t\t\t\tc = jfc.showSaveDialog(this);\n\t\t\t}\n\t\t\t\n\n\t\t\tif(file!= null || c ==0)\n\t\t\t{\t\n\t\t\t\tFileWriter fw = new FileWriter(jfc.getSelectedFile());\n\t\t\t\tfw.write(jta.getText());\n\t\t\t\tfw.close();\n\t\t\t\tSystem.out.println(\"파일을 저장하였습니다\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t} catch (Exception e2) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e2.getMessage());\n\t\t}\n\t}",
"public void saveHistory() {\r\n\t\tJFileChooser jfc = new JFileChooser();\r\n\t\tjfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\tjfc.setDialogTitle(\"Save \" + curveName + \" history\");\r\n\t\tjfc.setSelectedFile(new File(\".txt\"));\r\n\t\tint returnVal = jfc.showSaveDialog(getRootPane());\r\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tif (!cancelBecauseFileExist(jfc.getSelectedFile())) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\thistory.save(jfc.getSelectedFile());\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Error while saving the history\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void save(final Widget widget);",
"@Override\n\tpublic void addTab(Tab tab, boolean setSelected) {\n\t\t\n\t}",
"public ActionSaveAs() {\r\n putValue(SMALL_ICON, IconFactory.get().create(\"fa:floppy-o\"));\r\n Messages.get().message(\"saveAs\").subscribe((msg) -> {\r\n putValue(NAME, msg);\r\n });\r\n }",
"public void save() {\n }",
"private void addTracksTab() {\n Intent intent = new Intent(this, SessionsExpandableListActivity.class);\n intent.setData(Blocks.CONTENT_URI);\n //intent.putExtra(SessionsExpandableListActivity.EXTRA_CHILD_MODE,\n // SessionsExpandableListActivity.CHILD_MODE_STARRED);\n \n TabSpec spec = mTabHost.newTabSpec(TAG_TWITTER);\n spec.setIndicator(mResources.getString(R.string.tracks), mResources\n .getDrawable(R.drawable.ic_menu_archive));\n spec.setContent(intent);\n \n mTabHost.addTab(spec);\n }",
"public void addTab(Tab tab)\n\t{\n\t\ttabs.add(tab);\n\t}",
"void saveAs() {\n writeFile.Export();\n }",
"private void addSaveAsMenuItem(Menu menu) {\n\t\tfinal MenuItem menuItem = new MenuItem(menu, SWT.Activate);\n\t\tmenuItem.setText(E4WorkbenchCommandConstants.PERSPECTIVES_SAVE_AS$_NAME);\n\n\t\t// TODO: Integrate into help system\n\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent event) {\n\t\t\t\tfinal ParameterizedCommand command = commandService\n\t\t\t\t\t\t.createCommand(E4WorkbenchCommandConstants.PERSPECTIVES_SAVE_AS, Collections.EMPTY_MAP);\n\t\t\t\thandlerService.executeHandler(command);\n\t\t\t}\n\t\t});\n\t}",
"public void saveClicked()\n {\n String name = nameText.getText().toString();\n if(name.length() == 0)\n {\n showMessage(\"Name cannot be empty!\");\n return;\n }\n // create a new record;\n Record r = new Record(name, timeUsed, shapeMissed);\n Intent intent = new Intent(this, RankScore.class);\n intent.putExtra(\"record\", r);\n startActivityForResult(intent, 1, null);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSave();\n\t\t\t}",
"public JButton getJbSave() {\n\t\tif(jbSave==null){\n\t\t\tjbSave = new JButton(\"Saves\");\n\t\t\tDimension dim = new Dimension(150,30);\n\t\t\tjbSave.setPreferredSize(dim);\n\t\t\tjbSave.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\tjbSave.addMouseListener(new MouseListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\tjbSave.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\tjbSave.setBackground(ColorProject.COLOR_BLUE.getCol().brighter());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t}\n\t\t\t});\n\t\t\tjbSave.addActionListener(new ActionListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tPanelAdmin pa =(PanelAdmin)SwingUtilities.getAncestorOfClass(PanelAdmin.class, PanelAdminButton.this);\n\t\t\t\t\tpa.getPanelCenterAdmin().getCl().show(pa.getPanelCenterAdmin(), \"save\");\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jbSave;\n\t}",
"private void showSaveAndAdd() {\n\t\tButton saveButton = (Button) findViewById(R.id.b_recipeSave);\n\t\tButton addButton = (Button) findViewById(R.id.bNewIngredient);\n\t\tsaveButton.setVisibility(1);\n\t\taddButton.setVisibility(1);\n\t}",
"public void onMenuSaveAs() {\n handleMenuSave();\n }",
"public void onSaveButtonClicked() {\n String description = mEditText.getText().toString();\n Date date = new Date();\n\n final DiaryEntry entry = new DiaryEntry(description, date);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n if (mEntryId == DEFAULT_ENTRY_ID) {\n // insert new task\n mDb.entryDao().insertEntry(entry);\n } else {\n //update task\n entry.setId(mEntryId);\n mDb.entryDao().updateEntry(entry);\n }\n finish();\n }\n });\n }",
"public void fileSave()\n {\n try\n {\n // construct the default file name using the instance name + current date and time\n StringBuffer currentDT = new StringBuffer();\n try {\n currentDT = new StringBuffer(ConnectWindow.getDatabase().getSYSDate());\n }\n catch (Exception e) {\n displayError(e,this) ;\n }\n\n // construct a default file name\n String defaultFileName;\n if (ConnectWindow.isLinux()) {\n defaultFileName = ConnectWindow.getBaseDir() + \"/Output/RichMon \" + instanceName + \" \" + currentDT.toString() + \".html\";\n }\n else {\n defaultFileName = ConnectWindow.getBaseDir() + \"\\\\Output\\\\RichMon \" + instanceName + \" \" + currentDT.toString() + \".html\";\n }\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setSelectedFile(new File(defaultFileName));\n File saveFile;\n BufferedWriter save;\n\n // prompt the user to choose a file name\n int option = fileChooser.showSaveDialog(this);\n if (option == JFileChooser.APPROVE_OPTION)\n {\n saveFile = fileChooser.getSelectedFile();\n\n // force the user to use a new file name if the specified filename already exists\n while (saveFile.exists())\n {\n JOptionPane.showConfirmDialog(this,\"File already exists\",\"File Already Exists\",JOptionPane.ERROR_MESSAGE);\n option = fileChooser.showOpenDialog(this);\n if (option == JFileChooser.APPROVE_OPTION)\n {\n saveFile = fileChooser.getSelectedFile();\n }\n }\n save = new BufferedWriter(new FileWriter(saveFile));\n saveFile.createNewFile();\n\n // create a process to format the output and write the file\n try {\n OutputHTML outputHTML = new OutputHTML(saveFile,save,\"Database\",databasePanel.getResultCache());\n outputHTML.savePanel(\"Performance\",performancePanel.getResultCache(),null);\n// outputHTML.savePanel(\"Scratch\",scratchPanel.getResultCache(),scratchPanel.getSQLCache());\n\n JTabbedPane scratchTP = ScratchPanel.getScratchTP();\n \n for (int i=0; i < scratchTP.getComponentCount(); i++) {\n try {\n System.out.println(\"i=\" + i + \" class: \" + scratchTP.getComponentAt(i).getClass());\n if (scratchTP.getComponentAt(i) instanceof ScratchDetailPanel) {\n ScratchDetailPanel t = (ScratchDetailPanel)scratchTP.getComponentAt(i);\n System.out.println(\"Saving: \" + scratchTP.getTitleAt(i));\n outputHTML.savePanel(scratchTP.getTitleAt(i), t.getResultCache(), t.getSQLCache());\n }\n } catch (Exception e) {\n // do nothing \n }\n }\n }\n catch (Exception e) {\n displayError(e,this);\n }\n\n // close the file\n save.close();\n }\n }\n catch (IOException e)\n {\n displayError(e,this);\n }\n }",
"private void menuSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuSaveActionPerformed\n saveDataToFile();\n }",
"public void addButtonSaveListener(ActionListener buttonListener) {\n buttonSave.addActionListener(buttonListener);\n }",
"private JButton getSaveButton() {\r\n\t\tif (saveButton == null) {\r\n\t\t\tsaveButton = new JButton();\r\n\t\t\tsaveButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/saveFile.png\")));\r\n\t\t\tsaveButton.setToolTipText(\"保存\");\r\n\t\t\tsaveButton.addActionListener(new ActionListener(){\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tif(file == null){\r\n\t\t\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t\t chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);//设置选择模式,既可以选择文件又可以选择文件夹\r\n\t\t\t\t\t\tString fileFormat[] = { \"txt\" };\r\n\t\t\t\t\t\tFileFilter filter = new FileNameExtensionFilter( \"TXT文件\",fileFormat);\r\n\t\t\t\t chooser.setFileFilter(filter);//设置文件后缀过滤器\r\n\t\t\t\t int retval = chooser.showOpenDialog(null);//显示\"保存文件\"对话框\r\n\t\t\t\t if(retval == JFileChooser.APPROVE_OPTION) {//若成功打开\r\n\t\t\t\t \tfile = chooser.getSelectedFile();//得到选择的文件名\r\n\t\t\t }\r\n\t\t\t\t\t\tif(file == null){\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t OutputStream os;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tos = new FileOutputStream(file);\r\n\t\t\t\t\t byte[] b = content.getBytes();\r\n\t\t\t\t\t os.write(b);\r\n\t\t\t\t\t os.flush();\r\n\t\t\t\t\t os.close();\r\n\t\t\t\t\t} catch (FileNotFoundException e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e2) {\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn saveButton;\r\n\t}",
"@FXML\n public void saveFile(Event e) {\n String outputData = output.getText();\n\n File file = chooser.showSaveDialog(save.getScene().getWindow());\n\n if(file != null) {\n createFile(outputData, file);\n }\n }",
"private void savedDialog() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"Changes to the current recipe have been saved.\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Success\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}",
"@Override\n\tpublic void addTab(Tab tab, int position, boolean setSelected) {\n\t\t\n\t}",
"public void saveFile(){\n returnValue = this.showSaveDialog(null);\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n new CustomerFileWriter(new File(this.getSelectedFile().getAbsolutePath())).saveCustomer(Bank.customer);\n }\n }",
"void save_to_file() {\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a save directory\", FileDialog.SAVE);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"save path: \" + file_withpath);\n\t\t\t \n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file_withpath));\n\n\t\t\tout.writeObject(Key_Lists);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\tinfo_label.setForeground(green);\n\t\t\tinfo_label.setText(\"file saved :D\");\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\t\n\t}",
"private void addTab(String title, File file, String contents) {\n \tTextPane newTextPane = new TextPane(parentFrame,TextPane.getProperties(false), false);\r\n\r\n \t// 2nd create the tab\r\n \tStyledTab tab = new StyledTab(title);\r\n \tTextPaneTab paneTab = new TextPaneTab(file, newTextPane, tab);\r\n\r\n \t// 3rd add contents if any\r\n \tif (contents != null) {\r\n \t\tnewTextPane.getBuffer().insert(0, contents);\r\n \t\tnewTextPane.setCaretPosition(0);\r\n \t\tpaneTab.setModified(false);\r\n \t}\r\n\r\n \t// 4th add new TextPaneTab\r\n \tpanes.add(paneTab);\r\n\r\n \t// 5th create the pane and add it to manager\r\n \tJPanel pane = new JPanel();\r\n \tpane.setLayout(new BorderLayout());\r\n\t\tJPanel textPaneContainer = new JPanel();\r\n\t\ttextPaneContainer.setBorder(BorderFactory.createLineBorder(new Color(102, 102, 102), 1));\r\n\t\ttextPaneContainer.setLayout(new BorderLayout());\r\n\t\ttextPaneContainer.add(newTextPane, BorderLayout.CENTER);\r\n \tpane.add(textPaneContainer, BorderLayout.CENTER);\r\n \tpane.add(makePrgButtonPanel(), BorderLayout.EAST);\r\n \tint index = getTabCount()-1;\r\n \tinsertTab(title, null, pane, null, index);\r\n \tsetTabComponentAt(index,tab);\r\n \tif (!file.isDirectory())\r\n \t\tsetToolTipTextAt(index, file.getAbsolutePath());\r\n }",
"@Override\n\tpublic void doSaveAs() {\n\t\tMessageDialog.openInformation(Display.getCurrent().getActiveShell(), null,\"doSaveAs\");\n\t}",
"public void executeSaveAction(Editor editor, Tab tab, PostProcessHandler handler) {\n Long ref = tab.getAttributeAsLong(\"ref\");\n editResourceService.getVMFile(ref, new AsyncCallback<VMFile>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(VMFile result) {\n if (result == null) {\n SC.warn(\"File not found.\");\n return;\n }\n if (result.getExtension() == Extension.TXT || result.getExtension() == Extension.LSC || result.getExtension() == Extension.CSC) {\n editResourceService.saveTextFile(result.getId(), ((TextEditor) editor).getValue(), projectId, new AsyncCallback<Void>() {\n @Override\n public void onSuccess(Void result) {\n editor.setSavedPosition();\n setDirtyFlagToTabTitle(tab);\n if (handler != null) {\n handler.execute();\n }\n }\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n });\n } else if (result.getExtension() != null) {\n AbstractRootElement root = editor.getRoot();\n BinaryResourceImpl r = new BinaryResourceImpl();\n r.getContents().add(root);\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n try {\n r.save(outputStream, null);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n byte[] bytes = outputStream.toByteArray();\n editResourceService.saveFile(result.getId(), bytes, new AsyncCallback<Void>() {\n @Override\n public void onSuccess(Void result) {\n editor.setSavedPosition();\n setDirtyFlagToTabTitle(tab);\n if (handler != null) {\n handler.execute();\n }\n }\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n });\n } else {\n editResourceService.saveTextFile(result.getId(), ((TextEditor) editor).getValue(), projectId, new AsyncCallback<Void>() {\n @Override\n public void onSuccess(Void result) {\n editor.setSavedPosition();\n setDirtyFlagToTabTitle(tab);\n if (handler != null) {\n handler.execute();\n }\n }\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n });\n }\n }\n });\n }",
"private void saveJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveJMenuItemActionPerformed\n //save the current points\n myWriter.saveToFile(FILE_PATH, namesArray, tempArray);\n }",
"void writeToFile() throws IOException{\n\t\tString fileName = f.getTitle() + \".txt\";\n\t\tfileWrite = new BufferedWriter( new FileWriter(fileName));\n\t\tfileWrite.write(history);\n\t\tSystem.out.println(fileName + \" File Writing Successful!!\");\n\t\tSystem.out.println(\"Data in file :\\n\" + history);\n\t\tfileWrite.flush();\n\t\tFile file = new File(fileName);\n\t\tjava.awt.Desktop.getDesktop().open(file);\n\n\t}",
"public void onSaveActionPressed() {\n navigateInFlow(LYSStep.Photos);\n }",
"private void tabCloseEvent(Tab tab) {\n final String tabName = tab.getAttributeAsString(\"TabName\");\n final Editor editor = (Editor) tab.getAttributeAsObject(EDITOR);\n\n if (editor != null && editor.isChanged()) {\n final Dialog dialog = new Dialog();\n dialog.setIsModal(true);\n dialog.setShowModalMask(true);\n dialog.setCanDrag(true);\n dialog.setCanDragReposition(true);\n dialog.setTitle(\"Save File\");\n dialog.setMessage(\"Save changes in '\" + tabName + \"'?\");\n dialog.setIcon(\"[SKIN]ask.png\");\n dialog.addCloseClickHandler(e -> dialog.markForDestroy());\n Button dialogSave = new Button(\"Save\");\n Button dialogDontSave = new Button(\"Don't Save\");\n Button dialogCancel = new Button(\"Cancel\");\n dialogSave.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {\n @Override\n public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {\n editor.save(ModelingProjectView.this, editor, tab, new PostProcessHandler() {\n @Override\n public void execute() {\n editorTabSet.selectTab(tab);\n tab.getTabSet().removeTab(tab);\n tabRegs.get(tab.getID()).removeHandler();\n }\n });\n dialog.markForDestroy();\n }\n });\n dialogDontSave.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {\n @Override\n public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {\n editorTabSet.selectTab(tab);\n tab.getTabSet().removeTab(tab);\n tabRegs.get(tab.getID()).removeHandler();\n dialog.markForDestroy();\n }\n });\n dialogCancel.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {\n @Override\n public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {\n dialog.markForDestroy();\n }\n });\n dialog.setButtons(dialogSave, dialogDontSave, dialogCancel);\n dialog.draw();\n } else {\n tab.getTabSet().removeTab(tab);\n tabRegs.get(tab.getID()).removeHandler();\n }\n }",
"public void add(TabLike tab){\n TabLabel btn = tabLabelCreator.create(tab.getName(), this);\n\n tab.setVisible(tabs.isEmpty());\n btn.setDisable(tabs.isEmpty());\n if (tabs.isEmpty()){\n selected = btn;\n }\n\n tabs.add(tab);\n nameTab.getChildren().add(btn);\n tabContent.getChildren().add(tab);\n tab.setContainer(this);\n }",
"public void clickAddButtonInStockTab(){\r\n\t\t\r\n\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-border-layout-ct') and not(contains(@class,'x-hide-display'))]//div[contains(@class,'x-panel-bbar')]//button[contains(text(),'Add..')]\").click();\r\n\t\t\r\n\t\t//McsElement.getElementByAttributeValueAndParentElement(driver, \"div\", \"@class\", \"x-panel-bbar\", \"button\", \"text()\", \"Add...\", true, true).click();\r\n\t\t\r\n\t\tReporter.log(\"Clicked on Add button in Stock Tab\", true);\r\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 }",
"private void saveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveActionPerformed\n toSave();\n }",
"protected void addTab(Tab tab) {\n mUi.addTab(tab);\n }",
"@Override\n public void Save() {\n\t \n }",
"public static void saveAs(){\n\t\tFile saveFile;\n\t\tJFileChooser saveChooser = new JFileChooser();\n\t\tFileNameExtensionFilter saveFilter = new FileNameExtensionFilter(\"Sensormap Files (.stuff)\", \"stuff\");\n\t\tFileNameExtensionFilter saveFilter2 = new FileNameExtensionFilter(\"Gzipped Sensormap Files (.stuff.gz)\", \"stuff.gz\");\n\t\tsaveChooser.setFileFilter(saveFilter);\n\t\tsaveChooser.setFileFilter(saveFilter2);\n\t\tint saveReturnVal = saveChooser.showSaveDialog(ControlPanelFrame.getFrame());\n\t\tif(saveReturnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tif(saveChooser.getFileFilter() == saveFilter && saveChooser.getSelectedFile().getName().endsWith(\".stuff\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff\");\n\t\t\t} else if(saveChooser.getFileFilter() == saveFilter2 && saveChooser.getSelectedFile().getName().endsWith(\".stuff.gz\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff.gz\");\n\t\t\t} else {\n\t\t\t\tsaveFile = saveChooser.getSelectedFile();\n\t\t\t}\n\t\t\tXMLSaver.saveSensorList(saveFile);\n\t\t\tGUIReferences.viewPort.halfTitle = saveFile.getName();\n\t\t\tGUIReferences.viewPort.setTitle(saveFile.getName());\n\t\t\tGUIReferences.currentFile = saveFile;\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t}\n\t}",
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"@FXML\n private void saveFile() {\n FileHandler.saveFileData(stage, dRegister);\n }",
"private void jButton_SaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_SaveActionPerformed\n // TODO add your handling code here:\n saveToFile();\n //new FittingCriteria(this.digPopGUIInformation, this.currentMarkovChainId).setVisible(true);\n new StepThree(this.digPopGUIInformation).setVisible(true);\n dispose();\n }",
"HasClickHandlers getSaveButton();",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\tmenu.add(MENU_ANSWERSHEET, SAVE, 0, R.string.lbl_menu_save);\n\n\t\treturn true;\n\t}",
"public static void save(){\n\t\tif(GUIReferences.currentFile != null) {\n\t\t\txml.XMLSaver.saveSensorList(GUIReferences.currentFile);\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t} else {\n\t\t\tsaveAs();\n\t\t}\n\t}",
"public void setupFrameSaveFeature() {\r\n\t\tfrmMfhEmailer.addWindowListener(new WindowListener() {\r\n\t\t\tpublic void windowOpened(WindowEvent e) {}\r\n\t\t\tpublic void windowIconified(WindowEvent e) {}\r\n\t\t\tpublic void windowDeiconified(WindowEvent e) {}\r\n\t\t\tpublic void windowDeactivated(WindowEvent e) {\t}\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\r\n\t\t\t\t//dblogic.save();\r\n\t\t\t}\r\n\t\t\tpublic void windowClosed(WindowEvent e) {\t}\r\n\t\t\tpublic void windowActivated(WindowEvent e) {\t}\r\n\t\t});;\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsaveFile();\n\t\t\t}",
"void save(JournalPage page);",
"@Override\n public void addTab(String title, Component component) {\n this.addTab(title, null, component, null, null);\n }",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }"
] |
[
"0.68164235",
"0.63112575",
"0.62924504",
"0.6269359",
"0.62509906",
"0.61960614",
"0.60745764",
"0.5986274",
"0.5961428",
"0.5961004",
"0.59607804",
"0.5929525",
"0.591305",
"0.5903476",
"0.5877616",
"0.5855774",
"0.58321494",
"0.58200055",
"0.58132297",
"0.5806771",
"0.57879615",
"0.57665783",
"0.5762576",
"0.5754801",
"0.57468903",
"0.5721062",
"0.5714592",
"0.57144725",
"0.5714041",
"0.57016486",
"0.569974",
"0.5693357",
"0.56904024",
"0.56888646",
"0.5688666",
"0.56817734",
"0.5670971",
"0.56597245",
"0.5650551",
"0.56256247",
"0.5617847",
"0.561389",
"0.56107885",
"0.5596074",
"0.5592815",
"0.55762345",
"0.5571114",
"0.55693406",
"0.5563847",
"0.5552014",
"0.5538642",
"0.5532391",
"0.55248576",
"0.5518986",
"0.55189747",
"0.5517926",
"0.5515434",
"0.550425",
"0.54969805",
"0.54835165",
"0.54778415",
"0.5467462",
"0.54630256",
"0.5457408",
"0.5455296",
"0.54536825",
"0.5449773",
"0.5449305",
"0.5444272",
"0.544396",
"0.5436376",
"0.5435831",
"0.542299",
"0.5419826",
"0.54161984",
"0.54146934",
"0.54144216",
"0.5414135",
"0.5410625",
"0.5406391",
"0.5396998",
"0.5396953",
"0.53920585",
"0.5386732",
"0.53850496",
"0.5380546",
"0.53779984",
"0.5371445",
"0.53633714",
"0.5360178",
"0.53598225",
"0.53514963",
"0.5336572",
"0.53345716",
"0.53292847",
"0.53266346",
"0.532418",
"0.5323743",
"0.5323682",
"0.53210753"
] |
0.5992376
|
7
|
Return whether the ith item on the first tab is selected.
|
public boolean IsSelected0(int i) {
return theSelected0[i];
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}",
"public abstract boolean isIndexSelected(int i);",
"public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex == index);\r\n }",
"public boolean isIndexSelected(int idx) {\n return getElement().isIndexSelected(idx);\n }",
"public boolean isSelected() { \n \treturn selection != null; \n }",
"public boolean IsSelected3(int i) {\n\t\treturn theSelected3[i];\n\t}",
"public boolean isSelectedIndex(int index) {\n\t\t\treturn tablecolselectmodel.isSelectedIndex(index);\n\t\t}",
"public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}",
"public boolean isAutoSelectEnabled() {\n \t\treturn selectsFirstItem;\n \t}",
"public boolean item(int i) {\n\t\treturn x[i] == 1;\n\t}",
"public boolean IsSelected2(int i) {\n\t\treturn theSelected2[i];\n\t}",
"public boolean isTileSelected() {\n return selectedTile != null;\n }",
"public boolean getSelected()\n {\n return selected; \n }",
"public boolean isSelected() {\n \t\treturn selected;\n \t}",
"public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}",
"public abstract boolean hasSelection();",
"public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}",
"public boolean isSelected() {\r\n return selected;\r\n }",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean isSelected()\n {\n return selected;\n }",
"public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}",
"public boolean isSelected() { return selected; }",
"public int getFirstVisibleTab() {\n\t\treturn 0;\n\t}",
"public boolean isSelected();",
"public boolean isSelected();",
"public boolean isSelected(PortalSiteRequestContext context)\n {\n // menu is selected if a selected element exists\n return (getSelectedElement(context) != null);\n }",
"public boolean isSelected() \n {\n return selected;\n }",
"private static boolean tabExist(TabPane tabpane, Tab tab, int tabSize) {\n for (int i = 0; i < tabSize; i++) {\n\n if (tab.getId().equals(tabpane.getTabs().get(i).getId())) {\n tabselect = i;\n return true;\n }\n }\n return false;\n }",
"private boolean featureSelectStatus(int index) {\n if (featureCollection == null) {\n return false;\n }\n\n return featureCollection.features().get(index).getBooleanProperty(PROPERTY_SELECTED);\n }",
"boolean hasItemIndex();",
"boolean hasItemIndex();",
"boolean hasItemIndex();",
"public boolean isMultiSelection()\n {\n return multiSelection;\n }",
"public boolean isSelectionChanged();",
"public boolean isSelected(){\r\n return selected;\r\n }",
"public CTabItem getSelection() {\n checkWidget();\n CTabItem result = null;\n if( selectedIndex != -1 ) {\n result = ( CTabItem )itemHolder.getItem( selectedIndex );\n }\n return result;\n }",
"private int getSelected(List<ObjectParsing.Options> list){\n int position=0,i=0;\n for (ObjectParsing.Options options:\n list) {\n if(options.getSelected()!=null && options.getSelected().equals(\"true\")){\n position=i;break;\n }i++;\n }\n return position;\n }",
"public boolean isTabActive() {\n return getElement(container + tabLink).getAttribute(\"class\").contains(\"active\");\n }",
"private boolean isSameRow(int firstVisibleItem) {\n return firstVisibleItem == mPreviousFirstVisibleItem;\n }",
"public boolean isSelected() {\n return (state & STATE_SELECTED) != 0;\n }",
"private boolean isCurrent(){\n return (getPageTitle().size() > 0);\n }",
"public Piece firstSelected()\n {\n return firstSelected;\n }",
"private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }",
"public boolean hasSelectedTile()\r\n\t{\r\n\t\treturn (selectedTile != null);\r\n\t}",
"@Override\n public boolean isValid() {\n return getComponent().manager.getSelectedNodes().length == 1;\n }",
"public TabItem [] getSelection () {\r\n\tcheckWidget();\r\n\tint index = getSelectionIndex ();\r\n\tif (index == -1) return new TabItem [0];\r\n\treturn new TabItem [] {items [index]};\r\n}",
"protected boolean selectItemAtIndex(GuiSubitemTestObject guiObj, int index) {\n\t\tString debugmsg = getClass().getName()+\".selectItemAtIndex(): \";\n\t\t\n\t\ttry {\n\t\t\tif(!scrollToIndex(guiObj, index)){\n\t\t\t\tLog.debug(debugmsg+\" can not scroll to index \"+index);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString itemText = getListItem(guiObj, index);\n\t\t\tguiObj.click(Script.localAtText(itemText));\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"boolean hasIronSelected();",
"boolean hasStablesSelected();",
"public boolean isFirstClick() {\n return firstClick;\n }",
"public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }",
"public Boolean isFirstShowing()\n\t{\n\t\treturn firstShowing;\n\t}",
"private int lowestUnselected() {\n for (int i = 0; i < names.size(); i++) {\n // check to see if index is selected\n int j;\n for (j = 0; j < selections.size(); j++)\n if (selections.get(j) == i)\n break;\n // if no tabs have this index selected, return it\n if (j == selections.size())\n return i;\n }\n\n return -1;\n }",
"public boolean containsAtMostOneItem() {\n boolean contains;\n if (start==null | start.next==null) {\n contains = true;\n }\n return contains;\n }",
"public boolean isFirst() {\n\t\treturn (prev == null);\n\t}",
"public int getSelected() {\n \t\treturn selected;\n \t}",
"public int getSelectedTab() {\n return tabbedPane.getSelectedIndex();\n }",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"@Override\r\n\tpublic boolean isHovered() {\n\t\tint hovered = this.group.hovered;\r\n\t\tif(hovered >= 0 && hovered < this.group.items.size())\r\n\t\t{\r\n\t\t\tif(this == this.group.items.get(hovered))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private void checkAtLeastOneRuleIsSelected() {\n\t\tsufficientRulesSelected = false;\n\t\tint checked = 0;\n\t\tControl[] controlArray = rulesGroup.getChildren();\n\n\t\tfor (Control elem : controlArray) {\n\t\t\tif (elem instanceof Button) {\n\t\t\t\tif (((Button) elem).getSelection()) {\n\t\t\t\t\tchecked++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (checked >= 1)\n\t\t\tsufficientRulesSelected = true;\n\t\tupdateFinishButton();\n\t}",
"public void itemSelected(boolean selected);",
"public Boolean getIsselected() {\n return isselected;\n }",
"public Boolean getIsselected() {\n return isselected;\n }",
"public boolean isSelected() {\n\t\treturn _booleanNode.isPartiallyTrue();\n\t}",
"public boolean isTargetSelected() {\n return targetSelected;\n }",
"public boolean isFirst() {\n return !hasPrevious();\n }",
"public boolean hasItem() {\n return (this.curItem != null);\n }",
"public boolean isFirst() {\n\t\treturn first;\n\t}",
"public TabItem[] getSelection() {\n checkWidget();\n int index = OS.SendMessage(handle, OS.TCM_GETCURSEL, 0, 0);\n if (index == -1)\n return new TabItem[0];\n return new TabItem[] { items[index] };\n }",
"public boolean isFirstPage();",
"public boolean getSelection () {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;\r\n\treturn (OS.PtWidgetFlags (handle) & OS.Pt_SET) != 0;\r\n}",
"int getSelectedButton() {\n for (int i = 0; i < buttons.length; i++) {\n if (buttons[i].isSelected()) {\n return (i);\n }\n }\n return (-1);\n }",
"public boolean hasVisibleItems();",
"public boolean isStartState(int i) {\n for (int k = 0; k < startStates.length; k++)\r\n if (startStates[k] == i)\r\n return true;\r\n return false;\r\n }",
"public boolean isContactSelected() {\n\t\treturn (currentContact != null);\n\t}",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"public boolean getIsSelected() {\n return this.isSelected;\n }",
"public abstract boolean isSelected();",
"private void selectFirstTab() {\n Tab tab = view\n .getNationsTabPane()\n .getTabs().get(0);\n\n tabChanged(tab, tab);\n }",
"protected boolean isSelected(int selectedID)\n\t{\n\t\treturn (selectedID == this.nameId) && (this.slotId == parentGuiFF.getSelectedListId());\n\t}",
"public void verifyHomeItemIsSelectedByDefault() {\n\t\tmoveToElement(ActiveHome);\n\t\tAssert.assertTrue(isElementPresent(ActiveHome));\n\t\treportInfo();\t\t\n\t}",
"public boolean IsFirstCellGreenAfterClick() {\n return IsCellGreenAfterClick(firstCell);\n }",
"boolean hasSelectedTransport()\n {\n for(JCheckBoxMenuItem item : transportMenuItems.values())\n {\n if(item.isSelected())\n return true;\n }\n\n return false;\n }",
"public boolean isSelected()\n {\n\treturn _isSelected;\n }",
"public boolean buttonActive(int i) {\n boolean b = false;\n if (categories.get(i).isActive()) {\n b = true;\n }\n return b;\n }",
"public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }",
"public boolean hasSelectionLimit()\n {\n return (this.getSelectionLimit() > 0L);\n }",
"public boolean isFontNameSelected()\r\n\t{\r\n\t\t// return false if Font Name list has nothing selected, true if an item is selected\r\n\t\treturn !fontNamesList.isSelectionEmpty();\r\n\t}",
"public boolean isSetFirstRow()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FIRSTROW$22) != 0;\n }\n }",
"public boolean isSelectionEmpty() {\n return selectionEmpty;\n }",
"static int getIndexSelected() {\n return indexSelected;\n }",
"public boolean isSetStartIndex()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(STARTINDEX$10) != null;\n }\n }",
"boolean hasBracksSelected();",
"private boolean seleccionarItemEnListado(){\n\t\t\n\t\tint indice = this.getUltIdDoc();\n\t\tif (indice > -1){ //solo si se eligió un doc\n\t\t\tif ((indice+1) > tablaDocs.getItemCount()){ //se pasa de la cantidad de elemento en la lista, poner el de mas arriba en su lugar\n\t\t\t\tthis.setUltIdDoc(tablaDocs.getItemCount()-1);\n\t\t\t\tindice = this.getUltIdDoc(); \n\t\t\t}\n\t\t\ttablaDocs.setSelection(indice); \n\t\t\tlistaDocumentos.setSelection(indice);\n\t\t}\n\t\treturn true;\n\t}",
"public boolean getSelectedValue() {\r\n\treturn this.selectedValue;\r\n }"
] |
[
"0.7129192",
"0.6849058",
"0.65392596",
"0.64286035",
"0.63974434",
"0.63263",
"0.61729115",
"0.6162143",
"0.61548287",
"0.61249715",
"0.6103604",
"0.61004084",
"0.6087963",
"0.6064352",
"0.60270315",
"0.60125655",
"0.60125655",
"0.60125655",
"0.59964305",
"0.59927225",
"0.59850144",
"0.5982258",
"0.59764296",
"0.59764296",
"0.5964936",
"0.59605575",
"0.5954958",
"0.5940949",
"0.59031236",
"0.59031236",
"0.5891984",
"0.58831066",
"0.587904",
"0.586395",
"0.5860156",
"0.5860156",
"0.5860156",
"0.585212",
"0.5850817",
"0.5849559",
"0.58373195",
"0.5831337",
"0.58291036",
"0.58217096",
"0.5817023",
"0.58003813",
"0.57524115",
"0.5743624",
"0.5735681",
"0.57085747",
"0.5697374",
"0.569696",
"0.5663613",
"0.56607336",
"0.56548834",
"0.5645793",
"0.5640403",
"0.56310004",
"0.56238294",
"0.5610185",
"0.5597531",
"0.55815977",
"0.557995",
"0.5570205",
"0.5565729",
"0.5564489",
"0.55560666",
"0.55560666",
"0.5554241",
"0.55493295",
"0.5541993",
"0.55295426",
"0.5522397",
"0.55191714",
"0.5514683",
"0.5507149",
"0.55000347",
"0.5499093",
"0.5497495",
"0.5495549",
"0.54901123",
"0.5487925",
"0.5473067",
"0.54707325",
"0.5469082",
"0.5468929",
"0.54577446",
"0.54503113",
"0.5447397",
"0.54471034",
"0.54338175",
"0.54331267",
"0.5431932",
"0.5401195",
"0.53917533",
"0.5386501",
"0.5386244",
"0.5378307",
"0.5373406",
"0.5372379"
] |
0.6895708
|
1
|
Return whether the ith item on the second tab is selected.
|
public boolean IsSelected1(int i) {
return theSelected1[i];
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean IsSelected2(int i) {\n\t\treturn theSelected2[i];\n\t}",
"public abstract boolean isIndexSelected(int i);",
"public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex == index);\r\n }",
"public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}",
"public boolean IsSelected0(int i) {\n\t\treturn theSelected0[i];\n\t}",
"public boolean hasSecondItemToBuy() {\n return this.secondItemToBuy != null;\n }",
"private boolean isInTwoPaneMode() {\n\t\t\n Log.i(TAG, \"DailySelfieMainActivity.isInTwoPaneMode entered\");\n\n\t\treturn findViewById(R.id.selfie_list) != null;\n\t}",
"public boolean IsSelected3(int i) {\n\t\treturn theSelected3[i];\n\t}",
"public boolean isSelected(PortalSiteRequestContext context)\n {\n // menu is selected if a selected element exists\n return (getSelectedElement(context) != null);\n }",
"private void isTwoPane() {\n FrameLayout fragmentItemDetail = (FrameLayout) findViewById(R.id.DetailFragment);\n if (fragmentItemDetail != null) {\n isTwoPane = true;\n }\n }",
"public boolean isMultiSelection()\n {\n return multiSelection;\n }",
"public boolean isIndexSelected(int idx) {\n return getElement().isIndexSelected(idx);\n }",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"public boolean isSelected() { \n \treturn selection != null; \n }",
"public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }",
"public boolean isSelectionChanged();",
"public abstract boolean hasSelection();",
"public boolean isSelected();",
"public boolean isSelected();",
"public String getSelectedIndex2() {\n return mSelectedIndex2;\n }",
"protected boolean selectItemAtIndex(GuiSubitemTestObject guiObj, int index) {\n\t\tString debugmsg = getClass().getName()+\".selectItemAtIndex(): \";\n\t\t\n\t\ttry {\n\t\t\tif(!scrollToIndex(guiObj, index)){\n\t\t\t\tLog.debug(debugmsg+\" can not scroll to index \"+index);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString itemText = getListItem(guiObj, index);\n\t\t\tguiObj.click(Script.localAtText(itemText));\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}",
"boolean hasStablesSelected();",
"private static boolean tabExist(TabPane tabpane, Tab tab, int tabSize) {\n for (int i = 0; i < tabSize; i++) {\n\n if (tab.getId().equals(tabpane.getTabs().get(i).getId())) {\n tabselect = i;\n return true;\n }\n }\n return false;\n }",
"public boolean isSelectedIndex(int index) {\n\t\t\treturn tablecolselectmodel.isSelectedIndex(index);\n\t\t}",
"public boolean getSelected()\n {\n return selected; \n }",
"@Override\r\n\tpublic boolean isHovered() {\n\t\tint hovered = this.group.hovered;\r\n\t\tif(hovered >= 0 && hovered < this.group.items.size())\r\n\t\t{\r\n\t\t\tif(this == this.group.items.get(hovered))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"boolean hasItemIndex();",
"boolean hasItemIndex();",
"boolean hasItemIndex();",
"public boolean isSelected() {\n \t\treturn selected;\n \t}",
"public boolean isTileSelected() {\n return selectedTile != null;\n }",
"public boolean item(int i) {\n\t\treturn x[i] == 1;\n\t}",
"public CTabItem getSelection() {\n checkWidget();\n CTabItem result = null;\n if( selectedIndex != -1 ) {\n result = ( CTabItem )itemHolder.getItem( selectedIndex );\n }\n return result;\n }",
"public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}",
"public boolean isSelected()\n {\n return selected;\n }",
"private int getSelected(List<ObjectParsing.Options> list){\n int position=0,i=0;\n for (ObjectParsing.Options options:\n list) {\n if(options.getSelected()!=null && options.getSelected().equals(\"true\")){\n position=i;break;\n }i++;\n }\n return position;\n }",
"public boolean isSelected() \n {\n return selected;\n }",
"public boolean isSelected() { return selected; }",
"public TabItem [] getSelection () {\r\n\tcheckWidget();\r\n\tint index = getSelectionIndex ();\r\n\tif (index == -1) return new TabItem [0];\r\n\treturn new TabItem [] {items [index]};\r\n}",
"public boolean isSelected() {\r\n return selected;\r\n }",
"public boolean isSelected(){\r\n return selected;\r\n }",
"public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}",
"public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}",
"public boolean isTabActive() {\n return getElement(container + tabLink).getAttribute(\"class\").contains(\"active\");\n }",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean hasVisibleItems();",
"public boolean isSelected_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isSelected()) { return true; } else { return false;} \r\n\t}",
"protected boolean isSelected(Object itemValue, Object[] values) {\r\n if (values != null) {\r\n int len = values.length;\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n if (values[i].equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"public static Boolean getButtonSelected(int x, int y){\n\t\treturn display[x][y].isSelected();\n\t}",
"@Override\r\n \tboolean matches(TopLevelItem item) {\n \t\tCollection<View> views = Hudson.getInstance().getViews();\r\n \t\tfor (View view: views) {\r\n \t\t\tString viewName = view.getViewName();\r\n \t\t\t// narrow down to my \"other view\"\r\n\t\t\tif (viewName.equals(otherView)) {\r\n \t\t\t\tCollection<TopLevelItem> items = view.getItems();\r\n \t\t\t\tfor (TopLevelItem viewItem: items) {\r\n \t\t\t\t\t// see if the item for \"that\" view matches the one we're checking\r\n \t\t\t\t\tif (viewItem == item) {\r\n \t\t\t\t\t\treturn true;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn false;\r\n \t}",
"private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }",
"private boolean featureSelectStatus(int index) {\n if (featureCollection == null) {\n return false;\n }\n\n return featureCollection.features().get(index).getBooleanProperty(PROPERTY_SELECTED);\n }",
"public boolean isSelected_click_My_Rewards_Link(){\r\n\t\tif(click_My_Rewards_Link.isSelected()) { return true; } else { return false;} \r\n\t}",
"public boolean isDoorSelected(int i) {\n return chosen_door == doors.get(i);\n }",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"public boolean isSelected_click_Fuel_Rewards_Link(){\r\n\t\tif(click_Fuel_Rewards_Link.isSelected()) { return true; } else { return false;} \r\n\t}",
"protected boolean isSelected(int selectedID)\n\t{\n\t\treturn (selectedID == this.nameId) && (this.slotId == parentGuiFF.getSelectedListId());\n\t}",
"public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }",
"public abstract boolean isSelected();",
"boolean hasIronSelected();",
"public int getSelectedTab() {\n return tabbedPane.getSelectedIndex();\n }",
"public boolean menuSelectItem(final WinRefEx hWnd, final String item1,\n\t\t\t\t\t\t\t\t final String item2) {\n\t\treturn (hWnd == null) ? false : menuSelectItem(TitleBuilder.byHandle(hWnd), null,\n\t\t\t\titem1, item2);\n\t}",
"public boolean isMulti() {\n return getElement().isMulti();\n }",
"@Override\n public boolean isValid() {\n return getComponent().manager.getSelectedNodes().length == 1;\n }",
"public boolean isSelected() {\n return (state & STATE_SELECTED) != 0;\n }",
"protected boolean isSelected(Object itemValue, Object valueArray) {\r\n if (valueArray != null) {\r\n int len = Array.getLength(valueArray);\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n Object value = Array.get(valueArray, i);\r\n if (value == null) {\r\n if (itemValue == null) {\r\n return true;\r\n }\r\n } else if (value.equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"boolean hasBracksSelected();",
"public void itemSelected(boolean selected);",
"private boolean isSameRow(int firstVisibleItem) {\n return firstVisibleItem == mPreviousFirstVisibleItem;\n }",
"public boolean getSelection () {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;\r\n\treturn (OS.PtWidgetFlags (handle) & OS.Pt_SET) != 0;\r\n}",
"public boolean canExtractItem(int i, ItemStack itemstack, int j) {\n\t\t// yes as long as its not from slot 0 or the item is a bucket\n\t\treturn itemstack.getItem() == Items.bucket || j != 0;\n\t}",
"public boolean isTargetSelected() {\n return targetSelected;\n }",
"boolean nextItem();",
"private boolean seleccionarItemEnListado(){\n\t\t\n\t\tint indice = this.getUltIdDoc();\n\t\tif (indice > -1){ //solo si se eligió un doc\n\t\t\tif ((indice+1) > tablaDocs.getItemCount()){ //se pasa de la cantidad de elemento en la lista, poner el de mas arriba en su lugar\n\t\t\t\tthis.setUltIdDoc(tablaDocs.getItemCount()-1);\n\t\t\t\tindice = this.getUltIdDoc(); \n\t\t\t}\n\t\t\ttablaDocs.setSelection(indice); \n\t\t\tlistaDocumentos.setSelection(indice);\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isSelectedChild(int position) {\n return (mActualSelectedGroupPos + mActualSelectedChildPos + 1) == position;\n }",
"public boolean checkDualExciters() {\r\n return dualExciter.isSelected();\r\n }",
"protected abstract boolean isVisibleForSelection(T1 object, Vector<T2> globalSelection);",
"public void tabSelected();",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"protected boolean isSelected(int slotIndex)\n {\n return false;\n }",
"protected boolean isSelected(int slotIndex)\n {\n return false;\n }",
"protected boolean isSelected(int slotIndex)\n {\n return false;\n }",
"public boolean buttonActive(int i) {\n boolean b = false;\n if (categories.get(i).isActive()) {\n b = true;\n }\n return b;\n }",
"public boolean isSlot(int i);",
"public boolean isInMultiPane();",
"public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButtons.get(cursor.controller), ControllerButtons.A)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n\n// Otherwise, if the cursor is using a keyboard and the select button is pressed, return true\n } else {\n if (Gdx.input.isKeyJustPressed(Keys.MENU_SELECT)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n }\n }\n// If none of these events occur, return false\n return false;\n }",
"public Boolean getIsselected() {\n return isselected;\n }",
"public Boolean getIsselected() {\n return isselected;\n }",
"public boolean canSplit() {\r\n if (cards.size() == 2 && cards.get(0).getValue().equals(cards.get(1).getValue())) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public java.lang.Boolean isCurrentItemOnRange(int r3) {\n /*\n r2 = this;\n r0 = 1\n if (r3 < 0) goto L_0x001a\n java.lang.Boolean r1 = r2.mIsCircular\n boolean r1 = r1.booleanValue()\n if (r1 == 0) goto L_0x0012\n int r1 = r2.getCount()\n int r1 = r1 + -3\n goto L_0x0017\n L_0x0012:\n int r1 = r2.getCount()\n int r1 = r1 - r0\n L_0x0017:\n if (r3 > r1) goto L_0x001a\n goto L_0x001b\n L_0x001a:\n r0 = 0\n L_0x001b:\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r0)\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: ar.com.santander.rio.mbanking.app.ui.adapters.CircularCarruselPagerAdapter.isCurrentItemOnRange(int):java.lang.Boolean\");\n }",
"public int getSelected() {\n \t\treturn selected;\n \t}",
"public boolean isSelected() {\n\t\treturn _booleanNode.isPartiallyTrue();\n\t}",
"public boolean getCanPickupItems ( ) {\n\t\treturn extract ( handle -> handle.getCanPickupItems ( ) );\n\t}",
"public boolean isFirstRound() {\r\n return cards.size() == 2;\r\n }",
"boolean isChildSelectable(int groupPosition, int childPosition);",
"private boolean isSecondBrowserServiceRunning() {\n ActivityManager activityManager =\n (ActivityManager) mActivityTestRule.getActivity().getSystemService(\n Context.ACTIVITY_SERVICE);\n for (ActivityManager.RunningServiceInfo si : activityManager.getRunningServices(65536)) {\n if (si.pid == mSecondBrowserServicePid) return true;\n }\n return false;\n }"
] |
[
"0.74508214",
"0.63747656",
"0.5943569",
"0.5835749",
"0.5807412",
"0.5769542",
"0.5766539",
"0.5736588",
"0.5720886",
"0.57132",
"0.5680804",
"0.5669001",
"0.56445885",
"0.56445885",
"0.56445885",
"0.5639065",
"0.563264",
"0.55416816",
"0.5497332",
"0.54859936",
"0.54859936",
"0.5445509",
"0.5429687",
"0.54171443",
"0.5412843",
"0.5406819",
"0.5383867",
"0.5368777",
"0.53564525",
"0.5340376",
"0.5340376",
"0.5340376",
"0.5335444",
"0.53016603",
"0.53012234",
"0.5300122",
"0.5272599",
"0.5261113",
"0.52602774",
"0.5240546",
"0.52386206",
"0.523467",
"0.5227551",
"0.52197313",
"0.52000767",
"0.5167882",
"0.5163847",
"0.51626474",
"0.51626474",
"0.5162411",
"0.5152283",
"0.5149375",
"0.513575",
"0.5133469",
"0.5125671",
"0.51219267",
"0.5119388",
"0.51136684",
"0.5107831",
"0.5104453",
"0.5094113",
"0.50939965",
"0.5080005",
"0.5078501",
"0.5076799",
"0.50666887",
"0.50651085",
"0.5064124",
"0.5047039",
"0.5046107",
"0.5041164",
"0.50239575",
"0.5018029",
"0.50159585",
"0.5012263",
"0.50032073",
"0.50030243",
"0.49962392",
"0.49871638",
"0.49819034",
"0.49804386",
"0.49530932",
"0.49518412",
"0.49418685",
"0.49418685",
"0.49418685",
"0.4937891",
"0.49331868",
"0.49267894",
"0.4918039",
"0.49133292",
"0.49133292",
"0.4913035",
"0.49054956",
"0.48935455",
"0.48900566",
"0.48856175",
"0.48831242",
"0.4879582",
"0.48710197"
] |
0.6404447
|
1
|
Return whether the ith item on the third tab is selected.
|
public boolean IsSelected2(int i) {
return theSelected2[i];
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean IsSelected3(int i) {\n\t\treturn theSelected3[i];\n\t}",
"public abstract boolean isIndexSelected(int i);",
"public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}",
"public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex == index);\r\n }",
"public boolean isThreeOfAKind() {\r\n\r\n return getHighestConsecutive() == 3;\r\n }",
"public boolean isIndexSelected(int idx) {\n return getElement().isIndexSelected(idx);\n }",
"public boolean IsSelected0(int i) {\n\t\treturn theSelected0[i];\n\t}",
"public boolean isThreeFoldRepetition() {\n int repeatNum = 0;\n\n for (Board position : game.getPositionList()) {\n if (game.getCurrentPosition().equals(position)) {\n repeatNum++;\n }\n }\n\n return repeatNum >= 3;\n }",
"public boolean firstThree( String[] values )\n {\n boolean found = false;\n if( !values[0].equals(values[1]) )\n {\n if( !values[0].equals(values[2]) )\n {\n driver.findElement(By.cssSelector(\"#box > span:nth-child(1)\")).click();\n found = true;\n }\n else\n {\n driver.findElement(By.cssSelector(\"#box > span:nth-child(2)\")).click();\n found = true;\n }\n }\n else if( !values[0].equals(values[2]) )\n {\n driver.findElement(By.cssSelector(\"#box > span:nth-child(3)\")).click();\n found = true;\n }\n\n return found;\n }",
"public boolean isSelectedIndex(int index) {\n\t\t\treturn tablecolselectmodel.isSelectedIndex(index);\n\t\t}",
"public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}",
"private int getSelected(List<ObjectParsing.Options> list){\n int position=0,i=0;\n for (ObjectParsing.Options options:\n list) {\n if(options.getSelected()!=null && options.getSelected().equals(\"true\")){\n position=i;break;\n }i++;\n }\n return position;\n }",
"public java.lang.Boolean isCurrentItemOnRange(int r3) {\n /*\n r2 = this;\n r0 = 1\n if (r3 < 0) goto L_0x001a\n java.lang.Boolean r1 = r2.mIsCircular\n boolean r1 = r1.booleanValue()\n if (r1 == 0) goto L_0x0012\n int r1 = r2.getCount()\n int r1 = r1 + -3\n goto L_0x0017\n L_0x0012:\n int r1 = r2.getCount()\n int r1 = r1 - r0\n L_0x0017:\n if (r3 > r1) goto L_0x001a\n goto L_0x001b\n L_0x001a:\n r0 = 0\n L_0x001b:\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r0)\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: ar.com.santander.rio.mbanking.app.ui.adapters.CircularCarruselPagerAdapter.isCurrentItemOnRange(int):java.lang.Boolean\");\n }",
"protected boolean selectItemAtIndex(GuiSubitemTestObject guiObj, int index) {\n\t\tString debugmsg = getClass().getName()+\".selectItemAtIndex(): \";\n\t\t\n\t\ttry {\n\t\t\tif(!scrollToIndex(guiObj, index)){\n\t\t\t\tLog.debug(debugmsg+\" can not scroll to index \"+index);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString itemText = getListItem(guiObj, index);\n\t\t\tguiObj.click(Script.localAtText(itemText));\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean item(int i) {\n\t\treturn x[i] == 1;\n\t}",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"public boolean isSelected() { \n \treturn selection != null; \n }",
"private boolean checkAnswerThree() {\n CheckBox correctAnswer1Q3 = findViewById(R.id.qs3Ans1);\n correctAnswer1Q3.setTextColor(Color.parseColor(\"green\"));\n return correctAnswer1Q3.isChecked();\n }",
"public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}",
"public boolean isMultiSelection()\n {\n return multiSelection;\n }",
"public CTabItem getSelection() {\n checkWidget();\n CTabItem result = null;\n if( selectedIndex != -1 ) {\n result = ( CTabItem )itemHolder.getItem( selectedIndex );\n }\n return result;\n }",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"public boolean menuSelectItem(final WinRefEx hWnd, final String item1,\n\t\t\t\t\t\t\t\t final String item2, final String item3) {\n\t\treturn (hWnd == null) ? false : menuSelectItem(TitleBuilder.byHandle(hWnd), null,\n\t\t\t\titem1, item2, item3);\n\t}",
"public boolean isThreeOfAKind() {\n\t\treturn this.sameSet.size() == 1;\n\t}",
"public static boolean haveThree(int[] nums) {\n\n\t\tint count = 0;\n\t\t\n\t\tfor (int i=0; i < nums.length; i++) {\n\t\t\tif (nums[i] == 3) {\n\t\t\t\tcount++;\t\n\t\t\t}\t\t\n\t\t}\n\n\n\t\tfor (int i=0; i < nums.length-1; i++) {\n\t\t\tif (nums[i] == 3 && nums[i+1] == 3) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\n\t\tif (count==3) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"boolean hasStablesSelected();",
"private boolean thirdMilestoneAccomplished()\n {\n if( (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n (beliefs.puzzle[2][0] == 9) &&\n (beliefs.puzzle[3][0] == 13)\n )\n return true;\n else\n return false;\n }",
"boolean hasBracksSelected();",
"public abstract boolean hasSelection();",
"public boolean isSelected();",
"public boolean isSelected();",
"private boolean featureSelectStatus(int index) {\n if (featureCollection == null) {\n return false;\n }\n\n return featureCollection.features().get(index).getBooleanProperty(PROPERTY_SELECTED);\n }",
"public boolean isThreeOfAKind(){\n \r\n List<PokerCard> threeCards;\r\n \r\n //First possibility: first three cards match\r\n threeCards = cards.subList(0, 3);\r\n if(haveSameValue(threeCards)){\r\n handValue = threeCards.get(0).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: middle three cards match\r\n threeCards = cards.subList(1, 4);\r\n if(haveSameValue(threeCards)){\r\n handValue = threeCards.get(0).getValue();\r\n return true;\r\n }\r\n \r\n //Third possibility: last three cards match\r\n threeCards = cards.subList(2, 5);\r\n if(haveSameValue(threeCards)){\r\n handValue = threeCards.get(0).getValue();\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean isTileSelected() {\n return selectedTile != null;\n }",
"@Override\r\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.DESELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}",
"public boolean buttonActive(int i) {\n boolean b = false;\n if (categories.get(i).isActive()) {\n b = true;\n }\n return b;\n }",
"private static boolean tabExist(TabPane tabpane, Tab tab, int tabSize) {\n for (int i = 0; i < tabSize; i++) {\n\n if (tab.getId().equals(tabpane.getTabs().get(i).getId())) {\n tabselect = i;\n return true;\n }\n }\n return false;\n }",
"private boolean check3Vertical(int i, int j) {\n if(stateArray[i][j] == stateArray[i+1][j] && stateArray[i][j] == stateArray[i+2][j]) {\n return true;\n }\n return false;\n }",
"public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }",
"private void checkAtLeastOneRuleIsSelected() {\n\t\tsufficientRulesSelected = false;\n\t\tint checked = 0;\n\t\tControl[] controlArray = rulesGroup.getChildren();\n\n\t\tfor (Control elem : controlArray) {\n\t\t\tif (elem instanceof Button) {\n\t\t\t\tif (((Button) elem).getSelection()) {\n\t\t\t\t\tchecked++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (checked >= 1)\n\t\t\tsufficientRulesSelected = true;\n\t\tupdateFinishButton();\n\t}",
"boolean isThreeOfAKind();",
"boolean hasIronSelected();",
"public boolean hasThreeSides() { return hasNMarkedSides(3); }",
"private boolean m3182h() {\n int currentItem = this.f2478a.getCurrentItem();\n if (currentItem >= this.f2485m.length - 1) {\n return false;\n }\n this.f2478a.setCurrentItem(currentItem + 1, true);\n return true;\n }",
"public static boolean thirdPlayer() {\n return TUIMenu.displayValueMenu(\n \"Troisième joueur ?\",\n List.of(\n new SupplierAction<>() {\n public String name() {\n return \"Oui\";\n }\n\n public Boolean get() {\n return true;\n }\n },\n new SupplierAction<>() {\n public String name() {\n return \"Non\";\n }\n\n public Boolean get() {\n return false;\n }\n }\n )\n );\n }",
"@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse != -1 && !getTable().isRowSelected(rowUnderMouse)) {\n// selected = rowUnderMouse;\n// }\n selected = rowUnderMouse;\n }\n }",
"public abstract boolean isSelected();",
"public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }",
"public boolean isSelectedChild(int position) {\n return (mActualSelectedGroupPos + mActualSelectedChildPos + 1) == position;\n }",
"public boolean isSelected() {\n \t\treturn selected;\n \t}",
"public boolean menuSelectItem(final String title, final String text,\n\t\t\t\t\t\t\t\t final String item1, final String item2, final String item3) {\n\t\treturn menuSelectItem(title, text, item1, item2, item3, null);\n\t}",
"public boolean menuSelectItem(final WinRefEx hWnd, final String item1,\n\t\t\t\t\t\t\t\t final String item2, final String item3, final String item4) {\n\t\treturn (hWnd == null) ? false : menuSelectItem(TitleBuilder.byHandle(hWnd), null,\n\t\t\t\titem1, item2, item3, item4);\n\t}",
"private int getSelectedTab() {\n String theme = \"default\";\n List<INamedParameters.NamedPair> pairs = getPageParameters().getAllNamed();\n theme = pairs.get(0).getValue();\n if (\"grid\".equals(theme)) {\n return 1;\n } else if (\"skies\".equals(theme)) {\n return 2;\n } else if (\"gray\".equals(theme)) {\n return 3;\n } else if (\"darkblue\".equals(theme)) {\n return 4;\n } else if (\"darkgreen\".equals(theme)) {\n return 5;\n } else {\n return 0;\n }\n }",
"@Click(R.id.bt_answer3)\n void clickAnswer3() {\n selectedAnswer = questionList.get(questionProgress - 1).getAnswers().get(2);\n showResult();\n }",
"public boolean isSelected(PortalSiteRequestContext context)\n {\n // menu is selected if a selected element exists\n return (getSelectedElement(context) != null);\n }",
"boolean hasItemIndex();",
"boolean hasItemIndex();",
"boolean hasItemIndex();",
"public boolean getSelected()\n {\n return selected; \n }",
"static int getIndexSelected() {\n return indexSelected;\n }",
"public boolean isThreeOfAKind(){\n ArrayList<Integer> numbers = new ArrayList<>();\n for (int i = 0; i < dice.length; i++){\n numbers.add(dice[i].getFaceValue());\n }\n int pairsOfThree = 0;\n int pairsOfTwo = 0;\n for(int i = 0; i < numbers.size(); i++){\n int numSame = 0;\n for(int j = 0; j < numbers.size(); j++){\n if(numbers.get(i).equals(numbers.get(j))){\n numSame++;\n }\n }\n if (numSame == 2){\n pairsOfTwo++;\n }\n if (numSame == 3){\n pairsOfThree++;\n }\n }\n if (pairsOfTwo > 0){\n return false;\n }\n return (pairsOfThree == 3);\n }",
"public boolean canAddThreePid() {\n return (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY))\n || (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN) && !isCompleted(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN));\n }",
"boolean isCitySelected();",
"private boolean check3Horizontal(int i, int j) {\n if(stateArray[i][j] == stateArray[i][j+1] && stateArray[i][j] == stateArray[i][j+2]) {\n return true;\n }\n return false;\n }",
"public boolean isSelected() { return selected; }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n CheckItemBase item = null;\n if (TAB_AUTO == mTabIndex) {\n item = mAutoItemArray.get(arg2).mCheckItem;\n } else if (TAB_MANUAL == mTabIndex) {\n item = mManualItemArray.get(arg2).mCheckItem;\n } else {\n myAssert(false, \"No such tab!\");\n }\n if (null == item) {\n myAssert(false, \"check item is null!\");\n }\n setupAlertDlg(item);\n }",
"public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}",
"public boolean isDoorSelected(int i) {\n return chosen_door == doors.get(i);\n }",
"public boolean hasVisibleItems();",
"public void itemSelected(boolean selected);",
"protected boolean isSelected(Object itemValue, Object[] values) {\r\n if (values != null) {\r\n int len = values.length;\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n if (values[i].equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"boolean hasSelectedTransport()\n {\n for(JCheckBoxMenuItem item : transportMenuItems.values())\n {\n if(item.isSelected())\n return true;\n }\n\n return false;\n }",
"public boolean isSelected() {\n return (state & STATE_SELECTED) != 0;\n }",
"public boolean isSelected()\n {\n return selected;\n }",
"public boolean isSelected() \n {\n return selected;\n }",
"protected boolean isSelected(Object itemValue, Object valueArray) {\r\n if (valueArray != null) {\r\n int len = Array.getLength(valueArray);\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n Object value = Array.get(valueArray, i);\r\n if (value == null) {\r\n if (itemValue == null) {\r\n return true;\r\n }\r\n } else if (value.equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"public boolean isMulti() {\n return getElement().isMulti();\n }",
"public boolean isSelected() {\r\n return selected;\r\n }",
"public boolean isAccessibleSelected(int r, int c) {\n try {\n return unoAccessibleTable.isAccessibleSelected(r,c);\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return false;\n } catch (com.sun.star.uno.RuntimeException e) {\n return false;\n }\n }",
"public boolean isSelected(){\r\n return selected;\r\n }",
"private boolean checkBoxSituation(int secondI, int secondJ) {\n int max = 0;\n if (secondI + 1 < 8) {\n if (checkBlueBox(secondI + 1, secondJ)) {\n max++;\n }\n }\n if (secondI - 1 > -1) {\n if (checkBlueBox(secondI - 1, secondJ)) {\n max++;\n }\n }\n if (secondJ + 1 < 8) {\n if (checkBlueBox(secondI, secondJ + 1)) {\n max++;\n }\n }\n if (secondJ - 1 > -1) {\n if (checkBlueBox(secondI, secondJ - 1)) {\n max++;\n }\n }\n if (max >= 3) {\n return true;\n }\n return false;\n }",
"public boolean isAccessibleRowSelected(int r) {\n try {\n return unoAccessibleTable.isAccessibleRowSelected(r);\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return false;\n } catch (com.sun.star.uno.RuntimeException e) {\n return false;\n }\n }",
"public int getSelected() {\n \t\treturn selected;\n \t}",
"public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}",
"boolean isChildSelectable(int groupPosition, int childPosition);",
"public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"private static boolean checkForMethod3() {\n\t\t\n\t\tif(easyTag3.size() < 3 || mediumTag1.size() < 3 || hardTag2.size() < 3 || easyTag6.size() < 3 || mediumTag4.size() < 3 || hardTag5.size() < 3) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isReviewed(int index) {\n if (index % 2 != 0) {\n index -= 1;\n }\n index = index / 2;\n if ( ( (Integer) clusters[index][3]).intValue() == 1) {\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean menuSelectItem(final String title, final String text,\n\t\t\t\t\t\t\t\t final String item1, final String item2, final String item3,\n\t\t\t\t\t\t\t\t final String item4, final String item5, final String item6,\n\t\t\t\t\t\t\t\t final String item7, final String item8) {\n\t\treturn AutoItXImpl.autoItX.AU3_WinMenuSelectItem(\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(title)), AutoItUtils.stringToWString(text),\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(item1)),\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(item2)),\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(item3)),\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(item4)),\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(item5)),\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(item6)),\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(item7)),\n\t\t\t\tAutoItUtils.stringToWString(AutoItUtils.defaultString(item8))) == AutoItX.SUCCESS_RETURN_VALUE;\n\t}",
"public boolean isTabActive() {\n return getElement(container + tabLink).getAttribute(\"class\").contains(\"active\");\n }",
"private boolean isSameRow(int firstVisibleItem) {\n return firstVisibleItem == mPreviousFirstVisibleItem;\n }",
"public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"@Override\n public boolean isValid() {\n return getComponent().manager.getSelectedNodes().length == 1;\n }",
"public TabItem [] getSelection () {\r\n\tcheckWidget();\r\n\tint index = getSelectionIndex ();\r\n\tif (index == -1) return new TabItem [0];\r\n\treturn new TabItem [] {items [index]};\r\n}",
"protected boolean isSelectedControlPoint(Point p) {\n\t\tif (p != null)\n\t\t\tfor (int j = 0; j < selectedPoints.size(); ++j)\n\t\t\t\tif (selectedPoints.elementAt(j).X() == p.X()\n\t\t\t\t\t\t&& selectedPoints.elementAt(j).Y() == p.Y())\n\t\t\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean canExtractItem(int i, ItemStack itemstack, int j) {\n\t\t// yes as long as its not from slot 0 or the item is a bucket\n\t\treturn itemstack.getItem() == Items.bucket || j != 0;\n\t}"
] |
[
"0.7924765",
"0.6757161",
"0.63234174",
"0.6085049",
"0.60710955",
"0.60356885",
"0.5993026",
"0.59505314",
"0.5846112",
"0.5834728",
"0.5822951",
"0.5759197",
"0.5719274",
"0.568443",
"0.56658816",
"0.5609672",
"0.5609672",
"0.5609672",
"0.56058043",
"0.55486506",
"0.55216354",
"0.55210125",
"0.5512172",
"0.5495682",
"0.54662865",
"0.54566705",
"0.54519933",
"0.5446234",
"0.543158",
"0.54295814",
"0.54239184",
"0.5419875",
"0.5419875",
"0.541677",
"0.5408073",
"0.5394531",
"0.5382829",
"0.5381115",
"0.5374457",
"0.5367301",
"0.53656214",
"0.53554326",
"0.534675",
"0.53416425",
"0.5336164",
"0.5323322",
"0.5320324",
"0.53020895",
"0.5300644",
"0.52953887",
"0.5293185",
"0.5282931",
"0.5272056",
"0.5269983",
"0.52635413",
"0.52623665",
"0.5234103",
"0.52302873",
"0.52302873",
"0.52302873",
"0.52300274",
"0.52290726",
"0.52171814",
"0.521516",
"0.5213939",
"0.5210313",
"0.5206924",
"0.5193007",
"0.5191729",
"0.51870483",
"0.51814085",
"0.5174355",
"0.51737314",
"0.51718855",
"0.51636016",
"0.51619864",
"0.51576924",
"0.51552033",
"0.515223",
"0.5133413",
"0.51267356",
"0.5126021",
"0.5121549",
"0.5117941",
"0.5108767",
"0.5103246",
"0.50987995",
"0.509406",
"0.50924045",
"0.50924045",
"0.508885",
"0.50810874",
"0.5077406",
"0.50730956",
"0.5072101",
"0.50654423",
"0.50631166",
"0.50603604",
"0.50578916",
"0.50559306"
] |
0.6304233
|
3
|
Return whether the ith item on the fourth tab is selected.
|
public boolean IsSelected3(int i) {
return theSelected3[i];
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract boolean isIndexSelected(int i);",
"public boolean isIndexSelected(int idx) {\n return getElement().isIndexSelected(idx);\n }",
"public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}",
"public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex == index);\r\n }",
"public boolean IsSelected0(int i) {\n\t\treturn theSelected0[i];\n\t}",
"public boolean IsSelected2(int i) {\n\t\treturn theSelected2[i];\n\t}",
"private int getSelected(List<ObjectParsing.Options> list){\n int position=0,i=0;\n for (ObjectParsing.Options options:\n list) {\n if(options.getSelected()!=null && options.getSelected().equals(\"true\")){\n position=i;break;\n }i++;\n }\n return position;\n }",
"public boolean isSelectedIndex(int index) {\n\t\t\treturn tablecolselectmodel.isSelectedIndex(index);\n\t\t}",
"public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}",
"public boolean item(int i) {\n\t\treturn x[i] == 1;\n\t}",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"boolean hasStablesSelected();",
"public boolean isSelected() { \n \treturn selection != null; \n }",
"public boolean isAccessibleRowSelected(int r) {\n try {\n return unoAccessibleTable.isAccessibleRowSelected(r);\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return false;\n } catch (com.sun.star.uno.RuntimeException e) {\n return false;\n }\n }",
"public boolean isTileSelected() {\n return selectedTile != null;\n }",
"public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}",
"public boolean isThreeFoldRepetition() {\n int repeatNum = 0;\n\n for (Board position : game.getPositionList()) {\n if (game.getCurrentPosition().equals(position)) {\n repeatNum++;\n }\n }\n\n return repeatNum >= 3;\n }",
"private boolean featureSelectStatus(int index) {\n if (featureCollection == null) {\n return false;\n }\n\n return featureCollection.features().get(index).getBooleanProperty(PROPERTY_SELECTED);\n }",
"boolean hasIronSelected();",
"public boolean isDoorSelected(int i) {\n return chosen_door == doors.get(i);\n }",
"public java.lang.Boolean isCurrentItemOnRange(int r3) {\n /*\n r2 = this;\n r0 = 1\n if (r3 < 0) goto L_0x001a\n java.lang.Boolean r1 = r2.mIsCircular\n boolean r1 = r1.booleanValue()\n if (r1 == 0) goto L_0x0012\n int r1 = r2.getCount()\n int r1 = r1 + -3\n goto L_0x0017\n L_0x0012:\n int r1 = r2.getCount()\n int r1 = r1 - r0\n L_0x0017:\n if (r3 > r1) goto L_0x001a\n goto L_0x001b\n L_0x001a:\n r0 = 0\n L_0x001b:\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r0)\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: ar.com.santander.rio.mbanking.app.ui.adapters.CircularCarruselPagerAdapter.isCurrentItemOnRange(int):java.lang.Boolean\");\n }",
"private static boolean tabExist(TabPane tabpane, Tab tab, int tabSize) {\n for (int i = 0; i < tabSize; i++) {\n\n if (tab.getId().equals(tabpane.getTabs().get(i).getId())) {\n tabselect = i;\n return true;\n }\n }\n return false;\n }",
"private boolean m3182h() {\n int currentItem = this.f2478a.getCurrentItem();\n if (currentItem >= this.f2485m.length - 1) {\n return false;\n }\n this.f2478a.setCurrentItem(currentItem + 1, true);\n return true;\n }",
"public boolean isSelected();",
"public boolean isSelected();",
"public boolean isFourOfAKind() {\r\n\r\n return getHighestConsecutive() == 4;\r\n }",
"protected boolean selectItemAtIndex(GuiSubitemTestObject guiObj, int index) {\n\t\tString debugmsg = getClass().getName()+\".selectItemAtIndex(): \";\n\t\t\n\t\ttry {\n\t\t\tif(!scrollToIndex(guiObj, index)){\n\t\t\t\tLog.debug(debugmsg+\" can not scroll to index \"+index);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString itemText = getListItem(guiObj, index);\n\t\t\tguiObj.click(Script.localAtText(itemText));\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public abstract boolean hasSelection();",
"public boolean isSelected() {\n \t\treturn selected;\n \t}",
"public boolean getSelected()\n {\n return selected; \n }",
"public boolean isThreeOfAKind() {\r\n\r\n return getHighestConsecutive() == 3;\r\n }",
"static int getIndexSelected() {\n return indexSelected;\n }",
"private int getSelectedTab() {\n String theme = \"default\";\n List<INamedParameters.NamedPair> pairs = getPageParameters().getAllNamed();\n theme = pairs.get(0).getValue();\n if (\"grid\".equals(theme)) {\n return 1;\n } else if (\"skies\".equals(theme)) {\n return 2;\n } else if (\"gray\".equals(theme)) {\n return 3;\n } else if (\"darkblue\".equals(theme)) {\n return 4;\n } else if (\"darkgreen\".equals(theme)) {\n return 5;\n } else {\n return 0;\n }\n }",
"public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }",
"static boolean isFour(ArrayList<Card> c)\n {\n if(c.size() < 4)\n {\n return false;\n }\n \n for(int x = 0 ; x < c.size() - 3 ; x++)\n {\n if(c.get(x).getRank() == c.get(x+1).getRank() && c.get(x+1).getRank() == c.get(x+2).getRank() && c.get(x+2).getRank() == c.get(x+3).getRank())\n {\n return true;\n }\n } \n return false;\n }",
"@Override\r\n\tpublic boolean isHovered() {\n\t\tint hovered = this.group.hovered;\r\n\t\tif(hovered >= 0 && hovered < this.group.items.size())\r\n\t\t{\r\n\t\t\tif(this == this.group.items.get(hovered))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}",
"private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }",
"public boolean allDaysSelected() {\n return selectedDays.size() == 7;\n }",
"public boolean allDaysSelected() {\n return selectedDays.size() == 7;\n }",
"public int getSelected() {\n \t\treturn selected;\n \t}",
"boolean hasItemIndex();",
"boolean hasItemIndex();",
"boolean hasItemIndex();",
"boolean hasBracksSelected();",
"protected boolean isSelected(int selectedID)\n\t{\n\t\treturn (selectedID == this.nameId) && (this.slotId == parentGuiFF.getSelectedListId());\n\t}",
"public boolean isSelected() { return selected; }",
"public boolean isMultiSelection()\n {\n return multiSelection;\n }",
"public boolean isSelected() {\n return (state & STATE_SELECTED) != 0;\n }",
"public boolean isSelected() {\r\n return selected;\r\n }",
"public boolean isSelected()\n {\n return selected;\n }",
"private void checkAtLeastOneRuleIsSelected() {\n\t\tsufficientRulesSelected = false;\n\t\tint checked = 0;\n\t\tControl[] controlArray = rulesGroup.getChildren();\n\n\t\tfor (Control elem : controlArray) {\n\t\t\tif (elem instanceof Button) {\n\t\t\t\tif (((Button) elem).getSelection()) {\n\t\t\t\t\tchecked++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (checked >= 1)\n\t\t\tsufficientRulesSelected = true;\n\t\tupdateFinishButton();\n\t}",
"public boolean isSelectedChild(int position) {\n return (mActualSelectedGroupPos + mActualSelectedChildPos + 1) == position;\n }",
"private boolean m116914a(int i) {\n return m116916b() && i >= this.f83727a.getItemCount();\n }",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}",
"public boolean firstThree( String[] values )\n {\n boolean found = false;\n if( !values[0].equals(values[1]) )\n {\n if( !values[0].equals(values[2]) )\n {\n driver.findElement(By.cssSelector(\"#box > span:nth-child(1)\")).click();\n found = true;\n }\n else\n {\n driver.findElement(By.cssSelector(\"#box > span:nth-child(2)\")).click();\n found = true;\n }\n }\n else if( !values[0].equals(values[2]) )\n {\n driver.findElement(By.cssSelector(\"#box > span:nth-child(3)\")).click();\n found = true;\n }\n\n return found;\n }",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"public boolean isSelected() \n {\n return selected;\n }",
"public boolean isSelectionChanged();",
"public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }",
"public abstract boolean isSelected();",
"public boolean isSelected(){\r\n return selected;\r\n }",
"public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}",
"public void itemSelected(boolean selected);",
"@Override\n public boolean isValid() {\n return getComponent().manager.getSelectedNodes().length == 1;\n }",
"public boolean isAccessibleSelected(int r, int c) {\n try {\n return unoAccessibleTable.isAccessibleSelected(r,c);\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return false;\n } catch (com.sun.star.uno.RuntimeException e) {\n return false;\n }\n }",
"public int getSelectedTab() {\n return tabbedPane.getSelectedIndex();\n }",
"boolean isChildSelectable(int groupPosition, int childPosition);",
"public boolean isFourOfAKind() {\n \n \treturn rankSet().size() ==2 && sameSet.size() == 1;\n }",
"public boolean hasVisibleItems();",
"public void verifyDiscussionViewedTabSelectedByDefault() {\n\t\t\n\t\t\tboolean flag=true;\n\t\t\ttry { \t\n\t\t\t\tWebElement DiscussionViewedTab = driver.findElement(ByLocator(\"//a[text()='Discussion Viewed']\"));\n\n\t\t\t\tif (DiscussionViewedTab.isDisplayed()) {\n\t\t\t\t\tflag=false;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tAssert.assertTrue(flag);\n\t\t\n\t}",
"public boolean isSelected(PortalSiteRequestContext context)\n {\n // menu is selected if a selected element exists\n return (getSelectedElement(context) != null);\n }",
"public boolean menuSelectItem(final WinRefEx hWnd, final String item1,\n\t\t\t\t\t\t\t\t final String item2, final String item3, final String item4) {\n\t\treturn (hWnd == null) ? false : menuSelectItem(TitleBuilder.byHandle(hWnd), null,\n\t\t\t\titem1, item2, item3, item4);\n\t}",
"public boolean isSelected_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isSelected()) { return true; } else { return false;} \r\n\t}",
"public boolean hasSelectedTile()\r\n\t{\r\n\t\treturn (selectedTile != null);\r\n\t}",
"public boolean isCompleted(int exercise) {\n String reps;\n boolean complete = true;\n if(exercise == 0)\n reps = \"3\";\n else if(exercise == 4 || exercise == 7)\n reps = \"20\";\n else if(exercise == 3 || exercise == 6)\n reps = \"15\";\n else\n reps = \"12\";\n\n for(int i = 0; i < bsButtons[exercise].length; i++) {\n if(bsButtons[exercise][i].getText().toString().equals(reps)) {\n complete = true;\n }\n else {\n complete = false;\n break;\n }\n }\n return complete;\n }",
"protected boolean isSelected(int slotIndex)\n {\n return false;\n }",
"protected boolean isSelected(int slotIndex)\n {\n return false;\n }",
"protected boolean isSelected(int slotIndex)\n {\n return false;\n }",
"boolean hasSelectedTransport()\n {\n for(JCheckBoxMenuItem item : transportMenuItems.values())\n {\n if(item.isSelected())\n return true;\n }\n\n return false;\n }",
"public boolean mo35074a(int i) {\n return i == 4;\n }",
"public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public CTabItem getSelection() {\n checkWidget();\n CTabItem result = null;\n if( selectedIndex != -1 ) {\n result = ( CTabItem )itemHolder.getItem( selectedIndex );\n }\n return result;\n }",
"int getSelectedButton() {\n for (int i = 0; i < buttons.length; i++) {\n if (buttons[i].isSelected()) {\n return (i);\n }\n }\n return (-1);\n }",
"@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse != -1 && !getTable().isRowSelected(rowUnderMouse)) {\n// selected = rowUnderMouse;\n// }\n selected = rowUnderMouse;\n }\n }",
"boolean isCitySelected();",
"private static boolean TableRow_4(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"TableRow_4\")) return false;\n int c = current_position_(b);\n while (true) {\n if (!TableRow_4_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"TableRow_4\", c)) break;\n c = current_position_(b);\n }\n return true;\n }",
"boolean hasArtilleryFactorySelected();",
"public boolean buttonActive(int i) {\n boolean b = false;\n if (categories.get(i).isActive()) {\n b = true;\n }\n return b;\n }",
"protected boolean isSelected(Object itemValue, Object valueArray) {\r\n if (valueArray != null) {\r\n int len = Array.getLength(valueArray);\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n Object value = Array.get(valueArray, i);\r\n if (value == null) {\r\n if (itemValue == null) {\r\n return true;\r\n }\r\n } else if (value.equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"protected boolean isSelected(Object itemValue, Object[] values) {\r\n if (values != null) {\r\n int len = values.length;\r\n // check all items in the array\r\n for (int i=0; i<len; i++) {\r\n if (values[i].equals(itemValue)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"boolean isFourOfAKind();",
"public boolean isSelected() {\n\t\treturn _booleanNode.isPartiallyTrue();\n\t}",
"public boolean estValide()\r\n\t{\r\n\t\tif (size() == 5)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isSlot(int i);",
"@Override\r\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.DESELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}"
] |
[
"0.700356",
"0.63786227",
"0.63684297",
"0.632929",
"0.6195744",
"0.60482204",
"0.5901595",
"0.5830533",
"0.5823425",
"0.5785597",
"0.5747695",
"0.5747695",
"0.5747695",
"0.5741721",
"0.57184076",
"0.56176066",
"0.56128174",
"0.5606141",
"0.5604915",
"0.5594909",
"0.5591742",
"0.5575924",
"0.55701786",
"0.5560815",
"0.55511016",
"0.5545587",
"0.5545587",
"0.5544818",
"0.5527506",
"0.5509429",
"0.5490345",
"0.5480739",
"0.546616",
"0.5463133",
"0.54631186",
"0.5459511",
"0.5440812",
"0.5435287",
"0.5427008",
"0.54121715",
"0.5401383",
"0.5401383",
"0.5396348",
"0.5394874",
"0.5394874",
"0.5394874",
"0.5391292",
"0.5388636",
"0.53815603",
"0.5372443",
"0.5366988",
"0.5365146",
"0.5364338",
"0.5363368",
"0.5361672",
"0.5361397",
"0.5344424",
"0.5344424",
"0.534409",
"0.5341915",
"0.53316224",
"0.5323083",
"0.5305892",
"0.5304405",
"0.5299801",
"0.52972776",
"0.529232",
"0.5290104",
"0.5286585",
"0.5274339",
"0.5268407",
"0.5252316",
"0.5252114",
"0.5249213",
"0.52461934",
"0.5242286",
"0.5224905",
"0.5215894",
"0.5214987",
"0.52114433",
"0.5200329",
"0.5200329",
"0.5200329",
"0.5199622",
"0.51919585",
"0.5189404",
"0.51578504",
"0.5146189",
"0.51349753",
"0.51180905",
"0.51163316",
"0.5112232",
"0.5098369",
"0.50973207",
"0.5094652",
"0.5085868",
"0.50843",
"0.50811523",
"0.50707245",
"0.5068751"
] |
0.72821534
|
0
|
Convert the array with selected indices to an array of booelans.
|
private boolean[] SetSelected(boolean[] selected, JList list) {
int[] indices = list.getSelectedIndices();
for (int i = 0; i < selected.length; i++) {
selected[i] = false;
}
for (int i = 0; i < indices.length; i++) {
selected[indices[i]] = true;
}
return selected;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static byte[] b(int... array) {\n if (array == null) {\n return null;\n }\n byte[] ret = new byte[array.length];\n for (int i = 0; i < ret.length; i++) {\n ret[i] = (byte) array[i];\n }\n return ret;\n }",
"public boolean[] getBooleans(){\n\t\tboolean[] b = new boolean[10];\n\t\tb[0] = isBoolean(answer0);\n\t\tb[1] = isBoolean(answer1);\n\t\tb[2] = isBoolean(answer2);\n\t\tb[3] = isBoolean(answer3);\n\t\tb[4] = isBoolean(answer4);\n\t\tb[5] = isBoolean(answer5);\n\t\tb[6] = isBoolean(answer6);\n\t\tb[7] = isBoolean(answer7);\n\t\tb[8] = isBoolean(answer8);\n\t\tb[9] = isBoolean(answer9);\n\t\treturn b;\n\t}",
"int[] toArray();",
"static double[] getArrayb(double[][] matrix) {\n double[][] res1 = transMatrix(matrix);\n double[] b = new double[res1[res1.length - 1].length];\n for (int i = 0; i < b.length; i++) {\n b[i] = res1[res1.length - 1][i];\n }\n // we get b that is array of right parts\n return b;\n }",
"public int [] getResultArr() {\n return maskResultArray;\n }",
"public static float[] getBinomialKernelSigmaZeroPointFive() {\n //1 -1 norm=0.5\n return new float[]{0.5f, 0.0f, -0.5f};\n }",
"private double[] b2() {\n double[] r = b;\n for (int j = 0; j < nBinVars2; j++) {\n r = Maths.append(r, 1d);\n }\n return r;\n }",
"int[][][] blurImage(int[][][] imageArray, int height, int width);",
"public static double [][] inv(double [][] a) {\n int N = a.length;\n double [] col = new double[N];\n int [] indx = new int[N];\n double [][] y = new double[N][N];\n \n double d = ludcmp(a, indx);\n for (int j=0; j<N; j++ ) {\n for (int i=0; i<N; i++) \n col[i] = 0.0;\n col[j] = 1.0;\n lubksb(a, indx, col);\n for (int i=0; i<N; i++)\n y[i][j] = col[i];\n }\n return y; \n }",
"public Double getOutputBinsAtIdx(final int index) {\n Double rtn = null;\n if (0 <= index && index < getNumOutputBins()) {\n rtn = getOutputBins().get(index);\n }\n return rtn;\n }",
"public void generateB(){\n\t\t\tfor(int i = 0;i < w.length;i++){\n\t\t\t\tb[i] = w[i].multiply(r).mod(q);\n\t\t\t}\n\t}",
"public static double[] buildOneHotArray(int len, int hotPos) {\n double[] array = new double[len];\n array[hotPos] = 1;\n return array;\n }",
"@SuppressWarnings(\"MissingOverride\")\n default int[] getSelectedIndices() {\n int iMin = getMinSelectionIndex();\n int iMax = getMaxSelectionIndex();\n\n if ((iMin < 0) || (iMax < 0)) {\n return new int[0];\n }\n\n int[] rvTmp = new int[1 + (iMax - iMin)];\n int n = 0;\n for (int i = iMin; i <= iMax; i++) {\n if (isSelectedIndex(i)) {\n rvTmp[n++] = i;\n }\n }\n int[] rv = new int[n];\n System.arraycopy(rvTmp, 0, rv, 0, n);\n return rv;\n }",
"public void toBinMode(){\r\n for(int i=2;i<numbers.length;i++){\r\n numbers[i].setEnabled(false);\r\n }\r\n for(JButton letter : letters){\r\n letter.setEnabled(false);\r\n }\r\n this.revalidate();\r\n this.repaint();\r\n }",
"public Double[][] toPresent() throws IndexOutOfBoundsException;",
"public Double[][] toPast() throws IndexOutOfBoundsException;",
"protected static float[] getBinomialKernelSigmaOne() {\n float a = 1.f/16.f;\n return new float[]{2*a, 4*a, 0, -4*a, -2*a};\n }",
"public BinaryArray(int[] binaries) {\n this.binaries = binaries;\n }",
"public BandedArraySolution(int[][] a) {\n\t\tsuper(a);\n\t}",
"public byte[][] getBiArray() {\n return mbarrayBiValues;\n }",
"public void deactivateAll() {\n for (int i = 0; i < numFrequencies; i++)\n isActive[i] = false;\n\n numActive = 0;\n }",
"public static void convertBTtoArray(BNode root, int[] treeArray, int index) {\n //Check whether tree is empty\n if (root == null) {\n System.out.println(\"Tree is empty\");\n return;\n } else {\n if (root.left != null)\n convertBTtoArray(root.left, treeArray, index);\n //Adds nodes of binary tree to treeArray\n treeArray[index] = root.data;\n index++;\n if (root.right != null)\n convertBTtoArray(root.right, treeArray, index);\n }\n }",
"public static int[] getValues(vtkCellArray array)\n\t{\n\t\tarray.Squeeze();\n\t\tvtkIdTypeArray data = array.GetData();\n\t\tint[] toReturn = getValues(data);\n\t\treturn toReturn;\n\t}",
"public BnB(ObjectiveType objectiveType, double c0, double[] c, double[][] a, Sign[] signs, double[] b, int[] freeVars, int[] intVars) {\n this(objectiveType, c0, c, a, signs, b, freeVars, intVars, Maths.EMPTY_INT_ARRAY);\n }",
"public static BitVector createIndexSet(int[] indices) {\n\t\tif (indices.length==0)\n\t\t\treturn new BitVector(0);\n\n\t\tBitVector bv = new BitVector(indices[indices.length-1]+1);\n\t\tfor (int index : indices)\n\t\t\tbv.putQuick(index, true);\n\t\treturn bv;\n\t}",
"public abstract int[] toIntArray();",
"public static int[] volteaArray(int array[]){\r\n int array2[] = new int[array.length];\r\n \r\n for (int i = 0; i<array.length; i++){\r\n array2[(9-i)]=array[i];\r\n }\r\n \r\n return array2;\r\n }",
"public List<B> getBins() {\n return ImmutableList.copyOf(bins);\n }",
"protected static float[] getBinomialKernelSigmaZeroPointSevenOne() {\n float a = 1.f/200.f;\n return new float[]{9*a, 83*a, 0, -83*a, -9*a};\n }",
"private static byte[] toByteArray(int[] array) {\n final byte[] res = new byte[array.length];\n for (int i = 0; i < array.length; ++i) {\n final int value = array[i];\n res[i] = (byte) value;\n }\n return res;\n }",
"private double[][] a2() {\n double[][] r = a;\n for (int j = 0; j < nBinVars; j++) {\n final int v = intVars[j];\n if (existsBinConstraint(v)) {\n LOG.debug(\"existsBinConstraint\", v);\n this.nBinVars2--;\n continue;\n }\n double[] constraint = new double[n];\n constraint[v - 1] = 1d;\n r = Maths.append(r, constraint);\n }\n return r;\n }",
"public static int[] volteaArrayInt(int array[]) {\n int aux[] = new int[array.length];\n int cont = aux.length;\n for (int n : array) {\n aux[--cont] = n;\n }\n return aux;\n }",
"public int[] toArray() \n {\n \treturn arrayCopy(state);\n }",
"public static int[] invert(int[] arr) {\n int[] result = new int[arr.length];\n Arrays.fill(result, -1);\n for (int i = 0; i < arr.length; i++)\n result[arr[i]] = i;\n return result;\n }",
"int[] selectEmbeddings(int cutoff) {\n\n Matrix input_ = model_.wi_;\n List<L2NormData> normIndexes = new ArrayList<>(input_.m_);\n int eosid = dict_.getId(Dictionary.EOS); // we want to retain EOS\n for (int i = 0; i < input_.m_; i++) {\n if (i == eosid) {\n continue;\n }\n normIndexes.add(new L2NormData(i, input_.l2NormRow(i)));\n }\n normIndexes.sort((a, b) -> Float.compare(b.l2Norm, a.l2Norm));\n\n int[] result = new int[cutoff];\n for (int i = 0; i < cutoff - 1; i++) {\n result[i] = normIndexes.get(i).index;\n }\n // add EOS.\n result[cutoff - 1] = eosid;\n return result;\n }",
"public double[] toArray() {\n\t\treturn acc.toArray();\n\t}",
"public static int[] generateRandomArray(){\n return new Random().ints(0, 100000)\n .distinct()\n .limit(1000).toArray();\n }",
"boolean bts(int array[], int index)\r\n {\r\n int d = index / 32;\r\n int mask = 1 << (index & 31);\r\n boolean b = (array[d] & mask) != 0;\r\n array[d] |= mask;\r\n return b;\r\n }",
"private int[] getLimitingDistancesArray(int distances[]) {\n int limitingDistances[] = new int[distances.length];\n int lowestDistance = distances[distances.length - 1];\n for (int i = distances.length - 1; i >= 0; i--) {\n if (lowestDistance > distances[i]) {\n lowestDistance = distances[i];\n }\n limitingDistances[i] = lowestDistance;\n }\n\n return limitingDistances;\n }",
"public void getIndices (short[] indices) {\r\n \t\tif (indices.length < getNumIndices())\r\n \t\t\tthrow new IllegalArgumentException(\"not enough room in indices array, has \" + indices.length + \" floats, needs \"\r\n \t\t\t\t+ getNumIndices());\r\n \t\tint pos = getIndicesBuffer().position();\r\n \t\tgetIndicesBuffer().position(0);\r\n \t\tgetIndicesBuffer().get(indices, 0, getNumIndices());\r\n \t\tgetIndicesBuffer().position(pos);\r\n \t}",
"public boolean[][] fillMask(boolean arr[][]) {\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tfor (int j = 0;j < arr[0].length; j++) {\r\n\t\t\t\tarr[i][j] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arr;\r\n\t}",
"public double[] avgBtn (double marks[])\n {\n return marks; \n }",
"public void setInputB(boolean[] b) {\n // PROGRAM 1: Student must complete this method\n //if param array != INT_LENGTH, throw exception\n if (b.length != INT_LENGTH) {\n throw new IllegalArgumentException(\"Invalid array length\");\n } else {\n //otherwise, place the parameter array's data into inputB\n for (int i = 0; i < b.length; i++) {\n inputB[i] = b[i];\n }\n }\n }",
"@Override\n\tpublic int[] toArray() {\n\t\treturn null;\n\t}",
"public void mixArray(int[] v){\n Random rnd = new Random();\n for (int i = v.length - 1; i > 0; i--)\n {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n int a = v[index];\n v[index] = v[i];\n v[i] = a;\n }\n }",
"private void checAll(Object [][] arr, boolean b){\r\n\t\tif(arr == null) return ;\r\n\t\t\r\n\t\tfor(int i =0 ; i < arr.length; i++){\r\n\t\t\tUserObject ob = (UserObject)arr[i][0];\r\n\t\t\tif(ob == null) continue;\r\n\t\t\tob.setSelected(b);\r\n\t\t}\r\n\t}",
"public void chooseBiasValue() {\r\n \r\n if (biasMode.charAt(0) == 't')\r\n {\r\n for (int i=0; i < hiddenLayerContainer.getHiddenLayerContainer().size(); i++){\r\n hiddenLayerContainer.getHiddenLayerContainer().get(i).setBiasActive(true);\r\n }\r\n outputLayer.setBiasActive(true);\r\n }\r\n }",
"public Blind getBlinds() {\n return blinds;\n }",
"int[] getSelection();",
"public static BinaryExpression arrayIndex(Expression array, Expression indexExpressions) { throw Extensions.todo(); }",
"public int[] getExpectedProducts(int[] arr) {\n int[] res = new int[arr.length];\n\n for(int i = 0; i < arr.length; i++) {\n res[i] = 1;\n\n for(int j = 0; j < arr.length; j++) {\n if(i != j) {\n res[i] *= arr[j];\n }\n }\n }\n\n return res;\n }",
"public static List<Integer> getUnmarked(boolean[] arr) {\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (arr[i] == false) {\n\t\t\t\tlist.add(new Integer(i));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"private static int[] generateArray(int i, int j) {\n int[] col = new int[j+1];\n for(int k = 0; k <= j; k++)\n {\n col[k] = (i+k)%Algo.x.length;\n } \n return col;\n }",
"private Bitmap floatArrayToBitmap(float[] floatArray, int width, int height) {\n Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n // vector is your int[] of ARGB\n List<Integer> intList = new ArrayList<>();\n for (float v : floatArray) intList.add(transform(v));\n int[] intArray = intList.stream().mapToInt(Integer::intValue).toArray();\n System.out.println(Arrays.toString(intArray));\n bitmap.copyPixelsFromBuffer(IntBuffer.wrap(intArray));\n return bitmap;\n }",
"public static int[] getIDs() {\n int[] res = new int[crossbows.length];\n for (int i = 0; i < crossbows.length; i++) {\n res[i] = (int)crossbows[i][0];\n }\n return res;\n }",
"public BufferedImage convertToBimage(int[][][] TmpArray) {\n\n int width = TmpArray.length;\n int height = TmpArray[0].length;\n\n BufferedImage tmpimg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n int a = TmpArray[x][y][0];\n int r = TmpArray[x][y][1];\n int g = TmpArray[x][y][2];\n int b = TmpArray[x][y][3];\n\n //set RGB value\n\n int p = (a << 24) | (r << 16) | (g << 8) | b;\n tmpimg.setRGB(x, y, p);\n\n }\n }\n return tmpimg;\n }",
"static public int[] toArray(IntArray array){\r\n final int[] result = new int[array.getLength()];\r\n for (int i = 0; i < array.getLength(); i++) {\r\n result[i] = array.getData(i);\r\n }\r\n return result;\r\n }",
"public byte[] int2byteArray(int[] ints){\n ByteBuffer buf = ByteBuffer.allocate(ints.length * Integer.BYTES);\n for (int i = 0; i < ints.length; i++) {\n buf.putInt(ints[i]);\n }\n\n return buf.array();\n }",
"public static double make_predictionFromViolaJonesAdaBoost(double [][] new_x) {\r\n\t\t\r\n\t\tif(classifierInfos == null) {\r\n\t\t\tSystem.out.println(\"AdaBoost not trained yet. Canīt make prediction from new input.\");\r\n\t\t}\r\n\t\t\r\n\t\tdouble prediction = 0.0;\r\n\t\tint nIterations = alphas.size();\r\n\t\t\r\n\t\tfor(int i=0; i<nIterations; i++) {\r\n\t\t\t\r\n\t\t\tString splitFeat = get_splittingFeature4Iteration(i);\r\n\t\t\tdouble threshold = get_threshold4Iteration(i);\r\n\t\t\tdouble polarity = get_polarity4Iteration(i);\r\n\t\t\tdouble p = 1.0;\r\n\r\n\t\t\tif(polarity != 0.0) {\r\n\t\t\t\tp = polarity;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint idx = Utilities.get_idx(names_of_explaining_variables, splitFeat)[0];\r\n\t\t\tdouble inputValue4Feature = new_x[0][idx];\r\n\t\t\t\r\n\t\t\tinputValue4Feature *=p;\r\n\t\t\tthreshold *=p;\r\n\t\t\t\r\n\t\t\tif(inputValue4Feature <= threshold) {\r\n\t\t\t\tprediction += classes[0]*alphas.get(i);\r\n\t\t\t}else {\r\n\t\t\t\tprediction += classes[1]*alphas.get(i);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn prediction;\r\n\t\t\r\n\t}",
"int[] getSelectedAuthorsBookIndexes();",
"public org.apache.spark.ml.param.DoubleArrayArrayParam splitsArray () { throw new RuntimeException(); }",
"public static short[] createX(short[] B, short y, short numVertices) {\n\t\tshort[] X = null;\r\n\t\tArrayList<Short> X_List = new ArrayList<Short>();\r\n\t\tint interval = -1;\r\n\t\tshort lastVertex = (short)(numVertices-1);\r\n\r\n\t\tif(y >= 0 && y < B[0]) interval = 0;\r\n\t\telse if (y > B[B.length-1]) {\r\n\t\t\tinterval = B.length;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor(int i = 0; i < B.length-1; i++) {\r\n\t\t\t\tif(B[i] < y && y < B[i+1]) {\r\n\t\t\t\t\tinterval = i+1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int b = 0; b < B.length; b++) {\r\n\t\t\tif(interval == 0 && b == 0) {\r\n\t\t\t\tif(B[b] > lastVertex) {\r\n\t\t\t\t\tX_List.add(B[b]);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(interval == B.length && b == B[B.length-1]) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif(b == interval) {\r\n\t\t\t\tif(B[b] > lastVertex) {\r\n\t\t\t\t\tX_List.add(B[b]);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(b == interval-1) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tX_List.add(B[b]);\r\n\t\t\t}\r\n\t\t}\r\n \t\tX = convertShorts(X_List);\r\n\t\treturn X;\r\n\t}",
"public double[] getEqualBoundaries(double[] data, int numClasses);",
"private SparseMatrix<Float64> makeB(SparseMatrix<Float64> matrix) {\n\t\t// normalize customers for each product\n\t\treturn makeC(matrix.transpose()).transpose();\n\t}",
"public Object[] argmax(float[] array) {\n int best = -1;\n float best_confidence = 0.0f;\n\n for (int i = 0; i < array.length; i++) {\n\n float value = array[i];\n\n if (value > best_confidence) {\n\n best_confidence = value;\n best = i;\n }\n }\n return new Object[]{best, best_confidence};\n }",
"public void setConvolutionalBiases(double[][] biases) {\n this.convolutionalBiases = biases;\n }",
"public static int[] getSubset(int[] input, int size){\n\t\t\n\t\tRandom rand = new Random();\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tswap(input, i, rand.nextInt(input.length - i));\n\t\t}\n\t\treturn input;\n\t}",
"private static int[] convertDiceValueArray(ArrayList<Dice> dices) {\n int[] combos = new int[dices.size()];\n\n for (int i = 0; i < dices.size(); i++) {\n combos[i] = dices.get(i).getValue();\n }\n return combos;\n }",
"protected static BitSet m5341b(byte[] bArr) {\n BitSet bitSet = new BitSet(bArr.length << 3);\n int i = 0;\n for (byte b : bArr) {\n int i2 = 7;\n while (i2 >= 0) {\n int i3 = i + 1;\n bitSet.set(i, ((b & (1 << i2)) >> i2) == 1);\n i2--;\n i = i3;\n }\n }\n return bitSet;\n }",
"public double[] getArray(){\n\t\t\tdouble[] temp = new double[count];\n\t\t\tfor (int i = 0; i < count; i++){\n\t\t\t\ttemp[i] = anArray[i];\n\t\t\t}\n\t\t\treturn temp;\n\t\t}",
"public Bids[] populateBids() {\r\n\t\tint bidsLength = bids.size();\r\n\t\tint index = 0;\r\n\t\t\r\n\t\tBids[] auctionBids = new Bids[bidsLength];\r\n\t\tfor(Map.Entry<Integer, Bids> auctions: bids.entrySet()) {\r\n\t\t\tauctionBids[index] = auctions.getValue();\r\n\t\t\tindex++;\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\treturn auctionBids;\r\n\t\r\n\t}",
"public static int[] restrict(int[] a, BitVector entries) {\n\t\tint[] re = new int[entries.cardinality()];\n\t\tint index = 0;\n\t\tfor (int i=0; i<a.length; i++)\n\t\t\tif (entries.getQuick(i))\n\t\t\t\tre[index++] = a[i];\n\t\treturn re;\n\t}",
"public final int[][] reconstructedLabels() {\n \tint[][] labels = new int[nmgdm][nx*ny*nz];\n \tfor (int n=0;n<nmgdm;n++) {\n \t\tfor (int xyz=0; xyz<nx*ny*nz; xyz++) {\n \t\t\tif (mgdmlabels[n][xyz]>-1) {\n\t\t\t\t\tlabels[n][xyz] = objLabel[mgdmlabels[n][xyz]];\n\t\t\t\t}\n\t\t\t}\n \t}\n \treturn labels;\n }",
"HashSet<BitSet> createSubsets(BitSet bs){\n HashSet<BitSet> subsets = new HashSet<>();\n for(int i=0; i<bs.length(); i++){\n if(bs.get(i)){\n BitSet t = (BitSet)bs.clone();\n t.flip(i);\n subsets.add(t);\n }\n }\n \n return subsets;\n }",
"private double[] varianceArray(){\n\t\tdouble[] varianceVals = new double[values.length];\n\t\tfor(int i = 0; i < values.length; i++){\n\t\t\tvarianceVals[i] = Math.pow(values[i] - mean , 2.0);\n\t\t}\n\t\treturn varianceVals;\n\t}",
"public abstract short[] toShortArray();",
"public Weet[] toArray() {\n /**\n * Used by getWeets() for returning a chronological array of weets.\n */\n\n /* If no insertions have been carried out, return the array of weets with no further operations */\n if (altered == false) {\n return WeetArray;\n }\n /**\n * Otherwise, define a new array dwArray (If M is the number of Date-Weet pairs, dwArray has size M),\n * make a call to an overloaded method with the generics of the B-Tree and dwArray as parameters,\n * set WeetArray equal to the new array and force WeetArray to return by setting 'altered' to false.\n */\n else {\n c = 0;\n altered = false;\n Weet[] dwArray = new Weet[size];\n toArray(root, height, dwArray);\n WeetArray = dwArray;\n return dwArray;\n }\n }",
"public Color[] getGeneColorArray(int index);",
"public static void main(String[] args) {\r\n int [] arr={2, 5 ,9, 11, 67, 345};\r\n int target= 67;\r\n int ans=binary(arr, target);\r\n System.out.println(Arrays.toString(ans));\r\n }",
"public static List<HashSet<Index>> findSetsOfOnes(int[][] twoDArray){\n Matrix matrix = new Matrix(twoDArray);\n List<HashSet<Index>> filtered = new ArrayList<>();\n mapOfOnes = getMapOfOnes(matrix, twoDArray);\n\n // Iterate over the map of indices\n // For each index find it's connected component,\n // then changing it's value to 0 in order to avoid duplications\n // Using auxiliary function: findingConnectedComponent.\n for(Map.Entry<Index, Integer> entry : mapOfOnes.entrySet()) {\n\n if (entry.getValue() == 1) {\n mapOfOnes.put(entry.getKey(), 0);\n HashSet<Index> temp = new HashSet<>(findingConnectedComponent(twoDArray, entry.getKey()));\n filtered.add(temp);\n }\n }\n // Sorting the list\n return filtered.stream()\n .sorted(Comparator.comparing(HashSet::size)).collect(Collectors.toList());\n }",
"public double[][] flatten(){\n double[][] result = new double[featureBlocks.size()][];\n int count=0;\n for(FeatureBlock featureBlock: featureBlocks){\n // might experience reference issue\n result[count] = featureBlock.flatten();\n count++;\n }\n return math.T(result);\n }",
"public abstract double[] toDoubleArray();",
"public Integer[] createArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = (int)(value.length*Math.random());\n }\n\n return value;\n }",
"private static BitSet makeBitSet( int... args ) {\n\tBitSet result = new BitSet( MAX_OPCODE + 1 ) ;\n\tfor (int value : args )\n\t result.set( value ) ;\n\treturn result ;\n }",
"public static int[] selectionShuffle(int[] arr) { \n int temp;\n int idx;\n for(int i = 0; i < arr.length; i ++){\n idx = (int) (Math.random() * arr.length);\n temp = arr[i];\n arr[i] = arr[idx];\n arr[idx] = temp;\n }\n return arr;\n }",
"@Override\r\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn set.toArray(a);\r\n\t}",
"public boolean[] asSetOfBool() {\n boolean[] rslt = new boolean[this.value.length];\n for (int i=0; i<this.value.length; i++) rslt[i] = this.value[i];\n return rslt;\n }",
"public Integer[] createIndexArray() {\n Integer[] indexes = new Integer[array.length];\n for (int i = 0; i < array.length; i++) {\n indexes[i] = i;\n }\n return indexes;\n }",
"@DataProvider\n\t public static Object[][] dataProviderOrdinaryAnnuityArray() {\n\t\tdouble[] Cempty = {};\n\t\tdouble[] C = {1000.0,1500.0,2000.0};\n\t\treturn new Object[][] {\n\t\t\t{Cempty,0.1,0},\n\t\t\t{C,0.9,1233.42}\n\t\t};\n\t}",
"private void compareAllArrayValues(Cell[] arr, byte i, byte j,\r\n\t\t\tConstants.Selection sel) {\r\n\r\n\t\t\tfor (int k = 0; k < arr.length; k++) {\r\n\t\t\t\tif (sel == Constants.Selection.COL) {\r\n\t\t\t\t\t// j doesn't change\r\n\t\t\t\t\tfor (byte l = 0; l < Constants.DIMENSION; l++) {\r\n\t\t\t\t\t\tif (this.getCell(l, j).compareTo(arr[k]) == 0) {\r\n\t\t\t\t\t\t\tswitchACellWithARandomOtherCell(l, j, sel);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (sel == Constants.Selection.ROW) {\r\n\t\t\t\t\t// i doesn't change\r\n\t\t\t\t\tfor (byte l = 0; l < Constants.DIMENSION; l++) {\r\n\t\t\t\t\t\tif (this.getCell(i, l).compareTo(arr[k]) == 0) {\r\n\t\t\t\t\t\t\tswitchACellWithARandomOtherCell(i, l, sel);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t}",
"public static int[] arrayInsOf(int[] a, int idx, int x) {\n\t\tint[] b = new int[a.length+1];\n\t\t\n\t\tint n = b.length-1;\n\t\tfor(int i = n; i > idx; i--){\n\t\t\tb[i] = a[i-1];\n\t\t}\n\t\t\n\t\tb[idx] = x;\n\t\t\n\t\tfor(int i = 0; i < idx; i++){\n\t\t\tb[i] = a[i];\n\t\t}\n\t\treturn b;\n\t}",
"Nda<V> getAt( int... indices );",
"public int[] getBlockAsArray(int b){\n\t\tint n = 0;\n\t\tint[] block = new int[size*size];\n\t\tfor (int i = size*(b/size); i < size*(b/size+1); i++){\n\t\t\tfor (int j = size*(b%size); j < size*(b%size+1); j++){\n\t\t\t\tblock[n] = numbers[i][j];\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\t\treturn block;\n\t}",
"static double binarySearchForBuckets (double[] splits, double feature, boolean keepInvalid) { throw new RuntimeException(); }",
"public int[] getAllAnswers() {\n return myIndices;\n }",
"public int[] getAllBuses()\n\t{\n\t\tint buses[] = new int[_maxBusNdx+1];\n\t\tint bofs = 0;\n\t\tfor(int i=0; i<buses.length; i++)\n\t\t{\n\t\t\tif (_list[i] > -1) buses[bofs++] = i;\n\t\t}\n\t\treturn Arrays.copyOf(buses, bofs);\n\t}",
"public void setOutputBiases(double[][] biases) {\n this.outputBiases = biases;\n }",
"public double getBias();",
"public double[] getBasisVector(int index) {\n\t\tdouble[] pc = new double[eigenvectors.getRowDimension()];\n\t\tdouble[][] data = eigenvectors.getArray();\n\t\t\n\t\tfor (int r=0; r<pc.length; r++)\n\t\t\tpc[r] = data[r][index];\n\t\t\n\t\treturn pc;\n\t}",
"protected static float[] getBinomialKernelSigmaTwo() {\n double a = 1.f/33300l;\n return new float[]{\n (float) (1l * a), (float) (14l * a), (float) (90l * a),\n (float) (350l * a), (float) (910l * a), (float) (1638l * a),\n (float) (2002l * a), (float) (1430l * a), (float) (0l * a),\n (float) (-1430l * a), (float) (-2002l * a), (float) (-1638l * a),\n (float) (-910l * a), (float) (-350l * a), (float) (-90l * a),\n (float) (-14l * a), (float) (-1l * a)\n };\n }",
"static int[][] getColumns(int[] array){\n int[][] rezultArray = new int[n][n];\n int index = 0;\n for (int i = 0; i < n; i++){\n for (int j = i; j < n * n; j += n){\n rezultArray[i][index++] = array[j];\n }\n index = 0;\n }\n return rezultArray;\n }"
] |
[
"0.45825097",
"0.45668283",
"0.45382386",
"0.44742066",
"0.44473344",
"0.44035313",
"0.4396488",
"0.43742397",
"0.43623254",
"0.4360441",
"0.4338845",
"0.4325342",
"0.43195358",
"0.43041152",
"0.42920274",
"0.4290712",
"0.42815736",
"0.42768618",
"0.42757684",
"0.42702082",
"0.42658147",
"0.42595506",
"0.42421108",
"0.4241607",
"0.42325392",
"0.42241514",
"0.42117548",
"0.4209933",
"0.42083332",
"0.4202783",
"0.41937336",
"0.41861224",
"0.41845042",
"0.41702932",
"0.4168699",
"0.41595706",
"0.41526607",
"0.41405773",
"0.4132142",
"0.41231057",
"0.41221902",
"0.41155595",
"0.41034335",
"0.4084214",
"0.4083599",
"0.40819687",
"0.4077495",
"0.406934",
"0.406881",
"0.4064942",
"0.4063258",
"0.40539116",
"0.40481424",
"0.40461296",
"0.40456256",
"0.40424046",
"0.40340415",
"0.40338898",
"0.40315232",
"0.40262905",
"0.40230042",
"0.40174842",
"0.40171456",
"0.40131345",
"0.4008535",
"0.3995409",
"0.3986538",
"0.39846814",
"0.3984567",
"0.3982882",
"0.3981101",
"0.39772183",
"0.39768538",
"0.39684814",
"0.3961654",
"0.39605093",
"0.39598653",
"0.39566624",
"0.3953968",
"0.39524674",
"0.39507166",
"0.39502284",
"0.3948522",
"0.39468643",
"0.39413664",
"0.39398423",
"0.39363468",
"0.39317468",
"0.39288723",
"0.39193213",
"0.39188942",
"0.3916048",
"0.39109835",
"0.39032963",
"0.3899985",
"0.38982424",
"0.38965547",
"0.38911808",
"0.3886277",
"0.38806152",
"0.3877784"
] |
0.0
|
-1
|
Create the power system
|
private void setupPowerSystem() {
ps = new PowerSystem(PowerSystemSolutionMethod.ANL_OPF);
// Create nodes & register with power system
NodeData nodeWindGenerator = new NodeData(1,1.0,0,false,true);
ps.addNode(nodeWindGenerator);
NodeData nodeSubstation2 = new NodeData(2,1.0,0,false);
ps.addNode(nodeSubstation2);
NodeData nodeCityResidential = new NodeData(3,1.0,0,false);
ps.addNode(nodeCityResidential);
NodeData nodeCityIndustrial = new NodeData(4,1.0,0,false);
ps.addNode(nodeCityIndustrial);
NodeData nodeCityCommercial = new NodeData(5,1.0,0,false);
ps.addNode(nodeCityCommercial);
NodeData nodeCoalGenerator = new NodeData(7,1.0,0,false,true);
ps.addNode(nodeCoalGenerator);
NodeData nodeSubstation3 = new NodeData(8,1.0,0,false);
ps.addNode(nodeSubstation3);
NodeData nodeGasGenerator = new NodeData(11,1.0,0,false,true);
ps.addNode(nodeGasGenerator);
NodeData nodeWindStorage = new NodeData(9,1.0,0,false);
ps.addNode(nodeWindStorage);
NodeData nodeSubstation1 = new NodeData(0,1.0,0,false);
ps.addNode(nodeSubstation1);
// Create lines & register with power system
MWTimeSeries branchTimeSeries = null;
BranchData branchWindGeneratorToLocalSubstation = new BranchData(nodeWindGenerator,nodeSubstation1,0.01,0,1500.0,true);
branchTimeSeries = new MWTimeSeries(simClock,branchWindGeneratorToLocalSubstation,"Wind Generator to Substation 1");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchWindGeneratorToLocalSubstation);
BranchData branchWindStorageToLocalSubstation = new BranchData(nodeWindStorage,nodeSubstation1,0.01,0,1500.0,false);
branchTimeSeries = new MWTimeSeries(simClock,branchWindStorageToLocalSubstation,"Storage to Substation 1");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchWindStorageToLocalSubstation);
branchWindLocalSubstationToCitySubstation = new BranchData(nodeSubstation1,nodeSubstation2,0.01,0,125.0,false);
branchTimeSeries = new MWTimeSeries(simClock,branchWindLocalSubstationToCitySubstation,"Substation 1 to Substation 2");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchWindLocalSubstationToCitySubstation);
BranchData branchWindToResidential = new BranchData(nodeSubstation2,nodeCityResidential,0.01,0,1500.0,true);
branchTimeSeries = new MWTimeSeries(simClock,branchWindToResidential,"Substation 2 to Residential");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchWindToResidential);
BranchData branchWindToCommercial = new BranchData(nodeSubstation2,nodeCityCommercial,0.01,0,1500.0,true);
branchTimeSeries = new MWTimeSeries(simClock,branchWindToCommercial,"Substation 2 to Commercial");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchWindToCommercial);
BranchData branchWindToIndustrial = new BranchData(nodeSubstation2,nodeCityIndustrial,0.01,0,1500.0,true);
branchTimeSeries = new MWTimeSeries(simClock,branchWindToIndustrial,"Substation 2 to Industrial");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchWindToIndustrial);
BranchData branchCoalGeneratorToSubstation = new BranchData(nodeCoalGenerator,nodeSubstation3,0.01,0,1500.0,true);
branchTimeSeries = new MWTimeSeries(simClock,branchCoalGeneratorToSubstation,"Coal Generator to Substation 3");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchCoalGeneratorToSubstation);
BranchData branchGasToSubstation = new BranchData(nodeGasGenerator,nodeSubstation3,0.01,0,1500.0,true);
branchTimeSeries = new MWTimeSeries(simClock,branchGasToSubstation,"Natural Gas Generator to Substation 3");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchGasToSubstation);
BranchData branchCoalToResidential = new BranchData(nodeSubstation3,nodeCityResidential,0.01,0,1500.0,true);
branchTimeSeries = new MWTimeSeries(simClock,branchCoalToResidential,"Substation 3 to Residential");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchCoalToResidential);
BranchData branchCoalToIndustrial = new BranchData(nodeSubstation3,nodeCityIndustrial,0.01,0,1500.0,true);
branchTimeSeries = new MWTimeSeries(simClock,branchCoalToIndustrial,"Substation 3 to Industrial");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchCoalToIndustrial);
BranchData branchCoalToCommercial = new BranchData(nodeSubstation3,nodeCityCommercial,0.01,0,1500.0,true);
branchTimeSeries = new MWTimeSeries(simClock,branchCoalToCommercial,"Substation 3 to Commercial");
branchFlowInformation.add(branchTimeSeries);
circuitpanel.getAnimatables().add(branchTimeSeries);
ps.addBranch(branchCoalToCommercial);
// Create loads
MWTimeSeries loadTimeSeries = null;
loadResidential = new LoadData(nodeCityResidential,100.0,0,true);
loadTimeSeries = new MWTimeSeries(simClock,loadResidential,"Residential load");
circuitpanel.getAnimatables().add(loadTimeSeries);
loadInformation.add(loadTimeSeries);
ps.addLoad(loadResidential);
loadCommercial = new LoadData(nodeCityCommercial,100.0,0,true);
loadTimeSeries = new MWTimeSeries(simClock,loadCommercial,"Commercial load");
circuitpanel.getAnimatables().add(loadTimeSeries);
loadInformation.add(loadTimeSeries);
ps.addLoad(loadCommercial);
loadIndustrial = new LoadData(nodeCityIndustrial,100.0,0,true);
loadTimeSeries = new MWTimeSeries(simClock,loadIndustrial,"Industrial load");
circuitpanel.getAnimatables().add(loadTimeSeries);
loadInformation.add(loadTimeSeries);
ps.addLoad(loadIndustrial);
// Create gens
MWTimeSeries genTimeSeries = null;
gensWithCostsAndEmissions = new ArrayList<CostAndEmissionsProvider>();
GeneratorDataWithLinearCostAndEmissions genCoal = new GeneratorDataWithLinearCostAndEmissions(nodeCoalGenerator,600,0,2000,0,0,9999,true,2000,20.0,0,1.0,includeFixedCostsAndEmissions);
gensWithCostsAndEmissions.add(genCoal);
costAndEmissionsTimeSeries.addCostAndEmissionsProvider(genCoal);
genTimeSeries = new MWTimeSeries(simClock,genCoal,"Coal generation");
circuitpanel.getAnimatables().add(genTimeSeries);
generatorInformation.add(genTimeSeries);
ps.addGenerator(genCoal);
GeneratorDataWithLinearCostAndEmissions genGas = new GeneratorDataWithLinearCostAndEmissions(nodeGasGenerator,200,0,2000,0,0,9999,true,700.0,70.0,0,0.5,includeFixedCostsAndEmissions);
gensWithCostsAndEmissions.add(genGas);
costAndEmissionsTimeSeries.addCostAndEmissionsProvider(genGas);
genTimeSeries = new MWTimeSeries(simClock,genGas,"Natural gas generation");
circuitpanel.getAnimatables().add(genTimeSeries);
generatorInformation.add(genTimeSeries);
ps.addGenerator(genGas);
genWind = new WindGeneratorDataWithLinearCostAndEmissions(nodeWindGenerator,initialWindGen,0,210,initialWindVariation,true,200.0,0,0,0,includeFixedCostsAndEmissions);
genWind.setAnimating(false);
costAndEmissionsTimeSeries.addCostAndEmissionsProvider(genWind);
genTimeSeries = new MWTimeSeries(simClock,genWind,"Wind generation");
windGenTimeSeries = genTimeSeries;
circuitpanel.getAnimatables().add(genTimeSeries);
generatorInformation.add(genTimeSeries);
gensWithCostsAndEmissions.add(genWind);
ps.addGenerator(genWind);
genStorage = new StorageDevice(nodeWindStorage,0,0,0,0,0,0,true,genWind,branchWindLocalSubstationToCitySubstation,simClock,1000,100);
genTimeSeries = new MWTimeSeries(simClock,genStorage,"Storage generation");
costAndEmissionsTimeSeries.addCostAndEmissionsProvider(genStorage);
circuitpanel.getAnimatables().add(genTimeSeries);
circuitpanel.getAnimatables().add(genStorage);
generatorInformation.add(genTimeSeries);
gensWithCostsAndEmissions.add(genStorage);
ps.addGenerator(genStorage);
ps.solve();
ArrayList<LineAndDistanceInfoProvider> lines;
FlowArrowsForBranchData fA;
SimpleLineDisplay line;
BranchColorProvider branchColorProvider = new BranchColorDynamic(Color.BLACK,0.85,Color.ORANGE,1.0,Color.RED);
BranchThicknessProvider branchThicknessProvider = new BranchThicknessDynamic(1.0,0.85,2.0,1.0,3.0);
FlowArrowColorProvider flowArrowColorProvider = new FlowArrowColorDynamic(new Color(0,255,0,255/2),0.85,new Color(255,128,64,255/2),1.0,new Color(255,0,0,255/2));
double switchthickness = 5.0;
// Line Coal Generator to Fossil Substation & flow label
ArrayList<Point2D.Double> pointsCoalGenToCoalSubstation = new ArrayList<Point2D.Double>();
line = new SimpleLineDisplay(new Point2D.Double(710 - 70,350),new Point2D.Double(710 - 70,212),1);
pointsCoalGenToCoalSubstation.add(line.getFromPoint());
pointsCoalGenToCoalSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));
pointsCoalGenToCoalSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));
pointsCoalGenToCoalSubstation.add(line.getToPoint());
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsCoalGenToCoalSubstation,
0, branchThicknessProvider, switchthickness, 1, Math.PI/20,
branchCoalGeneratorToSubstation, branchColorProvider, circuitpanel, true,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchCoalGeneratorToSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
//circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(640,260),12,new Color(0f,0f,0f,1f),0,branchCoalGeneratorToSubstation));
// Line Gas Generator to Fossil Substation & flow label
ArrayList<Point2D.Double> pointsGasGenToFossilSubstation = new ArrayList<Point2D.Double>();
line = new SimpleLineDisplay(new Point2D.Double(710 - 70,112.5),new Point2D.Double(765 - 70,160),1);
pointsGasGenToFossilSubstation.add(line.getFromPoint());
pointsGasGenToFossilSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));
pointsGasGenToFossilSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));
pointsGasGenToFossilSubstation.add(line.getToPoint());
pointsGasGenToFossilSubstation.add(new Point2D.Double(710 - 70,212));
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsGasGenToFossilSubstation,
0, branchThicknessProvider, switchthickness, 1, Math.PI/20,
branchGasToSubstation, branchColorProvider, circuitpanel,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchGasToSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
//circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(660,170),12,new Color(0f,0f,0f,1f),0,branchGasToSubstation));
// Line Wind Generator to Wind Substation & flow label
ArrayList<Point2D.Double> pointsWindGenToWindSubstation = new ArrayList<Point2D.Double>();
line = new SimpleLineDisplay(new Point2D.Double(89,281),new Point2D.Double(89,150),1);
pointsWindGenToWindSubstation.add(line.getFromPoint());
pointsWindGenToWindSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));
pointsWindGenToWindSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));
pointsWindGenToWindSubstation.add(line.getToPoint());
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindGenToWindSubstation,
0, branchThicknessProvider, switchthickness, 1, Math.PI/20,
branchWindGeneratorToLocalSubstation, branchColorProvider, circuitpanel,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchWindGeneratorToLocalSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(100,200),12,new Color(0f,0f,0f,1f),0,branchWindGeneratorToLocalSubstation));
// Line storage to Wind Substation & flow label
ArrayList<Point2D.Double> pointsWindStorageToWindSubstation = new ArrayList<Point2D.Double>();
pointsWindStorageToWindSubstation.add(new Point2D.Double(210,25));
pointsWindStorageToWindSubstation.add(new Point2D.Double(85,25));
pointsWindStorageToWindSubstation.add(new Point2D.Double(85,55));
pointsWindStorageToWindSubstation.add(new Point2D.Double(85,95));
pointsWindStorageToWindSubstation.add(new Point2D.Double(85,140));
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindStorageToWindSubstation,
0, branchThicknessProvider, switchthickness, 2, Math.PI/20,
branchWindStorageToLocalSubstation, branchColorProvider, circuitpanel, true,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchWindStorageToLocalSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(100,75),12,new Color(0f,0f,0f,1f),0,branchWindStorageToLocalSubstation));
// Line substation 2 to Residential load
ArrayList<Point2D.Double> pointsWindStationToResidential = new ArrayList<Point2D.Double>();
pointsWindStationToResidential.add(new Point2D.Double(351 - 70,212.5));
pointsWindStationToResidential.add(new Point2D.Double(419 - 70,212.5));
pointsWindStationToResidential.add(new Point2D.Double(457 - 70,212.5));
pointsWindStationToResidential.add(new Point2D.Double(525 - 70,212.5));
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindStationToResidential,
0, branchThicknessProvider, switchthickness, 1, Math.PI/20,
branchWindToResidential, branchColorProvider, circuitpanel, true,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchWindToResidential,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(413 - 70,180),12,new Color(0f,0f,0f,1f),0,branchWindToResidential));
// Line substation 3 to Residential load
ArrayList<Point2D.Double> pointsFossilStationToResidential = new ArrayList<Point2D.Double>();
pointsFossilStationToResidential.add(new Point2D.Double(710 - 70,212.5));
pointsFossilStationToResidential.add(new Point2D.Double(631 - 70,212.5));
pointsFossilStationToResidential.add(new Point2D.Double(592 - 70,212.5));
pointsFossilStationToResidential.add(new Point2D.Double(525 - 70,212.5));
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsFossilStationToResidential,
0, branchThicknessProvider, switchthickness, 1, Math.PI/20,
branchCoalToResidential, branchColorProvider, circuitpanel,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchCoalToResidential,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(585 - 70,180),12,new Color(0f,0f,0f,1f),0,branchCoalToResidential));
// Line Substation 3 to Industrial load & flow label
ArrayList<Point2D.Double> pointsFossilSubstationToIndustrial = new ArrayList<Point2D.Double>();
line = new SimpleLineDisplay(new Point2D.Double(710 - 70,212.5),new Point2D.Double(525 - 70,365),1);
pointsFossilSubstationToIndustrial.add(line.getFromPoint());
pointsFossilSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));
pointsFossilSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));
pointsFossilSubstationToIndustrial.add(line.getToPoint());
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsFossilSubstationToIndustrial,
0, branchThicknessProvider, switchthickness, 1, Math.PI/20,
branchCoalToIndustrial, branchColorProvider, circuitpanel,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchCoalToIndustrial,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(585 - 70,280),12,new Color(0f,0f,0f,1f),-Math.PI/5,branchCoalToIndustrial));
// Line Substation 3 to Commercial load & flow label
ArrayList<Point2D.Double> pointsSub3ToCommercial = new ArrayList<Point2D.Double>();
line = new SimpleLineDisplay(new Point2D.Double(710 - 70,212.5),new Point2D.Double(525 - 70,55),1);
pointsSub3ToCommercial.add(line.getFromPoint());
pointsSub3ToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));
pointsSub3ToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));
pointsSub3ToCommercial.add(line.getToPoint());
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsSub3ToCommercial,
0, branchThicknessProvider, switchthickness, 1, Math.PI/20,
branchCoalToCommercial, branchColorProvider, circuitpanel,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchCoalToCommercial,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(615 - 70,105),12,new Color(0f,0f,0f,1f),Math.PI/5,branchCoalToCommercial));
// Line Substation 2 to Industrial load & flow label
ArrayList<Point2D.Double> pointsWindSubstationToIndustrial = new ArrayList<Point2D.Double>();
line = new SimpleLineDisplay(new Point2D.Double(351 - 70,212.5),new Point2D.Double(525 - 70,365),1);
pointsWindSubstationToIndustrial.add(line.getFromPoint());
pointsWindSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));
pointsWindSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));
pointsWindSubstationToIndustrial.add(line.getToPoint());
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindSubstationToIndustrial,
0, branchThicknessProvider, switchthickness, 1, Math.PI/20,
branchWindToIndustrial, branchColorProvider, circuitpanel,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchWindToIndustrial,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(399 - 70,273),12,new Color(0f,0f,0f,1f),Math.PI/4,branchWindToIndustrial));
// Line Substation 2 to Commercial load & flow label
ArrayList<Point2D.Double> pointsWindSubstationToCommercial = new ArrayList<Point2D.Double>();
line = new SimpleLineDisplay(new Point2D.Double(351 - 70,212.5),new Point2D.Double(525 - 70,55),1);
pointsWindSubstationToCommercial.add(line.getFromPoint());
pointsWindSubstationToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3));
pointsWindSubstationToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3));
pointsWindSubstationToCommercial.add(line.getToPoint());
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindSubstationToCommercial,
0, branchThicknessProvider, switchthickness, 1, Math.PI/20,
branchWindToCommercial, branchColorProvider, circuitpanel, true,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchWindToCommercial,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(396 - 70,140),12,new Color(0f,0f,0f,1f),-Math.PI/4,branchWindToCommercial));
// Line Substation 1 to Substation 2
ArrayList<Point2D.Double> pointsSub0ToSub1 = new ArrayList<Point2D.Double>();
pointsSub0ToSub1.add(new Point2D.Double(85,140));
pointsSub0ToSub1.add(new Point2D.Double(175,140));
pointsSub0ToSub1.add(new Point2D.Double(175,156));
pointsSub0ToSub1.add(new Point2D.Double(175,196));
pointsSub0ToSub1.add(new Point2D.Double(175,212));
pointsSub0ToSub1.add(new Point2D.Double(190,212));
pointsSub0ToSub1.add(new Point2D.Double(230,212));
pointsSub0ToSub1.add(new Point2D.Double(351 - 70,212));
lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsSub0ToSub1,
0, branchThicknessProvider, switchthickness, 2, Math.PI/20,
branchWindLocalSubstationToCitySubstation, branchColorProvider, circuitpanel, true,
overloadMonitorParams);
fA = new FlowArrowsForBranchData(branchWindLocalSubstationToCitySubstation,lines,0.05,20.0,10.0,flowArrowColorProvider);
circuitpanel.getMiddleLayerRenderables().add(fA);
circuitpanel.getAnimatables().add(fA);
circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(195,141),12,new Color(0f,0f,0f,1f),0,branchWindLocalSubstationToCitySubstation));
// Coal plant display
try {
CoalPlantDisplay coaldisplay = new CoalPlantDisplay(new Point2D.Double(650 - 70,300),0,0.0,genCoal);
circuitpanel.getMiddleLayerRenderables().add(coaldisplay);
circuitpanel.addMouseListener(coaldisplay);
CostAndEmissionsOverlay coaloverlay = new CostAndEmissionsOverlay(new Point2D.Double(700 - 70,450),genCoal);
costOverlays.add(coaloverlay);
circuitpanel.getTopLayerRenderables().add(coaloverlay);
} catch (IOException ie) {
System.out.println(ie);
}
// Gas plant display
try {
GasPlantDisplay gasdisplay = new GasPlantDisplay(new Point2D.Double(650 - 70,40),0.0,genGas);
circuitpanel.getMiddleLayerRenderables().add(gasdisplay);
circuitpanel.addMouseListener(gasdisplay);
CostAndEmissionsOverlay gasoverlay = new CostAndEmissionsOverlay(new Point2D.Double(700 - 70,20),genGas);
costOverlays.add(gasoverlay);
circuitpanel.getTopLayerRenderables().add(gasoverlay);
} catch (IOException ie) {
System.out.println(ie);
}
// Wind plant display
try {
winddisplay = new WindPlantDisplay(new Point2D.Double(50,240),0.0,genWind);
circuitpanel.getMiddleLayerRenderables().add(winddisplay);
circuitpanel.getAnimatables().add(winddisplay);
circuitpanel.addMouseListener(winddisplay);
CostAndEmissionsOverlay windoverlay = new CostAndEmissionsOverlay(new Point2D.Double(100,450),genWind);
costOverlays.add(windoverlay);
circuitpanel.getTopLayerRenderables().add(windoverlay);
} catch (IOException ie) {
System.out.println(ie);
}
// Storage display
// try {
//SubstationDisplay storagedisplay = new SubstationDisplay(new Point2D.Double(160,0),"Storage");
//circuitpanel.getMiddleLayerRenderables().add(storagedisplay);
StorageDisplay storagedisplay = new StorageDisplay(genStorage,StorageDisplay.Alignment.LEFT,StorageDisplay.Alignment.TOP,new Point2D.Double(170,0));
circuitpanel.getMiddleLayerRenderables().add(storagedisplay);
// } catch (IOException ie) {
// System.out.println(ie);
// }
// Commercial load
try {
CityDisplay commercetonLoad = new CityDisplay(new Point2D.Double(475 - 70,25),CityDisplay.CityType.COMMERCIAL,"Commercial",loadCommercial,0);
circuitpanel.getBottomLayerRenderables().add(commercetonLoad);
circuitpanel.addMouseListener(commercetonLoad);
} catch (IOException ie) {
System.err.println(ie.toString());
}
// Residential load
try {
CityDisplay residentialLoad = new CityDisplay(new Point2D.Double(475 - 70,175),CityDisplay.CityType.RESIDENTIAL,"Residential",loadResidential,0);
circuitpanel.getBottomLayerRenderables().add(residentialLoad);
circuitpanel.addMouseListener(residentialLoad);
} catch (IOException ie) {
System.err.println(ie.toString());
}
// Industrial load
try {
CityDisplay industrialLoad = new CityDisplay(new Point2D.Double(475 - 70,329),CityDisplay.CityType.INDUSTRIAL,"Industrial",loadIndustrial,0);
circuitpanel.getBottomLayerRenderables().add(industrialLoad);
circuitpanel.addMouseListener(industrialLoad);
} catch (IOException ie) {
System.err.println(ie.toString());
}
// Substation 3
try {
circuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(660 - 70,212 - 25.0),3));
} catch (IOException ie) {
System.out.println(ie);
}
// Substation 2
try {
circuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(305 - 70,212 - 25.0),2));
} catch (IOException ie) {
System.out.println(ie);
}
// Substation 1
try {
circuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(39,120.0),1));
} catch (IOException ie) {
System.out.println(ie);
}
circuitpanel.getMiddleLayerRenderables().add(new StoredEnergyLabel(new Point2D.Double(230,56),12,Color.BLACK,0,genStorage));
/*
totalloadplot = new TotalLoadPlot(
new Point2D.Double(10,10),
700,200,
ps,
minutesPerAnimationStep,
0,24,
0,3000);
*/
/*
MouseCoordinateLabel mclabel = new MouseCoordinateLabel(new Point2D.Double(0,20),12,Color.BLACK,0);
circuitpanel.getTopLayerRenderables().add(mclabel);
circuitpanel.addMouseMotionListener(mclabel);
MouseCoordinateLabel mclabel = new MouseCoordinateLabel(new Point2D.Double(0,0),12,Color.BLACK,0);
circuitpanel.getMiddleLayerRenderables().add(mclabel);
circuitpanel.addMouseMotionListener(mclabel);
*/
WindMaxDisplay windMaxLabel = new WindMaxDisplay(new Point2D.Double(144,384),12,Color.BLACK,0,genWind);
circuitpanel.getMiddleLayerRenderables().add(windMaxLabel);
WindCurtailedDisplay windCurtailedLabel = new WindCurtailedDisplay(new Point2D.Double(144,404),12,Color.BLACK,0,genWind);
circuitpanel.getMiddleLayerRenderables().add(windCurtailedLabel);
circuitpanel.getTopLayerRenderables().add(new BlackoutDisplay(ps));
circuitpanel.getAnimatables().add(ps);
circuitpanel.getTopLayerRenderables().add(
new SimClockDisplay(new Point2D.Double(350,5),12,Color.BLACK,0,simClock));
// Wind plant at node sixteen
// try {
// WindPlantDisplay winddisplay = new WindPlantDisplay(new Point2D.Double(650,340),0.0,genWind);
// circuitpanel.getMiddleLayerRenderables().add(winddisplay);
// circuitpanel.getAnimatables().add(winddisplay);
// circuitpanel.addMouseListener(winddisplay);
// CostAndEmissionsOverlay windoverlay = new CostAndEmissionsOverlay(new Point2D.Double(689,462),genWind);
// costOverlays.add(windoverlay);
// circuitpanel.getTopLayerRenderables().add(windoverlay);
// } catch (IOException ie) {
// System.out.println(ie);
// }
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void createSignalSystems() {\r\n\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(2)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(3)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(4)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(5)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(7)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(8)));\r\n\r\n if (TtCreateParallelNetworkAndLanes.checkNetworkForSecondODPair(this.scenario.getNetwork())) {\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(10)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(11)));\r\n }\r\n }",
"private PowerSubsystem() {\n mPdp = new PowerDistributionPanel(0);\n addChild(\"PowerDistributionPanel\",mPdp);\n }",
"@Override\n\tpublic void create() {\n\t\t// This should come from the platform\n\t\theight = platform.getScreenDimension().getHeight();\n\t\twidth = platform.getScreenDimension().getWidth();\n\n\t\t// create the drawing boards\n\t\tsb = new SpriteBatch();\n\t\tsr = new ShapeRenderer();\n\n\t\t// Push in first state\n\t\tgsm.push(new CountDownState(gsm));\n//\t\tgsm.push(new PlayState(gsm));\n\t}",
"System createSystem();",
"public PowerUp()\n {\n powerUp = new Rectangle();\n Random gen = new Random();\n int x = gen.nextInt(9);\n switch(x){\n case 0: type = \"Life\"; break;\n case 1: type = \"Laser\"; break;\n case 2: type = \"Gun\"; break;\n case 3: type = \"Long\"; break;\n case 4: type = \"Multi\"; break;\n case 5: type = \"Catch\"; break;\n case 6: type = \"Slow\"; break;\n case 7: type = \"Flip\"; break;\n case 8: type = \"Bomb\"; break;\n }\n text = new Rectangle();\n }",
"public void create() {\n connect();\n batch = new SpriteBatch();\n font = new BitmapFont();\n\n audioManager.preloadTracks(\"midlevelmusic.wav\", \"firstlevelmusic.wav\", \"finallevelmusic.wav\", \"mainmenumusic.wav\");\n\n mainMenuScreen = new MainMenuScreen(this);\n pauseMenuScreen = new PauseMenuScreen(this);\n settingsScreen = new SettingsScreen(this);\n completeLevelScreen = new CompleteLevelScreen(this);\n completeGameScreen = new CompleteGameScreen(this);\n\n setScreen(mainMenuScreen);\n }",
"public void createPowerUps (int low, int high, int h, int w) {\n int num = (int) (random (low, high + 1));\n for (int i = 0; i < num; i++) {\n int x = ((int) random((width/pixelSize))) * pixelSize;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n if (getLocation(x, y).getType() == LocationType.AIR) {\n powerUps.add (new PowerUp (x, y, w, h));\n }\n }\n}",
"public System(String implClassName, Params param) {\n\t\tSimLogger.log(Level.INFO, \"New System Created.\");\n\t\tthis.param = param;\n\t\tthis.param.system = this;\n\t\ttry {\n\t\t\tClass implClass = Class.forName(implClassName);\n\t\t\timpl = (Implementation) implClass.newInstance();\n\t\t\t// Set the implementation's system so init() can set it in workload!!!\n\t\t\timpl.sys = this;\n\t\t\timpl.init(param.starter.build());\n\t\t\tSimLogger.log(Level.FINE, \"Implementation \" + implClassName + \" was created successfully.\");\n\n\t\t\ttry {\n\t\t\t\tfor(String s : param.measures) {\n\t\t\t\t\tSimLogger.log(Level.FINE, \"Adding measure \" + s + \" to system.\");\n\t\t\t\t\tClass measureClass = Class.forName(s);\n\t\t\t\t\tMeasure measure = (Measure) measureClass.newInstance();\n\t\t\t\t\tmeasures.add(measure);\n\t\t\t\t}\n\t\t\t\tCollections.sort(measures);\n\t\t\t} catch(ClassNotFoundException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} catch(InstantiationException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} catch(IllegalAccessException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\n\t\t\t//init actors\n\t\t\tHashMap<String, Integer> actorMachineInstances = param.starter.buildActorMachine();\n\t\t\tfor(String aType : actorMachineInstances.keySet()) {\n\t\t\t\tint numActors = actorMachineInstances.get(aType);\n\t\t\t\tSimLogger.log(Level.FINE, \"Creating \" + numActors + \" many of actor type \" + aType);\n\t\t\t\tfor(int i = 0; i < numActors; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tClass actorClass = Class.forName(aType);\n\t\t\t\t\t\tActorMachine am = (ActorMachine) actorClass.newInstance();\n\t\t\t\t\t\tString actorName = am.getPrefix() + i;\n\t\t\t\t\t\tam.actor = actorName;\n\t\t\t\t\t\tam.actorType = aType;\n\t\t\t\t\t\tam.sys = this;\n\t\t\t\t\t\tactors.put(actorName, am);\n\t\t\t\t\t} catch(ClassNotFoundException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch(InstantiationException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch(IllegalAccessException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSimLogger.log(Level.FINE, \"Actors init was successful.\");\n\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n public void start() {\r\n runtime.reset();\r\n FL.setPower(1);\r\n FR.setPower(1);\r\n BR.setPower(1);\r\n BL.setPower(1);\r\n try{\r\n Thread.sleep(850);\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n FL.setPower(0);\r\n FR.setPower(0);\r\n BL.setPower(0);\r\n BR.setPower(0); \r\n }",
"void powerOn();",
"public ProductionPower(){\n this(0, new NumberOfResources(), new NumberOfResources(), 0, 0);\n }",
"public LSystemBuilderImpl() {\n\t\tthis.commands = new Dictionary();\n\t\tthis.productions = new Dictionary();\n\t\tunitLength = 0.1;\n\t\tunitLengthDegreeScaler = 1;\n\t\torigin = new Vector2D(0, 0);\n\t\tangle = 0;\n\t\taxiom = \"\";\n\t}",
"public Startup() {\n initComponents();\n //Create a file object by giving it the path of the thermometer files.\n File file = new File(\"/sys/bus/w1/devices\");\n //Create a new method that only lists the directories by overriding the\n //previous method. Uses file object created previously.\n String[] directories = file.list(new FilenameFilter() {\n @Override\n public boolean accept(File current, String name) {\n if(new File(current, name).getName().startsWith(\"w\")){\n return false;\n }\n return new File(current, name).isDirectory();\n }\n \n });\n \n FileWriter fileWriter;\n BufferedWriter bufferedWriter;\n /*\n Use the objects initialized above to write all the thermometer names\n found above to a file called thermometers.\n */\n try{\n fileWriter= new FileWriter(\"thermometers\");\n\t bufferedWriter= new BufferedWriter(fileWriter);\n for(int i = 0; i < directories.length; i++){\n bufferedWriter.write(directories[i] + \"\\n\");\n }\n bufferedWriter.close();\n }catch (IOException e){\n //print stack trace here\n }\n }",
"public static void main(String[] args) throws Exception\n {\n Machine machine = new Machine();\n OperatingSystem os = new OperatingSystem(machine);\n machine.powerUp(os);\n // create a program\n\n //grab a program from collection, add to list, schedule list of programs\n List<Program> programs = new LinkedList<>();\n\n////////Testing virtua/physical\n// programs.add(ProgramCollection.A2P1(0));\n// programs.add(ProgramCollection.A2P1(1));\n// programs.add(ProgramCollection.A2P1(2));\n// programs.add(ProgramCollection.A2P1(3));\n// programs.add(ProgramCollection.A2P1(4));\n///////////Testing expand\n// programs.add(ProgramCollection.miniProg(2));\n// programs.add(ProgramCollection.miniProg(3));\n// programs.add(ProgramCollection.moreMem2());\n/////////Testing Shift\n// programs.add(ProgramCollection.moreMem2());\n// programs.add(ProgramCollection.longProg());\n /*\tTesting Compaction\n this test will have two mini programs that finish before our more memory program\n asks for more memory. It will also have two additional wait processes that never finish\n (one that needs to shift left and one too shift right). Our moreMem3 prog will ask for \n more memory and then try storing into these memory locations.\n */\n// programs.add(ProgramCollection.mini(6));\n// programs.add(ProgramCollection.mini(6));\n// programs.add(ProgramCollection.waitProcess(6));\n// programs.add(ProgramCollection.moreMem3(240));\n// programs.add(ProgramCollection.waitProcess(6));\n// programs.add(ProgramCollection.testIt(1));\n// programs.add(ProgramCollection.testIt(2));\n// programs.add(ProgramCollection.testIt(3));\n// programs.add(ProgramCollection.writeConsole(1));\n// programs.add(ProgramCollection.writeConsole(2));\n// programs.add(ProgramCollection.writeConsole(3));\n// programs.add(ProgramCollection.pWriteDisk2(340));\n//TEST READ AND WRITE DISK\n //programs.add(ProgramCollection.WriteReadDisk());\n//TEST SSTF\n// programs.add(ProgramCollection.testSSTF(10, 46, 5));\n// programs.add(ProgramCollection.testSSTF(20, 71, 5));\n// programs.add(ProgramCollection.testSSTF(30, 51, 10));\n// programs.add(ProgramCollection.testSSTF(40, 26, 5));\n\n//TEST STARVATION\n programs.add(ProgramCollection.testSSTF(10, 31, 3));\n programs.add(ProgramCollection.testSSTF(340, 90, 3));\n programs.add(ProgramCollection.testSSTF(20, 51, 3));\n programs.add(ProgramCollection.testSSTF(30, 41, 3));\n programs.add(ProgramCollection.testSSTF(40, 51, 3));\n programs.add(ProgramCollection.testSSTF(50, 41, 3));\n programs.add(ProgramCollection.testSSTF(60, 51, 3));\n programs.add(ProgramCollection.testSSTF(70, 41, 3));\n programs.add(ProgramCollection.testSSTF(80, 51, 3));\n programs.add(ProgramCollection.testSSTF(90, 41, 3));\n\n os.schedule(programs);\n\n }",
"private void prepare()\n {\n BrickPowerUp powerUp = new BrickPowerUp();\n addObject(powerUp,554,237);\n powerUp.setLocation(542,236);\n powerUp.setLocation(542,236);\n removeObject(powerUp);\n Timer timer = new Timer();\n addObject(timer,943,30);\n Player1 player1 = new Player1();\n addObject(player1,23,312);\n Player2 player2 = new Player2();\n addObject(player2,976,308);\n BrickPowerUp powerUp2 = new BrickPowerUp();\n addObject(powerUp2,512,78);\n BrickPowerUp powerUp3 = new BrickPowerUp();\n addObject(powerUp3,512,132);\n BrickPowerUp powerUp4 = new BrickPowerUp();\n addObject(powerUp4,511,184);\n powerUp4.setLocation(511,188);\n BrickPowerUp powerUp5 = new BrickPowerUp();\n addObject(powerUp5,512,237);\n BrickPowerUp powerUp6 = new BrickPowerUp();\n addObject(powerUp6,514,356);\n BrickPowerUp powerUp7 = new BrickPowerUp();\n addObject(powerUp7,515,412);\n BrickPowerUp powerUp8 = new BrickPowerUp();\n addObject(powerUp8,516,468);\n BrickPowerUp powerUp9 = new BrickPowerUp();\n addObject(powerUp9,516,524);\n BrickPowerUp powerUp10 = new BrickPowerUp();\n addObject(powerUp10,548,27);\n BrickPowerUp powerUp11 = new BrickPowerUp();\n addObject(powerUp11,548,78);\n BrickPowerUp powerUp12 = new BrickPowerUp();\n addObject(powerUp12,548,132);\n BrickPowerUp powerUp13 = new BrickPowerUp();\n addObject(powerUp13,548,185);\n BrickPowerUp powerUp14 = new BrickPowerUp();\n addObject(powerUp14,548,240);\n BrickPowerUp powerUp15 = new BrickPowerUp();\n addObject(powerUp15,550,356);\n BrickPowerUp powerUp16 = new BrickPowerUp();\n addObject(powerUp16,548,298);\n BrickPowerUp powerUp17 = new BrickPowerUp();\n addObject(powerUp17,550,413);\n BrickPowerUp powerUp18 = new BrickPowerUp();\n addObject(powerUp18,549,469);\n BrickPowerUp powerUp19 = new BrickPowerUp();\n addObject(powerUp19,548,524);\n BrickPowerUp powerUp20 = new BrickPowerUp();\n addObject(powerUp20,548,586);\n BrickPowerUp powerUp21 = new BrickPowerUp();\n addObject(powerUp21,476,27);\n BrickPowerUp powerUp22 = new BrickPowerUp();\n addObject(powerUp22,476,80);\n BrickPowerUp powerUp23 = new BrickPowerUp();\n addObject(powerUp23,476,133);\n BrickPowerUp powerUp24 = new BrickPowerUp();\n addObject(powerUp24,476,188);\n BrickPowerUp powerUp25 = new BrickPowerUp();\n addObject(powerUp25,476,242);\n BrickPowerUp powerUp26 = new BrickPowerUp();\n addObject(powerUp26,476,298);\n BrickPowerUp powerUp27 = new BrickPowerUp();\n addObject(powerUp27,476,355);\n BrickPowerUp powerUp28 = new BrickPowerUp();\n addObject(powerUp28,476,411);\n BrickPowerUp powerUp29 = new BrickPowerUp();\n addObject(powerUp29,476,468);\n BrickPowerUp powerUp30 = new BrickPowerUp();\n addObject(powerUp30,476,523);\n BrickPowerUp powerUp31 = new BrickPowerUp();\n addObject(powerUp31,476,584);\n Brick brick = new Brick();\n addObject(brick,442,28);\n Brick brick2 = new Brick();\n addObject(brick2,443,76);\n Brick brick3 = new Brick();\n addObject(brick3,444,125);\n Brick brick4 = new Brick();\n addObject(brick4,444,174);\n Brick brick5 = new Brick();\n addObject(brick5,444,223);\n Brick brick6 = new Brick();\n addObject(brick6,444,274);\n Brick brick7 = new Brick();\n addObject(brick7,444,324);\n Brick brick8 = new Brick();\n addObject(brick8,444,373);\n Brick brick9 = new Brick();\n addObject(brick9,444,422);\n Brick brick10 = new Brick();\n addObject(brick10,444,472);\n Brick brick11 = new Brick();\n addObject(brick11,444,523);\n Brick brick12 = new Brick();\n addObject(brick12,444,574);\n Brick brick22 = new Brick();\n addObject(brick22,583,28);\n Brick brick23 = new Brick();\n addObject(brick23,583,80);\n Brick brick24 = new Brick();\n addObject(brick24,582,133);\n Brick brick25 = new Brick();\n addObject(brick25,583,186);\n Brick brick26 = new Brick();\n addObject(brick26,583,241);\n Brick brick27 = new Brick();\n addObject(brick27,584,298);\n brick27.setLocation(583,290);\n Brick brick28 = new Brick();\n addObject(brick28,584,345);\n Brick brick29 = new Brick();\n addObject(brick29,584,398);\n Brick brick210 = new Brick();\n addObject(brick210,584,451);\n Brick brick211 = new Brick();\n addObject(brick211,584,504);\n Brick brick212 = new Brick();\n addObject(brick212,584,556);\n Brick brick213 = new Brick();\n addObject(brick213,585,604);\n brick213.setLocation(588,604);\n Brick brick13 = new Brick();\n addObject(brick13,444,623);\n Ball ball = new Ball(false);\n addObject(ball,812,308);\n Ball ball2 = new Ball(true);\n addObject(ball2,140,306);\n brick213.setLocation(580,604);\n brick213.setLocation(591,595);\n brick.setLocation(450,32);\n brick2.setLocation(443,65);\n brick3.setLocation(442,96);\n brick4.setLocation(445,152);\n brick5.setLocation(442,218);\n brick6.setLocation(445,248);\n brick7.setLocation(442,301);\n brick8.setLocation(439,360);\n brick9.setLocation(438,402);\n brick10.setLocation(446,448);\n brick11.setLocation(440,509);\n brick12.setLocation(444,543);\n brick13.setLocation(442,602);\n brick213.setLocation(586,598);\n removeObject(brick213);\n brick.setLocation(444,21);\n brick2.setLocation(440,87);\n brick2.setLocation(440,130);\n brick2.setLocation(441,86);\n brick3.setLocation(428,226);\n brick3.setLocation(443,136);\n brick5.setLocation(444,181);\n brick4.setLocation(439,375);\n brick4.setLocation(444,244);\n brick7.setLocation(436,293);\n brick8.setLocation(441,339);\n brick6.setLocation(427,477);\n brick6.setLocation(442,400);\n brick10.setLocation(440,435);\n brick9.setLocation(437,497);\n removeObject(brick9);\n brick12.setLocation(437,565);\n removeObject(brick13);\n brick7.setLocation(437,283);\n removeObject(brick10);\n removeObject(brick12);\n removeObject(brick11);\n removeObject(brick6);\n removeObject(brick8);\n removeObject(brick7);\n brick2.setLocation(447,84);\n brick.setLocation(442,21);\n brick2.setLocation(440,68);\n brick5.setLocation(438,177);\n brick4.setLocation(436,228);\n brick4.setLocation(428,297);\n removeObject(brick4);\n removeObject(brick5);\n removeObject(brick3);\n brick2.setLocation(444,84);\n brick.setLocation(447,34);\n brick2.setLocation(439,73);\n removeObject(brick2);\n brick.setLocation(443,27);\n Brick brick14 = new Brick();\n addObject(brick14,443,81);\n Brick brick15 = new Brick();\n addObject(brick15,444,135);\n Brick brick16 = new Brick();\n addObject(brick16,444,188);\n Brick brick17 = new Brick();\n addObject(brick17,444,243);\n Brick brick18 = new Brick();\n addObject(brick18,444,296);\n Brick brick19 = new Brick();\n addObject(brick19,445,350);\n Brick brick20 = new Brick();\n addObject(brick20,445,403);\n Brick brick21 = new Brick();\n addObject(brick21,445,455);\n Brick brick30 = new Brick();\n addObject(brick30,445,504);\n Brick brick31 = new Brick();\n addObject(brick31,445,556);\n Brick brick32 = new Brick();\n addObject(brick32,444,609);\n brick32.setLocation(448,611);\n Brick brick214 = new Brick();\n addObject(brick214,584,610);\n brick32.setLocation(444,606);\n brick32.setLocation(439,605);\n brick32.setLocation(437,604);\n brick32.setLocation(449,608);\n brick32.setLocation(444,606);\n timer.setLocation(958,21);\n Portal portal = new Portal();\n addObject(portal,512,298);\n Portal2 portal2 = new Portal2();\n addObject(portal2,513,30);\n Portal3 portal3 = new Portal3();\n addObject(portal3,516,588);\n Brick brick38 = new Brick();\n addObject(brick38,415,25);\n brick38.setLocation(415,21);\n Brick brick39 = new Brick();\n addObject(brick39,415,81);\n Brick brick40 = new Brick();\n addObject(brick40,416,135);\n Brick brick41 = new Brick();\n addObject(brick41,416,188);\n Brick brick42 = new Brick();\n addObject(brick42,416,245);\n brick42.setLocation(419,243);\n Brick brick43 = new Brick();\n addObject(brick43,416,300);\n Brick brick44 = new Brick();\n addObject(brick44,416,350);\n Brick brick45 = new Brick();\n addObject(brick45,416,403);\n Brick brick46 = new Brick();\n addObject(brick46,415,456);\n Brick brick47 = new Brick();\n addObject(brick47,416,504);\n brick46.setLocation(416,459);\n Brick brick48 = new Brick();\n addObject(brick48,416,556);\n Brick brick49 = new Brick();\n addObject(brick49,415,602);\n brick49.setLocation(411,602);\n brick43.setLocation(411,302);\n brick49.setLocation(411,603);\n brick43.setLocation(411,303);\n brick46.setLocation(411,455);\n brick42.setLocation(411,247);\n brick46.setLocation(422,458);\n brick49.setLocation(417,596);\n brick43.setLocation(413,303);\n brick42.setLocation(418,236);\n brick38.setLocation(417,30);\n brick38.setLocation(419,14);\n brick38.setLocation(413,30);\n brick38.setLocation(419,24);\n brick38.setLocation(408,30);\n brick43.setLocation(410,294);\n brick42.setLocation(409,237);\n powerUp7.setLocation(505,415);\n powerUp8.setLocation(510,465);\n powerUp9.setLocation(507,523);\n portal3.setLocation(508,582);\n removeObject(brick38);\n removeObject(brick42);\n removeObject(brick43);\n removeObject(brick46);\n removeObject(brick49);\n Brick brick50 = new Brick();\n addObject(brick50,415,26);\n brick50.setLocation(414,27);\n Brick brick51 = new Brick();\n addObject(brick51,416,243);\n Brick brick52 = new Brick();\n addObject(brick52,415,296);\n Brick brick53 = new Brick();\n addObject(brick53,415,454);\n Brick brick54 = new Brick();\n addObject(brick54,414,605);\n brick54.setLocation(416,606);\n Brick brick55 = new Brick();\n addObject(brick55,384,27);\n Brick brick56 = new Brick();\n addObject(brick56,386,81);\n brick56.setLocation(384,81);\n Brick brick57 = new Brick();\n addObject(brick57,385,135);\n Brick brick58 = new Brick();\n addObject(brick58,385,189);\n brick58.setLocation(385,188);\n Brick brick59 = new Brick();\n addObject(brick59,385,244);\n brick59.setLocation(385,243);\n Brick brick60 = new Brick();\n addObject(brick60,384,295);\n brick60.setLocation(385,296);\n Brick brick61 = new Brick();\n addObject(brick61,386,350);\n brick61.setLocation(385,350);\n Brick brick62 = new Brick();\n addObject(brick62,386,404);\n brick62.setLocation(385,403);\n Brick brick63 = new Brick();\n addObject(brick63,386,456);\n brick63.setLocation(385,455);\n Brick brick64 = new Brick();\n addObject(brick64,385,505);\n Brick brick65 = new Brick();\n addObject(brick65,386,556);\n brick65.setLocation(385,555);\n Brick brick66 = new Brick();\n addObject(brick66,385,606);\n Brick brick67 = new Brick();\n addObject(brick67,355,27);\n Brick brick68 = new Brick();\n addObject(brick68,355,80);\n brick68.setLocation(355,81);\n Brick brick69 = new Brick();\n addObject(brick69,356,135);\n brick69.setLocation(355,135);\n Brick brick70 = new Brick();\n addObject(brick70,355,188);\n Brick brick71 = new Brick();\n addObject(brick71,354,244);\n brick71.setLocation(345,252);\n brick71.setLocation(355,242);\n Brick brick72 = new Brick();\n addObject(brick72,355,296);\n Brick brick73 = new Brick();\n addObject(brick73,355,351);\n brick73.setLocation(355,350);\n Brick brick74 = new Brick();\n addObject(brick74,355,404);\n brick74.setLocation(355,404);\n Brick brick75 = new Brick();\n addObject(brick75,356,455);\n brick75.setLocation(355,455);\n Brick brick76 = new Brick();\n addObject(brick76,355,506);\n brick76.setLocation(355,506);\n Brick brick77 = new Brick();\n addObject(brick77,355,557);\n brick77.setLocation(355,555);\n Brick brick78 = new Brick();\n addObject(brick78,355,609);\n brick78.setLocation(355,607);\n portal3.setLocation(510,585);\n powerUp31.setLocation(476,580);\n powerUp31.setLocation(473,590);\n powerUp9.setLocation(510,530);\n powerUp8.setLocation(510,457);\n powerUp7.setLocation(510,417);\n powerUp6.setLocation(510,354);\n powerUp8.setLocation(510,466);\n powerUp9.setLocation(510,529);\n powerUp31.setLocation(480,573);\n powerUp20.setLocation(550,573);\n powerUp31.setLocation(476,582);\n powerUp20.setLocation(548,580);\n Brick brick79 = new Brick();\n addObject(brick79,614,28);\n Brick brick80 = new Brick();\n addObject(brick80,644,28);\n Brick brick81 = new Brick();\n addObject(brick81,674,28);\n Brick brick82 = new Brick();\n addObject(brick82,615,80);\n Brick brick83 = new Brick();\n addObject(brick83,646,80);\n Brick brick84 = new Brick();\n addObject(brick84,675,80);\n Brick brick85 = new Brick();\n addObject(brick85,615,133);\n Brick brick86 = new Brick();\n addObject(brick86,647,133);\n Brick brick87 = new Brick();\n addObject(brick87,675,133);\n Brick brick88 = new Brick();\n addObject(brick88,615,185);\n brick88.setLocation(615,185);\n Brick brick89 = new Brick();\n addObject(brick89,647,185);\n Brick brick90 = new Brick();\n addObject(brick90,677,185);\n Brick brick91 = new Brick();\n addObject(brick91,615,241);\n Brick brick92 = new Brick();\n addObject(brick92,648,240);\n Brick brick93 = new Brick();\n addObject(brick93,677,239);\n brick93.setLocation(678,241);\n brick93.setLocation(679,243);\n brick93.setLocation(678,241);\n Brick brick94 = new Brick();\n addObject(brick94,614,291);\n Brick brick95 = new Brick();\n addObject(brick95,648,291);\n Brick brick96 = new Brick();\n addObject(brick96,678,291);\n Brick brick97 = new Brick();\n addObject(brick97,614,345);\n Brick brick98 = new Brick();\n addObject(brick98,647,345);\n Brick brick99 = new Brick();\n addObject(brick99,678,345);\n Brick brick100 = new Brick();\n addObject(brick100,615,398);\n Brick brick101 = new Brick();\n addObject(brick101,648,398);\n Brick brick102 = new Brick();\n addObject(brick102,679,398);\n Brick brick103 = new Brick();\n addObject(brick103,618,452);\n brick103.setLocation(618,458);\n Brick brick104 = new Brick();\n addObject(brick104,648,450);\n brick103.setLocation(610,446);\n Brick brick105 = new Brick();\n addObject(brick105,680,451);\n removeObject(brick103);\n Brick brick106 = new Brick();\n addObject(brick106,616,450);\n Brick brick107 = new Brick();\n addObject(brick107,617,504);\n Brick brick108 = new Brick();\n addObject(brick108,648,504);\n Brick brick109 = new Brick();\n addObject(brick109,680,504);\n Brick brick110 = new Brick();\n addObject(brick110,616,556);\n Brick brick111 = new Brick();\n addObject(brick111,649,556);\n Brick brick112 = new Brick();\n addObject(brick112,681,556);\n Brick brick113 = new Brick();\n addObject(brick113,616,610);\n Brick brick114 = new Brick();\n addObject(brick114,649,609);\n Brick brick115 = new Brick();\n addObject(brick115,680,610);\n brick115.setLocation(682,605);\n brick115.setLocation(680,608);\n portal3.setLocation(514,586);\n powerUp9.setLocation(513,525);\n powerUp8.setLocation(511,470);\n powerUp8.setLocation(512,470);\n powerUp7.setLocation(512,412);\n powerUp6.setLocation(512,356);\n powerUp5.setLocation(513,243);\n powerUp4.setLocation(513,187);\n powerUp31.setLocation(477,580);\n portal3.setLocation(512,584);\n brick57.setLocation(255,225);\n brick64.setLocation(305,476);\n portal.setLocation(509,301);\n removeObject(brick57);\n removeObject(brick64);\n removeObject(brick108);\n removeObject(brick86);\n Portal portal4 = new Portal();\n addObject(portal4,645,134);\n Portal portal5 = new Portal();\n addObject(portal5,649,501);\n Portal portal6 = new Portal();\n addObject(portal6,384,135);\n Portal portal7 = new Portal();\n addObject(portal7,384,504);\n portal3.setLocation(792,434);\n Portal2 portal22 = new Portal2();\n addObject(portal22,513,579);\n portal3.setLocation(514,411);\n Portal3 portal32 = new Portal3();\n addObject(portal32,509,190);\n portal3.setLocation(517,412);\n portal32.setLocation(519,192);\n portal.setLocation(518,297);\n portal5.setLocation(650,511);\n portal32.setLocation(510,198);\n portal.setLocation(511,300);\n portal3.setLocation(509,405);\n brick51.setLocation(283,220);\n brick100.setLocation(767,379);\n removeObject(brick51);\n removeObject(brick100);\n\n removeObject(portal32);\n removeObject(portal3);\n Portal3 portal33 = new Portal3();\n addObject(portal33,616,397);\n Portal3 portal34 = new Portal3();\n addObject(portal34,414,241);\n portal5.setLocation(644,503);\n portal7.setLocation(382,506);\n portal34.setLocation(417,245);\n portal6.setLocation(381,132);\n portal2.setLocation(511,34);\n portal.setLocation(516,300);\n }",
"@Override\n\tpublic LSystem build() {\n\t\t\n\t\t/**\n\t\t * Nested class which implements the LSystem and provides two essential methods\n\t\t * for building the LSystem: draw and generate.\n\t\t * @author Alen Carin\n\t\t *\n\t\t */\n\t\tclass LSystemImpl implements LSystem {\n\n\t\t\t/**\n\t\t\t * Method used for drawing the Lyndermayer system.\n\t\t\t * Calls method generate to generate all of the productions and \n\t\t\t * executes all the commands that are in the generated string.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void draw(int depth, Painter painter) {\n\t\t\t\tTurtleState state = new TurtleState(\n\t\t\t\t\t\torigin.copy(), \n\t\t\t\t\t\tnew Vector2D(1, 0).rotated(angle), \n\t\t\t\t\t\tColor.BLACK,\n\t\t\t\t\t\tunitLength * Math.pow(unitLengthDegreeScaler, depth)\n\t\t\t\t\t\t);\n\t\t\t\tContext context = new Context();\n\t\t\t\tcontext.pushState(state);\n\t\t\t\tchar[] sequence = generate(depth).toCharArray();\n\t\t\t\t\n\t\t\t\texecuteAllCommands(context, painter, sequence);\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Recursive method which generates a string of actions \n\t\t\t * which are generated from productions for the given depth.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic String generate(int depth) {\n\t\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\t\tif(depth == 0) {\n\t\t\t\t\treturn axiom;\n\t\t\t\t}\n\t\t\t\tbuilder.append(generate(depth-1));\n\t\t\t\t\n\t\t\t\tchar[] array = builder.toString().toCharArray();\n\t\t\t\tString result = new String();\n\t\t\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\t\t\tString production = (String) productions.get(array[i]);\n\t\t\t\t\tif(production != null) {\n\t\t\t\t\t\tresult += production;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tresult += array[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn new LSystemImpl();\n\t}",
"public PowerLine(Manager manager, int number) {\n this.stability = 50;\n this.number = number;\n this.randomGenerator = new Random();\n this.manager = manager;\n this.reactorLine = new Oscillator(100, 100, 0.0);\n this.inputFluctuator = new Fluctuator(reactorLine, 5);\n this.inputAdjuster = new Oscillator(100, 100, Math.PI);\n this.outputData = FXCollections.observableArrayList();\n this.outputPower = new SimpleDoubleProperty(100);\n this.inputPower = 100.0;\n this.online = true;\n this.unstable = false;\n this.unstableTimeline = setupFluctuationTimeline(400);\n this.imbalance = 0;\n this.imbalanceTimeline = setupFluctuationTimeline(2000);\n this.severeImbalanceTimeline = setupFluctuationTimeline(1000);\n createOscilloscopeData();\n }",
"private static void createPrinterMenuLogic() {\n\n\t\tmenuHandler.clrscr();\n\n\t\t// Printer name\n\t\tString printerName = menuHandler.inputString(\"Please input the printer name (cannot be empty)\");\n\n\t\t// Printer paper format\n\t\tSystem.out.println(\"Select printer paper format capabilities\");\n\t\tint maxChoice = menuHandler.printerFormatMenu();\n\t\tint formatChoice = menuHandler.intRangeInput(\"Please input a number in range [1, \" + maxChoice + \"]\", 1, maxChoice);\n\n\t\t// Printer toner\n\t\tSystem.out.println(\"Select printer toner capabilities\");\n\t\tmaxChoice = menuHandler.printerTonerMenu();\n\t\tint tonerChoice = menuHandler.intRangeInput(\"Please input a number in range [1, \" + maxChoice + \"]\", 1, maxChoice);\n\n\t\t// Parse user choices and create printer capabilities object\n\t\tBoolean[] bools = parsePrinterCapabilities(formatChoice, tonerChoice);\n\t\tPrinterCapability printerCapability = objectHandler.createPrinterCapability(bools[canPrintA4], bools[canPrintA3], bools[canPrintBlack], bools[canPrintColor]);\n\n\t\t// Ask user about pricing and create printer pricing object\n\t\tPrinterPricing printerPricing = createPrinterPricing(bools);\n\n\t\t// Ask user about capacity and create printer capacity object\n\t\tPrinterCapacity printerCapacity = createPrinterCapacity(bools);\n\n\t\tprinters.put(\"Printer\" + printers.size(), objectHandler.createPrinter(printerName, printerCapability, printerPricing, printerCapacity, objectHandler.createPrinterStatus()));\n\t}",
"public void createLevel(){\n for(LevelController rc: rooms ) {\n rc.loadContent();\n rc.setScreenListener(listener);\n rc.setCanvas(canvas);\n }\n }",
"private static void setSubsystems()\n {\n //Components\n //Talons\n frontLeftTalon.setName(\"DrivetrainSubsystem\", \"FrontLeftDriveTalon\");\n frontRightTalon.setName(\"DrivetrainSubsystem\", \"FrontRightDriveTalon\");\n rearLeftTalon.setName(\"DrivetrainSubsystem\", \"RearLeftDriveTalon\");\n rearRightTalon.setName(\"DrivetrainSubsystem\", \"RearRightDriveTalon\");\n //Sensors\n //navX.setName(\"SensorSubsystem\", \"NavX\");\n System.out.print(pigeon.getAbsoluteCompassHeading());\n \n //Subsystems\n drivetrainSubsystem.setName(\"DrivetrainSubsystem\", \"DrivetrainSubsystem\");\n sensorSubsystem.setName(\"SensorSubsystem\", \"SensorSubsystem\");\n }",
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"public void create(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\t\tthis.position[1][1] = 1;//putting player in this position\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[9][13] = 1;//puts the door here \n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 7; i< 8 ; i++){\n\t\t\tfor(int p = 2; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 17; i< 18 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\t\n\t\t}\n\t\tfor(int i = 14; i< 15 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\t\n\t\t}\t\n\t\tfor(int i = 11; i< 12 ; i++){\n\t\t\tfor(int p = 10; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 3; p < 6; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 16; i< 17 ; i++){\n\t\t\tfor(int p = 6; p < 13; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 5; p < 10; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\t\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes \n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{ \n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}",
"public void createSShell() {\r\n\t\tGridData gridData = new GridData();\r\n\t\tgridData.widthHint = 500;\r\n\t\tgridData.horizontalAlignment = org.eclipse.swt.layout.GridData.CENTER;\r\n\t\tgridData.grabExcessHorizontalSpace = true;\r\n\t\tgridData.heightHint = 80;\r\n\t\tsShell = new Shell();\r\n\t\tsShell.setText(\"系统管理\");\r\n\t\tsShell.setSize(new Point(703, 656));\r\n\t\tsShell.setLayout(new GridLayout());\r\n\t\tcLabel = new CLabel(sShell, SWT.CENTER);\r\n\t\tcLabel.setImage(new Image(Display.getCurrent(), getClass().getResourceAsStream(\"/images/news.png\")));\r\n\t\tcLabel.setFont(new Font(Display.getDefault(), \"微软雅黑\", 18, SWT.NORMAL));\r\n\t\tcLabel.setLayoutData(gridData);\r\n\t\tcLabel.setText(\"系统管理\");\r\n\t\tcreateTabFolder();\r\n\t\tif(SystemMainShell.userType.equals(\"管理员\")){\r\n\t\t\tbuttonAddRoom.setEnabled(true);\r\n\t\t\tbuttonDeleteRoom.setEnabled(true);\r\n\t\t//\tbuttonAddGoods.setEnabled(true);\r\n\t\t//\tbuttonDeleteGoods.setEnabled(true);\r\n\t\t\tbuttonAddStaff.setEnabled(true);\r\n\t\t\tbuttonDeleteStaff.setEnabled(true);\r\n\t\t\tbuttonAddUser.setEnabled(true);\r\n\t\t\tbuttonDeleteUser.setEnabled(true);\r\n\t\t}else if(SystemMainShell.userType.equals(\"操作员\")){\r\n\t\t\tbuttonAddRoom.setEnabled(false);\r\n\t\t\tbuttonDeleteRoom.setEnabled(false);\r\n\t\t//\tbuttonAddGoods.setEnabled(false);\r\n\t\t//\tbuttonDeleteGoods.setEnabled(false);\r\n\t\t\tbuttonAddStaff.setEnabled(false);\r\n\t\t\tbuttonDeleteStaff.setEnabled(false);\r\n\t\t\tbuttonAddUser.setEnabled(false);\r\n\t\t\tbuttonDeleteUser.setEnabled(false);\r\n\t\t}\r\n\t}",
"public OperatingSystem(Machine machine) throws MemoryFault, Exception {\n //List<Program> program = new LinkedList<>();\n this.machine = machine;\n\n for (int i = 0; i < waitQ.length; i++) {\n waitQ[i] = new LinkedList<>();\n }\n\n //Process_Table = new PCB[10]; \n ProgramBuilder wait = new ProgramBuilder();\n wait.size(2);\n wait.jmp(0);\n Program waiter = wait.build();\n program.add(waiter);\n\n freespace.add(new freeSpace(0, this.machine.MEMORY_SIZE));\n System.out.println(\"[Debug] Initial freeSpace size: \" + freespace.get(0).size);\n schedule(program);\n }",
"private void build()\n\t{\n\t\tengine.addSystem(new InputSystem());\n\t\tengine.addSystem(new MovementSystem());\n\t\t\n\t}",
"public void create() {\n\t\t\n\t}",
"private void initHardware(){\n }",
"private static Datacenter createDatacenter(String name) {\n List<Host> hostList = new ArrayList<Host>();\r\n\r\n // 2. A Machine contains one or more PEs or CPUs/Cores.\r\n // In this example, it will have only one core.\r\n List<Pe> peList = new ArrayList<Pe>();\r\n\r\n\r\n // 3. Create PEs and add these into a list.\r\n peList.add(new Pe(0, new PeProvisionerSimple(mips+100))); // need to store Pe id and MIPS Rating\r\n\r\n // 4. Create Host with its id and list of PEs and add them to the list\r\n // of machines\r\n long storage = 1000000; // host storage\r\n\r\n\r\n for (int hostId = 0; hostId < vmNum; hostId++) {\r\n hostList.add(\r\n new Host(\r\n hostId,\r\n new RamProvisionerSimple((int)((ram*1.1)/Constants.MB)),\r\n new BwProvisionerSimple(bw+10),\r\n storage,\r\n peList,\r\n new VmSchedulerTimeShared(peList)\r\n )\r\n ); // This is our machine\r\n }\r\n\r\n\r\n // 5. Create a DatacenterCharacteristics object that stores the\r\n // properties of a data center: architecture, OS, list of\r\n // Machines, allocation policy: time- or space-shared, time zone\r\n // and its price (G$/Pe time unit).\r\n String arch = \"x86\"; // system architecture\r\n String os = \"Linux\"; // operating system\r\n String vmm = \"Xen\";\r\n double time_zone = 10.0; // time zone this resource located\r\n double cost = 3.0; // the cost of using processing in this resource\r\n double costPerMem = 0.05; // the cost of using memory in this resource\r\n double costPerStorage = 0.001; // the cost of using storage in this\r\n // resource\r\n double costPerBw = 0.0; // the cost of using bw in this resource\r\n LinkedList<Storage> storageList = new LinkedList<Storage>(); // we are not adding SAN\r\n // devices by now\r\n\r\n DatacenterCharacteristics characteristics = new DatacenterCharacteristics(\r\n arch, os, vmm, hostList, time_zone, cost, costPerMem,\r\n costPerStorage, costPerBw);\r\n\r\n // 6. Finally, we need to create a PowerDatacenter object.\r\n Datacenter datacenter = null;\r\n try {\r\n datacenter = new Datacenter(name, characteristics, new VmAllocationPolicySimple(hostList), storageList, 0);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return datacenter;\r\n }",
"public void createSpaceClasses(){\n\t//add the number of classe demand in a list of superchannel\n\t\tspaceSC_List = new ArrayList<OpticalSuperChannel>();\n\t\tfor ( int i = 1 ; i < this.spatialDimension+1 ; i++ ) {\n\t\t\tspaceSC_List.add(new OpticalSuperChannel( i , this.signalBw, this.channelSpacing, this.bandGuard,\n\t\t\t\t\tthis.slotBw, this.modulationFormat));\n\t\t}\n\n\n\t}",
"@Override\n\tpublic void create () {\n\t\tgempiresAssetHandler = new GempiresAssetHandler(this);\n\t\tbatch = new SpriteBatch();\n\t\tcastle = new CastleScreen(this);\n\t\tsetScreen(new MainMenuScreen(this));\n\t}",
"public void generate() {\n\t\t\n\t\t// For this system, there are two particles per cell:\n\t\tint nc = size[0][0]*size[0][1]*size[0][2];\n\t\tn = 3*nc;\n\t\t\n\t\t// The AB2 Lattice:\n\t\tAB2Lattice ab2 = new AB2Lattice();\n\t\tab2.setSizeInCells(size[0][0],size[0][1],size[0][2]);\n\t\t\n\t\t// Stick them in the latt member:\n\t\tlatt = new VectorD3[2][];\n\t\tlatt[0] = new VectorD3[n];\t\t\n\t\tSystem.arraycopy(ab2.getLattice(0),0,latt[0], 0, nc);\n\t\tSystem.arraycopy(ab2.getLattice(1),0,latt[0], nc, 2*nc);\n\t\tlatt_name[0] = \"AB2\";\n\t\tab2.saveAsWRL(\"initAB2\");\n\t\t\n\t\t// Build the A and B lattices, A first, then B second:\n\n\t\t// The seperate A and B2 lattices\n\t\tFaceCentredCubicABCLattice fcc = new FaceCentredCubicABCLattice();\n\t\t\n\t\t// Create the new system at the new size:\n\t\tNtp = n-nc;\n\t\tfcc.setSizeInCells(size[1][0],size[1][1],size[1][2]);\n\n\t\t// Copy the two FCC lattices into the 1th phase:\n\t\tlatt[1] = new VectorD3[n];\n\t\tlatt_name[1] = \"FCC\";\n\t\tSystem.arraycopy(fcc.getLattice(), 0, latt[1], 0, n);\n\n\t\t/* Define distances between neighbouring atoms in the same stacking plane \n\t\t * taking advantage of the fact that both lattices have the same Unit Cell: */\n\t\tdouble[] c_uc = new double[3];\n\t\tc_uc = ab2.getUnitCell();\n\t\tuc.x = c_uc[0];\n\t\tuc.y = c_uc[1];\n\t\tuc.z = c_uc[2];\n\t\t\n\t\t// Put the lattices in the class members, for later use:\n\t\tlats[0] = (Lattice)ab2;\n\t\tlats[1] = (Lattice)fcc;\n\t\t\n\t}",
"public Selling_Machine() {\n initComponents();\n \n }",
"private void createInstances()\n {\n Room EnchantedForest, IdyllicGlade, GumdropHill, DenseWoods, VolcanoHell, SecretHotSpring, MagmaChamber, MysteriousCloud, SkyParadise, Cirrostratus, Nimbostratus, Stratocumulus, WaterTemple, Whirlpool, EyeoftheStorm, BossQuarters, Portal;\n \n random = new Random();\n allrooms = new ArrayList<Room>();\n \n // create the rooms providing an ID to be passed into the room constructor\n EnchantedForest = new EnchantedForestRoom();\n allrooms.add(EnchantedForest);\n IdyllicGlade = new IdyllicGladeRoom();\n allrooms.add(IdyllicGlade);\n GumdropHill = new GumdropHillRoom();\n allrooms.add(GumdropHill);\n DenseWoods = new DenseWoodsRoom();\n allrooms.add(DenseWoods);\n VolcanoHell = new VolcanoHellRoom();\n allrooms.add(VolcanoHell);\n SecretHotSpring = new SecretHotSpringRoom();\n allrooms.add(SecretHotSpring);\n MagmaChamber = new MagmaChamberRoom();\n allrooms.add(MagmaChamber);\n MysteriousCloud = new MysteriousCloudRoom();\n allrooms.add(MysteriousCloud);\n SkyParadise = new SkyParadiseRoom();\n allrooms.add(SkyParadise);\n Cirrostratus = new CirrostratusRoom();\n allrooms.add(Cirrostratus);\n Nimbostratus = new NimbostratusRoom();\n allrooms.add(Nimbostratus);\n Stratocumulus = new StratocumulusRoom();\n allrooms.add(Stratocumulus);\n WaterTemple = new WaterTempleRoom();\n allrooms.add(WaterTemple);\n Whirlpool = new WhirlpoolRoom();\n allrooms.add(Whirlpool);\n EyeoftheStorm = new EyeoftheStormRoom();\n allrooms.add(EyeoftheStorm);\n BossQuarters = new BossQuartersRoom(); \n allrooms.add(BossQuarters);\n Portal = new PortalRoom();\n \n \n // initialise room exits, items and creatures\n EnchantedForest.setExit(\"east\", IdyllicGlade);\n EnchantedForest.setExit(\"west\", GumdropHill);\n EnchantedForest.setExit(\"south\", DenseWoods);\n \n IdyllicGlade.setExit(\"west\", EnchantedForest);\n \n GumdropHill.setExit(\"down\", EnchantedForest);\n GumdropHill.setExit(\"up\", MysteriousCloud);\n\n DenseWoods.setExit(\"north\", EnchantedForest);\n DenseWoods.setExit(\"south\", VolcanoHell);\n \n MagmaChamber.setExit(\"north\",VolcanoHell);\n \n VolcanoHell.setExit(\"east\", SecretHotSpring);\n VolcanoHell.setExit(\"north\", DenseWoods);\n VolcanoHell.setExit(\"west\", MysteriousCloud);\n VolcanoHell.setExit(\"south\", MagmaChamber);\n \n SecretHotSpring.setExit(\"west\", VolcanoHell);\n \n MysteriousCloud.setExit(\"west\", VolcanoHell);\n MysteriousCloud.setExit(\"in\", Portal);\n MysteriousCloud.setExit(\"up\", SkyParadise);\n \n SkyParadise.setExit(\"down\", MysteriousCloud);\n SkyParadise.setExit(\"up\", Cirrostratus);\n SkyParadise.setExit(\"east\", Nimbostratus);\n \n Cirrostratus.setExit(\"north\", SkyParadise);\n Cirrostratus.setExit(\"down\", WaterTemple);\n \n Nimbostratus.setExit(\"west\", SkyParadise);\n Nimbostratus.setExit(\"east\", Stratocumulus);\n \n Stratocumulus.setExit(\"west\", Nimbostratus);\n Stratocumulus.setExit(\"down\", WaterTemple);\n \n WaterTemple.setExit(\"up\",Stratocumulus);\n WaterTemple.setExit(\"high\", Cirrostratus);\n WaterTemple.setExit(\"down\", Whirlpool);\n WaterTemple.setExit(\"in\", BossQuarters);\n \n Whirlpool.setExit(\"up\", WaterTemple);\n Whirlpool.setExit(\"down\", EyeoftheStorm);\n \n EyeoftheStorm.setExit(\"up\", Whirlpool);\n EyeoftheStorm.setExit(\"in\", BossQuarters);\n \n BossQuarters.setExit(\"out\", WaterTemple);\n \n currentRoom = EnchantedForest; \n }",
"public void createChain(){\r\n Oscillator wt = new Oscillator(this, Oscillator.SAWTOOTH_WAVE, this.sampleRate, this.channels);\r\n Filter filt = new Filter(wt, this.filterCutoff, Filter.LOW_PASS);\r\n Envelope env = new Envelope(filt, \r\n new double[] {0.0, 0.0, 0.05, 1.0, 0.3, 0.4, 1.0, 0.0});\r\n\t\tVolume vol = new Volume(env);\r\n//\t\tSampleOut sout = new SampleOut(vol);\r\n\t}",
"public Subsystem1() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\nspeedController1 = new PWMVictorSPX(0);\naddChild(\"Speed Controller 1\",speedController1);\nspeedController1.setInverted(false);\n \nspeedController2 = new PWMVictorSPX(1);\naddChild(\"Speed Controller 2\",speedController2);\nspeedController2.setInverted(false);\n \nspeedController3 = new PWMVictorSPX(2);\naddChild(\"Speed Controller 3\",speedController3);\nspeedController3.setInverted(false);\n \nspeedController4 = new PWMVictorSPX(3);\naddChild(\"Speed Controller 4\",speedController4);\nspeedController4.setInverted(false);\n \nmecanumDrive1 = new MecanumDrive(speedController1, speedController2,\nspeedController3, speedController4);\naddChild(\"Mecanum Drive 1\",mecanumDrive1);\nmecanumDrive1.setSafetyEnabled(true);\nmecanumDrive1.setExpiration(0.1);\nmecanumDrive1.setMaxOutput(1.0);\n\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }",
"public PnuematicSubsystem() {\n\n }",
"public static void create(int steps) {\n\t\tlocalPlaces = 40;\n\t\toutPlaces = 3;\n\n\t\t// Initial marking: \n\t\tinitPlaces = new int[] {0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0};\n\t\ttileInitPlaces = 20;\n\n\t\t// Output mapping:\n\t\tint offs = 0;\n\t\ttOutMap = new OutMap[outPlaces];\n\t\ttOutMap[offs++] = new OutMap(-1, 37);\n\t\ttOutMap[offs++] = new OutMap(-1, 35);\n\t\ttOutMap[offs++] = new OutMap(1, 0);\n\n\t\t// Transitions:\n\t\toffs = 0;\n\t\ttransitions = 24; // (12 aligned to 4) x 2 steps\n\t\ttmap = new Transition[transitions];\n\n\t\t// {0xoi, inp-s, outp-s}\n\t\ttmap[offs++] = new Transition(0x22, 4, 1, 41 /* out */ , 40 /* out */ ); // 0: ccw_take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x22, 4, 12, 9, 5); // 1: take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 0, 1, 4); // 2: ccw_put_left_fork\n\t\ttmap[offs++] = new Transition(0x21, 10, 11, 3); // 3: put_left_fork\n\n\t\ttmap[offs++] = new Transition(0x31, 7, 10, 2, 8); // 4: start_thinking\n\t\ttmap[offs++] = new Transition(0x13, 9, 6, 8, 7); // 5: start_eating\n\t\ttmap[offs++] = new Transition(0x21, 2, 4, 12); // 6: put_right_fork\n\t\ttmap[offs++] = new Transition(0x31, 13, 20 /* next */ , 18, 14); // 7: cw_start_thinking\n\n\t\ttmap[offs++] = new Transition(0x13, 11, 3, 5, 6); // 8: take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x13, 11, 16, 17, 19); // 9: cw_take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 18, 16, 11); // 10: cw_put_right_fork\n\t\ttmap[offs++] = new Transition(0x13, 14, 19, 15, 13); // 11: cw_start_eating\n\n\t\ttmap[offs++] = new Transition(0x22, 24, 21, 15 /* prev */ , 17 /* prev */ ); // 0: ccw_take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x22, 24, 32, 29, 25); // 1: take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 20, 21, 24); // 2: ccw_put_left_fork\n\t\ttmap[offs++] = new Transition(0x21, 30, 31, 23); // 3: put_left_fork\n\n\t\ttmap[offs++] = new Transition(0x31, 27, 30, 22, 28); // 4: start_thinking\n\t\ttmap[offs++] = new Transition(0x13, 29, 26, 28, 27); // 5: start_eating\n\t\ttmap[offs++] = new Transition(0x21, 22, 24, 32); // 6: put_right_fork\n\t\ttmap[offs++] = new Transition(0x31, 33, 42 /* out */ , 38, 34); // 7: cw_start_thinking\n\n\t\ttmap[offs++] = new Transition(0x13, 31, 23, 25, 26); // 8: take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x13, 31, 36, 37, 39); // 9: cw_take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 38, 36, 31); // 10: cw_put_right_fork\n\t\ttmap[offs++] = new Transition(0x13, 34, 39, 35, 33); // 11: cw_start_eating\n\n\t\tif(PPNDevice.logMessages)\n\t\t\tSystem.out.printf(\"localPlaces: %d\\ntransitions: %d\\n\", localPlaces, transitions);\n\t}",
"public void create_crystal() {\n\t\tcrystalQuantity[1] += (1+create_modifier);\n\t\tautomerge();\n\t\tcollection();\n\t}",
"private void builder(){\r\n //Objects\r\n //Left\r\n canvasStackPane.setAlignment(Pos.TOP_LEFT);\r\n left1HintButton = new Button(\"Hint\");\r\n left2Button = new Button(\"New Graph\");\r\n left3Button = new Button(\"New GameMode\");\r\n left4Button = new Button(\"New GraphMode\");\r\n left5Button = new Button(\"Finished\");\r\n leftRestLabel = new Label();\r\n //Up\r\n upperLeftButton = new Label(\"Menu\");\r\n upperLeftButton.setAlignment(Pos.CENTER);\r\n upper1Label = new Label();\r\n upper2Label = new Label();\r\n upper3Label = new Label();\r\n upperRestLabel = new Label();\r\n //calculateVectors\r\n backPane.setPickOnBounds(false);\r\n textFieldVertices.setPromptText(\"Vertices\");\r\n textFieldEdges.setPromptText(\"Edges\");\r\n gameEnd.setSpacing(30);\r\n gameEnd.setAlignment(Pos.CENTER);\r\n gameWinStackPane.setAlignment(Pos.CENTER);\r\n hBoxWin.setAlignment(Pos.CENTER);\r\n hBoxWin.setSpacing(30);\r\n canvasStackPane.setPickOnBounds(true);\r\n canvas.setPickOnBounds(true);\r\n canvas.getGraphicsContext2D().setLineWidth(2.5);\r\n }",
"public void power()\r\n {\r\n powerOn = true;\r\n }",
"public HardwareAssignmentGenerator() {\n // TODO Auto-generated constructor stub\n }",
"public void create()\n/* 342: */ {\n/* 343:422 */ setupPlainVariables_xjal();\n/* 344: */ \n/* 345:424 */ this.presentation = new ShapeTopLevelPresentationGroup(this, true, 0.0D, 0.0D, 0.0D, 0.0D, new Object[0]);\n/* 346:425 */ this.icon = new ShapeGroup(this, true, 0.0D, 0.0D, 0.0D, new Object[0]);\n/* 347: */ \n/* 348: */ \n/* 349:428 */ assignInitialConditions_xjal();\n/* 350:429 */ onCreate();\n/* 351: */ }",
"public void generatePowerups(int number) {\n for (int i = 0; i < number; i++) {\n int spaceBetweenPowerups = CollectTheFruit.width / number;\n if (i != 0) {\n // Don't add a powerup at the edge of the screen\n this.addPowerup(i * spaceBetweenPowerups, getYPos());\n }\n }\n }",
"public void ApplyMovement() {\n long currTime = SystemClock.uptimeMillis();\n if(currTime - lastUpdateTime < 16){\n return;\n }\n lastUpdateTime = currTime;\n\n\n double tl_power_raw = movement_y-movement_turn+movement_x*1.5;\n double bl_power_raw = movement_y-movement_turn- movement_x*1.5;\n double br_power_raw = -movement_y-movement_turn-movement_x*1.5;\n double tr_power_raw = -movement_y-movement_turn+movement_x*1.5;\n\n\n\n\n //find the maximum of the powers\n double maxRawPower = Math.abs(tl_power_raw);\n if(Math.abs(bl_power_raw) > maxRawPower){ maxRawPower = Math.abs(bl_power_raw);}\n if(Math.abs(br_power_raw) > maxRawPower){ maxRawPower = Math.abs(br_power_raw);}\n if(Math.abs(tr_power_raw) > maxRawPower){ maxRawPower = Math.abs(tr_power_raw);}\n\n //if the maximum is greater than 1, scale all the powers down to preserve the shape\n double scaleDownAmount = 1.0;\n if(maxRawPower > 1.0){\n //when max power is multiplied by this ratio, it will be 1.0, and others less\n scaleDownAmount = 1.0/maxRawPower;\n }\n tl_power_raw *= scaleDownAmount;\n bl_power_raw *= scaleDownAmount;\n br_power_raw *= scaleDownAmount;\n tr_power_raw *= scaleDownAmount;\n\n\n //now we can set the powers ONLY IF THEY HAVE CHANGED TO AVOID SPAMMING USB COMMUNICATIONS\n topLeft.setPower(tl_power_raw);\n bottomLeft.setPower(bl_power_raw);\n bottomRight.setPower(br_power_raw);\n topRight.setPower(tr_power_raw);\n }",
"public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}",
"public Systems() {\r\n\t\t__initializeSystems = new ArrayList<InitializeSystem>();\r\n\t\t__executeSystems = new ArrayList<ExecuteSystem>();\r\n\t\t__renderSystems = new ArrayList<RenderSystem>();\r\n\t\t__tearDownSystems = new ArrayList<TearDownSystem>();\r\n\t}",
"private void createSwitches() {\n \t\tswitches = new Point[4];\n \t\tswitches[0] = new Point(centreMin, centreMin);\n \t\tswitches[1] = new Point(centreMin, centreMax-1);\n \t\tswitches[2] = new Point(centreMax-1, centreMin);\n \t\tswitches[3] = new Point(centreMax-1, centreMax-1);\n \t}",
"public SubsystemDrive(){\n \t\n \t//Master Talons\n \tleft1 = new CANTalon(Constants.LEFT_MOTOR);\n \tright1 = new CANTalon(Constants.RIGHT_MOTOR);\n \t\n \t//Slave Talons\n \tleft2 = new CANTalon(Constants.OTHER_LEFT_MOTOR);\n \tright2 = new CANTalon(Constants.OTHER_RIGHT_MOTOR);\n \t\n \t//VOLTAGE\n \tvoltage(left1); \t\n \tvoltage(left2); \t\n \tvoltage(right1); \t\n \tvoltage(right2); \t\n\n \t//Train the Masters\n \tleft1.setFeedbackDevice(CANTalon.FeedbackDevice.CtreMagEncoder_Relative);\n \tright1.setFeedbackDevice(CANTalon.FeedbackDevice.CtreMagEncoder_Relative);\n \tleft1.setEncPosition(0);\n \tright1.setEncPosition(0);\n \tleft1.reverseSensor(false);\n \tright1.reverseSensor(false);\n \t\n \t//Train the Slaves\n \tleft2.changeControlMode(CANTalon.TalonControlMode.Follower);\n \tright2.changeControlMode(CANTalon.TalonControlMode.Follower);\n \tleft2.set(left1.getDeviceID());\n \tright2.set(right1.getDeviceID());\n \t\n \tpid = new TalonPID(new CANTalon[]{left1, right1}, \"MOTORS\");\n }",
"public void create2(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[1][1] = 1;\n\n\t\t//creating stairs to transport to room3\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Stairs[18][18] = 1;\n\n\t\t//creating board to keep track of ari\n\t\tfor(int i = 0; i <this.Ari.length; i++){\n\t\t\tfor(int p = 0; p < this.Ari.length; p++){\n\t\t\t\tthis.Ari[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Ari[7][11] = 1;//putts ari there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 3; i< 4 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 19; p > 1; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 19; p > 1; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}",
"public static void init() {\n driveLeft = new VictorSP(1);\r\n LiveWindow.addActuator(\"Drive\", \"Left\", (VictorSP) driveLeft);\r\n \r\n driveRight = new VictorSP(0);\r\n LiveWindow.addActuator(\"Drive\", \"Right\", (VictorSP) driveRight);\r\n \r\n driveMotors = new RobotDrive(driveLeft, driveRight);\r\n \r\n driveMotors.setSafetyEnabled(false);\r\n driveMotors.setExpiration(0.1);\r\n driveMotors.setSensitivity(0.5);\r\n driveMotors.setMaxOutput(1.0);\r\n\r\n driveEncoderLeft = new Encoder(0, 1, true, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderLeft\", driveEncoderLeft);\r\n driveEncoderLeft.setDistancePerPulse(0.053855829);\r\n driveEncoderLeft.setPIDSourceType(PIDSourceType.kRate);\r\n driveEncoderRight = new Encoder(2, 3, false, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderRight\", driveEncoderRight);\r\n driveEncoderRight.setDistancePerPulse(0.053855829);\r\n driveEncoderRight.setPIDSourceType(PIDSourceType.kRate);\r\n driveFrontSonar = new Ultrasonic(4, 5);\r\n LiveWindow.addSensor(\"Drive\", \"FrontSonar\", driveFrontSonar);\r\n \r\n shooterMotor = new VictorSP(3);\r\n LiveWindow.addActuator(\"Shooter\", \"Motor\", (VictorSP) shooterMotor);\r\n \r\n climberMotor = new Spark(2);\r\n LiveWindow.addActuator(\"Climber\", \"Motor\", (Spark) climberMotor);\r\n \r\n gearGrabReleaseSolonoid = new DoubleSolenoid(0, 0, 1);\r\n LiveWindow.addActuator(\"Gear\", \"GrabReleaseSolonoid\", gearGrabReleaseSolonoid);\r\n \r\n powerPanel = new PowerDistributionPanel(0);\r\n LiveWindow.addSensor(\"Power\", \"Panel\", powerPanel);\r\n \r\n cameraMountpan = new Servo(4);\r\n LiveWindow.addActuator(\"CameraMount\", \"pan\", cameraMountpan);\r\n \r\n cameraMounttilt = new Servo(5);\r\n LiveWindow.addActuator(\"CameraMount\", \"tilt\", cameraMounttilt);\r\n \r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n\t\tdriveSonarFront = new SonarMB1010(0);\r\n\t\tLiveWindow.addSensor(\"Drive\", \"SonarFront\", driveSonarFront);\r\n\r\n\t\t//driveGyro = new GyroADXRS453();\r\n\t\tdriveGyro = new ADXRS450_Gyro();\r\n\t\tLiveWindow.addSensor(\"Drive\", \"Gyro\", driveGyro);\r\n\t\tdriveGyro.calibrate();\r\n\t}",
"public void start() {\n\t\tobj = new SlotMachine();\n\t\tsetContentPane(new JLabel(new ImageIcon(\"src/images/background.jpg\")));\n\t\t//design the main interface\n\t\tdesign();\n\n\t\t//Initialise the 3 reels\n\t\tnew SlotMachineController().initializeReels();\n\t\t//add 3 reels of panel to slotmachines panels\n\t\treel1.add(new SlotMachineController(reel1, 1));\n\t\treel2.add(new SlotMachineController(reel2, 2));\n\t\treel3.add(new SlotMachineController(reel3, 3));\n\t\t//add mouselistners to 3 reels\n\t\tnew SlotMachineController().stopSpinning();\n\t\t//design the frame\n\t\tsetTitle(\"Slot Machine\");\n\t\tImageIcon img = new ImageIcon(\"src/images/icon.png\");\n\t\tsetIconImage(img.getImage());\n\t\tsetSize(580, 720);\n\t\tsetMinimumSize(new Dimension(580, 720));\n\t\tsetVisible(true);\n\t}",
"public void createSensors() {\n\t\t// calculates the height and width of the screen\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint width = (int) screenSize.getWidth();\n\t\tint height = (int) screenSize.getHeight();\n\n\t\t// color for border\n\t\tint red = 33;\n\t\tint green = 65;\n\t\tint blue = 114;\n\t\tColor myBlue = new Color(red, green, blue);\n\n\t\t// title label\n\t\ttitleLabel = new JLabel(\"CONFIGURATION PANEL\");\n\t\ttitleLabel.setFont(font);\n\t\ttitleLabel.setBounds(600, 7, 417, 50);\n\t\ttitleLabel.setForeground(myBlue);\n\t\tthis.add(titleLabel, BorderLayout.NORTH);\n\n\t\tthis.setBorder(BorderFactory.createStrokeBorder(new BasicStroke(20.0f),\n\t\t\t\tmyBlue));\n\n\t\t// label the displays the selected area\n\t\tsectionLabel = new JLabel(\"\");\n\t\tsectionLabel.setFont(font3);\n\t\tsectionLabel.setBounds(40, 145, 200, 50);\n\t\tsectionLabel.setForeground(Color.RED);\n\t\tthis.add(sectionLabel);\n\n\t\t// fire sensor check box\n\t\tfireSensor = new JCheckBox(\"Fire Sensor\");\n\t\tfireSensor.setFont(font);\n\t\tfireSensor.setBounds(35, 195, 115, 50);\n\t\tfireSensor.setForeground(Color.BLACK);\n\t\tfireSensor.setBackground(Color.WHITE);\n\t\tthis.add(fireSensor);\n\n\t\t// fire bell icon is displayed using the following label\n\t\tfetchfireBell();\n\t\tfireBellLabel = new JLabel(new ImageIcon(fireBellScaledImg));\n\t\tfireBellLabel.setBounds(150, 205, 25, 25);\n\t\tthis.add(fireBellLabel);\n\n\t\t// burglary sensor check box\n\t\tburglarySensor = new JCheckBox(\"Burglary Sensor\");\n\t\tburglarySensor.setFont(font);\n\t\tburglarySensor.setBounds(35, 245, 150, 50);\n\t\tburglarySensor.setForeground(Color.BLACK);\n\t\tburglarySensor.setBackground(Color.WHITE);\n\t\tthis.add(burglarySensor);\n\n\t\t// burglary bell icon is displayed using the following label\n\t\tfetchBurglaryBell();\n\t\tburglaryBellLabel = new JLabel(new ImageIcon(burglaryBellScaledImg));\n\t\tburglaryBellLabel.setBounds(189, 254, 25, 25);\n\t\tthis.add(burglaryBellLabel);\n\n\t\t// date label\n\t\tdateLabel = new JLabel(\"Date: \");\n\t\tdateLabel.setFont(font);\n\t\tdateLabel.setBounds(1106, 153, 150, 50);\n\t\tdateLabel.setForeground(Color.BLACK);\n\t\tdateLabel.setBackground(Color.WHITE);\n\t\tthis.add(dateLabel);\n\n\t\t// from date text field\n\t\tdateFromTf = new JTextField();\n\t\tdateFromTf.setFont(font1);\n\t\tdateFromTf.setBounds(1106, 193, 75, 30);\n\t\tdateFromTf.setForeground(Color.BLACK);\n\t\tdateFromTf.setBackground(Color.WHITE);\n\t\tthis.add(dateFromTf);\n\n\t\t// to date text field\n\t\tdateToTf = new JTextField();\n\t\tdateToTf.setFont(font1);\n\t\tdateToTf.setBounds(1186, 193, 75, 30);\n\t\tdateToTf.setForeground(Color.BLACK);\n\t\tdateToTf.setBackground(Color.WHITE);\n\t\tthis.add(dateToTf);\n\n\t\t// Weekdays label\n\t\tWDaysLbl = new JLabel(\"Time: Weekdays \");\n\t\tWDaysLbl.setFont(font);\n\t\tWDaysLbl.setBounds(1106, 243, 150, 50);\n\t\tWDaysLbl.setForeground(Color.BLACK);\n\t\tWDaysLbl.setBackground(Color.WHITE);\n\t\tthis.add(WDaysLbl);\n\n\t\t// util.date is converted to sql.date for compatibility with database\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong t = date.getTime();\n\t\tjava.sql.Time endTime = new java.sql.Time(t);\n\n\t\t// From time during week days text field\n\t\tWDFromTf = new JTextField(endTime.toString());\n\t\tWDFromTf.setFont(font1);\n\t\tWDFromTf.setBounds(1106, 293, 70, 30);\n\t\tWDFromTf.setForeground(Color.BLACK);\n\t\tWDFromTf.setBackground(Color.WHITE);\n\t\tthis.add(WDFromTf);\n\n\t\t// To time during week days text field\n\t\tWDToTf = new JTextField(endTime.toString());\n\t\tWDToTf.setFont(font1);\n\t\tWDToTf.setBounds(1186, 293, 70, 30);\n\t\tWDToTf.setForeground(Color.BLACK);\n\t\tWDToTf.setBackground(Color.WHITE);\n\t\tthis.add(WDToTf);\n\n\t\t// from time during week ends text field\n\t\tWEndsLbl = new JLabel(\"Time: Weekends\");\n\t\tWEndsLbl.setFont(font);\n\t\tWEndsLbl.setBounds(1106, 343, 150, 50);\n\t\tWEndsLbl.setForeground(Color.BLACK);\n\t\tWEndsLbl.setBackground(Color.WHITE);\n\t\tthis.add(WEndsLbl);\n\n\t\t// from time during week ends text field\n\t\tWEndsFrom = new JTextField(endTime.toString());\n\t\tWEndsFrom.setFont(font1);\n\t\tWEndsFrom.setBounds(1106, 393, 70, 30);\n\t\tWEndsFrom.setForeground(Color.BLACK);\n\t\tWEndsFrom.setBackground(Color.WHITE);\n\t\tthis.add(WEndsFrom);\n\n\t\t// to time during week ends text field\n\t\tWEndsTo = new JTextField(endTime.toString());\n\t\tWEndsTo.setFont(font1);\n\t\tWEndsTo.setBounds(1186, 393, 70, 30);\n\t\tWEndsTo.setForeground(Color.BLACK);\n\t\tWEndsTo.setBackground(Color.WHITE);\n\t\tthis.add(WEndsTo);\n\n\t\t// save sensors selection button\n\t\tsaveSensorsButton = new JButton(\"Save\");\n\t\tsaveSensorsButton.setFocusPainted(false);\n\t\tsaveSensorsButton.setFont(font1);\n\t\tsaveSensorsButton.setBounds(35, 295, 100, 30);\n\t\tsaveSensorsButton.setForeground(Color.BLACK);\n\t\tthis.add(saveSensorsButton);\n\n\t\t// activate sensors button to activate the schedule of the sensors\n\t\t// configured\n\t\tactivateSensorsButton = new JButton(\"Activate\");\n\t\tactivateSensorsButton.setFocusPainted(false);\n\t\tactivateSensorsButton.setFont(font1);\n\t\tactivateSensorsButton.setBounds(1105, 443, 100, 30);\n\t\tactivateSensorsButton.setForeground(Color.BLACK);\n\t\tthis.add(activateSensorsButton);\n\n\t}",
"private EntityManager initSystems() {\n CameraSystem cameraSystem = new CameraSystem(Constants.WINDOW_WIDTH, Constants.WINDOW_HEIGHT);\n addSystem(cameraSystem);\n addSystem(new ZoomSystem());\n //Physics System\n addSystem(new PhysicsSystem());\n //Player movement system\n addSystem(new PlayerMovementSystem());\n\n addSystem(new CannonFiringSystem());\n addSystem(new CollisionSystem());\n addSystem(new KillSystem());\n addSystem(new HealthSystem());\n addSystem(new StatisticSystem());\n addSystem(new EnemySpawningSystem());\n addSystem(new InventorySystem());\n addSystem(new CurrencySystem());\n\n GUISystem guiSystem = new GUISystem();\n InputSystem inputSystem = new InputSystem(guiSystem);\n\n //Input System\n addSystem(inputSystem);\n //Entity Render System\n addSystem(new EntityRenderSystem());\n //Particle System\n addSystem(new ParticleSystem());\n addSystem(new PlayerActionSystem(guiSystem));\n addSystem(new MapRenderSystem());\n addSystem(new HUDSystem());\n //Debug Render System\n addSystem(new DebugRendererSystem());\n //GUI System\n addSystem(guiSystem);\n\n return this;\n }",
"private void makeDisplay() {\n\n\t\t// setLayout to be a BoxLayout\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\t// call these methods ???? to be defined later\n\n\t\taddOscServerAddressPanel();\n\t\taddGlobalControlPanel();\n\t\taddFirstSynthPanel();\n\t\taddSecondSynthPanel();\n\t\taddThirdSynthPanel();\n\t}",
"public void placePowerStation() {\n this.powerStation = true;\n\n }",
"public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();",
"private void cmdGenMonitor() throws NoSystemException {\n MSystem system = system();\n String filename = \"USEMonitor.java\";\n PrintWriter out = null;\n try {\n \tout = new PrintWriter(new BufferedWriter(new FileWriter(\n filename)));\n Log.verbose(\"writing file `\" + filename + \"'...\");\n\n new MonitorAspectGenerator(out, system.model()).write();\n Log.verbose(\"done.\");\n } catch (IOException ex) {\n Log.error(ex.getMessage());\n } finally {\n if (out != null) {\n out.flush();\n if (filename != null)\n out.close();\n }\n }\n }",
"public ProductionPowerInput() {\n this.productionPowerInput = new HashMap<>();\n }",
"private void createWeapons()\n {\n woodSword = new Weapon(\"wood sword\", \" | does 12 damage\", 10, true); \n rustedSword = new Weapon(\"rusted sword\", \" | does 17 damage\", 15, true);\n silverSword = new Weapon(\"silver sword\", \" | does 32 damage\", 30, true);\n goldSword = new Weapon(\"gold sword\", \" | does 22 damage\", 20, true);\n titaniumSword = new Weapon(\"titanium sword\", \" | does 52 damage\", 50, true);\n silverSpear = new Weapon(\"silver spear\", \" | does 25 damage\", 23, true);\n infantryBow = new Weapon(\"infantry bow\", \" | does 30 damage\", 28, true);\n }",
"public System(String systemMake, String systemModel, int processorSpeed)\n\t{\n\t\tmake = systemMake;\n\t\tmodel = systemModel;\n\t\tspeed = processorSpeed;\n\t}",
"@Override\n\tpublic void powerUp(int PowerId) {\n\n\t}",
"private void createWorkSpace() {\n\t\tif(promptForWorkSpaceName() != null){\n\t\t\tmyWorkSpaceListener.createWorkSpace(promptForWorkSpaceName());\n\t\t}\n\t}",
"IEquipableItem create(int power, int min, int max);",
"public void update() {\r\n\r\n\t\tfor(int p=0;p<200;p++) {\r\n\t\t\tfor(int k=0;k<200;k++) {\r\n\r\n\t\t\t\tif(tileMap[p][k].getBuilding()!=null) {\r\n\t\t\t\t\tBuilding m=tileMap[p][k].getBuilding();\r\n\t\t\t\t\t//update the buildings\r\n\t\t\t\t\ttileMap[p][k].getBuilding().update();\r\n\r\n\t\t\t\t\t//Check if battery is giving off power\r\n\t\t\t\t\tif( (m instanceof LowTierBattery) || (m instanceof LargeBattery) || (m instanceof IndustrialGradeBattery) ) {\r\n\r\n\t\t\t\t\t\t//If it's a Battery\r\n\t\t\t\t\t\tLowTierBattery f =(LowTierBattery) tileMap[p][k].getBuilding();\t\r\n\r\n\t\t\t\t\t\t//Check if its getting power and charging\r\n\t\t\t\t\t\tif(checkPowerLine(p,k,3)) {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,true); //If it is then give off power\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tpowerSwitcher(p,k,2,f.getCapacity()>0); ///if it isnt then only give power if there is capacity\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//If a building is generating power add power to tiles;\r\n\t\t\t\t\t}else if( (m instanceof SteamEngine) || (m instanceof HandCrankGenerator) || (m instanceof SteamTurbine) || (m instanceof WindTurbine) ) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,3,((PoweredBuilding) m).getPower()); //Adds power or remove power based on the status of the generators\r\n\r\n\t\t\t\t\t\t//Powerline only get power from other powerline or buildings\r\n\t\t\t\t\t}else if(m instanceof PowerLine) {\r\n\r\n\t\t\t\t\t\tpowerSwitcher(p,k,5,checkPowerLine(p,k,5)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t}else if(m instanceof LargePowerLine) {\r\n\t\t\t\t\t\tpowerSwitcher(p,k,10,checkPowerLine(p,k,10)); //Checks if the powerline is powered by other buildings then give it to powerSwitch method\r\n\r\n\t\t\t\t\t\t//If its just a powered building enable it if the tile under it is powered;\r\n\t\t\t\t\t}else if((m instanceof PoweredBuilding)) {\r\n\t\t\t\t\t\t((PoweredBuilding) tileMap[p][k].getBuilding()).setPower(tileMap[p][k].getPowered());\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t//Pipe movement\r\n\t\t\t\t\tif(m instanceof Pipe ) {\r\n\t\t\t\t\t\tpipeCheck(p,k,m);\r\n\t\t\t\t\t}else if(m.getOutputInventorySize()>0) {\r\n\t\t\t\t\t\tbuildingPipeCheck(p,k,m);\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void createHMetisExec() {\n\t\tString[] pathPrefix = {PTUtils.getResourcesFilepath(),\"executable\",\"applications\",\"HMetis\"};\n\t\tString cmd = \"\";\n\t\tcmd += Utils.getPath(pathPrefix);\n\t\tif (Utils.isMac()) {\n\t\t\tcmd = cmd + \"OSX\";\n\t\t}\n\t\telse if (Utils.isUnix()) {\n\t\t\tcmd = cmd + \"Linux\";\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"OS not supported!\");\n\t\t}\n\t\tcmd += Utils.getFileSeparator();\n\t\tcmd += \"hmetis \";\n\t\tcmd += this.getHMetisInFile();\n\t\tcmd += \" \";\n\t\tcmd += this.getPartitioner().getPartition().getNumBlock();\n\t\t// UBfactor=1, Nruns=10, CType=1, RType=1, Vcycle=3, Reconst=0, dbglvl=0\n\t\tcmd += \" 1 10 1 1 3 0 0\";\n\t\tthis.setHMetisExec(cmd);\n\t}",
"public static void main(String[] args) {\n Dimensions dimensions = new Dimensions(20, 20, 5);\n\t Case theCase = new Case(\"220B\", \"Dell\", \"240\", dimensions);\n\n\t Monitor theMonitor = new Monitor(\"Chromebook\", \"Google\", 27, new Resolution(2540, 1440));\n\t Motherboard theMotherboard = new Motherboard(\"BJ-200\", \"Asus\", 4, 6, \"v2.44\");\n\n\t // created PC class by passing 3 objects into our PC constructor\n\t PC thePC = new PC(theCase, theMonitor, theMotherboard);\n\t // we can access methods and variable from our various objects by accessing the returned object in our getter\n\t\tthePC.powerUp();\n\n }",
"public BusSystem(){\n\t\tmar = new MAR((short)0, this);\n\t\tmdr = new MDR((short)0, this);\n\t\tpc = new PC((short)0);\n\t\tA = new Register((short)0);\n\t\tB = new Register((short)0);\n\t\tstack = new MemStack();\n\t\tprogramMemory = new Memory();\n\t\tMemory.setMemSize((short)1024);\n\t}",
"void create(GameLogic gameLogic);",
"public void createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }",
"private void spawn()\n\t{\n\t\t// get the path index and set the stage for the next path to be different\n\t\tint currentPathIndex = 0; //currentWave.getPathIndex();\n\t\t//currentWave.cyclePathList();\n\t\t\n\t\t// get the actual path using the index\n\t\tPath currentPath = pathList.get(currentPathIndex);\n\t\t\n\t\t// create the new Walker with that path\n\t\tWalker walker;\n\t\t\n\t\tswitch(currentWave.dequeueWalker())\n\t\t{\n\t\t\tcase QUICK:\t\twalker = new WalkerQuick(currentPath);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\tdefault:\t\twalker = new WalkerBasic(currentPath);\n\t\t}\n\t\t\n\t\t// put Walker on specific DrawingLayer if necessary\n\t\tif(spawnDrawingLayer != null)\n\t\t{\n\t\t\twalker.moveToDrawingLayer(spawnDrawingLayer);\n\t\t}\n\t}",
"public Microwave()\n {\n this.powerLevel = 1;\n this.timeToCook = 0;\n this.startTime = 0;\n }",
"private void newPowerUp() {\r\n int row = 0;\r\n int column = 0;\r\n do {\r\n row = Numbers.random(0,maxRows-1);\r\n column = Numbers.random(0,maxColumns-1);\r\n } while(isInSnake(row,column,false));\r\n powerUp = new Location(row,column,STOP);\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }",
"private void startGame() {\n minesweeper ms;\n int timeout; // game timer, in minutes\n\n switch (this.gameLevel) {\n\n case INTERMEDIATE:\n ms = new minesweeper(16, 16);\n timeout = 10;\n break;\n case EXPERT:\n ms = new minesweeper(24, 24);\n timeout = 15;\n break;\n default:\n ms = new minesweeper(9, 9);\n timeout = 5;\n }\n\n MinesweeperFX msFx = new MinesweeperFX(ms, timeout);\n Parent gameUI = msFx.getGameUI();\n\n int children = this.root.getChildren().size();\n // check child count. if greater than '1'\n // then MinesweeperFX parent has been added previously.\n if (children > 1) {\n this.root.getChildren().set(1, gameUI);\n } else {\n this.root.getChildren().add(gameUI);\n }\n }",
"public void generate() {\n\t\t\n\t\t// For this system, there are three particles per cell:\n\t\tint nx = size[0][0];\n\t\tint ny = size[0][0];\n\t\tint nz = size[0][0];\n\t\tint nc = nx*ny*nz;\n\t\tn = 3*nc;\n\n\t\t\n\t\t// The AB2 Lattice:\n\t\tAB2Lattice ab2 = new AB2Lattice();\n\t\tab2.setSizeInCells(nx,ny,nz);\n\t\t\n\t\t// Stick them in the latt member:\n\t\tlatt = new VectorD3[2][];\n\t\tlatt[0] = new VectorD3[n];\n\t\tSystem.arraycopy(ab2.getLattice(0),0,latt[0], 0, nx*ny*nz);\n\t\tSystem.arraycopy(ab2.getLattice(1),0,latt[0], nx*ny*nz, 2*nx*ny*nz);\n\t\tlatt_name[0] = \"AB2\";\n\t\tab2.saveAsXYZ(\"initAB2\");\n\t\tab2.saveAsWRL(\"initAB2\");\n\t\t\n\t\t// Build the A and B lattices, A first, then B second:\n\n\t\t// The seperate A and B2 lattices\n\t\tFaceCentredCubicABCLattice fcca = new FaceCentredCubicABCLattice();\n\t\tFaceCentredCubicABCLattice fccb = new FaceCentredCubicABCLattice();\n\t\tfcca.setSizeInCells(nx,ny,nz);\n\t\t\n\t\t// B lattice requires more care:\n\t\tNtp = 2*nx*ny*nz;\n\t\tint nbx = (int) Math.round(Math.pow(Ntp,1.0/3.0));\n\t\tint nby = nbx;\n\t\tint nbz = nbx;\n\t\tif( nbx*nby*nbz != 2*nx*ny*nz ) {\n\t\t\t// Warn that we cannot create a sensible B-phase with this number of particles:\n\t\t\tSystem.out.println(\" H WARNING: AB2Fcc2SwitchMap cannot create a cubic B-FCC phase with \"+(2*nx*ny*nz)+\" particles.\");\n\t\t\t// Fall back to a system that is simply twice as long in one dimension (z):\n\t\t\tnbx = nx;\n\t\t\tnby = ny;\n\t\t\tnbz = 2*nz;\n\t\t\tSystem.out.println(\" H WARNING: AB2Fcc2SwitchMap creating a phase that is twice as long in the z-direction: [\"+nbx+\",\"+nby+\",\"+nbz+\"].\");\n\t\t}\n\t\t// Create the new system at the new size:\n\t\tfccb.setSizeInCells(nbx,nby,nbz);\n\n\t\t// Copy the two FCC lattices into the 1th phase:\n\t\tlatt[1] = new VectorD3[n];\n\t\tlatt_name[1] = \"2.FCC\";\n\t\tSystem.arraycopy(fcca.getLattice(), 0, latt[1], 0, nx*ny*nz);\n\t\tSystem.arraycopy(fccb.getLattice(), 0, latt[1], nx*ny*nz, Ntp);\n\n\t\t// Set up the dimensions of the third-phase box:\n\t\tboxT.x = fccb.getBasicUnitCell()[0]*nbx;\n\t\tboxT.y = fccb.getBasicUnitCell()[1]*nby;\n\t\tboxT.z = fccb.getBasicUnitCell()[2]*nbz;\n\n\t\t/* Define distances between neighbouring atoms in the same stacking plane \n\t\t * taking advantage of the fact that both lattices have the same Unit Cell: */\n\t\tdouble[] c_uc = new double[3];\n\t\tc_uc = fcca.getUnitCell();\n\t\tSystem.out.println(\" H DEBUG FCC UC [ \"+c_uc[0]+\" \"+c_uc[1]+\" \"+c_uc[2]);\n\t\tc_uc = ab2.getUnitCell();\n\t\tSystem.out.println(\" H DEBUG AB2 UC [ \"+c_uc[0]+\" \"+c_uc[1]+\" \"+c_uc[2]);\n\t\tuc.x = c_uc[0];\n\t\tuc.y = c_uc[1];\n\t\tuc.z = c_uc[2];\n\t\t\n\t\t// Put the lattices in the class members, for later use:\n\t\tlats[0] = (Lattice)ab2;\n\t\tlats[1] = (Lattice)fcca;\n\t\tlatT = (Lattice)fccb;\n\n\t}",
"public BasicComputer(double clockRate, double memory, int storage, int power) {\r\n this.make = \"N/A\";\r\n this.model = \"N/A\";\r\n this.setClockRate(clockRate);\r\n this.setMemory(memory);\r\n this.setMemory(storage);\r\n this.setPower(power);\r\n }",
"@Override\n public void init() {\n robot = new MecanumBotHardware(true,true,true,true);\n robot.init(hardwareMap);\n int deg180=845;\n // Create the state machine and configure states.\n smDrive = new StateMachine(this, 16);\n smDrive.addStartState(new WaitState(\"wait\",0.1,\"MainDriveTeleop\"));\n smDrive.addState(new GigabyteTeleopDriveState(\"MainDriveTeleop\", robot));\n smDrive.addState(new SpinPose(\"90DegSpin\",(int)(deg180*0.5),robot,0.1f));\n smDrive.addState(new SpinPose(\"180DegSpin\",deg180,robot,0.1f));\n smDrive.addState(new SpinPose(\"270DegSpin\",(int)(deg180*1.5),robot,0.1f));\n\n smArm = new StateMachine(this, 16);\n smArm.addStartState(new WaitState(\"wait\",0.1,\"MainArmTeleop\"));\n smArm.addState(new GigabyteTeleopArmState(\"MainArmTeleop\", robot));\n smArm.addState(new ShoulderPose(\"Pose1\", robot,0, \"MainArmTeleop\"));//0.12\n smArm.addState(new ShoulderPose(\"Pose2\", robot,1079, \"MainArmTeleop\"));//0.05\n smArm.addState(new ShoulderPose(\"Pose3\", robot,2602, \"MainArmTeleop\"));//-0.17\n smArm.addState(new ShoulderPose(\"Pose4\", robot,3698, \"MainArmTeleop\" ));//-0.35\n // Init the state machine\n smDrive.init();\n smArm.init();\n }",
"void createWires() {\n this.splitBoard(new Posn(0, 0), this.height, this.width);\n int counter = 0;\n for (int i = 0; i < this.width; i++) {\n for (int j = 0; j < this.height; j++) {\n nodes.set(counter, this.board.get(i).get(j));\n counter++;\n }\n }\n }",
"private void createSimulatorMode() {\n setSize(1000, 750);\n setLocation(new Point(200, 100));\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n Container content = getContentPane();\n content.setLayout(new GridBagLayout());\n \n GridBagConstraints c = new GridBagConstraints();\n \n map = new UAVMap(this, UAVModes.SIMULATION, false);\n smenu = new SimUAVMenu();\n toolBar = new SimUAVToolBar();\n map.addConnections(toolBar, smenu);\n smenu.addConnections(toolBar, map);\n toolBar.addConnections(smenu, map);\n \n c.gridy = 0;\n c.fill = GridBagConstraints.HORIZONTAL;\n c.weightx = 1;\n c.weighty = 0;\n content.add(smenu, c);\n \n c.gridy = 1;\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1;\n c.weighty = 0;\n content.add(toolBar, c);\n \n c.gridy = 2;\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1;\n c.weighty = 1;\n content.add(map.getCanvas(), c);\n \n setVisible(true);\n map.initializeSimulation();\n map.startTimer();\n }",
"protected void initialize() {\n \tstartTime = System.currentTimeMillis();\n \tintake.setLeftPower(power);\n \tintake.setRightPower(power);\n }",
"public ElectricShower() {\r\n\t\tthis(12, 0, 4);\r\n\t}",
"public void initFromResource() {\n String[] hwStrings = Resources.getSystem().getStringArray(17236074);\n if (hwStrings != null) {\n for (String hwString : hwStrings) {\n HardwareConfig hw = new MtkHardwareConfig(hwString);\n if (hw.type == 0) {\n updateOrInsert(hw, mModems);\n } else if (hw.type == 1) {\n updateOrInsert(hw, mSims);\n }\n }\n }\n }",
"@Override\n public void createPartControl(Composite parent) {\n\n parent.setLayout(new GridLayout(1, false));\n // create textGp group. It contains text and textMode group\n textGp = new Group(parent, SWT.SHADOW_OUT);\n textGp.setLayout(new GridLayout());\n textGp.setText(\"Text Report\");\n GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);\n textGp.setLayoutData(data);\n\n\t\tcreateTextArea(textGp);\n\t\tcreateTextModeGp(textGp);\t\t\n\t\t\t\n // Create ConfigGp group. It contains dataTypegp, dataProductGp, time\n // cover group and state/stn group\n Group configGp = new Group(parent, SWT.SHADOW_ETCHED_OUT);\n configGp.setLayout(new GridLayout(3, false));\n \t\t\n\t\tcreateGpList(configGp);\n\t\t\n createProductList(configGp);\n \n createTimeCoverBtns(configGp);\n if (currentProductName != null)\n handleStnMarkingRequestByBtn();\n // createStaStnBtns(configGp);\n \n \t}",
"void setupSounds() {\n soundSwitch = new Switch(Switch.CHILD_NONE);\n soundSwitch.setCapability(Switch.ALLOW_SWITCH_WRITE);\n\n // Set up the sound media container\n java.net.URL soundURL = null;\n String soundFile = \"res/sounds/Get_up_on_your_feet_mixdown2.wav\";\n try {\n soundURL = new java.net.URL(codeBaseString + soundFile);\n } catch (java.net.MalformedURLException ex) {\n System.out.println(ex.getMessage());\n System.exit(1);\n }\n if (soundURL == null) { // application, try file URL\n try {\n soundURL = new java.net.URL(\"file:./\" + soundFile);\n } catch (java.net.MalformedURLException ex) {\n System.out.println(ex.getMessage());\n System.exit(1);\n }\n }\n //System.out.println(\"soundURL = \" + soundURL);\n MediaContainer soundMC = new MediaContainer(soundURL);\n\n // set up the Background Sound\n soundBackground = new BackgroundSound();\n soundBackground.setCapability(Sound.ALLOW_ENABLE_WRITE);\n soundBackground.setSoundData(soundMC);\n soundBackground.setSchedulingBounds(infiniteBounds);\n soundBackground.setEnable(false);\n soundBackground.setLoop(Sound.INFINITE_LOOPS);\n soundSwitch.addChild(soundBackground);\n\n // set up the point sound\n soundPoint = new PointSound();\n soundPoint.setCapability(Sound.ALLOW_ENABLE_WRITE);\n soundPoint.setSoundData(soundMC);\n soundPoint.setSchedulingBounds(infiniteBounds);\n soundPoint.setEnable(false);\n soundPoint.setLoop(Sound.INFINITE_LOOPS);\n soundPoint.setPosition(-5.0f, 5.0f, 0.0f);\n Point2f[] distGain = new Point2f[2];\n // set the attenuation to linearly decrease volume from max at\n // source to 0 at a distance of 15m\n distGain[0] = new Point2f(0.0f, 1.0f);\n distGain[1] = new Point2f(15.0f, 0.0f);\n soundPoint.setDistanceGain(distGain);\n soundSwitch.addChild(soundPoint);\n\n // Create the chooser GUI\n String[] soundNames = { \"None\", \"Background\", \"Point\", };\n\n soundChooser = new IntChooser(\"Sound:\", soundNames);\n soundChooser.addIntListener(new IntListener() {\n public void intChanged(IntEvent event) {\n int value = event.getValue();\n // Should just be able to use setWhichChild on\n // soundSwitch, have to explictly enable/disable due to\n // bug.\n switch (value) {\n case 0:\n soundSwitch.setWhichChild(Switch.CHILD_NONE);\n soundBackground.setEnable(false);\n soundPoint.setEnable(false);\n break;\n case 1:\n soundSwitch.setWhichChild(0);\n soundBackground.setEnable(true);\n soundPoint.setEnable(false);\n break;\n case 2:\n soundSwitch.setWhichChild(1);\n soundBackground.setEnable(false);\n soundPoint.setEnable(true);\n break;\n }\n }\n });\n soundChooser.setValue(Switch.CHILD_NONE);\n\n }",
"protected static WorkflowDVFSDatacenter createDatacenter(String name) {\n List<PowerHost> hostList = new ArrayList<>();\n \n // 2. A Machine contains one or more PEs or CPUs/Cores. Therefore, should\n // create a list to store these PEs before creating\n // a Machine.\n for (int i = 1; i <= 20; i++) {\n List<Pe> peList1 = new ArrayList<>();\n double maxPower = 250; // 250W\n \t\tdouble staticPowerPercent = 0.7; // 70%\n int mips = 1500;\n \n boolean enableDVFS = true; // is the Dvfs enable on the host\n \t\tArrayList<Double> freqs = new ArrayList<>(); // frequencies available by the CPU\n \t\tfreqs.add(59.925); // frequencies are defined in % , it make free to use Host MIPS like we want.\n \t\tfreqs.add(69.93); // frequencies must be in increase order !\n \t\tfreqs.add(79.89);\n \t\tfreqs.add(89.89);\n \t\tfreqs.add(100.0);\n \t\t\n \t\tHashMap<Integer,String> govs = new HashMap<Integer,String>(); // Define wich governor is used by each CPU\n \t\tgovs.put(0, \"ondemand\"); // CPU 1 use OnDemand Dvfs mode\n \t\t//govs.put(0, \"powersave\");\n \t\t//govs.put(0, \"performance\");\n \t\t//govs.put(0, \"conservative\");\n \t\t\n \t\tConfigDvfs = new DvfsDatas();\n\t\t\tHashMap<String,Integer> tmp_HM_OnDemand = new HashMap<>();\n\t\t\ttmp_HM_OnDemand.put(\"up_threshold\", 95);\n\t\t\ttmp_HM_OnDemand.put(\"sampling_down_factor\", 100);\n\t\t\tHashMap<String,Integer> tmp_HM_Conservative = new HashMap<>();\n\t\t\ttmp_HM_Conservative.put(\"up_threshold\", 80);\n\t\t\ttmp_HM_Conservative.put(\"down_threshold\", 20);\n\t\t\ttmp_HM_Conservative.put(\"enablefreqstep\", 0);\n\t\t\ttmp_HM_Conservative.put(\"freqstep\", 5);\n\t\t\tHashMap<String,Integer> tmp_HM_UserSpace = new HashMap<>();\n\t\t\ttmp_HM_UserSpace.put(\"frequency\", 3);\n\t\t\tConfigDvfs.setHashMapOnDemand(tmp_HM_OnDemand);\n\t\t\tConfigDvfs.setHashMapConservative(tmp_HM_Conservative);\n\t\t\tConfigDvfs.setHashMapUserSpace(tmp_HM_UserSpace);\n \t\t\n // 3. Create PEs and add these into the list.\n //for a quad-core machine, a list of 4 PEs is required:\n peList1.add(new Pe(0, new PeProvisionerSimple(mips), freqs, govs.get(0), ConfigDvfs)); // need to store Pe id and MIPS Rating\n //peList1.add(new Pe(1, new PeProvisionerSimple(mips), freqs, govs.get(0), ConfigDvfs));//\n \n int hostId = i;\n int ram = 2048; //host memory (MB)\n long storage = 1000000; //host storage\n int bw = 10000;\n hostList.add(\n \tnew PowerHost(\n \thostId,\n \tnew RamProvisionerSimple(ram),\n \tnew BwProvisionerSimple(bw),\n \tstorage,\n \tpeList1,\n \tnew VmSchedulerTimeShared(peList1),\n \tnew PowerModelSpecPower_BAZAR(peList1),\n\t\t\t\t\tfalse,\n\t\t\t\t\tenableDVFS\n )\n ); \t// This is our first machine\n \t//hostId++;\n }\n \n // 4. Create a DatacenterCharacteristics object that stores the\n // properties of a data center: architecture, OS, list of\n // Machines, allocation policy: time- or space-shared, time zone\n // and its price (G$/Pe time unit).\n String arch = \"x86\"; \t\t// system architecture\n String os = \"Linux\"; \t// operating system\n String vmm = \"Xen\";\n double time_zone = 10.0; // time zone this resource located\n double cost = 3.0; // the cost of using processing in this resource\n double costPerMem = 0.05;\t\t// the cost of using memory in this resource\n double costPerStorage = 0.1;\t// the cost of using storage in this resource\n double costPerBw = 0.1;\t\t\t// the cost of using bw in this resource\n LinkedList<Storage> storageList = new LinkedList<>();\t//we are not adding SAN devices by now\n WorkflowDVFSDatacenter datacenter = null;\n \n DatacenterCharacteristics characteristics = new DatacenterCharacteristics(\n arch, os, vmm, hostList, time_zone, cost, costPerMem, costPerStorage, costPerBw);\n \n // 5. Finally, we need to create a storage object.\n /**\n * The bandwidth within a data center in MB/s.\n */\n int maxTransferRate = 15; // the number comes from the futuregrid site, you can specify your bw\n \n try {\n // Here we set the bandwidth to be 15MB/s\n HarddriveStorage s1 = new HarddriveStorage(name, 1e12);\n s1.setMaxTransferRate(maxTransferRate);\n storageList.add(s1);\n datacenter = new WorkflowDVFSDatacenter(name, characteristics, new PowerVmAllocationPolicySimpleWattPerMipsMetric(hostList), storageList, 0.01);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return datacenter;\n }",
"void placePowerStation() {\n this.board.get(powerRow).get(powerCol).placePowerStation();\n }",
"public void move() {\n\t\t\tRandom rand = new Random();//random number generator\n\t\t\tint value = rand.nextInt(500000);//there is a 1 in 500000 chance there will be a new powerup every frame.\n\t\t\tif (value==0) {//if the value is 0\n\t\t\t\tRandom ran = new Random();//make a random number generator and a power up vairable\n\t\t\t\tPowerUp currentPowerUp = null;\n\t\t\t\tint type = ran.nextInt(3);//switch the 1 for the amount of types made.\n\t\t\t\tif (type==0) {//add the powerup depending on the random number. There are 3 types\n\t\t\t\t\tcurrentPowerUp = new PowerUp(healthPowerUp, 0);//this adds a life\n\t\t\t\t}\n\t\t\t\telse if (type==1) {\n\t\t\t\t\tcurrentPowerUp = new PowerUp(longPowerUp, 1);//this makes the slider wider\n\t\t\t\t} else if (type==2) {\n\t\t\t\t\tcurrentPowerUp = new PowerUp(bonusPointsPowerUp, 2);//this just adds points\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//set x and y\n\t\t\t\t//make a random x\n\t\t\t\tint newX = ran.nextInt(401) - 201 + GamePlay.getScreenWidth()/2; //-200 to 200 variance from center\n\t\t\t\tint newY = ran.nextInt(201) - 101 + GamePlay.getScreenHeight()/4;//-100 to 100 variance from the 25% of top distance line.\n\t\t\t\tif (currentPowerUp!=null) {\n\t\t\t\t\tcurrentPowerUp.setX(newX);\n\t\t\t\t\tcurrentPowerUp.setY(newY);\n\t\t\t\t\tpowerUps.add(currentPowerUp);//add the powerups to an array list\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"PowerUp error.\");//if the variable is null, something went wrong.\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//move all powerUps down by ball speed\n\t\t\tfor (PowerUp power: powerUps) {\n\t\t\t\tpower.setY(power.getY() + ballSpeed);\n\t\t\t}\n\t\t\t\n\t\t\t//check if the powerups are off the screen. remove if they are. \n\t\t\tfor (int r = powerUps.size()-1; r>=0; r--) {\n\t\t\t\tif (powerUps.get(r).getY() > GamePlay.getScreenHeight()-h) {\n\t\t\t\t\tpowerUps.remove(r);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//death of a ball\n\t\t\tif (ball.getY()>GamePlay.getScreenHeight() && pause==false) {\n\t\t\t\tdeath();\n\t\t\t}\n\t\t\t\n\t\t\t//no bricks left\n\t\t\tif (blocks.size()==0) {\n\t\t\t\t//you leveled up!\n\t\t\t\tlevelUp();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//wall collision check for ball\n\t\t\t//right wall\n\t\t\tif (ball.rightCollide(GamePlay.getScreenWidth())) {//seperated for later use if wanted.\n\t\t\t\tballVX*=-1;\n\t\t\t} else if (ball.leftCollide(0)) {//left wall\n\t\t\t\tballVX*=-1;\n\t\t\t}\n\t\t\t\n\t\t\tif (ball.topCollide(0)) {//top wall\n\t\t\t\tballVY*=-1;\n\t\t\t} //dont check bottom wall because that is the death of a ball.\n\t\t\t\n\t\t\t//collision with the slider.\n\t\t\tif (ball.getRect().intersects(slider.getRect()) && ball.getY()+ball.getHeight() <= slider.getY()+ballSpeed) {//intersected bool needed\n\t\t\t\tballVY*=-1;\n\t\t\t\tballVX+=sliderVX;//add the slider velocity to the ball velocity, giving user some control over angle. \n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//collision with the powerups\n\t\t\t\n\t\t\tfor (int a = powerUps.size()-1; a>=0; a--) {//iterate thrpough the powerups\n\t\t\t\tPowerUp power = powerUps.get(a);\n\t\t\t\tif (power.getRect().intersects(slider.getRect())) {//if the powerups rect intersects, the slider caught it. Remove from screen\n\t\t\t\t\t//THIS MEANS THEY CAUGHT THE POWERUP\n\t\t\t\t\tif (power.getType()==\"HEALTH\" && power.getIntersected()==false) {\n\t\t\t\t\t\tpower.setIntersected(true);\n\t\t\t\t\t\tif (lives<5)\n\t\t\t\t\t\t\tlives+=1;//add a life up to 5\n\t\t\t\t\t\tpowerUps.remove(a);\n\t\t\t\t\t} else if (power.getType()==\"LONG\" && power.getIntersected()==false) {\n\t\t\t\t\t\tpower.setIntersected(true);\n\t\t\t\t\t\textended = true;//extended flag to say the slider is extended. extend the slider's width by the adjust amount preset globally\n\t\t\t\t\t\tslider.resize(slider.getWidth()+adjust, slider.getHeight());\n\t\t\t\t\t\tslider.setX(slider.getX()-adjust/2);\n\t\t\t\t\t\textendTimer.restart();//restart the entend timer\n\t\t\t\t\t\tpowerUps.remove(a);\n\t\t\t\t\t} else if (power.getType()==\"BONUS\" && power.getIntersected()==false) {\n\t\t\t\t\t\tpower.setIntersected(true);\n\t\t\t\t\t\tscore+=100;//add a 100 points.\n\t\t\t\t\t\tpowerUps.remove(a);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//collision with blocks\n\t\t\t\n\t\t\tboolean changed = false;//this is a flag to see if any collisions occured this frame\n\t\t\tfor (Block block:blocks) {\n\t\t\t\tRectangle r = block.getRect();\t\t\n\t\t\t\tif (r.intersects(ball.getRect())) {//if the rects intersected, something hit something. However, we don't know from what direction\n\t\t\t\t\t//since the vy is always going to be by 1, we can check if it is equal. There is no multiples to deal with. \n\t\t\t\t\t\n\t\t\t\t\t//this checks if it was colliding from the bottom. Check the bottom edge of block and top of the ball\n\t\t\t\t\tif (ball.getY() + 2 >= block.getBottom() && ball.getY() -2 <= block.getBottom() && ball.getIntersected()==false) {\n\t\t\t\t\t\t//bottom collision\n\t\t\t\t\t\tballVY*=-1;//reflect back\n\t\t\t\t\t\tscore += block.downColor();//change the color, adjust score\n\t\t\t\t\t\tball.setIntersected(true);//set the intersected flag so it will not trigger again for the same stimuli\n\t\t\t\t\t\tball.setY(ball.getY() + ballVY);//set the y to remove the ball from collision\n\t\t\t\t\t\tchanged=true;//set the changed flag to true\n\t\t\t\t\t\thitSound.play();//play a sound\n\t\t\t\t\t\t\n\t\t\t\t\t} else if (ball.getY() + ball.getHeight() + 2 >=block.getTop() && ball.getY() + ball.getHeight() -2 <=block.getTop() && ball.getIntersected()==false) {\n\t\t\t\t\t\t//this checks if it was colliding on the top. Check bottom edge of ball and top of block.\n\t\t\t\t\t\tballVY*=-1;//reflect back\n\t\t\t\t\t\tscore += block.downColor();//change the color, adjust score\n\t\t\t\t\t\tball.setIntersected(true);//set the intersected flag so it will not trigger again for the same stimuli\n\t\t\t\t\t\tball.setY(ball.getY() + ballVY);//set the y to remove the ball from collision\n\t\t\t\t\t\tchanged=true;//set the changed flag to true\n\t\t\t\t\t\thitSound.play();//play a sound\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (changed==false && ball.getIntersected()==false) {\n\t\t\t\t\t\t//this must mean it is on the left or right\n\t\t\t\t\t\t//it doesn't matter which one, the change is the exact same!\n\t\t\t\t\t\tballVX*=-1;//flip the x direction\n\t\t\t\t\t\tscore+=block.downColor();//change color, adjust score\n\t\t\t\t\t\tball.setIntersected(true);//set the intersected flag\n\t\t\t\t\t\tball.setX(ball.getX() + ballVX);\n\t\t\t\t\t\tchanged=true;//set the changed flag\n\t\t\t\t\t\thitSound.play();//play the sound\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t}//end the for.\n\t\t\tif (changed==false) {//if no changes, reset the flag.\n\t\t\t\tball.setIntersected(false);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//move everything as per velocity\n\t\t\tif (slider.getX() > 10 && sliderVX<0) {\n\t\t\t\tslider.setX(slider.getX() + sliderVX*ballSpeed*2);//the slider can move twice as fast as the ball.\n\t\t\t} else if ((slider.getX()+slider.getWidth()) < GamePlay.getScreenWidth()-10 && sliderVX>0) {\n\t\t\t\tslider.setX(slider.getX() + sliderVX*ballSpeed*2);\n\t\t\t}\n\t\t\tif (ready) {\n\t\t\t\tball.setX(ball.getX() + ballVX);\n\t\t\t\tball.setY(ball.getY() + ballVY);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"private void startMapCreater() {\n\t\tNavigator navi = new Navigator(pilot);\n\t\tnavi.addWaypoint(0,0);\n\t\tnavi.addWaypoint(0,5000);\n\t\tBehavior forward = new Forward(navi);\n\t\tBehavior ultrasonic = new UltrasonicSensor(ultrasonicSensorAdaptor,pilot, sonicWheel,dis,dos,navi);\n\t\tBehavior stopEverything = new StopRobot(Button.ESCAPE);\n\t\tBehavior[] behaiverArray = {forward, ultrasonic, stopEverything};\n\t\tarb = new Arbitrator(behaiverArray);\n\t\t\n\t arb.go();\n\t\t\n\t}",
"@Override\n\tpublic void create() {\n\t\tAssets.load();\n\t\t\n\t\t//creo pantallas y cargo por defecto menuPrincipal\n\t\tscreenJuego = new JuegoScreen(this);\n\t\tmenuPrincipal = new MenuPrincipal(this);\n\t\tsetScreen(menuPrincipal);\n\t}",
"private void startBootstrapServices() {\n traceBeginAndSlog(\"StartWatchdog\");\n Watchdog watchdog = Watchdog.getInstance();\n watchdog.start();\n traceEnd();\n if (MAPLE_ENABLE) {\n this.mPrimaryZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$UyrPns7R814gZEylCbDKhe8It4.INSTANCE, \"PrimaryZygotePreload\");\n }\n Slog.i(TAG, \"Reading configuration...\");\n traceBeginAndSlog(\"ReadingSystemConfig\");\n SystemServerInitThreadPool.get().submit($$Lambda$YWiwiKm_Qgqb55C6tTuq_n2JzdY.INSTANCE, \"ReadingSystemConfig\");\n traceEnd();\n traceBeginAndSlog(\"StartInstaller\");\n this.installer = (Installer) this.mSystemServiceManager.startService(Installer.class);\n traceEnd();\n traceBeginAndSlog(\"DeviceIdentifiersPolicyService\");\n this.mSystemServiceManager.startService(DeviceIdentifiersPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"UriGrantsManagerService\");\n this.mSystemServiceManager.startService(UriGrantsManagerService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartActivityManager\");\n ActivityTaskManagerService atm = this.mSystemServiceManager.startService(ActivityTaskManagerService.Lifecycle.class).getService();\n this.mActivityManagerService = ActivityManagerService.Lifecycle.startService(this.mSystemServiceManager, atm);\n this.mActivityManagerService.setSystemServiceManager(this.mSystemServiceManager);\n this.mActivityManagerService.setInstaller(this.installer);\n this.mWindowManagerGlobalLock = atm.getGlobalLock();\n traceEnd();\n traceBeginAndSlog(\"StartPowerManager\");\n try {\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(\"com.android.server.power.HwPowerManagerService\");\n } catch (RuntimeException e) {\n Slog.w(TAG, \"create HwPowerManagerService failed\");\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(PowerManagerService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartThermalManager\");\n this.mSystemServiceManager.startService(ThermalManagerService.class);\n traceEnd();\n try {\n Slog.i(TAG, \"PG Manager service\");\n this.mPGManagerService = PGManagerService.getInstance(this.mSystemContext);\n } catch (Throwable e2) {\n reportWtf(\"PG Manager service\", e2);\n }\n traceBeginAndSlog(\"InitPowerManagement\");\n this.mActivityManagerService.initPowerManagement();\n traceEnd();\n traceBeginAndSlog(\"StartRecoverySystemService\");\n this.mSystemServiceManager.startService(RecoverySystemService.class);\n traceEnd();\n RescueParty.noteBoot(this.mSystemContext);\n traceBeginAndSlog(\"StartLightsService\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.lights.LightsServiceBridge\");\n } catch (RuntimeException e3) {\n Slog.w(TAG, \"create LightsServiceBridge failed\");\n this.mSystemServiceManager.startService(LightsService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSidekickService\");\n if (SystemProperties.getBoolean(\"config.enable_sidekick_graphics\", false)) {\n this.mSystemServiceManager.startService(WEAR_SIDEKICK_SERVICE_CLASS);\n }\n traceEnd();\n traceBeginAndSlog(\"StartDisplayManager\");\n this.mDisplayManagerService = (DisplayManagerService) this.mSystemServiceManager.startService(DisplayManagerService.class);\n traceEnd();\n try {\n this.mSystemServiceManager.startService(\"com.android.server.security.HwSecurityService\");\n Slog.i(TAG, \"HwSecurityService start success\");\n } catch (Exception e4) {\n Slog.e(TAG, \"can't start HwSecurityService service\");\n }\n traceBeginAndSlog(\"WaitForDisplay\");\n this.mSystemServiceManager.startBootPhase(100);\n traceEnd();\n String cryptState = (String) VoldProperties.decrypt().orElse(\"\");\n if (ENCRYPTING_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Detected encryption in progress - only parsing core apps\");\n this.mOnlyCore = true;\n } else if (ENCRYPTED_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Device encrypted - only parsing core apps\");\n this.mOnlyCore = true;\n }\n HwBootCheck.bootSceneEnd(100);\n HwBootFail.setBootTimer(false);\n HwBootCheck.bootSceneStart(105, 900000);\n if (!this.mRuntimeRestart) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_start\", (int) SystemClock.elapsedRealtime());\n }\n traceBeginAndSlog(\"StartPackageManagerService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"packagemanagermain\");\n this.mPackageManagerService = PackageManagerService.main(this.mSystemContext, this.installer, this.mFactoryTestMode != 0, this.mOnlyCore);\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n this.mFirstBoot = this.mPackageManagerService.isFirstBoot();\n this.mPackageManager = this.mSystemContext.getPackageManager();\n Slog.i(TAG, \"Finish_StartPackageManagerService\");\n traceEnd();\n if (!this.mRuntimeRestart && !isFirstBootOrUpgrade()) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_ready\", (int) SystemClock.elapsedRealtime());\n HwBootCheck.addBootInfo(\"[bootinfo]\\nisFirstBoot: \" + this.mFirstBoot + \"\\nisUpgrade: \" + this.mPackageManagerService.isUpgrade());\n HwBootCheck.bootSceneStart(101, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n }\n HwBootCheck.bootSceneEnd(105);\n if (!this.mOnlyCore && !SystemProperties.getBoolean(\"config.disable_otadexopt\", false)) {\n traceBeginAndSlog(\"StartOtaDexOptService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"moveab\");\n OtaDexoptService.main(this.mSystemContext, this.mPackageManagerService);\n } catch (Throwable th) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n throw th;\n }\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n }\n traceBeginAndSlog(\"StartUserManagerService\");\n this.mSystemServiceManager.startService(UserManagerService.LifeCycle.class);\n traceEnd();\n traceBeginAndSlog(\"InitAttributerCache\");\n AttributeCache.init(this.mSystemContext);\n traceEnd();\n traceBeginAndSlog(\"SetSystemProcess\");\n this.mActivityManagerService.setSystemProcess();\n traceEnd();\n traceBeginAndSlog(\"InitWatchdog\");\n watchdog.init(this.mSystemContext, this.mActivityManagerService);\n traceEnd();\n this.mDisplayManagerService.setupSchedulerPolicies();\n traceBeginAndSlog(\"StartOverlayManagerService\");\n this.mSystemServiceManager.startService(new OverlayManagerService(this.mSystemContext, this.installer));\n traceEnd();\n traceBeginAndSlog(\"StartSensorPrivacyService\");\n this.mSystemServiceManager.startService(new SensorPrivacyService(this.mSystemContext));\n traceEnd();\n if (SystemProperties.getInt(\"persist.sys.displayinset.top\", 0) > 0) {\n this.mActivityManagerService.updateSystemUiContext();\n ((DisplayManagerInternal) LocalServices.getService(DisplayManagerInternal.class)).onOverlayChanged();\n }\n this.mSensorServiceStart = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$oG4I04QJrkzCGs6IcMTKU2211A.INSTANCE, START_SENSOR_SERVICE);\n } catch (Throwable th2) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n throw th2;\n }\n }",
"private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }",
"@Override\r\n\tpublic void setup(){\n\t\tmidiIO = CCMidiIO.getInstance();\r\n\t\tmidiIO.printDevices();\r\n\r\n\t\t// print a list with all available devices\r\n\t\tmidiIO.printDevices();\r\n\r\n\t\t// open an midiout using the first device and the first channel\r\n\t\tmidiOut = midiIO.midiOut(0, 1);\r\n\r\n\t\tbowl = new Bowl[10];\r\n\t\tfor (int i = 0; i < bowl.length; i++){\r\n\t\t\tbowl[i] = new Bowl(i);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Structure createNew() {\n\t\treturn new FloorSwitch();\n\t}",
"public static Vector init(){\n \n pwmDevice = new Vector(0);\n Debug.output(\"Pwm.init: creating new Pwm\", new Integer(pwmBus), ConstantManager.deviceDebug);\n pwmDevice.addElement(new Pwm(pwmBus));\n Debug.output(\"Pwm.init: creating new data storage vector\", null, ConstantManager.deviceDebug);\n pwmDevice.addElement(new Vector(0)); //This is for data storage\n //System.out.println(\"Pwm.init: creating new integer ID\");\n Debug.output(\"Pwm.init: creating new integer ID\", new Integer(pwmBus - 1), ConstantManager.deviceDebug);\n pwmDevice.addElement(new Integer(pwmBus -1)); //this is the ID number\n pwmBus++;\n Debug.output(\"Pwm.init: Final Vector\", pwmDevice, 0); //very low priority because it takes time to do\n return pwmDevice; //Might want to attach success boolean for outputting which jaguar was at fault in the overall grid.\n }",
"public DriveSubsystem() {\n leftFrontMotor = new TalonSRX(RobotMap.leftFrontMotor);\n rightFrontMotor = new TalonSRX(RobotMap.rightFrontMotor);\n leftBackMotor = new TalonSRX(RobotMap.leftBackMotor);\n rightBackMotor = new TalonSRX(RobotMap.rightBackMotor);\n // rightMotor.setInverted(true); \n direction = 0.75;\n SmartDashboard.putString(\"Direction\", \"Shooter side\");\n }",
"public PowerSource(String name) {\n super(name, null);\n Reporter.report(this, Reporter.Msg.CREATING);\n }",
"@Override\n\tpublic void run() {\n\t\tList<ProfileData> base=this.readBattery(this.batteryBasedFile);\n\t\tList<ProfileData> cpuFull=this.readBattery(this.batteryCPUFile);\n\t\t\n\t\tDefaultNetworkEnergyManager nem = MANAGER_FACTORY.createNetworkEnergyManager(networkEnergyManagerEnable, wifiSignalStrength);\n\t\tDefaultBatteryManager sb=MANAGER_FACTORY.createBatteryManager(2, startCharge, startUptime, batteryCapacityInJoules);\n\t\tfor(ProfileData b:base)\n\t\t\tsb.addProfileData(0, b);\n\t\tfor(ProfileData b:cpuFull)\n\t\t\tsb.addProfileData(1, b);\n\t\t\n\t\tDefaultExecutionManager se=MANAGER_FACTORY.createExecutionManager();\t\t\n\t\tse.setMips(this.flops);\n\t\tDevice d= MANAGER_FACTORY.createDevice(this.nodeId, sb, se, nem);\n\t\t\n\t\tsimLock.lock();\n\t\tNetworkModel.getModel().addNewNode(d);\n\t\tSimulation.addEntity(d);\n\t\tthis.dId=Simulation.getEntityId(this.nodeId);\n\t\tsimLock.unlock();\n\t\t\n\t\tsb.setDevice(d);\n\t\tse.setDevice(d);\n\t\tnem.setDevice(d);\n\t\tse.setBatteryManager(sb);\n\t\tnem.setBatteryManager(sb);\n\t\tsb.setSEASExecutionManager(se);\n\t\t\t\t\t\t\n\t\tthis.readCPUEvents();\n\t\t\n\t\tthis.eventLock.lock();\n\t\tEvent e=Event.createEvent(Event.NO_SOURCE, this.startTime, this.dId, Device.EVENT_TYPE_DEVICE_START, null);\n\t\tthis.eventLock.unlock();\n\t\tthis.simLock.lock();\n\t\tSimulation.addEvent(e);\n\t\tthis.simLock.unlock();\n\t}",
"public void define(){\n\n noOfCredits = Game.level.getCredits();\n unitsToWin = Game.level.getUnitsToWin();\n\n for (int i = 0; i <buttons.length ; i++) {\n buttons[i] = new ShopButton((Game.width/2) -\n ((noOfButtons*buttonsize)/2) -((smallSpace*\n (buttons.length-1)) /2) + ((buttonsize + smallSpace)*i),\n ((GameContainer.rowCount * GameContainer.squareSize )\n + largeSpace), buttonsize , buttonsize, i);\n }\n\n for (int i = 0; i < statsElements.length ; i++) {\n //define where the statselement should be placed.\n statsElements[i] = new ShopButton(((Game.width/2)\n - (GameContainer.columnCount*\n GameContainer.squareSize )/2 + (((GameContainer.columnCount\n *GameContainer.squareSize)/7)*3)*i ),\n (GameContainer.rowCount * GameContainer.squareSize\n ), buttonsize , buttonsize, i);\n }\n }",
"public static void main(String[] args) {\n \tComputer myPC = new Computer();\r\n\r\n \t// Add a hard disk \r\n \tComponent hdd1 = new HardDisk(1000, 3, \"Seagate\", 790.50);\r\n \tmyPC.addComponent(\"hard disk 1\", hdd1);\r\n\r\n \t// Add a second hard disk\r\n \tComponent hdd2 = new HardDisk(1500, 2, \"Seagate\", 640.69);\r\n \tmyPC.addComponent(\"hard disk 2\", hdd2);\r\n }",
"void generateNewBoard() {\n createAvailableDice();\n\n // Add them to board\n generateBoardLayout();\n }",
"public void create(int [][] arr) {\n //default background image\n gc.drawImage(bg0, 0, 0);\n gc.drawImage(bg0, 1024,0);\n\n // traverses 2D array to creat map\n for(int i = 0; i < arr.length; i++) {\n for(int j = 0; j < arr[0].length; j++) {\n if(arr[i][j] == 0) {\n //blank space, for reference\n } else if(arr[i][j] == 1) { // make IndestructibleObject\n IndestructibleObject object = new IndestructibleObject(img0, j*64, i*64);\n mapList.add(object);\n } else if(arr[i][j] == 2) { // make DestructibleObject\n DestructibleObject object = new DestructibleObject(img1, j*64, i*64);\n mapList.add(object);\n } else if(arr[i][j] == 3) { // make power up\n PowerUpObject object = new PowerUpObject(img2, j*64+1, i*64, 1);\n powerList.add(object);\n } else if(arr[i][j] == 4) { // make power up\n PowerUpObject object = new PowerUpObject(img3, j*64+1, i*64, 2);\n powerList.add(object);\n } else if(arr[i][j] == 5) { // make power up\n PowerUpObject object = new PowerUpObject(img4, j*64+1, i*64, 3);\n powerList.add(object);\n } else if(arr[i][j] == 6) { // make power up\n PowerUpObject object = new PowerUpObject(img5, j*64+1, i*64, 4);\n powerList.add(object);\n }\n }\n }\n }"
] |
[
"0.66570765",
"0.6647398",
"0.60286",
"0.5980184",
"0.5888061",
"0.5800359",
"0.5762194",
"0.56893885",
"0.5683429",
"0.5612099",
"0.56102633",
"0.5603371",
"0.5569284",
"0.551225",
"0.5507921",
"0.5506984",
"0.5503435",
"0.5482771",
"0.54630905",
"0.5449776",
"0.54374695",
"0.54240423",
"0.5401354",
"0.53917587",
"0.5379555",
"0.53748244",
"0.5369362",
"0.53664964",
"0.53640395",
"0.53448147",
"0.5339013",
"0.53261393",
"0.53223926",
"0.53179634",
"0.5317948",
"0.53152645",
"0.5310956",
"0.530294",
"0.5285381",
"0.5283972",
"0.5269043",
"0.52631867",
"0.5258689",
"0.52536196",
"0.5250917",
"0.5250238",
"0.52386767",
"0.523217",
"0.5230963",
"0.52301574",
"0.52215725",
"0.5201594",
"0.5192457",
"0.5187537",
"0.518489",
"0.5184536",
"0.5162755",
"0.51584923",
"0.5154217",
"0.5142345",
"0.5141971",
"0.51317984",
"0.5130825",
"0.5128471",
"0.51270103",
"0.51206434",
"0.51191205",
"0.51094675",
"0.5100692",
"0.50999653",
"0.5099776",
"0.5085765",
"0.5085056",
"0.50798213",
"0.50762635",
"0.5070214",
"0.5068884",
"0.50654066",
"0.50598973",
"0.5057847",
"0.50577235",
"0.50568044",
"0.505275",
"0.5049031",
"0.50488615",
"0.50487024",
"0.503799",
"0.50376374",
"0.5036252",
"0.50353163",
"0.5034128",
"0.50337625",
"0.50263804",
"0.5024627",
"0.5024564",
"0.5016365",
"0.5005768",
"0.5003706",
"0.50007623",
"0.49997348"
] |
0.7545964
|
0
|
This interface is used to gain access to descriptors of the Descriptor class which are associated with a JMX component, i.e. MBean, MBeanInfo, MBeanAttributeInfo, MBeanNotificationInfo, MBeanOperationInfo, MBeanParameterInfo. ModelMBeans make extensive use of this interface in ModelMBeanInfo classes.
|
public interface DescriptorAccess extends DescriptorRead
{
/**
* Sets Descriptor (full replace).
*
* @param inDescriptor replaces the Descriptor associated with the
* component implementing this interface. If the inDescriptor is invalid for the
* type of Info object it is being set for, an exception is thrown. If the
* inDescriptor is null, then the Descriptor will revert to its default value
* which should contain, at a minimum, the descriptor name and descriptorType.
*
* @see #getDescriptor
*/
public void setDescriptor(Descriptor inDescriptor);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }",
"public MBeanInfo getMBeanInfo() {\n buildDynamicMBeanInfo();\n return dMBeanInfo;\n }",
"public interface PaxosMBeanInfo {\n /**\n * @return a string identifying the MBean \n */\n public String getName();\n /**\n * If isHidden returns true, the MBean won't be registered with MBean server,\n * and thus won't be available for management tools. Used for grouping MBeans.\n * @return true if the MBean is hidden.\n */\n public boolean isHidden();\n}",
"public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }",
"public interface IComponentDescriptor {\r\n\r\n\t/**\r\n\t * Returns the component type.\r\n\t *\r\n\t * @return class of the described component\r\n\t */\r\n\tClass<?> getComponentType();\r\n\r\n//\t/**\r\n//\t * Returns all properties descriptions (meta-properties) of this component.\r\n//\t *\r\n//\t * @return list of meta properties\r\n//\t */\r\n//\tCollection<MetaProperty> getProperties();\r\n\r\n//\t/**\r\n//\t * Returns required properties descriptions (meta-properties) of this component. These properties are required to\r\n//\t * proper component initialization.\r\n//\t *\r\n//\t * @return list of required meta properties\r\n//\t */\r\n//\tCollection<MetaProperty> getRequriedProperties();\r\n\r\n//\t/**\r\n//\t * Returns optional properties descriptions (meta-properties) of this component. These properties are not required\r\n//\t * for proper component initialization.\r\n//\t *\r\n//\t * @return list of optional meta properties\r\n//\t */\r\n//\tCollection<MetaProperty> getOptionalProperties();\r\n\r\n\t/**\r\n\t * Returns list containing sequences of parameters types of available constructors.\r\n\t *\r\n\t * @return list of available constructor parameters\r\n\t */\r\n\tList<List<Class<?>>> getConstructorParametersTypes();\r\n\r\n\t/**\r\n\t * Checks if described component contains a property with a given name.\r\n\t *\r\n\t * @param name\r\n\t * name of a property\r\n\t * @return true if this described component contains a needed property\r\n\t */\r\n\tboolean containsProperty(String name);\r\n\r\n}",
"public ClassDescriptor getDescriptor() {\n return descriptor;\n }",
"@Override\n public MBeanInfo getMBeanInfo() {\n mBeanInfo = super.getMBeanInfo();\n return mBeanInfo;\n }",
"@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}",
"public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}",
"public interface IDescriptorViewer\r\n{\r\n\t/**\r\n\t * Get the description for this descriptor\r\n\t * @return\r\n\t */\r\n\tpublic String getDescription();\r\n\t\r\n\t@Override\r\n\tpublic String toString();\r\n}",
"public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }",
"public EntityDescriptor getDescriptor() {\n return descriptor;\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }",
"public ClassDescriptor getClassDescriptor() {\n\t\tClassDescriptor desc = getDescriptor();\n\t\tif (desc instanceof ClassDescriptor) {\n\t\t\treturn (ClassDescriptor)desc;\n\t\t} else {\n\t\t\tthrow ValidationException.cannotCastToClass(desc, desc.getClass(), ClassDescriptor.class);\n\t\t}\n }",
"public MBeanInfo getInfo() throws InstanceNotFoundException,\r\n\t\t\tIntrospectionException, ReflectionException, IOException {\r\n\t\treturn home.getInfo(objectName);\r\n\t}",
"MBeanInfo getCommandDescription(String commandType);",
"public interface ServerMonitorMXBean extends Statistic {\n\n String getHostName();\n\n int getPort();\n\n String getStartupAt();\n\n /**\n * The block IPs\n */\n Set<String> getBlackList();\n}",
"public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }",
"public BeanDescriptor getBeanDescriptor() {\n return getBdescriptor();\n }",
"public ModuleDescriptor getDescriptor() {\n return descriptor;\n }",
"public interface TestMBean {\n\n /**\n * Returns the value of a string attribute.\n * \n * @return String\n */\n public String getStringAttribute();\n\n /**\n * Returns the value of a double attribute.\n * \n * @return Double\n */\n public Double getDoubleAttribute();\n\n /**\n * Returns the value of a float attribute.\n * \n * @return Float\n */\n public Float getFloatAttribute();\n\n /**\n * Returns the value of a long integer attribute.\n * \n * @return Long\n */\n public Long getLongAttribute();\n\n /**\n * Returns the value of a integer attribute.\n * \n * @return Integer\n */\n public Integer getIntegerAttribute();\n\n /**\n * Returns the value of a short attribute.\n * \n * @return Short\n */\n public Short getShortAttribute();\n\n /**\n * Returns the value of a byte attribute.\n * \n * @return Byte\n */\n public Byte getByteAttribute();\n\n /**\n * Returns the value of a big integer attribute.\n * \n * @return BigInteger\n */\n public BigInteger getBigIntegerAttribute();\n\n /**\n * Returns the value of a big decimal attribute.\n * \n * @return BigDecimal\n */\n public BigDecimal getBigDecimalAttribute();\n\n /**\n * Returns the value of a boolean attribute.\n * \n * @return Boolean\n */\n public Boolean getBooleanAttribute();\n\n /**\n * Returns a structured data attribute.\n * \n * @return StructuredData\n */\n public StructuredData getStructuredDataAttribute();\n\n /**\n * Returns an attribute with a data type that is invalid for the check_jmx plugin.\n * \n * @return String[]\n */\n public String[] getInvalidAttribute();\n\n /**\n * Returns an attribute with an invalid numeric type.\n * \n * @return Fraction\n */\n public Fraction getInvalidNumberAttribute();\n\n /**\n * Returns a null attribute value.\n * \n * @return String\n */\n public String getNullAttribute();\n\n /**\n * Operation that can be called as part of the check_jmx plugin flow.\n */\n public void testOperation();\n\n}",
"public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }",
"public List<ModelDescriptor> getModelDescriptors() throws ModelManagerException {\n\t\treturn getModelDescriptors(new ConsoleProgressReporter());\n\t}",
"private static MethodDescriptor[] getMdescriptor() {\n MethodDescriptor[] methods = new MethodDescriptor[1];\n\n try {\n methods[METHOD_toString0] = new MethodDescriptor(org.geogurus.gas.objects.GeometryClassFieldBean.class.getMethod(\"toString\", new Class[]{})); // NOI18N\n methods[METHOD_toString0].setDisplayName(\"\");\n } catch (Exception e) {\n }//GEN-HEADEREND:Methods\n\n // Here you can add code for customizing the methods array.\n\n return methods;\n }",
"public ComponentModelDescriptorI\tgetModelDescriptor(String uri) ;",
"public interface DBPoolViewMBean {\n /**\n * Number of active connections\n *\n * @return <code>int</code> Number of active connections\n */\n public int getNumActive();\n\n /**\n * Number of idle connections\n *\n * @return <code>int</code> Number of idle connections\n */\n public int getNumIdle();\n\n /**\n * Data source name\n *\n * @return <code>String</code> data source name\n */\n public String getName();\n\n /**\n * Connection information as a string\n *\n * @return <code>String</code> representing connection information\n */\n public Map getConnectionUsage();\n\n /**\n * reset statistics\n */\n public void reset();\n}",
"@Override\n public BeanDescriptor getBeanDescriptor() {\n return getBdescriptor();\n }",
"public interface HelloMBean {\r\n\t/**\r\n\t * setting the value of message as userdefined string\r\n\t * @param message\r\n\t */\r\n\tpublic void setMessage(String message);\r\n\t/**\r\n\t * getting the value of message \r\n\t * @return message\r\n\t */\r\n\tpublic String getMessage();\r\n\t/**\r\n\t * To publish the hello statement to user\r\n\t * @param name\r\n\t * @return String\r\n\t */\r\n\tpublic String sayHello(String name);\r\n\t/**\r\n\t * just to say hi\r\n\t */\r\n\tpublic void sayHi();\r\n\r\n}",
"FdmType getFacetDescriptorManager();",
"public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }",
"public interface ServerSocketMXBean {\r\n\r\n /**\r\n * Returns all live server-socket IDs. Some server-socket included in the\r\n * returned array may have been terminated when this method returns.\r\n * \r\n * @return an array of <tt>long</tt>, each is a server-socket ID.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n long[] getAllServerSocketIds();\r\n\r\n /**\r\n * Returns the total number of server-sockets opened since the Java virtual\r\n * machine started.\r\n * \r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalServerSocketsCount();\r\n\r\n /**\r\n * Returns the peak open server-socket count since the Java virtual machine\r\n * started or the peak was reset.\r\n * \r\n * @return the peak live server-socket count.\r\n */\r\n int getPeakServerSocketCount();\r\n\r\n /**\r\n * Returns the current number of open server-sockets.\r\n * \r\n * @return the current number of open server-sockets.\r\n */\r\n int getServerSocketCount();\r\n\r\n /**\r\n * Returns the total number of sockets accepted by all server-sockets since\r\n * the Java virtual machine started.\r\n * \r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalAcceptCount();\r\n\r\n /**\r\n * Returns the total number of sockets accepted by a server-socket with the\r\n * specified <tt>id</tt>.\r\n * \r\n * @param id the ID of the server-socket. Must be positive.\r\n * @return the total number of server-sockets opened.\r\n */\r\n long getTotalAcceptCount(long id);\r\n\r\n /**\r\n * Returns the server-socket info for a server-socket of the specified\r\n * <tt>id</tt>.\r\n * <p>\r\n * This method returns a <tt>ServerSocketInfo</tt> object representing the\r\n * server-socket information for the server-socket of the specified ID. If a\r\n * server-socket of the given ID is not open or does not exist, this method\r\n * will return <tt>null</tt>.\r\n * <p>\r\n * <b>MBeanServer access </b>: <br>\r\n * The mapped type of <tt>ServerSocketInfo</tt> is <tt>CompositeData</tt>\r\n * with attributes as specified in\r\n * {@link ServerSocketInfo#from ServerSocketInfo}.\r\n * \r\n * @param id the ID of the server-socket. Must be positive.\r\n * @return a {@link ServerSocketInfo}object for the server-socket of the\r\n * given ID; <tt>null</tt> if the server-socket of the given ID is\r\n * not open or it does not exist.\r\n * @throws IllegalArgumentException if <tt>id <= 0</tt>.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n ServerSocketInfo getServerSocketInfo(long id);\r\n\r\n /**\r\n * Returns the server-socket info for each server-socket whose ID is in the\r\n * input array <tt>ids</tt>.\r\n * <p>\r\n * This method returns an array of the <tt>ServerSocketInfo</tt> objects.\r\n * If a server-socket of a given ID is not open or does not exist, the\r\n * corresponding element in the returned array will contain <tt>null</tt>.\r\n * <p>\r\n * <b>MBeanServer access </b>: <br>\r\n * The mapped type of <tt>ServerSocketInfo</tt> is <tt>CompositeData</tt>\r\n * with attributes as specified in\r\n * {@link ServerSocketInfo#from ServerSocketInfo}.\r\n * \r\n * @param ids an array of server-socket IDs\r\n * @return an array of the {@link ServerSocketInfo}objects, each containing\r\n * information about a server-socket whose ID is in the\r\n * corresponding element of the input array of IDs.\r\n * @throws IllegalArgumentException if any element in the input array\r\n * <tt>ids</tt> is <tt><= 0</tt>.\r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"monitor\").\r\n */\r\n ServerSocketInfo[] getServerSocketInfo(long[] ids);\r\n\r\n /**\r\n * Resets the peak server-socket count to the current number of open\r\n * server-sockets.\r\n * \r\n * @throws java.lang.SecurityException if a security manager exists and the\r\n * caller does not have ManagementPermission(\"control\").\r\n * @see #getPeakServerSocketCount\r\n * @see #getServerSocketCount\r\n */\r\n void resetPeakServerSocketCount();\r\n}",
"private static MethodDescriptor[] getMdescriptor(){\n MethodDescriptor[] methods = new MethodDescriptor[1];\n \n try {\n methods[METHOD_toString0] = new MethodDescriptor(org.yccheok.jstock.gui.MutableStock.class.getMethod(\"toString\", new Class[] {})); // NOI18N\n methods[METHOD_toString0].setDisplayName ( \"\" );\n }\n catch( Exception e) {}//GEN-HEADEREND:Methods\n // Here you can add code for customizing the methods array.\n\n return methods; }",
"String getDescriptor();",
"public ProfessorDepartamentoMBean() {\r\n }",
"public interface DeviceGatewayMonitorJMXMBean {\n\t/**\n\t * @return current tunnel connection count\n\t */\n\tint getTunnelConnectionCount();\n\n\t/**\n\t * @return heartbeat request times in last second\n\t */\n\tlong getHeartbeatCount();\n\n\t/**\n\t * @return list message request times in last second\n\t */\n\tlong getListRequestCount();\n\n\t/**\n\t * @return list message request successful times in last second\n\t */\n\tlong getListSuccessCount();\n\n\t/**\n\t * @return list message service unavailable times in last second\n\t */\n\tlong getListServiceUnavailableCount();\n\n\t/**\n\t * @return register request times in last second\n\t */\n\tlong getRegisterRequestCount();\n\n\t/**\n\t * @return register request successful times in last second\n\t */\n\tlong getRegisterSuccessCount();\n\n\t/**\n\t * @return register service unavailable times in last second\n\t */\n\tlong getRegisterServiceUnavailableCount();\n\n\t/**\n\t * @return auth request times in last second\n\t */\n\tlong getAuthRequestCount();\n\n\t/**\n\t * @return auth request successful times in last second\n\t */\n\tlong getAuthSuccessCount();\n\n\t/**\n\t * @return auth service unavailable times in last second\n\t */\n\tlong getAuthServiceUnavailableCount();\n\n\t/**\n\t * @return count request times in last second\n\t */\n\tlong getCountRequestCount();\n\n\t/**\n\t * @return count request successful times in last second\n\t */\n\tlong getCountSuccessCount();\n\n\t/**\n\t * @return Count service unavailable times in last second\n\t */\n\tlong getCountServiceUnavailableCount();\n\n\t/**\n\t * @return update request times in last second\n\t */\n\tlong getUpdateRequestCount();\n\n\t/**\n\t * @return update request successful times in last second\n\t */\n\tlong getUpdateSuccessCount();\n\n\t/**\n\t * @return update service unavailable times in last second\n\t */\n\tlong getUpdateServiceUnavailableCount();\n\n\t/**\n\t * @return bind request times in last second\n\t */\n\tlong getBindRequestCount();\n\n\t/**\n\t * @return bind request successful times in last second\n\t */\n\tlong getBindSuccessCount();\n\n\t/**\n\t * @return bind service unavailable times in last second\n\t */\n\tlong getBindServiceUnavailableCount();\n\n\t/**\n\t * @return unbind request times in last second\n\t */\n\tlong getUnbindRequestCount();\n\n\t/**\n\t * @return unbind request successful times in last second\n\t */\n\tlong getUnbindSuccessCount();\n\n\t/**\n\t * @return unbind service unavailable times in last second\n\t */\n\tlong getUnbindServiceUnavailableCount();\n\n\t/**\n\t * @return list message request times in last second\n\t */\n\tlong getAckListRequestCount();\n\n\t/**\n\t * @return list message request successful times in last second\n\t */\n\tlong getAckListSuccessCount();\n\n\t/**\n\t * @return list message service unavailable times in last second\n\t */\n\tlong getAckListServiceUnavailableCount();\n}",
"DataElementDescriptor getDescriptor(String name);",
"public interface CwmDimensionedObjectClass extends javax.jmi.reflect.RefClass {\n /**\n * The default factory operation used to create an instance object.\n * \n * @return The created instance object.\n */\n public CwmDimensionedObject createCwmDimensionedObject();\n\n /**\n * Creates an instance object having attributes initialized by the passed values.\n * \n * @param name\n * An identifier for the ModelElement within its containing Namespace.\n * @param visibility\n * Specifies extent of the visibility of the ModelElement within its owning Namespace.\n * @param ownerScope\n * Specifies whether the Feature appears in every instance of the Classifier or whether it appears only once\n * for the entire Classifier.\n * @param changeability\n * Specifies whether the value may be modified after the object is created.\n * @param multiplicity\n * The possible number of data values for the feature that may be held by an instance. The cardinality of the\n * set of values is an implicit part of the feature. In the common case in which the multiplicity is 1..1,\n * then the feature is a scalar (i.e., it holds exactly one value).\n * @param ordering\n * Specifies whether the set of instances is ordered. The ordering must be determined and maintained by\n * Operations that add values to the feature. This property is only relevant if the multiplicity is greater\n * than one.\n * @param targetScope\n * Specifies whether the targets are ordinary Instances or are Classifiers.\n * @param initialValue\n * An Expression specifying the value of the attribute upon initialization. It is meant to be evaluated at\n * the time the object is initialized. (Note that an explicit constructor may supersede an initial value.)\n * @return The created instance object.\n */\n public CwmDimensionedObject createCwmDimensionedObject( java.lang.String name,\n org.pentaho.pms.cwm.pentaho.meta.core.VisibilityKind visibility,\n org.pentaho.pms.cwm.pentaho.meta.core.ScopeKind ownerScope,\n org.pentaho.pms.cwm.pentaho.meta.core.ChangeableKind changeability,\n org.pentaho.pms.cwm.pentaho.meta.core.CwmMultiplicity multiplicity,\n org.pentaho.pms.cwm.pentaho.meta.core.OrderingKind ordering,\n org.pentaho.pms.cwm.pentaho.meta.core.ScopeKind targetScope,\n org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression initialValue );\n}",
"MessageBeanDescriptor createMessageBeanDescriptor();",
"public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }",
"protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new ServerIconDescriptor(\"servers\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"public MetadataDescriptor getMetadataDescriptor() {\n\t\treturn metadataDescriptor;\n\t}",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new NodeIconDescriptor(\"dataAdapters\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"protected Object[] get_ComponentInfo()\n {\n return new Object[]\n {\n \"ReporterMBean contains settings and statistics for the Coherence JMX Reporter.\",\n \"com.bea.owner=Context,com.bea.VisibleToPartitions=ALWAYS\",\n };\n }",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddOtherIdentifyingInfoPropertyDescriptor(object);\r\n\t\t\taddIdentifyingDescriptionsPropertyDescriptor(object);\r\n\t\t\taddDedicatedPropertyDescriptor(object);\r\n\t\t\taddOtherDedicatedDescriptionsPropertyDescriptor(object);\r\n\t\t\taddResetCapabilityPropertyDescriptor(object);\r\n\t\t\taddHostedRoutingServicesPropertyDescriptor(object);\r\n\t\t\taddHostedForwardingServicesPropertyDescriptor(object);\r\n\t\t\taddHostedRoutingPolicyPropertyDescriptor(object);\r\n\t\t\taddHostedFilterListPropertyDescriptor(object);\r\n\t\t\taddRunningOSPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }",
"public abstract CommandDescriptor<T> getDescriptor();",
"public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.manageable.modelAdapter.ReporterMBean();\n }",
"private static BeanDescriptor getBdescriptor(){\n BeanDescriptor beanDescriptor = new BeanDescriptor ( org.yccheok.jstock.gui.MutableStock.class , null ); // NOI18N//GEN-HEADEREND:BeanDescriptor\n // Here you can add code for customizing the BeanDescriptor.\n\n return beanDescriptor; }",
"java.util.List<? extends com.google.api.MetricDescriptorOrBuilder>\n getMetricDescriptorsOrBuilderList();",
"public interface OdlOpenFlowStats2MBean {\n\n /**\n * Getter for the \"OdlOpenflowFlowstats2\" variable.\n */\n public String getOdlOpenflowFlowstats2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowFlowstats2\" variable.\n */\n public void setOdlOpenflowFlowstats2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowFlowstats2\" variable.\n */\n public void checkOdlOpenflowFlowstats2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowStatus2\" variable.\n */\n public String getOdlOpenflowStatus2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowStatus2\" variable.\n */\n public void setOdlOpenflowStatus2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowStatus2\" variable.\n */\n public void checkOdlOpenflowStatus2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowManufacturer2\" variable.\n */\n public String getOdlOpenflowManufacturer2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowManufacturer2\" variable.\n */\n public void setOdlOpenflowManufacturer2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowManufacturer2\" variable.\n */\n public void checkOdlOpenflowManufacturer2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowMacAddress2\" variable.\n */\n public String getOdlOpenflowMacAddress2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowMacAddress2\" variable.\n */\n public void setOdlOpenflowMacAddress2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowMacAddress2\" variable.\n */\n public void checkOdlOpenflowMacAddress2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowInterface2\" variable.\n */\n public String getOdlOpenflowInterface2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowInterface2\" variable.\n */\n public void setOdlOpenflowInterface2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowInterface2\" variable.\n */\n public void checkOdlOpenflowInterface2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowNode2\" variable.\n */\n public String getOdlOpenflowNode2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowNode2\" variable.\n */\n public void setOdlOpenflowNode2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowNode2\" variable.\n */\n public void checkOdlOpenflowNode2(String x) throws SnmpStatusException;\n\n /**\n * Getter for the \"OdlOpenflowMeterstats2\" variable.\n */\n public String getOdlOpenflowMeterstats2() throws SnmpStatusException;\n\n /**\n * Setter for the \"OdlOpenflowMeterstats2\" variable.\n */\n public void setOdlOpenflowMeterstats2(String x) throws SnmpStatusException;\n\n /**\n * Checker for the \"OdlOpenflowMeterstats2\" variable.\n */\n public void checkOdlOpenflowMeterstats2(String x) throws SnmpStatusException;\n\n}",
"public Object getDescriptor()\n {\n return protocolProvider;\n }",
"public interface MainMBean\n{\n // Attributes ---------------------------------------------------\n \n void setRmiPort(int port);\n int getRmiPort();\n \n void setPort(int port);\n int getPort();\n\n void setBindAddress(String host) throws UnknownHostException; \n String getBindAddress();\n\n void setRmiBindAddress(String host) throws UnknownHostException; \n String getRmiBindAddress();\n\n void setBacklog(int backlog); \n int getBacklog();\n\n /** Whether the MainMBean's Naming server will be installed as the NamingContext.setLocal global value */\n void setInstallGlobalService(boolean flag);\n boolean getInstallGlobalService();\n\n /** Get the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal\n * global value.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public boolean getUseGlobalService();\n /** Set the UseGlobalService which defines whether the MainMBean's\n * Naming server will initialized from the existing NamingContext.setLocal global\n * value. This allows one to export multiple servers via different transports\n * and still share the same underlying naming service.\n * \n * @return true if this should try to use VM global naming service, false otherwise \n */ \n public void setUseGlobalService(boolean flag);\n\n /** The RMIClientSocketFactory implementation class */\n void setClientSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getClientSocketFactory();\n \n /** The RMIServerSocketFactory implementation class */\n void setServerSocketFactory(String factoryClassName)\n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n String getServerSocketFactory();\n\n /** The JNPServerSocketFactory implementation class */\n void setJNPServerSocketFactory(String factoryClassName) \n throws ClassNotFoundException, InstantiationException, IllegalAccessException;\n\n // Operations ----------------------------------------------------\n \n public void start() throws Exception;\n \n public void stop();\n \n}",
"public interface ItemDescriptor {\n\n /**\n * Get the ID of the item\n *\n * @return item id\n */\n public int getID();\n\n /**\n * Get the name of the item\n *\n * @return item name\n */\n public String getName();\n\n /**\n * Get the type descriptor\n *\n * @return item type\n */\n public ItemType getType();\n\n}",
"public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }",
"public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }",
"protected void addIdentifyingDescriptionsPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ComputerSystem_identifyingDescriptions_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ComputerSystem_identifyingDescriptions_feature\", \"_UI_ComputerSystem_type\"),\r\n\t\t\t\t CimPackage.eINSTANCE.getComputerSystem_IdentifyingDescriptions(),\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"private PropertyPagePropertyDescriptor getPropertyDescriptor() {\n \t\treturn propertyDescriptor;\n \t}",
"protected void addDedicatedPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ComputerSystem_dedicated_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ComputerSystem_dedicated_feature\", \"_UI_ComputerSystem_type\"),\r\n\t\t\t\t CimPackage.eINSTANCE.getComputerSystem_Dedicated(),\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public List getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddConcurrentResourcesPropertyDescriptor(object);\r\n\t\t\taddMemorySpacesPropertyDescriptor(object);\r\n\t\t\taddForkPropertyDescriptor(object);\r\n\t\t\taddExitPropertyDescriptor(object);\r\n\t\t\taddBase_NamespacePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDescriptionPropertyDescriptor(object);\n\t\t\taddDeprecatedPropertyDescriptor(object);\n\t\t\taddExtendsPropertyDescriptor(object);\n\t\t\taddTypePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"public PropertyDescriptor[] getPropertyDescriptors() {\n\tPropertyDescriptor[] pd = new PropertyDescriptor[3];\n\ttry {\n\t\tpd [0] = new PropertyDescriptor(\"name\", RateTypeAccessBean.class);\n\t\tpd [1] = new PropertyDescriptor(\"ratetype\", RateTypeAccessBean.class);\n\t\tpd [2] = new PropertyDescriptor(\"basecurrency\", RateTypeAccessBean.class, \"getBasecurrency\", null);\n\t\treturn pd;\n\t} catch (IntrospectionException ex) {\n\t\tex.printStackTrace(System.out);\n\t}\n\treturn null;\n}",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new NodeIconDescriptor(\"parameter-report\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"String getDescriptorClassDeclaration() {\n final StringBuilder sb = new StringBuilder();\n if (useGenericMessageTypeClass()) {\n sb.append(\"LocalizableMessageDescriptor\");\n sb.append(\".\");\n sb.append(DESCRIPTOR_CLASS_BASE_NAME);\n sb.append(\"N\");\n } else {\n sb.append(\"LocalizableMessageDescriptor\");\n sb.append(\".\");\n sb.append(DESCRIPTOR_CLASS_BASE_NAME);\n sb.append(classTypes.size());\n sb.append(getClassTypeVariables());\n }\n return sb.toString();\n }",
"public interface DistributedReplicantManagerImplMBean\n extends org.jboss.ha.framework.interfaces.DistributedReplicantManager\n{\n String listContent () throws Exception;\n String listXmlContent () throws Exception;\n}",
"public BeanDescriptorManager(InternalConfiguration config) {\n this.config = config.getConfig();\n this.serverName = InternString.intern(this.config.getName());\n this.cacheManager = config.getCacheManager();\n this.docStoreFactory = config.getDocStoreFactory();\n this.backgroundExecutor = config.getBackgroundExecutor();\n this.dataSource = this.config.getDataSource();\n this.encryptKeyManager = this.config.getEncryptKeyManager();\n this.databasePlatform = this.config.getDatabasePlatform();\n this.multiValueBind = config.getMultiValueBind();\n this.idBinderFactory = new IdBinderFactory(databasePlatform.idInExpandedForm(), multiValueBind);\n this.queryPlanTTLSeconds = this.config.getQueryPlanTTLSeconds();\n this.asOfViewSuffix = asOfViewSuffix(databasePlatform, this.config);\n String versionsBetweenSuffix = versionsBetweenSuffix(databasePlatform, this.config);\n this.readAnnotations = new ReadAnnotations(config.getGeneratedPropertyFactory(), asOfViewSuffix, versionsBetweenSuffix, this.config);\n this.bootupClasses = config.getBootupClasses();\n this.createProperties = config.getDeployCreateProperties();\n this.namingConvention = this.config.getNamingConvention();\n this.dbIdentity = config.getDatabasePlatform().dbIdentity();\n this.deplyInherit = config.getDeployInherit();\n this.deployUtil = config.getDeployUtil();\n this.typeManager = deployUtil.typeManager();\n this.beanManagerFactory = new BeanManagerFactory(config.getDatabasePlatform());\n this.beanLifecycleAdapterFactory = new BeanLifecycleAdapterFactory(this.config);\n this.persistControllerManager = new PersistControllerManager(bootupClasses);\n this.postLoadManager = new PostLoadManager(bootupClasses);\n this.postConstructManager = new PostConstructManager(bootupClasses);\n this.persistListenerManager = new PersistListenerManager(bootupClasses);\n this.beanQueryAdapterManager = new BeanQueryAdapterManager(bootupClasses);\n this.beanFinderManager = new BeanFinderManager(bootupClasses);\n this.transientProperties = new TransientProperties();\n this.changeLogPrepare = config.changeLogPrepare(bootupClasses.getChangeLogPrepare());\n this.changeLogListener = config.changeLogListener(bootupClasses.getChangeLogListener());\n this.changeLogRegister = config.changeLogRegister(bootupClasses.getChangeLogRegister());\n this.jacksonCorePresent = config.isJacksonCorePresent();\n }",
"public final MethodDescriptor\r\n getDescriptor() throws CompileException {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }",
"public java.beans.PropertyDescriptor[] getPropertyDescriptors()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfinal java.beans.PropertyDescriptor[] res =\n\t\t\t\t{ prop(\"TargetType\", \"the type of vessel this model is evading\"),\n\t\t\t\t\t\tprop(\"Name\", \"the name of this detonation model\"),\n\t\t\t\t\t\tprop(\"DetectionLevel\", \"the name of this detonation model\"), };\n\t\t\t\tres[2]\n\t\t\t\t\t\t.setPropertyEditorClass(DetectionEvent.DetectionStatePropertyEditor.class);\n\t\t\t\treturn res;\n\t\t\t}\n\t\t\tcatch (java.beans.IntrospectionException e)\n\t\t\t{\n\t\t\t\treturn super.getPropertyDescriptors();\n\t\t\t}\n\t\t}",
"public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }",
"protected void addOtherDedicatedDescriptionsPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ComputerSystem_otherDedicatedDescriptions_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ComputerSystem_otherDedicatedDescriptions_feature\", \"_UI_ComputerSystem_type\"),\r\n\t\t\t\t CimPackage.eINSTANCE.getComputerSystem_OtherDedicatedDescriptions(),\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public List<ModelDescriptor> getModelDescriptors(IProgressReporter pr) throws ModelManagerException {\n\t\tArrayList<ModelDescriptor> res = new ArrayList<ModelDescriptor>();\n\t\tString[] list = null;\n\t\ttry {\n\t\t\tlist = getFolderList();\n\t\t} catch (IOException e) {\n\t\t\tthrow new ModelManagerException(\"Listing model folders failed.\", e);\n\t\t}\n\t\t// Set loading message\n\t\tpr.init(getLoadingMessage(), list.length);\n\t\tint cnt = 0;\n\t\tfor (String modeldir : list) {\n\t\t\tpr.progress(++cnt);\n\t\t\tif (isValidModelDir(modeldir)) {\n\t\t\t\tuseModel(modeldir);\n\t\t\t\t// Check for the correct model type\n\t\t\t\tModelType mtype = ModelType.parse(getModelXMLAttribute(\"type\"));\n\t\t\t\tif (mtype == ModelType.Unknown)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tInputStream img = null;\n\t\t\t\tString imgfile = getModelXMLTagValue(\"description.image\");\n\t\t\t\tif (modelFileExists(imgfile)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\timg = getInStream(imgfile);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\timg = getClass().getClassLoader().getResourceAsStream(\"notfound.png\");\n\t\t\t\t// Get model date\n\t\t\t\tDate d = null;\n\t\t\t\ttry {\n\t\t\t\t\td = DateFormat.getDateInstance().parse(getModelXMLTagValue(\"description.created\"));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\td = Calendar.getInstance().getTime();\n\t\t\t\t}\n\t\t\t\tModelDescriptor md = new ModelDescriptor(modeldir, getModelXMLTagValue(\"description.name\"), mtype, img,\n\t\t\t\t\t\td);\n\t\t\t\tmd.shortDescription = getModelXMLTagValue(\"description.short\", \"\");\n\t\t\t\tres.add(md);\n\t\t\t}\n\t\t}\n\t\tpr.finish();\n\t\treturn res;\n\t}",
"@Override\n\tpublic EntityDescriptor getEntityDescriptor() {\n\t\ttry {\n\t\t\treturn DAOSystem.getEntityDescriptor(getEntityClass().getName());\n\t\t} catch (ConfigurationException e) {\n\t\t\tthrow new DataAccessException(\"Can not load EntityDescriptor\", e);\n\t\t}\n\t}",
"public interface CmdUtilMBean extends ConfBaseMBean,\n CmdUtilProperties {\n /* ========================================================================\n * Operations\n * ======================================================================== */\n\n /** Execute commands from a file.\n *\n * @param path to file.\n * @return Completion messages and stats\n */\n @MBeanInfo(\"Execute commands from a file\")\n String execfile(@MBeanInfo(\"Path to file\") String path);\n\n /** Execute a single command.\n *\n * @param cmd to execute.\n * @return Completion messages and stats\n */\n @MBeanInfo(\"Execute a command\")\n String exec(@MBeanInfo(\"Command\") String cmd);\n}",
"public XMLClassDescriptorResolverImpl() {\n super();\n _descriptorCache = new DescriptorCacheImpl();\n }",
"@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors ( Object object )\n {\n if ( itemPropertyDescriptors == null )\n {\n super.getPropertyDescriptors ( object );\n\n addIdPropertyDescriptor ( object );\n addConnectionDaPropertyDescriptor ( object );\n addConnectionAePropertyDescriptor ( object );\n addSiteOutputDirPropertyDescriptor ( object );\n addHierarchyPropertyDescriptor ( object );\n addAknPatternPropertyDescriptor ( object );\n }\n return itemPropertyDescriptors;\n }",
"@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }",
"public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }",
"private static void getDescriptor(final StringBuffer buf, final Class<?> c) {\n Class<?> d = c;\n while (true) {\n if (d.isPrimitive()) {\n char car;\n if (d == Integer.TYPE) {\n car = 'I';\n } else if (d == Void.TYPE) {\n car = 'V';\n } else if (d == Boolean.TYPE) {\n car = 'Z';\n } else if (d == Byte.TYPE) {\n car = 'B';\n } else if (d == Character.TYPE) {\n car = 'C';\n } else if (d == Short.TYPE) {\n car = 'S';\n } else if (d == Double.TYPE) {\n car = 'D';\n } else if (d == Float.TYPE) {\n car = 'F';\n } else /* if (d == Long.TYPE) */{\n car = 'J';\n }\n buf.append(car);\n return;\n } else if (d.isArray()) {\n buf.append('[');\n d = d.getComponentType();\n } else {\n buf.append('L');\n String name = d.getName();\n int len = name.length();\n for (int i = 0; i < len; ++i) {\n char car = name.charAt(i);\n buf.append(car == '.' ? '/' : car);\n }\n buf.append(';');\n return;\n }\n }\n }",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddBaseServerNamePropertyDescriptor(object);\n\t\t\taddProfilePathPropertyDescriptor(object);\n\t\t\taddProfileNamePropertyDescriptor(object);\n\t\t\taddBootstrapPortPropertyDescriptor(object);\n\t\t\taddIcpPortPropertyDescriptor(object);\n\t\t\taddSoapPortPropertyDescriptor(object);\n\t\t\taddRemoteOsUserPropertyDescriptor(object);\n\t\t\taddRemoteOsPasswordPropertyDescriptor(object);\n\t\t\taddServerVersionPropertyDescriptor(object);\n\t\t\taddSecurityUserIdPropertyDescriptor(object);\n\t\t\taddSecurityUserPasswordPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"public ConsultarVacinacaoMBean() {\r\n }",
"@Override\n public MBeanServer getMBeanServer() {\n return mBeanServer;\n }",
"public void setDescriptor(Descriptor inDescriptor);",
"@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }",
"public QueryDescriptor getQueryDescriptor()\n {\n return _currentDescriptor;\n }",
"public abstract Class getDescriptedClass();",
"public interface FarmMemberServiceMBean \n{\n /** The default object name. */\n ObjectName OBJECT_NAME = ObjectNameFactory.create(\"jboss:service=FarmMember\");\n\n /** \n * Gets the name of the partition used by this service. This is a \n * convenience method as the partition name is an attribute of HAPartition.\n * \n * @return the name of the partition\n */\n String getPartitionName();\n \n /**\n * Get the underlying partition used by this service.\n * \n * @return the partition\n */\n HAPartition getHAPartition();\n \n /**\n * Sets the underlying partition used by this service.\n * Can be set only when the MBean is not in a STARTED or STARTING state.\n * \n * @param clusterPartition the partition\n */\n void setHAPartition(HAPartition clusterPartition);\n}",
"@Override\n public Descriptor<ComputerLauncher> getDescriptor() {\n throw new UnsupportedOperationException();\n }",
"@Override \n\t public String getDescription() {\n\t \t return \"(*.MXD)\"; \n\t }",
"public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}",
"@Override\n\tpublic List<MavenDeployableDescriptor> getDeployableDescriptors() {\n\t\treturn descriptors;\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddCellIDPropertyDescriptor(object);\n\t\t\taddVisitIDPropertyDescriptor(object);\n\t\t\taddNamePropertyDescriptor(object);\n\t\t\taddEmailPropertyDescriptor(object);\n\t\t\taddStartDatePropertyDescriptor(object);\n\t\t\taddEndDatePropertyDescriptor(object);\n\t\t\taddEnableAutoEmailPropertyDescriptor(object);\n\t\t\taddCalibrantPropertyDescriptor(object);\n\t\t\taddCalibrant_xPropertyDescriptor(object);\n\t\t\taddCalibrant_yPropertyDescriptor(object);\n\t\t\taddCalibrant_exposurePropertyDescriptor(object);\n\t\t\taddEnvSamplingIntervalsPropertyDescriptor(object);\n\t\t\taddEnvScannableNamesPropertyDescriptor(object);\n\t\t\taddNumberOfSamplesPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"com.google.api.MetricDescriptorOrBuilder getMetricDescriptorsOrBuilder(int index);",
"public DescriptorImpl() {\n\t\t\tsuper(SemanticVersionBuildWrapper.class);\n\t\t\tlogger.debug(\"### DescriptorImpl\");\n\t\t\tload();\n\t\t}",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddKindPropertyDescriptor(object);\r\n\t\t\taddValuePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"public IJxtaModuleDescriptor getDescriptor(ModuleImplAdvertisement adv);",
"protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_description_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDisplayLabelPropertyDescriptor(object);\n\t\t\taddDisplayedOnPropertyDescriptor(object);\n\t\t\taddRequiresRolePropertyDescriptor(object);\n\t\t\taddTitlePropertyDescriptor(object);\n\t\t\taddCollectionDisplayOptionPropertyDescriptor(object);\n\t\t\taddMaximumDisplaySizePropertyDescriptor(object);\n\t\t\taddTruncatePropertyDescriptor(object);\n\t\t\taddDateFormatPropertyDescriptor(object);\n\t\t\taddDisableInputPropertyDescriptor(object);\n\t\t\taddRequiredPropertyDescriptor(object);\n\t\t\taddMustMatchPropertyDescriptor(object);\n\t\t\taddInterfaceTypePropertyDescriptor(object);\n\t\t\taddPlaceholderPropertyDescriptor(object);\n\t\t\taddValidationPatternPropertyDescriptor(object);\n\t\t\taddInputClassPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}"
] |
[
"0.6440372",
"0.64095664",
"0.62361085",
"0.61762846",
"0.6174984",
"0.6142447",
"0.6057478",
"0.60564375",
"0.59977454",
"0.5991215",
"0.59877884",
"0.5986581",
"0.5986581",
"0.596951",
"0.59661657",
"0.59661657",
"0.5957587",
"0.5944344",
"0.5881747",
"0.58244866",
"0.5817813",
"0.5788617",
"0.5784279",
"0.57829577",
"0.57717896",
"0.5704406",
"0.5648334",
"0.56407946",
"0.56343347",
"0.5631223",
"0.56072813",
"0.5574951",
"0.5558818",
"0.55462694",
"0.5542493",
"0.5523821",
"0.5514973",
"0.5509425",
"0.5503208",
"0.5496322",
"0.54872346",
"0.54632324",
"0.5462334",
"0.54614896",
"0.5460079",
"0.5432477",
"0.54283",
"0.54192",
"0.53928465",
"0.5392713",
"0.53520745",
"0.5340768",
"0.52984184",
"0.52977824",
"0.5280581",
"0.52758265",
"0.52573335",
"0.52519155",
"0.5251281",
"0.5234985",
"0.5213456",
"0.5212614",
"0.5212349",
"0.5209064",
"0.52069026",
"0.5187981",
"0.51863074",
"0.5176121",
"0.51720494",
"0.5156903",
"0.51537585",
"0.51426023",
"0.5135573",
"0.5134788",
"0.5134169",
"0.51288897",
"0.51197827",
"0.5103013",
"0.5099634",
"0.5063759",
"0.50624037",
"0.5060409",
"0.5058914",
"0.5054538",
"0.5047115",
"0.50384974",
"0.5037453",
"0.50357866",
"0.5034585",
"0.5022518",
"0.50223196",
"0.5019577",
"0.5016216",
"0.501576",
"0.5012087",
"0.50091296",
"0.5005905",
"0.5004751",
"0.5003381",
"0.49937046"
] |
0.5801921
|
21
|
Sets Descriptor (full replace).
|
public void setDescriptor(Descriptor inDescriptor);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setDescriptor(UtfConstant descriptor)\n {\n m_descriptor = descriptor;\n }",
"public void setDescriptor(ClassDescriptor descriptor) {\n this.descriptor = descriptor;\n }",
"public interface DescriptorAccess extends DescriptorRead\n{\n /**\n * Sets Descriptor (full replace).\n *\n * @param inDescriptor replaces the Descriptor associated with the\n * component implementing this interface. If the inDescriptor is invalid for the\n * type of Info object it is being set for, an exception is thrown. If the\n * inDescriptor is null, then the Descriptor will revert to its default value\n * which should contain, at a minimum, the descriptor name and descriptorType.\n *\n * @see #getDescriptor\n */\n public void setDescriptor(Descriptor inDescriptor);\n}",
"public final void setDescriptor(RouteProviderDescriptor descriptor) {\n if (descriptor == null) {\n throw new IllegalArgumentException(\"descriptor must not be null\");\n }\n MediaRouter.checkCallingThread();\n \n if (mDescriptor != descriptor) {\n mDescriptor = descriptor;\n if (!mPendingDescriptorChange) {\n mPendingDescriptorChange = true;\n mHandler.sendEmptyMessage(MSG_DELIVER_DESCRIPTOR_CHANGED);\n }\n }\n }",
"public void setDescriptorBase(Ed descriptorBase) {\n\n this.descriptorBase = descriptorBase;\n //Se descriptorBase existe, atribui este como seu parente\n// if(this.descriptorBase != null)\n// this.descriptorBase.setParent(this);\n }",
"private TargetsDescriptor setTargetsDescriptor(TargetsDescriptor td) {\n\t\tTargetsDescriptor previous = getTargetsDescriptor();\r\n\t\t_targetsDescriptor = td;\r\n\t\treturn previous;\r\n\t}",
"@SuppressWarnings(\"MissingPermission\")\n static public void writeDescriptor (BluetoothGatt gatt, BluetoothGattDescriptor descriptor, byte[] value) {\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {\n gatt.writeDescriptor(descriptor, value);\n } else {\n descriptor.setValue(value);\n gatt.writeDescriptor(descriptor);\n }\n }",
"public void setDescriptorOnly( boolean descriptorOnly );",
"@Override\n public void changeDescriptorType(CatalogItem item, int index, int descriptorType) {\n\n }",
"public void xsetDesc(org.apache.xmlbeans.XmlString desc)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESC$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESC$10);\r\n }\r\n target.set(desc);\r\n }\r\n }",
"public Descriptor() {\n super(ID);\n }",
"public DescriptorImpl() {\n super();\n load();\n }",
"public void setDescriptor(String soundFileDescriptor)\r\n {\r\n this.soundFileDescriptor = soundFileDescriptor;\r\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }",
"protected void setGraphDesc(GraphDesc gd) {\n this.gd = gd;\n this.acl = gd.getACL();\n }",
"protected void setGraphDesc(GraphDesc gd) {\n this.gd = gd;\n this.acl = gd.getACL();\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }",
"public void cleanDescriptorCache() {\n _descriptorCache = new DescriptorCacheImpl();\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void setDescriptors() {\n\t\tdescriptors.clear();\n\n\t\tRangePropertyDescriptor numRabbits = new RangePropertyDescriptor(\"NumRabbits\", 0, MAX_NUM_RABBITS,\n\t\t\t\tMAX_NUM_RABBITS / 5);\n\t\tdescriptors.put(\"NumRabbits\", numRabbits);\n\n\t\tRangePropertyDescriptor xSize = new RangePropertyDescriptor(\"XSize\", 1, MAX_X_SIZE, MAX_X_SIZE / 5);\n\t\tdescriptors.put(\"XSize\", xSize);\n\n\t\tRangePropertyDescriptor ySize = new RangePropertyDescriptor(\"YSize\", 1, MAX_Y_SIZE, MAX_Y_SIZE / 5);\n\t\tdescriptors.put(\"YSize\", ySize);\n\n\t\tRangePropertyDescriptor growthRateGrass = new RangePropertyDescriptor(\"GrowthRateGrass\", 0,\n\t\t\t\tMAX_GROWTH_RATE_GRASS, MAX_GROWTH_RATE_GRASS / 5);\n\t\tdescriptors.put(\"GrowthRateGrass\", growthRateGrass);\n\n\t\tRangePropertyDescriptor birthThreshold = new RangePropertyDescriptor(\"BirthThreshold\", 0, MAX_BIRTH_THRESHOLD,\n\t\t\t\tMAX_BIRTH_THRESHOLD / 5);\n\t\tdescriptors.put(\"BirthThreshold\", birthThreshold);\n\n\t\tRangePropertyDescriptor initGrass = new RangePropertyDescriptor(\"InitGrass\", 0, MAX_INIT_GRASS,\n\t\t\t\tMAX_INIT_GRASS / 4);\n\t\tdescriptors.put(\"InitGrass\", initGrass);\n\n\t\tRangePropertyDescriptor lossRateEnergy = new RangePropertyDescriptor(\"LossRateEnergy\", 0, MAX_LOSS_RATE_ENERGY,\n\t\t\t\tMAX_LOSS_RATE_ENERGY / 5);\n\t\tdescriptors.put(\"LossRateEnergy\", lossRateEnergy);\n\n\t\tRangePropertyDescriptor lossReproductionEnergy = new RangePropertyDescriptor(\"LossReproductionEnergy\", 0,\n\t\t\t\tMAX_LOSS_REPRODUCTION_ENERGY, MAX_LOSS_REPRODUCTION_ENERGY / 5);\n\t\tdescriptors.put(\"LossReproductionEnergy\", lossReproductionEnergy);\n\t}",
"@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}",
"public DescriptorImpl() {\n\n load();\n }",
"public DescriptorImpl() {\n load();\n }",
"public DescriptorImpl() {\n load();\n }",
"public DescriptorImpl() {\n load();\n }",
"public void setMetaData(MetaData newMetaData);",
"public void setEntity(String parName, Object parVal) throws HibException;",
"public void setDescripcion(java.lang.String newDescripcion) {\n\t\tif (instanceExtension.needValuesOnMarkDirty())\n\t\t\tinstanceExtension.markDirty(3,getDescripcion(),newDescripcion);\n\t\telse\n\t\t\tinstanceExtension.markDirty(3);\n\t\tdataCacheEntry.setDescripcion(newDescripcion);\n\t}",
"protected void setElement (XmlNode thisNode, Object obj, XmlDescriptor desc, UnmarshalContext context) throws Exception {\n String elName = thisNode.getName (); //getTagName();\n\n JField jf = (JField)desc.elementList.get(elName);\n if (jf == null)\n throw new FieldNotFoundException (\"ephman.abra.tools.nofield\", \n\t\t\t\t\t\t\t\t\t\t\t new Object[]{elName, desc.className});\n\n\t\tif (jf.isArray ()) return ; // will do seperately..\n Class thisClass = obj.getClass();\n\n Object value = null;\n Method m = null;\n if (jf.isCollection()) {\n m = getASetMethod (thisClass, \"addTo\" + jf.getGetSet(), jf.getObjectType());\n } else {\n m = getASetMethod (thisClass, \"set\" + jf.getGetSet(), jf.getObjectType());\n }\n\n if (jf instanceof JCompositeField) {\n XmlDescriptor fieldDesc = (XmlDescriptor)this.classList.get (jf.getObjectType());\n value = unmarshal (thisNode, context, fieldDesc);\n }\n else {\n\t\t\tvalue = getPrimitive (thisNode, jf, context);\n \n }\n\n m.invoke(obj, new Object[]{value});\n\t\t//\t\tif (jf.getObjectType ().equals (\"char\"))\n\t\t//System.out.println (\"was ok\");\n }",
"private void setEndpoint(Node node, DescriptorEndpointInfo ep) {\n NamedNodeMap map = node.getAttributes();\n\n String epname = map.getNamedItem(\"endpoint-name\").getNodeValue();\n String sername = map.getNamedItem(\"service-name\").getNodeValue();\n String intername = map.getNamedItem(\"interface-name\").getNodeValue();\n ep.setServiceName(new QName(getNamespace(sername), getLocalName(sername)));\n ep.setInterfaceName(new QName(getNamespace(intername), getLocalName(intername)));\n ep.setEndpointName(epname);\n }",
"void set(ByteModule byteModule);",
"public void setElement(String newElem) { element = newElem;}",
"public void setDesc(java.lang.String desc)\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(DESC$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESC$10);\r\n }\r\n target.setStringValue(desc);\r\n }\r\n }",
"@Override\n public void updateClassDescriptor(ClassDescriptor desc) {\n desc.getters = List.of();\n desc.setters = List.of();\n\n for (Iterator<Binding> iterator = desc.fields.iterator(); iterator.hasNext(); ) {\n Binding binding = iterator.next();\n \n if (!Modifier.isPublic(binding.field.getModifiers())) {\n iterator.remove();\n } else {\n Property property = getProperty(binding.annotations);\n if (property != null) {\n binding.fromNames = new String[]{property.name()};\n binding.toNames = new String[]{property.name()};\n } else {\n iterator.remove();\n }\n }\n }\n }",
"public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }",
"@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}",
"protected final void addDescriptor(final ClassDescriptor descriptor)\r\n throws MappingException {\r\n String classname = descriptor.getJavaClass().getName();\r\n if (_descriptorsByClassname.containsKey(classname)) {\r\n if (!isAllowRedefinition()) {\r\n throw new MappingException(\"mapping.duplicateDescriptors\", classname);\r\n }\r\n for (Iterator iterator = _descriptors.iterator(); iterator.hasNext(); ) {\r\n ClassDescriptor d = (ClassDescriptor) iterator.next();\r\n if (classname.equals(d.getJavaClass().getName())) {\r\n _descriptors.remove(d);\r\n }\r\n }\r\n _descriptors.add(descriptor);\r\n } else {\r\n _descriptors.add(descriptor);\r\n }\r\n \r\n //-- if we make it here...add class\r\n _descriptorsByClassname.put(classname, descriptor);\r\n }",
"public void set(E obj) {\r\n throw new UnsupportedOperationException();\r\n }",
"public void setEtiqueta(String etiqueta)\n/* 32: */ {\n/* 33:48 */ this.etiqueta = etiqueta;\n/* 34: */ }",
"protected abstract void updateTableDescriptor(HTableDescriptor desc)\n throws IOException;",
"abstract void set(ByteModule byteModule);",
"public void setAttributes(IEntityObject obj) {\r\n\tDispenser dObj = (Dispenser) obj;\r\n\tdObj.pk = this.pk;\r\n\tdObj.versionInfoID = this.versionInfoID;\r\n\tdObj.interfaceID = this.interfaceID;\t\r\n\tdObj.setBlender(this.blender);\r\n }",
"public synchronized void setDataset(final String newValue) {\n checkWritePermission();\n dataset = newValue;\n }",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/IR/Module.cpp\", line = 376,\n FQN=\"llvm::Module::setDataLayout\", NM=\"_ZN4llvm6Module13setDataLayoutENS_9StringRefE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/Module.cpp -nm=_ZN4llvm6Module13setDataLayoutENS_9StringRefE\")\n //</editor-fold>\n public void setDataLayout(StringRef Desc) {\n DL.reset(new StringRef(Desc));\n }",
"String getDescriptor();",
"@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:08.678 -0500\", hash_original_method = \"9D6AA19EA5B9D87B22803CD155673A0E\", hash_generated_method = \"9D6AA19EA5B9D87B22803CD155673A0E\")\n \nImageDescriptor() {\n width = 0;\n height = 0;\n codingScheme = 0;\n imageId = 0;\n highOffset = 0;\n lowOffset = 0;\n length = 0;\n }",
"public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }",
"public void set(String name, Object value) {\n }",
"public void setDescr(String descr) {\r\n this.descr = descr;\r\n }",
"public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }",
"private void setBeanReflect(DeployBeanDescriptor<?> desc) {\n // Set the BeanReflectGetter and BeanReflectSetter that typically\n // use generated code. NB: Due to Bug 166 so now doing this for\n // abstract classes as well.\n BeanPropertiesReader reflectProps = new BeanPropertiesReader(desc.getBeanType());\n desc.setProperties(reflectProps.getProperties());\n for (DeployBeanProperty prop : desc.propertiesAll()) {\n String propName = prop.getName();\n Integer pos = reflectProps.getPropertyIndex(propName);\n if (pos == null) {\n if (isPersistentField(prop)) {\n throw new IllegalStateException(\n \"If you are running in an IDE with enhancement plugin try a Build -> Rebuild Project to recompile and enhance all entity beans. \" +\n \"Error - property \" + propName + \" not found in \" + reflectProps + \" for type \" + desc.getBeanType());\n }\n } else {\n final int propertyIndex = pos;\n prop.setPropertyIndex(propertyIndex);\n prop.setGetter(beanPropertyAccess.getGetter(propertyIndex));\n prop.setSetter(beanPropertyAccess.getSetter(propertyIndex));\n if (prop.isAggregation()) {\n prop.setAggregationPrefix(DetermineAggPath.manyPath(prop.getRawAggregation(), desc));\n }\n }\n }\n }",
"@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}",
"@Test\n public void testSetDescription() {\n System.out.println(\"setDescription\");\n \n String description = \"Description\";\n \n instance.setDescription(description);\n \n assertEquals(\"Description unchanged\", description, instance.getDescription());\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }",
"public void setElement(final DefaultParameterDescriptorGroup parameter) {\n metadata = parameter;\n }",
"void setDatty(Datty newDatty);",
"public DescriptorImpl() {\n\t\t\tsuper(SemanticVersionBuildWrapper.class);\n\t\t\tlogger.debug(\"### DescriptorImpl\");\n\t\t\tload();\n\t\t}",
"public void setDescription(String newdescription) {\n description=newdescription;\n }",
"public ChannelDescriptor(Channel channel, FileDescriptor fileDescriptor) throws InvalidValueException {\n this(channel, getModesFromChannel(channel), fileDescriptor);\n }",
"@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }",
"public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }",
"public void setData(E d)\n {\n data = d;\n }",
"public void setIdentity(XMLFieldDescriptor fieldDesc) {\n if (fieldDesc != null) {\n if ( (! attributeDescriptors.contains(fieldDesc)) &&\n (! elementDescriptors.contains(fieldDesc))) {\n addFieldDescriptor(fieldDesc);\n }\n }\n this._identity = fieldDesc;\n }",
"@Override\n\tpublic void setDataSet(IDataSet ds) {\n\t\t\n\t}",
"@Override\n\tpublic void setDes(String des) {\n\t\tsuper.setDes(des);\n\t}",
"public void setOldProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldProperty_descriptionType=param;\n \n\n }",
"public void setDescr(String descr) {\n\t\tthis._descr = descr;\n\t}",
"public void setDescr(String descr) {\n\t\tthis._descr = descr;\n\t}",
"DataElementDescriptor getDescriptor(String name);",
"void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}",
"public void set(File file, String view, String attribute, Object value, boolean create) {\n/* 131 */ throw unsettable(view, attribute);\n/* */ }",
"public abstract void set(M newValue);",
"public XMLClassDescriptorResolverImpl() {\n super();\n _descriptorCache = new DescriptorCacheImpl();\n }",
"public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }",
"void onRemoteDescriptionSet();",
"public ChannelDescriptor(Channel channel, ModeFlags originalModes, FileDescriptor fileDescriptor) {\n this(channel, getNewFileno(), originalModes, fileDescriptor, new AtomicInteger(1), true);\n }",
"void setDesc(java.lang.String desc);",
"public void setNewValues_description(java.lang.String param){\n localNewValues_descriptionTracker = true;\n \n this.localNewValues_description=param;\n \n\n }",
"public void resetTupleDesc(TupleDesc td) {\n\t\tthis.tupleDesc = td;\n\t}",
"public void setNewProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewProperty_descriptionType=param;\n \n\n }",
"public void setNewValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewValues_descriptionType=param;\n \n\n }",
"public void setDescription(String newVal) {\n if ((newVal != null && this.description != null && (newVal.compareTo(this.description) == 0)) || \n (newVal == null && this.description == null && description_is_initialized)) {\n return; \n } \n this.description = newVal; \n\n description_is_modified = true; \n description_is_initialized = true; \n }",
"public ChannelDescriptor(Channel channel) throws InvalidValueException {\n this(channel, getModesFromChannel(channel), new FileDescriptor());\n }",
"void setNilDescription();",
"public void setData(D s){\n\t\tdata = s;\n\t}",
"public ChannelDescriptor(Channel channel, ModeFlags originalModes) {\n this(channel, getNewFileno(), originalModes, new FileDescriptor(), new AtomicInteger(1), true);\n }",
"void setPerm(String name,\n Object value);",
"public void dup2Into(ChannelDescriptor other) throws BadDescriptorException, IOException {\n synchronized (refCounter) {\n refCounter.incrementAndGet();\n \n if (DEBUG) getLogger(\"ChannelDescriptor\").info(\"Reopen fileno \" + internalFileno + \", refs now: \" + refCounter.get());\n \n other.close();\n \n other.channel = channel;\n other.originalModes = originalModes;\n other.fileDescriptor = fileDescriptor;\n other.refCounter = refCounter;\n other.canBeSeekable = canBeSeekable;\n }\n }",
"public void setExtends(XMLClassDescriptor classDesc) {\n\n FieldDescriptor[] fields = null;\n //-- remove reference to previous extended descriptor\n if (_extends != null) {\n sortDescriptors();\n fields = _extends.getFields();\n for (int i = 0; i < fields.length; i++) {\n removeFieldDescriptor((XMLFieldDescriptor)fields[i]);\n }\n }\n\n this._extends = classDesc;\n\n //-- flatten out the hierarchy\n if (_extends != null) {\n fields = classDesc.getFields();\n for (int i = 0; i < fields.length; i++) {\n addFieldDescriptor((XMLFieldDescriptor)fields[i]);\n }\n }\n\n }",
"public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }",
"public void setModified();",
"public void setOldValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldValues_descriptionType=param;\n \n\n }",
"public void setSetSpec(String val) {\n\n\t\tsetSpec = val;\n\n\t}",
"public EntityDescriptor getDescriptor() {\n return descriptor;\n }",
"void xsetDesc(org.apache.xmlbeans.XmlString desc);",
"protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }",
"private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}",
"private static void getDescriptor(final StringBuffer buf, final Class<?> c) {\n Class<?> d = c;\n while (true) {\n if (d.isPrimitive()) {\n char car;\n if (d == Integer.TYPE) {\n car = 'I';\n } else if (d == Void.TYPE) {\n car = 'V';\n } else if (d == Boolean.TYPE) {\n car = 'Z';\n } else if (d == Byte.TYPE) {\n car = 'B';\n } else if (d == Character.TYPE) {\n car = 'C';\n } else if (d == Short.TYPE) {\n car = 'S';\n } else if (d == Double.TYPE) {\n car = 'D';\n } else if (d == Float.TYPE) {\n car = 'F';\n } else /* if (d == Long.TYPE) */{\n car = 'J';\n }\n buf.append(car);\n return;\n } else if (d.isArray()) {\n buf.append('[');\n d = d.getComponentType();\n } else {\n buf.append('L');\n String name = d.getName();\n int len = name.length();\n for (int i = 0; i < len; ++i) {\n char car = name.charAt(i);\n buf.append(car == '.' ? '/' : car);\n }\n buf.append(';');\n return;\n }\n }\n }",
"public void setDescription(String newDescription) {\n\t\tdescription = newDescription;\n\t}",
"protected void saveDescriptor(LocalExtension extension) throws ParserConfigurationException, TransformerException,\n IOException\n {\n File file = getDescriptorFile(extension.getId());\n FileOutputStream fos = new FileOutputStream(file);\n\n try {\n this.extensionSerializer.saveDescriptor(extension, fos);\n } finally {\n fos.close();\n }\n }"
] |
[
"0.69116277",
"0.68341005",
"0.64729065",
"0.63811076",
"0.63506377",
"0.63045824",
"0.6046589",
"0.5922682",
"0.5859617",
"0.58417094",
"0.5769108",
"0.5732636",
"0.5721456",
"0.560782",
"0.560782",
"0.5563992",
"0.5563992",
"0.5552664",
"0.5552664",
"0.55506635",
"0.5550274",
"0.5533772",
"0.5530468",
"0.5497073",
"0.5497073",
"0.5497073",
"0.5415991",
"0.54088914",
"0.53865033",
"0.53793603",
"0.5355196",
"0.53448015",
"0.5333095",
"0.532586",
"0.5317972",
"0.52801776",
"0.5249098",
"0.52422374",
"0.52273005",
"0.521462",
"0.52078116",
"0.5203386",
"0.5200612",
"0.5193428",
"0.5189313",
"0.51748896",
"0.51636666",
"0.5161823",
"0.51562434",
"0.51416975",
"0.5132921",
"0.5118998",
"0.5118082",
"0.51071566",
"0.5103967",
"0.5103035",
"0.5099586",
"0.50953037",
"0.5092619",
"0.50849307",
"0.5084002",
"0.5077707",
"0.50764513",
"0.50640744",
"0.5059551",
"0.50575316",
"0.505398",
"0.505398",
"0.5049892",
"0.5044873",
"0.5039342",
"0.50352925",
"0.5032545",
"0.5025595",
"0.50255364",
"0.50245667",
"0.5022371",
"0.5019776",
"0.5019526",
"0.50177544",
"0.5010587",
"0.49974504",
"0.49957645",
"0.49866056",
"0.49861008",
"0.4965568",
"0.49618727",
"0.49616218",
"0.4960661",
"0.49497074",
"0.49489114",
"0.49480107",
"0.49466652",
"0.4945198",
"0.49425116",
"0.49422526",
"0.49416018",
"0.49388427",
"0.491771",
"0.49167183"
] |
0.8088063
|
0
|
Declaratives Services activation of instance.
|
void activate(Map<String, Object> config) {
this.config = config;
log.debug(bundleMarker, "Activating...");
for (Map.Entry<String, Object> entry : config.entrySet()) {
log.debug(bundleMarker, "Property key={} value={}", entry.getKey(),
entry.getValue());
}
this.animalTemplate = getAnimal(getConfigString(ANIMAL_TEMPLATE_URI));
this.scope = getProducerScope();
this.triggerOnID = getConfigBoolean(TRIGGER_ON_ID_NAME);
this.state = new State(getConfigInteger(CONTROL_STATE_VALUE),
getConfigString(CONTROL_STATE_NAME));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void activate()\n {\n }",
"public void activate(IActivator activator);",
"public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}",
"public void activate() {\n\t\tactivated = true;\n\t}",
"public void activate() {\n\n serviceTracker = new ServiceTracker<>(bundleContext, BlueprintContainer.class,\n new CustomBlueprintContainerServiceTrackerCustomizer());\n serviceTracker.open();\n\n CustomBlueprintListener blueprintListener = new CustomBlueprintListener();\n listenerSR = bundleContext.registerService(BlueprintListener.class, blueprintListener,\n new Hashtable<String, Object>());\n }",
"public void activate() throws JBIException {\n count++;\n if(count != 1)\n return;\n if (_serviceref == null) {\n ServiceEndpoint[] candidates = _ode.getContext().getExternalEndpointsForService(_endpoint.serviceName);\n if (candidates.length != 0) {\n _external = candidates[0];\n }\n }\n _internal = _ode.getContext().activateEndpoint(_endpoint.serviceName, _endpoint.portName);\n if (__log.isDebugEnabled()) {\n __log.debug(\"Activated endpoint \" + _endpoint);\n }\n // TODO: Is there a race situation here?\n }",
"public void activate();",
"@Override\n public void activate() {\n \n }",
"public void activate(){\r\n\r\n\t}",
"@Override\n\tpublic void activate() {\n\t\t\n\t}",
"@Override\n\tpublic void activate() {\n\t}",
"@Override\n\tpublic void activate() {\n\t}",
"void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;",
"private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }",
"@Override\n public void activate() {\n\n }",
"@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}",
"@Override\n public void activate() {\n init();\n }",
"@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}",
"public void activate() {\n neurons.forEach(Neuron::activate);\n }",
"public void activate() {\n\t\t// set cooldown counter\n\t}",
"public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }",
"public void Activate() {\n state.Activate();\n }",
"void activate();",
"void activate();",
"public void ejbActivate() {\n }",
"public void activate() { \r\n // Notify ActivationListeners\r\n \tSipApplicationSessionEvent event = null;\r\n Set<String> keySet = sipApplicationSessionAttributeMap.keySet();\r\n for (String key : keySet) {\r\n \tObject attribute = sipApplicationSessionAttributeMap.get(key);\r\n if (attribute instanceof SipApplicationSessionActivationListener) {\r\n if (event == null)\r\n event = new SipApplicationSessionEvent(this);\r\n try {\r\n ((SipApplicationSessionActivationListener)attribute)\r\n .sessionDidActivate(event);\r\n } catch (Throwable t) {\r\n logger.error(\"SipApplicationSessionActivationListener threw exception\", t);\r\n }\r\n }\r\n \t\t}\r\n }",
"public abstract void activate();",
"public abstract void activate();",
"public void activate(){\r\n\t\tactive=true;\r\n\t}",
"public void activateOptions() {\n if (!isActive()) {\n setActive(true);\n if (advertiseViaMulticastDNS) {\n zeroConf = new ZeroConfSupport(ZONE, port, getName());\n zeroConf.advertise();\n }\n\n fireConnector(false);\n }\n }",
"@POST\n @Path(\"/{version:[vV][1]}/activate\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @Operation(description = \"Activate a 3GPP Service Instance on a version provided\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n public Response activateServiceInstance(ActivateOrDeactivate3gppService request,\n @PathParam(\"version\") String version, @Context ContainerRequestContext requestContext) throws ApiException {\n String requestId = requestHandlerUtils.getRequestId(requestContext);\n HashMap<String, String> instanceIdMap = new HashMap<>();\n instanceIdMap.put(\"serviceInstanceId\", request.getServiceInstanceID());\n return activateOrDeactivateServiceInstances(request, Action.activateInstance, version, requestId, instanceIdMap,\n requestHandlerUtils.getRequestUri(requestContext, URI_PREFIX));\n }",
"public void active() {\n createClassIfNotExists();\n\n globalHook = new OAuditingHook(security);\n\n retainTask =\n new TimerTask() {\n public void run() {\n retainLogs();\n }\n };\n\n long delay = 1000L;\n long period = 1000L * 60L * 60L * 24L;\n\n timer.scheduleAtFixedRate(retainTask, delay, period);\n\n Orient.instance().addDbLifecycleListener(this);\n if (context instanceof OServerAware) {\n if (((OServerAware) context).getDistributedManager() != null) {\n ((OServerAware) context).getDistributedManager().registerLifecycleListener(this);\n }\n }\n\n if (systemDbImporter != null && systemDbImporter.isEnabled()) {\n systemDbImporter.start();\n }\n }",
"public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}",
"@Override\n public void activate() {\n if ( ! prepared)\n prepare();\n\n validateSessionStatus(session);\n ApplicationId applicationId = session.getApplicationId();\n try (ActionTimer timer = applicationRepository.timerFor(applicationId, \"deployment.activateMillis\")) {\n TimeoutBudget timeoutBudget = new TimeoutBudget(clock, timeout);\n if ( ! timeoutBudget.hasTimeLeft()) throw new RuntimeException(\"Timeout exceeded when trying to activate '\" + applicationId + \"'\");\n\n RemoteSession previousActiveSession;\n CompletionWaiter waiter;\n try (Lock lock = tenant.getApplicationRepo().lock(applicationId)) {\n previousActiveSession = applicationRepository.getActiveSession(applicationId);\n waiter = applicationRepository.activate(session, previousActiveSession, applicationId, ignoreSessionStaleFailure);\n }\n catch (RuntimeException e) {\n throw e;\n }\n catch (Exception e) {\n throw new InternalServerException(\"Error when activating '\" + applicationId + \"'\", e);\n }\n\n waiter.awaitCompletion(timeoutBudget.timeLeft());\n log.log(Level.INFO, session.logPre() + \"Session \" + session.getSessionId() + \" activated successfully using \" +\n hostProvisioner.map(provisioner -> provisioner.getClass().getSimpleName()).orElse(\"no host provisioner\") +\n \". Config generation \" + session.getMetaData().getGeneration() +\n (previousActiveSession != null ? \". Based on session \" + previousActiveSession.getSessionId() : \"\") +\n \". File references: \" + applicationRepository.getFileReferences(applicationId));\n }\n }",
"public boolean activate();",
"public void activate() {\n routeTables = new ConcurrentHashMap<>();\n\n routeTables.put(IPV4, new RouteTable(IPV4));\n routeTables.put(IPV6, new RouteTable(IPV6));\n\n log.info(\"Started\");\n }",
"protected void doActivate() throws FndException\n {\n }",
"@Activate\n protected void start(BundleContext bundleContext) throws Exception {\n log.info(\"Service Component is activated\");\n\n // Create Stream Processor Service\n EditorDataHolder.setDebugProcessorService(new DebugProcessorService());\n EditorDataHolder.setSiddhiManager(new SiddhiManager());\n EditorDataHolder.setBundleContext(bundleContext);\n\n serviceRegistration = bundleContext.registerService(EventStreamService.class.getName(),\n new DebuggerEventStreamService(), null);\n }",
"protected void activate(ComponentContext context) {\n\n try {\n OutputTransportAdaptorFactory wso2EventTransportAdaptorFactory = new WSO2EventTransportAdaptorFactory();\n context.getBundleContext().registerService(OutputTransportAdaptorFactory.class.getName(), wso2EventTransportAdaptorFactory, null);\n log.info(\"Successfully deployed the output WSO2Event transport adaptor service\");\n } catch (RuntimeException e) {\n log.error(\"Can not create the output WSO2Event transport adaptor service \", e);\n }\n }",
"public void onActivation() { }",
"public void ejbActivate() {\n\t\tSystem.out.println(\"ejbActivate\");\n\t}",
"public void activate() throws IllegalStateException, NamingException {\n\t\tlog.info(\"Activating simple JNDI environment\");\n\t\tsynchronized (initializationLock) {\n\t\t\tif (!initialized) {\n\t\t\t\tif (NamingManager.hasInitialContextFactoryBuilder()) {\n\t\t\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\t\t\"Cannot activate SimpleNamingContextBuilder: there is already a JNDI provider registered. \" +\n\t\t\t\t\t\t\t\"Note that JNDI is a JVM-wide service, shared at the JVM system class loader level, \" +\n\t\t\t\t\t\t\t\"with no reset option. As a consequence, a JNDI provider must only be registered once per JVM.\");\n\t\t\t\t}\n\t\t\t\tNamingManager.setInitialContextFactoryBuilder(this);\n\t\t\t\tinitialized = true;\n\t\t\t}\n\t\t}\n\t\tactivated = this;\n\t}",
"public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }",
"public interface IActivatable {\n\tpublic static final Long ID_UNINITIALIZED = -1L;\n\t\n\t/**\n\t * \n\t * Gets the unique ID of this Activatable that identifies it in the\n\t * ActivationManager.\n\t * The ID must not changed once assigned.\n\t * \n\t * @return the unique ID issued by the ActivationManager upon registration, or -1L when unregistered\n\t */\n\tpublic long getID();\n\t\n\t/**\n\t * Sets the unique id of this Activatable. Called by the ActivationManager after registration.\n\t * Store the ID passed to this method in a thread-safe way.\n\t * (e.g. as <code>AtomicLong</code>) .\n\t * The ID must not changed once assigned.\n\t * \n\t * @param id the unique ID issued by the ActivationManager upon registration\n\t */\n\tpublic void setID(long id);\n\t\n\t\n\t/**\n\t * Called when the <code>Activatable</code> has been registered. All initialization code goes here,\n\t * e.g. registering blocks with the BlockChangeWatcher.\n\t */\n\tpublic void initialize();\n\t\n\t/**\n\t * Called when the <code>Activatable</code> is activated.\n\t * Do not make any assumptions about the thread that calls this.\n\t * Usually, it will <i>not</i> be the server thread.\n\t * \n\t * @param activator holds the details of the activation.\n\t */\n\tpublic void activate(IActivator activator);\n\t\n\t/**\n\t * Called when the <code>Activatable</code> has been removed from the\n\t * <code>ActivationManager<code>. It will never be re-added, so it's\n\t * time to make your will, say goodbye to your loved ones, and\n\t * clean up after yourself. Unregister with watchers, cancel your\n\t * <code>FishyTasks</code>, make sure that no strong references\n\t * remain. \n\t */\n\tpublic void remove();\n\t\n\n}",
"public void ejbActivate() throws RemoteException, EJBException {\n\t\ttry {\n\t\t\t// really should use a utility class that caches these EJBHomes. Use\n\t\t\t// xdoclet to create when I have more than a few hrs to impl.\n\t\t\t// TODO Tech Upgrade!!\n\t\t\t_idshome = (IdentityServiceHome) JndiHelper.getObject(\n\t\t\t\t\t\"com.carescience.ics.pids.IdentityServiceHome\",\n\t\t\t\t\tIdentityServiceHome.class);\n\t\t\t// _corhome = (CorrelationHome)\n\t\t\t// JndiHelper.getObject(\"CorrelationUtils\", CorrelationHome.class);\n\t\t} catch (NamingException e) {\n\t\t\tEJBException ejbx = new EJBException(e.getExplanation(), e);\n\t\t\tthrow ejbx;\n\t\t}\n\t}",
"public void entityActivated() throws javax.slee.resource.ResourceException {\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"entityActivated() \");\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\t\r\n \t\t\t// SO EACH ACTIVITY CAN HAVE ACCESS TO SOME NEEDED METHODS DEFINED\r\n \t\t\t// BY THIS INTERFACE, THIS WAY WE DONT HAVE TO WORRY ABOUT PASSING\r\n \t\t\t// IT TO CONSTRUCTOR.\r\n \t\t\tinitializeNamingContextBindings();\r\n \t\t\thttpRaSbbinterface = new HttpServletRaSbbInterfaceImpl(this);\r\n \t\t\tactivities = new ConcurrentHashMap();\r\n \t\t\trequestLock = new RequestLock();\r\n \r\n \t\t} catch (NamingException e) {\r\n \t\t\tthrow new javax.slee.resource.ResourceException(\r\n \t\t\t\t\t\"entityActivated(): Failed to activate HttpServlet RA\",\r\n \t\t\t\t\te);\r\n \t\t}\r\n \t}",
"void activate(ExtendableServer server);",
"public void activate(String deploymentId) {\n\t\t\n\t}",
"public void activate(ComponentContext cc) {\n }",
"public void activate(){\n callback.action();\n }",
"@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testStartInstance_3()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tSAPInstance aInstance = new SAPInstance();\n\t\tOperationOptions aOptions = new OperationOptions();\n\n\t\tOperationResult result = fixture.startInstance(aInstance, aOptions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public void activate() {\n\t\tif (resetCounter == 0 && isReloaded()) {\n\t\t\tactivated = true;\n\t\t}\n\t}",
"public void initial(){\t\t\r\n\t\tfundRateService=new FundRateService();\r\n\t}",
"public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}",
"public void service_INIT(){\n }",
"protected void setup() {\n\t\t\t\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\t\t\t\tdfd.setName(getAID());\n\t\t\t\t\tServiceDescription sd = new ServiceDescription();\n\t\t\t\t\tsd.setType(\"wHOST\");\n\t\t\t\t\tsd.setName(\"wumpus-host-\" + Math.random());\n\t\t\t\t\tdfd.addServices(sd);\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDFService.register(this, dfd);\n\t\t\t\t\t\thostMap = new WumpusMapHost();\n\t\t\t\t\t\tSystem.out.println(\"Registered as a host in the DF Service.\");\n\t\t\t\t\t\tlogic = new WumpusLogic();\n\t\t\t\t\t\tlogic.setHostMap(hostMap.getMap());\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\tcatch (FIPAException fe) {\n\t\t\t\t\t\tfe.printStackTrace();\n\t\t\t\t\t}\n\t\t\n\t\t// Printing out a message stating that the agent is ready for service.\n\t\tSystem.out.println(\"Wumpus host \"+getAID().getName()+\" is ready.\");\n\t\t\n\t\taddBehaviour(new TickerBehaviour(this, 1000) {\n\t\t\tprotected void onTick() {\n\t\t\t\tmyAgent.addBehaviour(new HandleRequest());\n\t\t\t}\n\t\t});\n\t \t\n\t\t\n\t}",
"@Override\n\tpublic void onActivated() {\n\t\tinit();\n\t}",
"public void activated() \r\n\t{\r\n\t\t\r\n\t}",
"public native void activate();",
"@Override\n public synchronized void start() {\n createControllerForContextEntity(metadata, behaviorSpecs);\n\n /**\n * set allProvided service in order to create all the service controller link to behavior\n */\n ProvidedService providedService = getContextEntityProvidedService(metadata);\n for (Map.Entry<String, RequiredFunctionalExtension> requiredBehaviorEntry : myRequiredBehaviorById.entrySet()) {\n requiredBehaviorEntry.getValue().setProvidedService(providedService);\n }\n\n for (String mandatoryBehaviorId : mandatoryBehavior) {\n myRequiredBehaviorById.get(mandatoryBehaviorId).tryStartExtension();\n }\n }",
"private void startAdvertising() {\n client.startAdvertising(codeName,getResources().getString(R.string.service_id), connectionLifecycleCallback, new AdvertisingOptions(STRATEGY));\n }",
"@Test\n\tpublic void testStartInstance_1()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tSAPInstance aInstance = new SAPInstance();\n\t\tOperationOptions aOptions = new OperationOptions();\n\n\t\tOperationResult result = fixture.startInstance(aInstance, aOptions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public void _createInstance() {\n requiredMethod(\"getAvailableServiceNames()\");\n\n if (services.length == 0) {\n services = (String[]) tEnv.getObjRelation(\"XMSF.serviceNames\");\n\n if (services == null) {\n log.println(\"No service to create.\");\n tRes.tested(\"createInstance()\", true);\n\n return;\n }\n }\n\n String needArgs = (String) tEnv.getObjRelation(\"needArgs\");\n\n if (needArgs != null) {\n log.println(\"The \" + needArgs + \n \" doesn't support createInstance without arguments\");\n tRes.tested(\"createInstance()\", true);\n\n return;\n }\n\n boolean res = true; \n\n for (int k = 0; k < services.length; k++) {\n try {\n log.println(\"Creating Instance: \" + services[k]);\n\n Object Inst = oObj.createInstance(services[k]);\n res = (Inst != null);\n } catch (com.sun.star.uno.Exception ex) {\n log.println(\"Exception occurred during createInstance()\");\n ex.printStackTrace(log);\n res = false;\n }\n }\n\n tRes.tested(\"createInstance()\", res);\n }",
"private void initSvcInstRef()\n\t{\n\t\tSVC_INST_REF.setType(SVC_INST_NAME);\n\t\tSVC_INST_REF.setValue(SVC_INST_NAME);\n\t}",
"@Override\n\tpublic void start(BundleContext context) throws Exception {\n\t\t// TODO Auto-generated method stub\n////\t\tsuper.start(context);\n//\t\tServiceReference serviceReference = context.getServiceReference(Application.class.getName());\n//\t\tservice = (Application) context.getService(serviceReference);\n//\t\tSystem.out.println(\"Activator.init() \" + service);\n////\t\tApplication.launch(null);\n//\t\ttry {\n//\t\t\t\n//\t\t\tnew JFXPanel();\n//\t\t\t\n//\t\t\tPlatform.runLater(new Runnable() {\n//\t\t\t\t\n//\t\t\t\t@Override\n//\t\t\t\tpublic void run() {\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\tservice.start(new Stage());\n//\t\t\t\t\t\tservice.launch(null);\n//\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.println(\"Activator.init() Service is launched and started\");\n//\t\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\tSystem.err.println(\"\" + e);\n//\t\t\t\t\t}\n//\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t});\n//\t\t} catch (Exception e) {\n//\t\t\tSystem.err.println(e);\n//\t\t\tservice.start(new Stage());\n//\t\t}\n\t}",
"public interface ActivationDriver {\n\n /**\n * Called in case all drivers in the transaction has succeeded.\n */\n void commit();\n\n /**\n * Called in case any of drivers in the transaction has failed.\n */\n void rollback();\n\n /**\n * Set state for the driver for a (de)activation transaction.\n * @param endPoints list of endpoint to interconnect\n * @param serviceId connectivity service id\n * @param context context\n */\n void initialize(\n List<EndPoint> endPoints,\n String serviceId,\n NrpConnectivityServiceAttrs context,\n boolean isExclusive,\n ServiceType serviceType);\n\n /**\n * Performs the activation action.\n * @throws ResourceActivatorException activation problem\n * @throws ExecutionException transaction execution failed\n * @throws InterruptedException transaction was interrupted\n */\n void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;\n\n /**\n * Performs the update action.\n * @throws ResourceActivatorException activation problem\n * @throws ExecutionException transaction execution failed\n * @throws InterruptedException transaction was interrupted\n */\n default void update() throws ResourceActivatorException, InterruptedException, ExecutionException {\n deactivate();\n activate();\n }\n\n /**\n * Performs the deactivation action.\n * @throws ResourceActivatorException activation problem\n * @throws ExecutionException transaction execution failed\n * @throws InterruptedException transaction was interrupted\n */\n void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;\n\n\n /**\n * Influences the order in which drivers are called within the transaction.\n * @return int priority of this driver when resolving ambiguity\n */\n int priority();\n}",
"Fog_Services createFog_Services();",
"@Activate\n public void activate(ComponentContext ctx) {\n try {\n this.serverContainer.addEndpoint(RealTimeWebSocketServerMsgHandler.class);\n LOG.info(\"Hydra Data-collection service Websocket: Server endpoint for key-value stream deployed\"); //endpoint is immediately available //$NON-NLS-1$\n this.serverContainer.addEndpoint(MessageWebSocketServerMsgHandler.class);\n LOG.info(\"Hydra Data-collection service Websocket: Server endpoint for messages deployed\"); //endpoint is immediately available //$NON-NLS-1$\n } catch (DeploymentException e) {\n LOG.error(\"Hydra Data-collection service Websocket: Error occurred while deploying the server endpoint\", e); //$NON-NLS-1$\n }\n }",
"public void ejbActivate() throws EJBException, RemoteException {\n\t}",
"public void ejbActivate() throws EJBException, RemoteException {\n\t}",
"public void ejbActivate() throws EJBException, RemoteException {\n\t}",
"public void activateShield() {\n shield.activate();\n }",
"@Override\r\n\tpublic void startup() {\n\t\tif(!initialized)\r\n\t\t\tinitOperation();\r\n\t\tregisterMBean();\r\n\t}",
"@Override\n\tpublic void activate() {\n\t\tfindFood();\n\t\t_status = GoalEnum.active;\n\t\t_fsm.reset();\n\t\t_fsm.activate();\n\t}",
"@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testStartInstance_4()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tSAPInstance aInstance = new SAPInstance();\n\t\tOperationOptions aOptions = new OperationOptions();\n\n\t\tOperationResult result = fixture.startInstance(aInstance, aOptions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public InitService() {\n super(\"InitService\");\n }",
"@Override\n\tpublic void start(BundleContext context) throws Exception {\n\t\tfinal Dictionary<String, String> properties = new Hashtable<String, String>();\n\t\tproperties.put(Constants.SERVICE_DESCRIPTION, \"A bundle activator service\");\n\t\tcontext.registerService(LoginService.class, new LoginServiceImpl(), properties);\n\t\t//how to access the registered service\n\n\t}",
"public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void activate() {\r\n\t\tif (state != MachineState.DOWN)\r\n\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\"Only a machine in state DOWN can be activated.\");\r\n\t\tassert curJob == null;\r\n\r\n\t\tstate = MachineState.IDLE;\r\n\t\tprocFinished = -1.0d;\r\n\t\tprocStarted = -1.0d;\r\n\r\n\t\tworkStation.activated(this);\r\n\r\n\t\tdownReason = null;\r\n\t}",
"public void activate() {\n\t\t\t\n\t\t//Prior to activation add objects to Community\n\t\tthis.buildings = new ArrayList<>();\t//setup buildings\n \tBuilding[] buildings = control.buildings();\n\t\tCollections.addAll(this.buildings, buildings);\n \t\n\t\t//Timer for animation\n\t\t//Argument 1: timerValue is a period in milliseconds to fire event\n\t\t//Argument 2:t any class that \"implements ActionListener\"\n\t\ttimer = new Timer(control.timerValue, this); //timer constructor\n\t\ttimer.restart(); //restart or start\n\t\t\n\t\t// frame becomes visible\n\t\tframe.setVisible(true);\t\t\n\t}",
"public void startup(){}",
"ProgramActuatorService createProgramActuatorService();",
"@Override\n public void onActivate() {\n }",
"@SuppressWarnings(\"unused\")\n @Activate\n private void activate(final BundleContext bundleContext) {\n this.bundleContext = bundleContext;\n\n try {\n bundleContext.addServiceListener(this, REFERENCE_FILTER);\n final ServiceReference[] serviceReferences = bundleContext.getServiceReferences(\n SlingPostOperation.SERVICE_NAME, null);\n if (serviceReferences != null) {\n for (ServiceReference serviceReference : serviceReferences) {\n register(serviceReference);\n }\n }\n } catch (InvalidSyntaxException ise) {\n // not expected for tested static filter\n // TODO:log !!\n }\n }",
"public void activate(BundleContext context) {\r\n\r\n // define the global ServiceRegistryAccessFactory for components and GUI code\r\n // TODO initialize from another location?\r\n ServiceRegistry.setAccessFactory(new OsgiServiceRegistryAccessFactory(context));\r\n\r\n bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n\r\n // initialize parent temp directory root\r\n initializeParentTempDirectoryRoot(generalSettings.getTempDirectoryOverride());\r\n\r\n initializeInstanceTempDirectoryRoot();\r\n\r\n if (PROPERTY_SUBSTITUTION_MECHANISM_ENABLED) {\r\n initializePropertySubstitution();\r\n }\r\n }",
"private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tcontext = this;\n\t\tstartService();\n\t}",
"private void init()\n {\n SystrayActivator.bundleContext\n .addServiceListener(new ProtocolProviderServiceListener());\n \n ServiceReference[] protocolProviderRefs = null;\n try\n {\n protocolProviderRefs\n = SystrayActivator.bundleContext.getServiceReferences(\n ProtocolProviderService.class.getName(),null);\n }\n catch (InvalidSyntaxException ex)\n {\n // this shouldn't happen since we're providing no parameter string\n // but let's log just in case.\n logger .error(\"Error while retrieving service refs\", ex);\n return;\n }\n \n // in case we found any\n if (protocolProviderRefs != null)\n {\n \n for (int i = 0; i < protocolProviderRefs.length; i++)\n {\n ProtocolProviderService provider\n = (ProtocolProviderService) SystrayActivator.bundleContext\n .getService(protocolProviderRefs[i]);\n \n this.addAccount(provider);\n }\n }\n }",
"public void sbbActivate() {\n\t}",
"protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}",
"private void registerService() {\r\n DFAgentDescription desc = new DFAgentDescription();\r\n desc.setName(getAID());\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(SERVICE_TYPE);\r\n sd.setName(SERVICE_NAME);\r\n desc.addServices(sd);\r\n try {\r\n DFService.register(this, desc);\r\n } catch (FIPAException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }",
"@Override\n\tpublic void onTenantInitialActivation(int tenantId) throws StratosException {\n\t}",
"public void start() {\n mStateMachine.sendMessage(SoftApStateMachine.CMD_START, mApConfig);\n }",
"private void initService() {\r\n\t}",
"public void activate() {\n\t\tpropertySupport.attachAll();\n\t}",
"public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }",
"public final void activate(){\n waitingToExecute = true;\n }",
"@Override\n public void activate(boolean status) {\n godPower.activate(status);\n }",
"@Override\n\tprotected void initAsService() {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Initiating service...\");\n\t\t}\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, 500, TimeUnit.MILLISECONDS);\n\t}",
"public PolicyServiceDelegate()\n {\n log.debug(\"\") ;\n log.debug(\"----\\\"----\") ;\n log.debug(\"PolicyServiceDelegate()\") ;\n try\n {\n service = getService(CommunityConfig.getServiceUrl());\n }\n catch(Exception e) {\n e.printStackTrace();\n service = null;\n }\n log.debug(\"----\\\"----\") ;\n log.debug(\"\") ;\n }"
] |
[
"0.6385781",
"0.63394463",
"0.63181734",
"0.6317195",
"0.6232299",
"0.62172294",
"0.61971974",
"0.6195615",
"0.61850584",
"0.6133997",
"0.61139673",
"0.61139673",
"0.59931463",
"0.59803706",
"0.59722465",
"0.59579766",
"0.59537524",
"0.59343094",
"0.59343094",
"0.593338",
"0.5928122",
"0.5872177",
"0.5865872",
"0.5859693",
"0.5859693",
"0.58277506",
"0.580531",
"0.5804289",
"0.5804289",
"0.5792245",
"0.577814",
"0.57357615",
"0.5730763",
"0.5723577",
"0.57174313",
"0.57024854",
"0.5695438",
"0.56789434",
"0.5672402",
"0.56537706",
"0.56414086",
"0.563525",
"0.56168365",
"0.5612857",
"0.55966735",
"0.5595429",
"0.5581936",
"0.5556106",
"0.55445266",
"0.5527369",
"0.5527312",
"0.5520127",
"0.5504783",
"0.5496123",
"0.5489967",
"0.5484233",
"0.548258",
"0.5444887",
"0.54364026",
"0.54307336",
"0.5421147",
"0.5408623",
"0.5401281",
"0.5388643",
"0.5376252",
"0.5375428",
"0.53740335",
"0.53666675",
"0.53484064",
"0.5347184",
"0.5347184",
"0.5347184",
"0.5336703",
"0.53356177",
"0.53336495",
"0.5333111",
"0.5330572",
"0.5321722",
"0.5320317",
"0.5311126",
"0.52878517",
"0.52825654",
"0.52810425",
"0.52796775",
"0.52702826",
"0.5269381",
"0.52595997",
"0.5251208",
"0.5238604",
"0.5234442",
"0.522297",
"0.5222125",
"0.5221427",
"0.52152616",
"0.52106047",
"0.5201793",
"0.5196873",
"0.5190137",
"0.51868546",
"0.51859546",
"0.51850283"
] |
0.0
|
-1
|
Declaratives Services activation of instance.
|
void deactivate() {
animalTemplate = null;
scope=null;
triggerOnID=false;
state = null;
log.debug(bundleMarker, "deactivating...");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void activate()\n {\n }",
"public void activate(IActivator activator);",
"public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}",
"public void activate() {\n\t\tactivated = true;\n\t}",
"public void activate() {\n\n serviceTracker = new ServiceTracker<>(bundleContext, BlueprintContainer.class,\n new CustomBlueprintContainerServiceTrackerCustomizer());\n serviceTracker.open();\n\n CustomBlueprintListener blueprintListener = new CustomBlueprintListener();\n listenerSR = bundleContext.registerService(BlueprintListener.class, blueprintListener,\n new Hashtable<String, Object>());\n }",
"public void activate() throws JBIException {\n count++;\n if(count != 1)\n return;\n if (_serviceref == null) {\n ServiceEndpoint[] candidates = _ode.getContext().getExternalEndpointsForService(_endpoint.serviceName);\n if (candidates.length != 0) {\n _external = candidates[0];\n }\n }\n _internal = _ode.getContext().activateEndpoint(_endpoint.serviceName, _endpoint.portName);\n if (__log.isDebugEnabled()) {\n __log.debug(\"Activated endpoint \" + _endpoint);\n }\n // TODO: Is there a race situation here?\n }",
"public void activate();",
"@Override\n public void activate() {\n \n }",
"public void activate(){\r\n\r\n\t}",
"@Override\n\tpublic void activate() {\n\t\t\n\t}",
"@Override\n\tpublic void activate() {\n\t}",
"@Override\n\tpublic void activate() {\n\t}",
"void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;",
"private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }",
"@Override\n public void activate() {\n\n }",
"@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}",
"@Override\n public void activate() {\n init();\n }",
"@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}",
"public void activate() {\n neurons.forEach(Neuron::activate);\n }",
"public void activate() {\n\t\t// set cooldown counter\n\t}",
"public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }",
"public void Activate() {\n state.Activate();\n }",
"void activate();",
"void activate();",
"public void ejbActivate() {\n }",
"public void activate() { \r\n // Notify ActivationListeners\r\n \tSipApplicationSessionEvent event = null;\r\n Set<String> keySet = sipApplicationSessionAttributeMap.keySet();\r\n for (String key : keySet) {\r\n \tObject attribute = sipApplicationSessionAttributeMap.get(key);\r\n if (attribute instanceof SipApplicationSessionActivationListener) {\r\n if (event == null)\r\n event = new SipApplicationSessionEvent(this);\r\n try {\r\n ((SipApplicationSessionActivationListener)attribute)\r\n .sessionDidActivate(event);\r\n } catch (Throwable t) {\r\n logger.error(\"SipApplicationSessionActivationListener threw exception\", t);\r\n }\r\n }\r\n \t\t}\r\n }",
"public abstract void activate();",
"public abstract void activate();",
"public void activate(){\r\n\t\tactive=true;\r\n\t}",
"public void activateOptions() {\n if (!isActive()) {\n setActive(true);\n if (advertiseViaMulticastDNS) {\n zeroConf = new ZeroConfSupport(ZONE, port, getName());\n zeroConf.advertise();\n }\n\n fireConnector(false);\n }\n }",
"@POST\n @Path(\"/{version:[vV][1]}/activate\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @Operation(description = \"Activate a 3GPP Service Instance on a version provided\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n public Response activateServiceInstance(ActivateOrDeactivate3gppService request,\n @PathParam(\"version\") String version, @Context ContainerRequestContext requestContext) throws ApiException {\n String requestId = requestHandlerUtils.getRequestId(requestContext);\n HashMap<String, String> instanceIdMap = new HashMap<>();\n instanceIdMap.put(\"serviceInstanceId\", request.getServiceInstanceID());\n return activateOrDeactivateServiceInstances(request, Action.activateInstance, version, requestId, instanceIdMap,\n requestHandlerUtils.getRequestUri(requestContext, URI_PREFIX));\n }",
"public void active() {\n createClassIfNotExists();\n\n globalHook = new OAuditingHook(security);\n\n retainTask =\n new TimerTask() {\n public void run() {\n retainLogs();\n }\n };\n\n long delay = 1000L;\n long period = 1000L * 60L * 60L * 24L;\n\n timer.scheduleAtFixedRate(retainTask, delay, period);\n\n Orient.instance().addDbLifecycleListener(this);\n if (context instanceof OServerAware) {\n if (((OServerAware) context).getDistributedManager() != null) {\n ((OServerAware) context).getDistributedManager().registerLifecycleListener(this);\n }\n }\n\n if (systemDbImporter != null && systemDbImporter.isEnabled()) {\n systemDbImporter.start();\n }\n }",
"public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}",
"@Override\n public void activate() {\n if ( ! prepared)\n prepare();\n\n validateSessionStatus(session);\n ApplicationId applicationId = session.getApplicationId();\n try (ActionTimer timer = applicationRepository.timerFor(applicationId, \"deployment.activateMillis\")) {\n TimeoutBudget timeoutBudget = new TimeoutBudget(clock, timeout);\n if ( ! timeoutBudget.hasTimeLeft()) throw new RuntimeException(\"Timeout exceeded when trying to activate '\" + applicationId + \"'\");\n\n RemoteSession previousActiveSession;\n CompletionWaiter waiter;\n try (Lock lock = tenant.getApplicationRepo().lock(applicationId)) {\n previousActiveSession = applicationRepository.getActiveSession(applicationId);\n waiter = applicationRepository.activate(session, previousActiveSession, applicationId, ignoreSessionStaleFailure);\n }\n catch (RuntimeException e) {\n throw e;\n }\n catch (Exception e) {\n throw new InternalServerException(\"Error when activating '\" + applicationId + \"'\", e);\n }\n\n waiter.awaitCompletion(timeoutBudget.timeLeft());\n log.log(Level.INFO, session.logPre() + \"Session \" + session.getSessionId() + \" activated successfully using \" +\n hostProvisioner.map(provisioner -> provisioner.getClass().getSimpleName()).orElse(\"no host provisioner\") +\n \". Config generation \" + session.getMetaData().getGeneration() +\n (previousActiveSession != null ? \". Based on session \" + previousActiveSession.getSessionId() : \"\") +\n \". File references: \" + applicationRepository.getFileReferences(applicationId));\n }\n }",
"public boolean activate();",
"public void activate() {\n routeTables = new ConcurrentHashMap<>();\n\n routeTables.put(IPV4, new RouteTable(IPV4));\n routeTables.put(IPV6, new RouteTable(IPV6));\n\n log.info(\"Started\");\n }",
"protected void doActivate() throws FndException\n {\n }",
"@Activate\n protected void start(BundleContext bundleContext) throws Exception {\n log.info(\"Service Component is activated\");\n\n // Create Stream Processor Service\n EditorDataHolder.setDebugProcessorService(new DebugProcessorService());\n EditorDataHolder.setSiddhiManager(new SiddhiManager());\n EditorDataHolder.setBundleContext(bundleContext);\n\n serviceRegistration = bundleContext.registerService(EventStreamService.class.getName(),\n new DebuggerEventStreamService(), null);\n }",
"protected void activate(ComponentContext context) {\n\n try {\n OutputTransportAdaptorFactory wso2EventTransportAdaptorFactory = new WSO2EventTransportAdaptorFactory();\n context.getBundleContext().registerService(OutputTransportAdaptorFactory.class.getName(), wso2EventTransportAdaptorFactory, null);\n log.info(\"Successfully deployed the output WSO2Event transport adaptor service\");\n } catch (RuntimeException e) {\n log.error(\"Can not create the output WSO2Event transport adaptor service \", e);\n }\n }",
"public void onActivation() { }",
"public void ejbActivate() {\n\t\tSystem.out.println(\"ejbActivate\");\n\t}",
"public void activate() throws IllegalStateException, NamingException {\n\t\tlog.info(\"Activating simple JNDI environment\");\n\t\tsynchronized (initializationLock) {\n\t\t\tif (!initialized) {\n\t\t\t\tif (NamingManager.hasInitialContextFactoryBuilder()) {\n\t\t\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\t\t\"Cannot activate SimpleNamingContextBuilder: there is already a JNDI provider registered. \" +\n\t\t\t\t\t\t\t\"Note that JNDI is a JVM-wide service, shared at the JVM system class loader level, \" +\n\t\t\t\t\t\t\t\"with no reset option. As a consequence, a JNDI provider must only be registered once per JVM.\");\n\t\t\t\t}\n\t\t\t\tNamingManager.setInitialContextFactoryBuilder(this);\n\t\t\t\tinitialized = true;\n\t\t\t}\n\t\t}\n\t\tactivated = this;\n\t}",
"public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }",
"public interface IActivatable {\n\tpublic static final Long ID_UNINITIALIZED = -1L;\n\t\n\t/**\n\t * \n\t * Gets the unique ID of this Activatable that identifies it in the\n\t * ActivationManager.\n\t * The ID must not changed once assigned.\n\t * \n\t * @return the unique ID issued by the ActivationManager upon registration, or -1L when unregistered\n\t */\n\tpublic long getID();\n\t\n\t/**\n\t * Sets the unique id of this Activatable. Called by the ActivationManager after registration.\n\t * Store the ID passed to this method in a thread-safe way.\n\t * (e.g. as <code>AtomicLong</code>) .\n\t * The ID must not changed once assigned.\n\t * \n\t * @param id the unique ID issued by the ActivationManager upon registration\n\t */\n\tpublic void setID(long id);\n\t\n\t\n\t/**\n\t * Called when the <code>Activatable</code> has been registered. All initialization code goes here,\n\t * e.g. registering blocks with the BlockChangeWatcher.\n\t */\n\tpublic void initialize();\n\t\n\t/**\n\t * Called when the <code>Activatable</code> is activated.\n\t * Do not make any assumptions about the thread that calls this.\n\t * Usually, it will <i>not</i> be the server thread.\n\t * \n\t * @param activator holds the details of the activation.\n\t */\n\tpublic void activate(IActivator activator);\n\t\n\t/**\n\t * Called when the <code>Activatable</code> has been removed from the\n\t * <code>ActivationManager<code>. It will never be re-added, so it's\n\t * time to make your will, say goodbye to your loved ones, and\n\t * clean up after yourself. Unregister with watchers, cancel your\n\t * <code>FishyTasks</code>, make sure that no strong references\n\t * remain. \n\t */\n\tpublic void remove();\n\t\n\n}",
"public void ejbActivate() throws RemoteException, EJBException {\n\t\ttry {\n\t\t\t// really should use a utility class that caches these EJBHomes. Use\n\t\t\t// xdoclet to create when I have more than a few hrs to impl.\n\t\t\t// TODO Tech Upgrade!!\n\t\t\t_idshome = (IdentityServiceHome) JndiHelper.getObject(\n\t\t\t\t\t\"com.carescience.ics.pids.IdentityServiceHome\",\n\t\t\t\t\tIdentityServiceHome.class);\n\t\t\t// _corhome = (CorrelationHome)\n\t\t\t// JndiHelper.getObject(\"CorrelationUtils\", CorrelationHome.class);\n\t\t} catch (NamingException e) {\n\t\t\tEJBException ejbx = new EJBException(e.getExplanation(), e);\n\t\t\tthrow ejbx;\n\t\t}\n\t}",
"public void entityActivated() throws javax.slee.resource.ResourceException {\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"entityActivated() \");\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\t\r\n \t\t\t// SO EACH ACTIVITY CAN HAVE ACCESS TO SOME NEEDED METHODS DEFINED\r\n \t\t\t// BY THIS INTERFACE, THIS WAY WE DONT HAVE TO WORRY ABOUT PASSING\r\n \t\t\t// IT TO CONSTRUCTOR.\r\n \t\t\tinitializeNamingContextBindings();\r\n \t\t\thttpRaSbbinterface = new HttpServletRaSbbInterfaceImpl(this);\r\n \t\t\tactivities = new ConcurrentHashMap();\r\n \t\t\trequestLock = new RequestLock();\r\n \r\n \t\t} catch (NamingException e) {\r\n \t\t\tthrow new javax.slee.resource.ResourceException(\r\n \t\t\t\t\t\"entityActivated(): Failed to activate HttpServlet RA\",\r\n \t\t\t\t\te);\r\n \t\t}\r\n \t}",
"void activate(ExtendableServer server);",
"public void activate(String deploymentId) {\n\t\t\n\t}",
"public void activate(ComponentContext cc) {\n }",
"public void activate(){\n callback.action();\n }",
"@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testStartInstance_3()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tSAPInstance aInstance = new SAPInstance();\n\t\tOperationOptions aOptions = new OperationOptions();\n\n\t\tOperationResult result = fixture.startInstance(aInstance, aOptions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public void activate() {\n\t\tif (resetCounter == 0 && isReloaded()) {\n\t\t\tactivated = true;\n\t\t}\n\t}",
"public void initial(){\t\t\r\n\t\tfundRateService=new FundRateService();\r\n\t}",
"public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}",
"public void service_INIT(){\n }",
"protected void setup() {\n\t\t\t\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\t\t\t\tdfd.setName(getAID());\n\t\t\t\t\tServiceDescription sd = new ServiceDescription();\n\t\t\t\t\tsd.setType(\"wHOST\");\n\t\t\t\t\tsd.setName(\"wumpus-host-\" + Math.random());\n\t\t\t\t\tdfd.addServices(sd);\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDFService.register(this, dfd);\n\t\t\t\t\t\thostMap = new WumpusMapHost();\n\t\t\t\t\t\tSystem.out.println(\"Registered as a host in the DF Service.\");\n\t\t\t\t\t\tlogic = new WumpusLogic();\n\t\t\t\t\t\tlogic.setHostMap(hostMap.getMap());\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\tcatch (FIPAException fe) {\n\t\t\t\t\t\tfe.printStackTrace();\n\t\t\t\t\t}\n\t\t\n\t\t// Printing out a message stating that the agent is ready for service.\n\t\tSystem.out.println(\"Wumpus host \"+getAID().getName()+\" is ready.\");\n\t\t\n\t\taddBehaviour(new TickerBehaviour(this, 1000) {\n\t\t\tprotected void onTick() {\n\t\t\t\tmyAgent.addBehaviour(new HandleRequest());\n\t\t\t}\n\t\t});\n\t \t\n\t\t\n\t}",
"@Override\n\tpublic void onActivated() {\n\t\tinit();\n\t}",
"public void activated() \r\n\t{\r\n\t\t\r\n\t}",
"public native void activate();",
"@Override\n public synchronized void start() {\n createControllerForContextEntity(metadata, behaviorSpecs);\n\n /**\n * set allProvided service in order to create all the service controller link to behavior\n */\n ProvidedService providedService = getContextEntityProvidedService(metadata);\n for (Map.Entry<String, RequiredFunctionalExtension> requiredBehaviorEntry : myRequiredBehaviorById.entrySet()) {\n requiredBehaviorEntry.getValue().setProvidedService(providedService);\n }\n\n for (String mandatoryBehaviorId : mandatoryBehavior) {\n myRequiredBehaviorById.get(mandatoryBehaviorId).tryStartExtension();\n }\n }",
"private void startAdvertising() {\n client.startAdvertising(codeName,getResources().getString(R.string.service_id), connectionLifecycleCallback, new AdvertisingOptions(STRATEGY));\n }",
"@Test\n\tpublic void testStartInstance_1()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tSAPInstance aInstance = new SAPInstance();\n\t\tOperationOptions aOptions = new OperationOptions();\n\n\t\tOperationResult result = fixture.startInstance(aInstance, aOptions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public void _createInstance() {\n requiredMethod(\"getAvailableServiceNames()\");\n\n if (services.length == 0) {\n services = (String[]) tEnv.getObjRelation(\"XMSF.serviceNames\");\n\n if (services == null) {\n log.println(\"No service to create.\");\n tRes.tested(\"createInstance()\", true);\n\n return;\n }\n }\n\n String needArgs = (String) tEnv.getObjRelation(\"needArgs\");\n\n if (needArgs != null) {\n log.println(\"The \" + needArgs + \n \" doesn't support createInstance without arguments\");\n tRes.tested(\"createInstance()\", true);\n\n return;\n }\n\n boolean res = true; \n\n for (int k = 0; k < services.length; k++) {\n try {\n log.println(\"Creating Instance: \" + services[k]);\n\n Object Inst = oObj.createInstance(services[k]);\n res = (Inst != null);\n } catch (com.sun.star.uno.Exception ex) {\n log.println(\"Exception occurred during createInstance()\");\n ex.printStackTrace(log);\n res = false;\n }\n }\n\n tRes.tested(\"createInstance()\", res);\n }",
"private void initSvcInstRef()\n\t{\n\t\tSVC_INST_REF.setType(SVC_INST_NAME);\n\t\tSVC_INST_REF.setValue(SVC_INST_NAME);\n\t}",
"@Override\n\tpublic void start(BundleContext context) throws Exception {\n\t\t// TODO Auto-generated method stub\n////\t\tsuper.start(context);\n//\t\tServiceReference serviceReference = context.getServiceReference(Application.class.getName());\n//\t\tservice = (Application) context.getService(serviceReference);\n//\t\tSystem.out.println(\"Activator.init() \" + service);\n////\t\tApplication.launch(null);\n//\t\ttry {\n//\t\t\t\n//\t\t\tnew JFXPanel();\n//\t\t\t\n//\t\t\tPlatform.runLater(new Runnable() {\n//\t\t\t\t\n//\t\t\t\t@Override\n//\t\t\t\tpublic void run() {\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\tservice.start(new Stage());\n//\t\t\t\t\t\tservice.launch(null);\n//\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.println(\"Activator.init() Service is launched and started\");\n//\t\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\tSystem.err.println(\"\" + e);\n//\t\t\t\t\t}\n//\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t});\n//\t\t} catch (Exception e) {\n//\t\t\tSystem.err.println(e);\n//\t\t\tservice.start(new Stage());\n//\t\t}\n\t}",
"public interface ActivationDriver {\n\n /**\n * Called in case all drivers in the transaction has succeeded.\n */\n void commit();\n\n /**\n * Called in case any of drivers in the transaction has failed.\n */\n void rollback();\n\n /**\n * Set state for the driver for a (de)activation transaction.\n * @param endPoints list of endpoint to interconnect\n * @param serviceId connectivity service id\n * @param context context\n */\n void initialize(\n List<EndPoint> endPoints,\n String serviceId,\n NrpConnectivityServiceAttrs context,\n boolean isExclusive,\n ServiceType serviceType);\n\n /**\n * Performs the activation action.\n * @throws ResourceActivatorException activation problem\n * @throws ExecutionException transaction execution failed\n * @throws InterruptedException transaction was interrupted\n */\n void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;\n\n /**\n * Performs the update action.\n * @throws ResourceActivatorException activation problem\n * @throws ExecutionException transaction execution failed\n * @throws InterruptedException transaction was interrupted\n */\n default void update() throws ResourceActivatorException, InterruptedException, ExecutionException {\n deactivate();\n activate();\n }\n\n /**\n * Performs the deactivation action.\n * @throws ResourceActivatorException activation problem\n * @throws ExecutionException transaction execution failed\n * @throws InterruptedException transaction was interrupted\n */\n void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;\n\n\n /**\n * Influences the order in which drivers are called within the transaction.\n * @return int priority of this driver when resolving ambiguity\n */\n int priority();\n}",
"Fog_Services createFog_Services();",
"@Activate\n public void activate(ComponentContext ctx) {\n try {\n this.serverContainer.addEndpoint(RealTimeWebSocketServerMsgHandler.class);\n LOG.info(\"Hydra Data-collection service Websocket: Server endpoint for key-value stream deployed\"); //endpoint is immediately available //$NON-NLS-1$\n this.serverContainer.addEndpoint(MessageWebSocketServerMsgHandler.class);\n LOG.info(\"Hydra Data-collection service Websocket: Server endpoint for messages deployed\"); //endpoint is immediately available //$NON-NLS-1$\n } catch (DeploymentException e) {\n LOG.error(\"Hydra Data-collection service Websocket: Error occurred while deploying the server endpoint\", e); //$NON-NLS-1$\n }\n }",
"public void ejbActivate() throws EJBException, RemoteException {\n\t}",
"public void ejbActivate() throws EJBException, RemoteException {\n\t}",
"public void ejbActivate() throws EJBException, RemoteException {\n\t}",
"public void activateShield() {\n shield.activate();\n }",
"@Override\r\n\tpublic void startup() {\n\t\tif(!initialized)\r\n\t\t\tinitOperation();\r\n\t\tregisterMBean();\r\n\t}",
"@Override\n\tpublic void activate() {\n\t\tfindFood();\n\t\t_status = GoalEnum.active;\n\t\t_fsm.reset();\n\t\t_fsm.activate();\n\t}",
"@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testStartInstance_4()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tSAPInstance aInstance = new SAPInstance();\n\t\tOperationOptions aOptions = new OperationOptions();\n\n\t\tOperationResult result = fixture.startInstance(aInstance, aOptions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public InitService() {\n super(\"InitService\");\n }",
"@Override\n\tpublic void start(BundleContext context) throws Exception {\n\t\tfinal Dictionary<String, String> properties = new Hashtable<String, String>();\n\t\tproperties.put(Constants.SERVICE_DESCRIPTION, \"A bundle activator service\");\n\t\tcontext.registerService(LoginService.class, new LoginServiceImpl(), properties);\n\t\t//how to access the registered service\n\n\t}",
"public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void activate() {\r\n\t\tif (state != MachineState.DOWN)\r\n\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\"Only a machine in state DOWN can be activated.\");\r\n\t\tassert curJob == null;\r\n\r\n\t\tstate = MachineState.IDLE;\r\n\t\tprocFinished = -1.0d;\r\n\t\tprocStarted = -1.0d;\r\n\r\n\t\tworkStation.activated(this);\r\n\r\n\t\tdownReason = null;\r\n\t}",
"public void activate() {\n\t\t\t\n\t\t//Prior to activation add objects to Community\n\t\tthis.buildings = new ArrayList<>();\t//setup buildings\n \tBuilding[] buildings = control.buildings();\n\t\tCollections.addAll(this.buildings, buildings);\n \t\n\t\t//Timer for animation\n\t\t//Argument 1: timerValue is a period in milliseconds to fire event\n\t\t//Argument 2:t any class that \"implements ActionListener\"\n\t\ttimer = new Timer(control.timerValue, this); //timer constructor\n\t\ttimer.restart(); //restart or start\n\t\t\n\t\t// frame becomes visible\n\t\tframe.setVisible(true);\t\t\n\t}",
"public void startup(){}",
"ProgramActuatorService createProgramActuatorService();",
"@Override\n public void onActivate() {\n }",
"@SuppressWarnings(\"unused\")\n @Activate\n private void activate(final BundleContext bundleContext) {\n this.bundleContext = bundleContext;\n\n try {\n bundleContext.addServiceListener(this, REFERENCE_FILTER);\n final ServiceReference[] serviceReferences = bundleContext.getServiceReferences(\n SlingPostOperation.SERVICE_NAME, null);\n if (serviceReferences != null) {\n for (ServiceReference serviceReference : serviceReferences) {\n register(serviceReference);\n }\n }\n } catch (InvalidSyntaxException ise) {\n // not expected for tested static filter\n // TODO:log !!\n }\n }",
"public void activate(BundleContext context) {\r\n\r\n // define the global ServiceRegistryAccessFactory for components and GUI code\r\n // TODO initialize from another location?\r\n ServiceRegistry.setAccessFactory(new OsgiServiceRegistryAccessFactory(context));\r\n\r\n bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n\r\n // initialize parent temp directory root\r\n initializeParentTempDirectoryRoot(generalSettings.getTempDirectoryOverride());\r\n\r\n initializeInstanceTempDirectoryRoot();\r\n\r\n if (PROPERTY_SUBSTITUTION_MECHANISM_ENABLED) {\r\n initializePropertySubstitution();\r\n }\r\n }",
"private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tcontext = this;\n\t\tstartService();\n\t}",
"private void init()\n {\n SystrayActivator.bundleContext\n .addServiceListener(new ProtocolProviderServiceListener());\n \n ServiceReference[] protocolProviderRefs = null;\n try\n {\n protocolProviderRefs\n = SystrayActivator.bundleContext.getServiceReferences(\n ProtocolProviderService.class.getName(),null);\n }\n catch (InvalidSyntaxException ex)\n {\n // this shouldn't happen since we're providing no parameter string\n // but let's log just in case.\n logger .error(\"Error while retrieving service refs\", ex);\n return;\n }\n \n // in case we found any\n if (protocolProviderRefs != null)\n {\n \n for (int i = 0; i < protocolProviderRefs.length; i++)\n {\n ProtocolProviderService provider\n = (ProtocolProviderService) SystrayActivator.bundleContext\n .getService(protocolProviderRefs[i]);\n \n this.addAccount(provider);\n }\n }\n }",
"public void sbbActivate() {\n\t}",
"protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}",
"private void registerService() {\r\n DFAgentDescription desc = new DFAgentDescription();\r\n desc.setName(getAID());\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(SERVICE_TYPE);\r\n sd.setName(SERVICE_NAME);\r\n desc.addServices(sd);\r\n try {\r\n DFService.register(this, desc);\r\n } catch (FIPAException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }",
"@Override\n\tpublic void onTenantInitialActivation(int tenantId) throws StratosException {\n\t}",
"public void start() {\n mStateMachine.sendMessage(SoftApStateMachine.CMD_START, mApConfig);\n }",
"private void initService() {\r\n\t}",
"public void activate() {\n\t\tpropertySupport.attachAll();\n\t}",
"public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }",
"public final void activate(){\n waitingToExecute = true;\n }",
"@Override\n public void activate(boolean status) {\n godPower.activate(status);\n }",
"@Override\n\tprotected void initAsService() {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Initiating service...\");\n\t\t}\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, 500, TimeUnit.MILLISECONDS);\n\t}",
"public PolicyServiceDelegate()\n {\n log.debug(\"\") ;\n log.debug(\"----\\\"----\") ;\n log.debug(\"PolicyServiceDelegate()\") ;\n try\n {\n service = getService(CommunityConfig.getServiceUrl());\n }\n catch(Exception e) {\n e.printStackTrace();\n service = null;\n }\n log.debug(\"----\\\"----\") ;\n log.debug(\"\") ;\n }"
] |
[
"0.6385781",
"0.63394463",
"0.63181734",
"0.6317195",
"0.6232299",
"0.62172294",
"0.61971974",
"0.6195615",
"0.61850584",
"0.6133997",
"0.61139673",
"0.61139673",
"0.59931463",
"0.59803706",
"0.59722465",
"0.59579766",
"0.59537524",
"0.59343094",
"0.59343094",
"0.593338",
"0.5928122",
"0.5872177",
"0.5865872",
"0.5859693",
"0.5859693",
"0.58277506",
"0.580531",
"0.5804289",
"0.5804289",
"0.5792245",
"0.577814",
"0.57357615",
"0.5730763",
"0.5723577",
"0.57174313",
"0.57024854",
"0.5695438",
"0.56789434",
"0.5672402",
"0.56537706",
"0.56414086",
"0.563525",
"0.56168365",
"0.5612857",
"0.55966735",
"0.5595429",
"0.5581936",
"0.5556106",
"0.55445266",
"0.5527369",
"0.5527312",
"0.5520127",
"0.5504783",
"0.5496123",
"0.5489967",
"0.5484233",
"0.548258",
"0.5444887",
"0.54364026",
"0.54307336",
"0.5421147",
"0.5408623",
"0.5401281",
"0.5388643",
"0.5376252",
"0.5375428",
"0.53740335",
"0.53666675",
"0.53484064",
"0.5347184",
"0.5347184",
"0.5347184",
"0.5336703",
"0.53356177",
"0.53336495",
"0.5333111",
"0.5330572",
"0.5321722",
"0.5320317",
"0.5311126",
"0.52878517",
"0.52825654",
"0.52810425",
"0.52796775",
"0.52702826",
"0.5269381",
"0.52595997",
"0.5251208",
"0.5238604",
"0.5234442",
"0.522297",
"0.5222125",
"0.5221427",
"0.52152616",
"0.52106047",
"0.5201793",
"0.5196873",
"0.5190137",
"0.51868546",
"0.51859546",
"0.51850283"
] |
0.0
|
-1
|
Overrides the superclass to add all Position and Measurement types of envelopes and to allow for triggering on eids.
|
@Override
public void add(Envelope envelope) {
if ((envelope.getValue() instanceof State) && (!triggerOnID)) {
if (state == null) {
if (((State) envelope.getValue()).getValue() == 1) {
forwardConditionMet();
}
} else if (state.equals(envelope.getValue())) {
forwardConditionMet();
}
} else if (envelope.getValue() instanceof Long) {
id = (Long) envelope.getValue();
log.debug(bundleMarker(), "Set id={}", id);
if (triggerOnID) {
forwardConditionMet();
}
} else {
log.warn(
bundleMarker(),
"id={}, scope={} has unsupported value of {}",
new Object[] { id, envelope.getScope(), envelope.getValue() });
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setEnvelope() {\n this.envelope = new Envelope(this.roomCards.get(0), this.weaponCards.get(0), this.suspectCards.get(0));\n }",
"public void setEnvelope(Envelope envelope) {\n this.envelope = envelope;\n }",
"public abstract SOAPEnvelope getEnvelope() throws SOAPException;",
"public AS2EnvelopeSettings() {\n }",
"public Envelope getEnvelope() {\n return envelope;\n }",
"public void add(XMLEvent event)\r\n throws XMLStreamException\r\n {\r\n if (!stripExistingQ3 || (!insideOldQ3AnalysisResult && !insideOldQ3AnalysisSummary))\r\n {\r\n//if (event.isStartElement()) System.err.println(\"adding Start \" + event.asStartElement().getName().getLocalPart());\r\n//else if (event.isEndElement()) System.err.println(\"adding End \" + event.asEndElement().getName().getLocalPart());\r\n//else System.err.println(\"*********adding unknown event \" + event.getEventType() + \", compare \" + XMLStreamConstants.START_ELEMENT +\",\"+ XMLStreamConstants.END_ELEMENT+\",\"+ XMLStreamConstants.CHARACTERS+\",\"+ XMLStreamConstants.ATTRIBUTE+\",\"+ XMLStreamConstants.NAMESPACE+\",\"+ XMLStreamConstants.PROCESSING_INSTRUCTION+\",\"+ XMLStreamConstants.COMMENT+\",\"+XMLStreamConstants.START_DOCUMENT+\",\"+ XMLStreamConstants.END_DOCUMENT+\",\"+ XMLStreamConstants.DTD);\r\n\r\n //dhmay adding a workaround here to avoid a nullpointerexception from super.add(),\r\n //specifically doWriteDefaultNs. Namespace can't be null, or wstx falls apart. This is apparently\r\n //addressed in version 3.2.3, so we can take out this hack when we upgrade.\r\n\r\n /**** mfitzgib 090326 -\r\n This work-around emits xmlns=\"\" namespaces on each\r\n start tag and doesn't seem to be needed even with\r\n Woodstox 3.2.1; delete this block when we upgrade\r\n to 3.2.8 and are feeling comparitively comfortable.\r\n if (event.isStartElement())\r\n {\r\n SimpleStartElement newStart = new SimpleStartElement(event.asStartElement().getName().getLocalPart());\r\n\r\n // getAttributes returns a non-genericized Iterator; OK\r\n @SuppressWarnings(\"unchecked\")\r\n Iterator<Attribute> attIter = event.asStartElement().getAttributes();\r\n\r\n boolean alreadyHasNS = false;\r\n while (attIter.hasNext())\r\n {\r\n Attribute attr = attIter.next();\r\n if (attr.getName().getLocalPart().equals(\"xmlns\"))\r\n {\r\n alreadyHasNS = true;\r\n break;\r\n }\r\n newStart.addAttribute(attr.getName().getLocalPart(), attr.getValue());\r\n }\r\n if (!alreadyHasNS)\r\n {\r\n newStart.addAttribute(\"xmlns\",\"\");\r\n event = newStart.getEvent();\r\n }\r\n }\r\n ****/\r\n super.add(event);\r\n }\r\n else\r\n {\r\n// System.err.println(\"SKIPPING \" + event.getEventType());\r\n// if (event.isStartElement())\r\n// System.err.println(\" (\" + event.asStartElement().getName() + \")\");\r\n }\r\n }",
"public void updateEnvelope(double value) {\n\t// Get the values of the individual sliders\n\t\tdouble attackValue = (double) attackSlider.getValue();\n\t\tdouble decayValue = (double) decaySlider.getValue();\n\t\tdouble sustainValue = (double) sustainSlider.getValue();\n\t\tdouble releaseValue = (double) releaseSlider.getValue();\n\t\tSystem.out.println(\"Attack value: \" + attackValue);\n\n\t\t// Place the values in a double array\n\t\tdouble[] envelopeData = {\n\t\t\t\tattackValue, 1.0,\n\t\t\t\tdecayValue, 0.6,\n\t\t\t\tsustainValue, 0.6,\n\t\t\t\treleaseValue, 0.0\n\t\t};\n\n\t\t// Update the envelope data of the instrument\n\t\tsynth.getSelectedInstrument().updateEnvelope(envelopeData);\n\t}",
"public Envelope getEnvelope() {\n return this.envelope;\n }",
"protected void createEnvelope(int id, int group, int inBus, int outBus,\n\t\t\tfloat amp) {\n\n\t\tObject args[] = new Object[12];\n\t\targs[0] = new String(\"ELenv\");\n\t\targs[1] = new Integer(id); // need a unique ID\n\t\targs[2] = new Integer(1); // add to tail of group\n\t\targs[3] = new Integer(group);\n\t\targs[4] = new String(\"inBus\");\n\t\targs[5] = new Integer(inBus); // need a unique bus # here\n\t\targs[6] = new String(\"outChannel\");\n\t\targs[7] = new Integer(outBus);\n\t\targs[8] = new String(\"ampScale\");\n\t\targs[9] = new Float(amp);\n\n\t\tsendMessage(\"/s_new\", args);\n\n\t\t_nodeIdList.add(id);\n\t}",
"@Override\r\n protected void setPositionType(Collection<? extends Geometry> adds)\r\n {\n }",
"public Envelope getEnvelope( TYPE envType ) {\n if ( envType == TYPE.CENTER ) {\n return envelope;\n }\n // convert from internal TYPE.CENTER format to TYPE.OUTER\n return GeometryFactory.createEnvelope( envelope.getMin().getX() - resx / 2,\n envelope.getMin().getY() - resy / 2,\n envelope.getMax().getX() + resx / 2,\n envelope.getMax().getY() + resy / 2, envelope.getCoordinateSystem() );\n }",
"@Override\r\n\t@JsonIgnore\r\n\tpublic Geometry getEnvelope() {\n\t\treturn null;\r\n\t}",
"private static void addEventTypes(Configuration cepConfig) {\n\t cepConfig.addEventType(\"Batch\", Batch.class.getName());\n\t cepConfig.addEventType(\"Span\", Span.class.getName());\n\t cepConfig.addEventType(\"Process\", Process.class.getName());\n\t cepConfig.addEventType(\"Log\", Log.class.getName());\n\t cepConfig.addEventType(\"Tag\", Tag.class.getName());\n\t cepConfig.addEventType(\"SpanRef\", SpanRef.class.getName());\n\t \n\t // SOCKET events\n\t // Metrics -> JSON influxDB\n\t // Events -> Custom definition\n\t // We register metrics and events as objects the engine will have to handle\n\t cepConfig.addEventType(\"Metric\", Metric.class.getName());\n\t cepConfig.addEventType(\"Event\", Event.class.getName());\n\t\t\n\t}",
"private Equip(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public interface DocusignEnvelopeService {\n\t/**\n\t * Retrieves the envelope status by envelope id.\n\t *\n\t * @param envelopeId the envelope id\n\t * @param user the user executing the request\n\t * @return the envelope status\n\t */\n\tpublic EnvelopeStatus getEnvelopeStatus(String envelopeId, User user);\n\n\t/**\n\t * Retrieves envelope statuses for envelope within the current day.\n\t * \n\t * @param user the user to lookup envelope statuses in\n\t * @return a map of envelope ids to status codes\n\t * @throws DatatypeConfigurationException thrown if xml datatype cannot be created for request\n\t */\n\tpublic Map<String, EnvelopeStatusCode> getEnvelopeStatusesInLastDay(User user) throws DatatypeConfigurationException;\n\t\n\t/**\n\t * Retrieves a list of document pdfs linked to an envelope.\n\t *\n\t * @param envelopeId the envelope id\n\t * @param user the user executing the request\n\t * @return a list of document pdfs linked to and envelope\n\t */\n\tpublic List<DocumentPDF> getDocumentsForEnvelopeId(String envelopeId, User user);\n}",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"private void addEvent(SAXEventType eventType) {\n int eventTypeIndex = eventType.getIndex();\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Event type=\" + eventType.toString());\n }\n addInt(eventTypeIndex);\n lastEventType = eventType;\n\n if (recordPerEventLocation && eventType.supportsLocation() &&\n locator != null) {\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"writing Location information\");\n }\n\n addString(locator.getPublicId());\n addString(locator.getSystemId());\n addInt(locator.getLineNumber());\n addInt(locator.getColumnNumber());\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"finished writing Location information\");\n }\n\n }\n\n complex |= eventType.isComplex();\n }",
"public MsgSubsidiaryType() {\r\n\t\tsuper();\r\n\t\t// _INDIVIDUALList = new ArrayList();\r\n\t\t_DEALERList = new ArrayList();\r\n\t}",
"private TradeMsgEvent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private JsonApiEnvelopeDeserializer() {\n super(JsonApiEnvelope.class);\n }",
"public SHPEnvelope getEnvelope() {\n return envelope;\n }",
"public interface Envelope<N extends Node, M extends Message> {\n\n /**\n * Retrieves the message\n *\n * @return the message\n */\n M getMessage();\n\n /**\n * Retrieves the source originator\n * of the message.\n *\n * @return the source originator\n */\n N getOrigin();\n\n /**\n * Retrieves the target of the message.\n *\n * @return the target\n */\n N getTarget();\n\n}",
"public interface Extender {\n void extend(CustomEvent.Builder builder, Map<String, String> json, GoogleAnalyticsTracker tracker);\n }",
"@Override\n\tpublic void addInstrumentType(String type) {\n\t\t\n\t}",
"public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n innerTextBuilder.setLength(0);\r\n \r\n if(qName.equals(\"sensorgroup\")){\r\n int id = Integer.parseInt(atts.getValue(\"id\"));\r\n sensorGroup = new SensorGroup(id);\r\n sensorManager.addSensorGroup(id, sensorGroup);\r\n }\r\n else if(qName.equals(\"sensor\")){\r\n inSensor = true;\r\n int id = Integer.parseInt(atts.getValue(\"id\"));\r\n sensor = new Sensor(id);\r\n sensorGroup.addSensor(id, sensor);\r\n \r\n }\r\n else if(qName.equals(\"coordinates\")){\r\n double x = Double.parseDouble(atts.getValue(\"x\"));\r\n double y = Double.parseDouble(atts.getValue(\"y\"));\r\n double z = Double.parseDouble(atts.getValue(\"z\"));\r\n \r\n sensor.setX(x);\r\n sensor.setY(y);\r\n sensor.setZ(z);\r\n }\r\n \r\n \r\n \r\n \r\n }",
"public Envelope getEnvelope() {\r\n return (Envelope) envelope.clone();\r\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setEnvelopeVersion(java.lang.String value) {\n validate(fields()[12], value);\n this.envelopeVersion = value;\n fieldSetFlags()[12] = true;\n return this;\n }",
"public void setSOAPEnvelope(Message message, int counter, String sessionID,\n MessageContext msgCtx) throws AxisFault {\n\n if (log.isDebugEnabled()) {\n log.debug(\"Creating SOAP envelope for FIX message...\");\n }\n\n SOAPFactory soapFactory = new SOAP11Factory();\n OMElement msg = soapFactory.createOMElement(FIXConstants.FIX_MESSAGE, null);\n msg.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_MESSAGE_INCOMING_SESSION, null, sessionID));\n msg.addAttribute(soapFactory.createOMAttribute\n (FIXConstants.FIX_MESSAGE_COUNTER, null, String.valueOf(counter)));\n\n OMElement header = soapFactory.createOMElement(FIXConstants.FIX_HEADER, null);\n OMElement body = soapFactory.createOMElement(FIXConstants.FIX_BODY, null);\n OMElement trailer = soapFactory.createOMElement(FIXConstants.FIX_TRAILER, null);\n\n //process FIX header\n Iterator<Field<?>> iter = message.getHeader().iterator();\n if (iter != null) {\n while (iter.hasNext()) {\n Field<?> field = iter.next();\n OMElement msgField = soapFactory.createOMElement(FIXConstants.FIX_FIELD, null);\n msgField.addAttribute(soapFactory.\n createOMAttribute(FIXConstants.FIX_FIELD_ID, null, String.valueOf(field.getTag())));\n Object value = field.getObject();\n\n if (value instanceof byte[]) {\n DataSource dataSource = new ByteArrayDataSource((byte[]) value);\n DataHandler dataHandler = new DataHandler(dataSource);\n String contentID = msgCtx.addAttachment(dataHandler);\n OMElement binaryData = soapFactory.createOMElement(FIXConstants.FIX_BINARY_FIELD, null);\n String binaryCID = \"cid:\" + contentID;\n binaryData.addAttribute(FIXConstants.FIX_MESSAGE_REFERENCE, binaryCID, null);\n msgField.addChild(binaryData);\n } else {\n soapFactory.createOMText(msgField, value.toString(), OMElement.CDATA_SECTION_NODE);\n }\n header.addChild(msgField);\n }\n }\n //process FIX body\n iter = message.iterator();\n if (iter != null) {\n while (iter.hasNext()) {\n Field<?> field = iter.next();\n OMElement msgField = soapFactory.createOMElement(FIXConstants.FIX_FIELD, null);\n msgField.addAttribute(soapFactory.\n createOMAttribute(FIXConstants.FIX_FIELD_ID, null, String.valueOf(field.getTag())));\n Object value = field.getObject();\n if (value instanceof byte[]) {\n DataSource dataSource = new ByteArrayDataSource((byte[]) value);\n DataHandler dataHandler = new DataHandler(dataSource);\n String contentID = msgCtx.addAttachment(dataHandler);\n OMElement binaryData = soapFactory.createOMElement(FIXConstants.FIX_BINARY_FIELD, null);\n String binaryCID = \"cid:\" + contentID;\n binaryData.addAttribute(FIXConstants.FIX_MESSAGE_REFERENCE, binaryCID, null);\n msgField.addChild(binaryData);\n } else {\n soapFactory.createOMText(msgField, value.toString(), OMElement.CDATA_SECTION_NODE);\n }\n body.addChild(msgField);\n }\n }\n //process FIX trailer\n iter = message.getTrailer().iterator();\n if (iter != null) {\n while (iter.hasNext()) {\n Field<?> field = iter.next();\n OMElement msgField = soapFactory.createOMElement(FIXConstants.FIX_FIELD, null);\n msgField.addAttribute(soapFactory.\n createOMAttribute(FIXConstants.FIX_FIELD_ID, null, String.valueOf(field.getTag())));\n Object value = field.getObject();\n\n if (value instanceof byte[]) {\n DataSource dataSource = new ByteArrayDataSource((byte[]) value);\n DataHandler dataHandler = new DataHandler(dataSource);\n String contentID = msgCtx.addAttachment(dataHandler);\n OMElement binaryData = soapFactory.createOMElement(FIXConstants.FIX_BINARY_FIELD, null);\n String binaryCID = \"cid:\" + contentID;\n binaryData.addAttribute(FIXConstants.FIX_MESSAGE_REFERENCE, binaryCID, null);\n msgField.addChild(binaryData);\n } else {\n soapFactory.createOMText(msgField, value.toString(), OMElement.CDATA_SECTION_NODE);\n }\n trailer.addChild(msgField);\n }\n }\n\n msg.addChild(header);\n msg.addChild(body);\n msg.addChild(trailer);\n SOAPEnvelope envelope = soapFactory.getDefaultEnvelope();\n envelope.getBody().addChild(msg);\n msgCtx.setEnvelope(envelope);\n }",
"Object visitEnvelope(EnvelopeNode node, Object state);",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearEnvelopeVersion() {\n envelopeVersion = null;\n fieldSetFlags()[12] = false;\n return this;\n }",
"void initGrammarEvents() {\n\tg0.addProduction(new com.siemens.ct.exi.grammars.event.StartDocument(), g1);\n\tg1.addProduction(globalSE59, g2);\n\tg1.addProduction(globalSE62, g2);\n\tg1.addProduction(globalSE64, g2);\n\tg1.addProduction(globalSE66, g2);\n\tg1.addProduction(globalSE73, g2);\n\tg1.addProduction(globalSE75, g2);\n\tg1.addProduction(globalSE76, g2);\n\tg1.addProduction(globalSE78, g2);\n\tg1.addProduction(globalSE80, g2);\n\tg1.addProduction(globalSE82, g2);\n\tg1.addProduction(globalSE85, g2);\n\tg1.addProduction(globalSE91, g2);\n\tg1.addProduction(globalSE93, g2);\n\tg1.addProduction(globalSE95, g2);\n\tg1.addProduction(globalSE97, g2);\n\tg1.addProduction(globalSE101, g2);\n\tg1.addProduction(globalSE102, g2);\n\tg1.addProduction(globalSE104, g2);\n\tg1.addProduction(globalSE106, g2);\n\tg1.addProduction(globalSE109, g2);\n\tg1.addProduction(globalSE111, g2);\n\tg1.addProduction(globalSE113, g2);\n\tg1.addProduction(globalSE115, g2);\n\tg1.addProduction(globalSE119, g2);\n\tg1.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g2);\n\tg2.addProduction(new com.siemens.ct.exi.grammars.event.EndDocument(), g68);\n\tg3.addProduction(new com.siemens.ct.exi.grammars.event.StartDocument(), g4);\n\tg4.addProduction(globalSE59, g4);\n\tg4.addProduction(globalSE62, g4);\n\tg4.addProduction(globalSE64, g4);\n\tg4.addProduction(globalSE66, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc68, g7), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc69, g7), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc70, g27), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc72, g7), g4);\n\tg4.addProduction(globalSE73, g4);\n\tg4.addProduction(globalSE75, g4);\n\tg4.addProduction(globalSE76, g4);\n\tg4.addProduction(globalSE78, g4);\n\tg4.addProduction(globalSE80, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc81, g7), g4);\n\tg4.addProduction(globalSE82, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc84, g7), g4);\n\tg4.addProduction(globalSE85, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc87, g18), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc88, g18), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc89, g7), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc90, g7), g4);\n\tg4.addProduction(globalSE91, g4);\n\tg4.addProduction(globalSE93, g4);\n\tg4.addProduction(globalSE95, g4);\n\tg4.addProduction(globalSE97, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc99, g18), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc100, g7), g4);\n\tg4.addProduction(globalSE101, g4);\n\tg4.addProduction(globalSE102, g4);\n\tg4.addProduction(globalSE104, g4);\n\tg4.addProduction(globalSE106, g4);\n\tg4.addProduction(globalSE109, g4);\n\tg4.addProduction(globalSE111, g4);\n\tg4.addProduction(globalSE113, g4);\n\tg4.addProduction(globalSE115, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc117, g18), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc118, g18), g4);\n\tg4.addProduction(globalSE119, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc121, g9), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc122, g16), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc124, g18), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc125, g17), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc126, g9), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc127, g9), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc128, g7), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.EndDocument(), g68);\n\tg5.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc0, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g49);\n\tg6.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc84, g7), g71);\n\tg6.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc69, g7), g73);\n\tg6.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc128, g7), g74);\n\tg7.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryBase64Datatype(qnc61)), g69);\n\tg8.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g50);\n\tg8.addProduction(globalSE75, g79);\n\tg8.addProduction(globalSE76, g79);\n\tg8.addProduction(globalSE95, g79);\n\tg8.addProduction(globalSE119, g79);\n\tg8.addProduction(globalSE85, g79);\n\tg8.addProduction(globalSE97, g79);\n\tg8.addProduction(globalSE80, g79);\n\tg8.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g79);\n\tg8.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g99);\n\tg9.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.StringDatatype(qnc52)), g69);\n\tg10.addProduction(globalSE62, g80);\n\tg10.addProduction(globalSE91, g80);\n\tg10.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g80);\n\tg10.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g83);\n\tg11.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc81, g7), g81);\n\tg12.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc5, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g51);\n\tg12.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc6, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g52);\n\tg12.addProduction(globalSE115, g69);\n\tg12.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg13.addProduction(globalSE113, g85);\n\tg14.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc0, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g53);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc122, g16), g91);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc124, g18), g91);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc126, g9), g91);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc118, g18), g91);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc117, g18), g91);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g91);\n\tg16.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc121, g9), g88);\n\tg17.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.IntegerDatatype(qnc43)), g69);\n\tg18.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryBase64Datatype(qnc27)), g69);\n\tg19.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc87, g18), g93);\n\tg19.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc88, g18), g94);\n\tg20.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc99, g18), g96);\n\tg21.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g54);\n\tg21.addProduction(globalSE93, g103);\n\tg22.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g55);\n\tg22.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc5, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g56);\n\tg22.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc6, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g57);\n\tg22.addProduction(globalSE115, g100);\n\tg22.addProduction(globalSE64, g101);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc1, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g58);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g59);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc3, new com.siemens.ct.exi.datatype.StringDatatype(qnc52)), g49);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg24.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g60);\n\tg24.addProduction(globalSE111, g108);\n\tg25.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g61);\n\tg25.addProduction(globalSE59, g105);\n\tg26.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc0, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g62);\n\tg27.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.IntegerDatatype(qnc71)), g69);\n\tg28.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g63);\n\tg28.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryBase64Datatype(qnc27)), g69);\n\tg29.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g64);\n\tg29.addProduction(globalSE106, g113);\n\tg30.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g65);\n\tg30.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc4, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g66);\n\tg31.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.ListDatatype(new com.siemens.ct.exi.datatype.StringDatatype(qnc14), qnc13)), g69);\n\tg32.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.StringDatatype(qnc14)), g69);\n\tg33.addProduction(new com.siemens.ct.exi.grammars.event.AttributeGeneric(), g33);\n\tg33.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg33.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg33.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg34.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BooleanDatatype(qnc28)), g69);\n\tg35.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.NBitUnsignedIntegerDatatype(com.siemens.ct.exi.values.IntegerValue.valueOf(-128), com.siemens.ct.exi.values.IntegerValue.valueOf(127), qnc29)), g69);\n\tg36.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.date, qnc30)), g69);\n\tg37.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.dateTime, qnc31)), g69);\n\tg38.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DecimalDatatype(qnc32)), g69);\n\tg39.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.FloatDatatype(qnc33)), g69);\n\tg40.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gDay, qnc36)), g69);\n\tg41.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gMonth, qnc37)), g69);\n\tg42.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gMonthDay, qnc38)), g69);\n\tg43.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gYear, qnc39)), g69);\n\tg44.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gYearMonth, qnc40)), g69);\n\tg45.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryHexDatatype(qnc41)), g69);\n\tg46.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.UnsignedIntegerDatatype(qnc47)), g69);\n\tg47.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.time, qnc53)), g69);\n\tg48.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.NBitUnsignedIntegerDatatype(com.siemens.ct.exi.values.IntegerValue.valueOf(0), com.siemens.ct.exi.values.IntegerValue.valueOf(255), qnc55)), g69);\n\tg49.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg49.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg49.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg50.addProduction(globalSE75, g79);\n\tg50.addProduction(globalSE76, g79);\n\tg50.addProduction(globalSE95, g79);\n\tg50.addProduction(globalSE119, g79);\n\tg50.addProduction(globalSE85, g79);\n\tg50.addProduction(globalSE97, g79);\n\tg50.addProduction(globalSE80, g79);\n\tg50.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g79);\n\tg50.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g99);\n\tg51.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc6, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g52);\n\tg51.addProduction(globalSE115, g69);\n\tg51.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg52.addProduction(globalSE115, g69);\n\tg52.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg53.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc127, g9), g84);\n\tg53.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g84);\n\tg53.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg53.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g84);\n\tg54.addProduction(globalSE93, g103);\n\tg55.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc5, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g56);\n\tg55.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc6, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g57);\n\tg55.addProduction(globalSE115, g100);\n\tg55.addProduction(globalSE64, g101);\n\tg56.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc6, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g57);\n\tg56.addProduction(globalSE115, g100);\n\tg56.addProduction(globalSE64, g101);\n\tg57.addProduction(globalSE115, g100);\n\tg57.addProduction(globalSE64, g101);\n\tg58.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g59);\n\tg58.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc3, new com.siemens.ct.exi.datatype.StringDatatype(qnc52)), g49);\n\tg58.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg58.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg58.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg59.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc3, new com.siemens.ct.exi.datatype.StringDatatype(qnc52)), g49);\n\tg59.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg59.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg59.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg60.addProduction(globalSE111, g108);\n\tg61.addProduction(globalSE59, g105);\n\tg62.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc70, g27), g67);\n\tg62.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg62.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg62.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g106);\n\tg63.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryBase64Datatype(qnc27)), g69);\n\tg64.addProduction(globalSE106, g113);\n\tg65.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc4, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g66);\n\tg66.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg66.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g112);\n\tg67.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg67.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg67.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg69.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg70.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryBase64Datatype(qnc61)), g69);\n\tg71.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc90, g7), g72);\n\tg72.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc69, g7), g73);\n\tg72.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc128, g7), g74);\n\tg73.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc128, g7), g74);\n\tg74.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc72, g7), g75);\n\tg74.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc100, g7), g76);\n\tg74.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg75.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc100, g7), g76);\n\tg75.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg76.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc89, g7), g69);\n\tg77.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc84, g7), g71);\n\tg77.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc69, g7), g73);\n\tg77.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc128, g7), g74);\n\tg78.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.StringDatatype(qnc52)), g69);\n\tg79.addProduction(globalSE75, g79);\n\tg79.addProduction(globalSE76, g79);\n\tg79.addProduction(globalSE95, g79);\n\tg79.addProduction(globalSE119, g79);\n\tg79.addProduction(globalSE85, g79);\n\tg79.addProduction(globalSE97, g79);\n\tg79.addProduction(globalSE80, g79);\n\tg79.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g79);\n\tg79.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg79.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g79);\n\tg80.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg80.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g80);\n\tg81.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc68, g7), g69);\n\tg82.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc81, g7), g81);\n\tg83.addProduction(globalSE62, g80);\n\tg83.addProduction(globalSE91, g80);\n\tg83.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g80);\n\tg83.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g83);\n\tg84.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc127, g9), g84);\n\tg84.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g84);\n\tg84.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg84.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g84);\n\tg85.addProduction(globalSE113, g85);\n\tg85.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg86.addProduction(globalSE113, g85);\n\tg87.addProduction(globalSE115, g69);\n\tg87.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg88.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc125, g17), g69);\n\tg89.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.IntegerDatatype(qnc43)), g69);\n\tg90.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc121, g9), g88);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc122, g16), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc124, g18), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc126, g9), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc118, g18), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc117, g18), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc122, g16), g91);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc124, g18), g91);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc126, g9), g91);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc118, g18), g91);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc117, g18), g91);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g91);\n\tg93.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc88, g18), g94);\n\tg93.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g94);\n\tg93.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg94.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g94);\n\tg94.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg95.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc87, g18), g93);\n\tg95.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc88, g18), g94);\n\tg96.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc99, g18), g96);\n\tg96.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g97);\n\tg96.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg97.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc99, g18), g96);\n\tg97.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg98.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc99, g18), g96);\n\tg99.addProduction(globalSE75, g79);\n\tg99.addProduction(globalSE76, g79);\n\tg99.addProduction(globalSE95, g79);\n\tg99.addProduction(globalSE119, g79);\n\tg99.addProduction(globalSE85, g79);\n\tg99.addProduction(globalSE97, g79);\n\tg99.addProduction(globalSE80, g79);\n\tg99.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g79);\n\tg99.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g99);\n\tg100.addProduction(globalSE64, g101);\n\tg101.addProduction(globalSE66, g69);\n\tg102.addProduction(globalSE115, g100);\n\tg102.addProduction(globalSE64, g101);\n\tg103.addProduction(globalSE93, g103);\n\tg103.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg104.addProduction(globalSE93, g103);\n\tg105.addProduction(globalSE102, g104);\n\tg106.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc70, g27), g67);\n\tg106.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg106.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg106.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g106);\n\tg107.addProduction(globalSE59, g105);\n\tg108.addProduction(globalSE109, g109);\n\tg109.addProduction(globalSE73, g110);\n\tg109.addProduction(globalSE82, g110);\n\tg109.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg110.addProduction(globalSE82, g110);\n\tg110.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg111.addProduction(globalSE111, g108);\n\tg112.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg112.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g112);\n\tg113.addProduction(globalSE106, g113);\n\tg113.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg114.addProduction(globalSE106, g113);\n\tg115.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.ListDatatype(new com.siemens.ct.exi.datatype.StringDatatype(qnc14), qnc13)), g69);\n\tg116.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BooleanDatatype(qnc28)), g69);\n\tg117.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.NBitUnsignedIntegerDatatype(com.siemens.ct.exi.values.IntegerValue.valueOf(-128), com.siemens.ct.exi.values.IntegerValue.valueOf(127), qnc29)), g69);\n\tg118.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.date, qnc30)), g69);\n\tg119.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.dateTime, qnc31)), g69);\n\tg120.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DecimalDatatype(qnc32)), g69);\n\tg121.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.FloatDatatype(qnc33)), g69);\n\tg122.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gDay, qnc36)), g69);\n\tg123.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gMonth, qnc37)), g69);\n\tg124.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gMonthDay, qnc38)), g69);\n\tg125.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gYear, qnc39)), g69);\n\tg126.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gYearMonth, qnc40)), g69);\n\tg127.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryHexDatatype(qnc41)), g69);\n\tg128.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.UnsignedIntegerDatatype(qnc47)), g69);\n\tg129.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.time, qnc53)), g69);\n\tg130.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.NBitUnsignedIntegerDatatype(com.siemens.ct.exi.values.IntegerValue.valueOf(0), com.siemens.ct.exi.values.IntegerValue.valueOf(255), qnc55)), g69);\n\t/* END Grammar Events ----- */\n\n\t}",
"public AmishMart()\n {\n super(\"PokeMart\");\n\n eventArray[20][14] = new Teleport();\n eventArray[20][14].setCoord(5, 2, 18, 17);\n\n eventArray[15][13] = new ShopKeep();\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrder param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrder.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderID.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.DirectQuery param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.DirectQuery.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"public AttachedPartsStruct()\n\t{\n\t\tthis.station = new EnumHolder<>( StationEnum32.Nothing_Empty );\n\t\tthis.storeType = new EntityTypeStruct();\n\t\t\n\t\t// Add to the elements in the parent so that it can do its generic fixed-record stuff\n\t\tsuper.add( station );\n\t\tsuper.add( storeType );\n\t}",
"public java.lang.String getEnvelopeId() {\n return envelopeId;\n }",
"public java.lang.String getEnvelopeId() {\n return envelopeId;\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"@Override\r\n\t@JsonIgnore\r\n\tpublic Envelope getRawEnvelope() {\n\t\treturn null;\r\n\t}",
"@Override \n\t public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { \n\t \n\t\t //String val = atts.getValue(\"val\");\n\t\t //Log.d(\"startElement\", localName + \" : \" + val);\n\t\t \n\t\t if(localName.equalsIgnoreCase(AlarmItemContent.TAG)){\n\t\t\t\n\t\t\t AlarmItemContent vo = new AlarmItemContent();\n\t\t\t \n\t\t\t //if(atts.getValue(AlarmItemContent.prtPosition) != null)\n\t\t\t\t vo.setPosition( ++position ); // atts.getValue(AlarmItemContent.prtPosition)\n\t\t\t vo.setState(atts.getValue(AlarmItemContent.prtState)); // ALARMSTATETYPE_E_ON\n\t\t\t vo.setTime(atts.getValue(AlarmItemContent.prtTime));\n\t\t\t vo.setUri(atts.getValue(AlarmItemContent.prtURI));\n\t\t\t vo.setMetaData(atts.getValue(AlarmItemContent.prtMetaData));\n\t\t\t vo.setVolume(Integer.parseInt(atts.getValue(AlarmItemContent.prtVolume)));\n\t\t\t vo.setFreaquency(atts.getValue(AlarmItemContent.prtFrequency)); // ALARMFREQUENCYTYPE_E_ONCE\n\t\t\t \n\t\t\t _data.add(vo);\n\t\t\t \n\t\t } \n\t\t \n\t }",
"@Override\n public SoapEvent convertType(Event parent) {\n return new SoapEvent(parent);\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"@Override\n\tpublic void enqueue(ActorRef arg0, Envelope arg1) {\n\t\t\n\t}",
"public EtherpadExtension()\n {\n super(ELEMENT, NAMESPACE);\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfo param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfo.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"public void setEnvelopeDateTime(java.lang.String envelopeDateTime) {\r\n this.envelopeDateTime = envelopeDateTime;\r\n }",
"public void encode() {\r\n\t\tint len=4+4;//The four bytes of the header plus the reserved and Endpoint type\r\n\r\n\t\tswitch (generalizedendpointType){\r\n\t\tcase ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P:\r\n\t\t\ttry {\r\n\t\t\t\tp2pEndpoints.encode();\r\n\t\t\t} catch (PCEPProtocolViolationException 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\tlen=len+p2pEndpoints.getLength();\r\n\t\t\tbreak;\r\n\t\tcase ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2MP_NEW_LEAVES:\r\n\t\t\ttry {\r\n\t\t\t\tp2mpEndpoints.encode();\r\n\t\t\t} catch (PCEPProtocolViolationException 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\tlen=len+p2mpEndpoints.getLength();\r\n\t\t\tbreak;\r\n\t\tcase ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_ASSISTED_UNICAST:\r\n\t\t\ttry {\r\n\t\t\t\tassistedUnicastEndpoints.encode();\r\n\t\t\t} catch (PCEPProtocolViolationException 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\tlen=len+assistedUnicastEndpoints.getLength();\r\n\t\t\tbreak;\r\n\t\tcase ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_FULL_ANYCAST:\r\n\t\t\ttry {\r\n\t\t\t\tfullAnycastEndpoints.encode();\r\n\t\t\t} catch (PCEPProtocolViolationException 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\tlen=len+fullAnycastEndpoints.getLength();\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\r\n\r\n\t\tObjectLength=len;\r\n\t\tthis.object_bytes=new byte[ObjectLength];\r\n\t\tencode_header();\r\n\t\tthis.object_bytes[4]=0x00;\r\n\t\tthis.object_bytes[5]=0x00;\r\n\t\tthis.object_bytes[6]=(byte)((generalizedendpointType>>8)&0xFF);\r\n\t\tthis.object_bytes[7]=(byte)((generalizedendpointType)&0xFF);\r\n\t\t//log.warn(\"Generalized End Points TYPE:\"+generalizedendpointType);\r\n\t\t//log.warn(\"Generalized End Points LENGTH:\"+len);\r\n\t\t//System.arraycopy((byte)generalizedendpointType,0, this.object_bytes, 6, 2);\r\n\t\tint pos=8;\r\n\t\tif (generalizedendpointType==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2P ){\r\n\t\t\tSystem.arraycopy(p2pEndpoints.getBytes(),0, this.object_bytes, pos, p2pEndpoints.getLength());\r\n\t\t\tpos=pos+p2pEndpoints.getLength();\r\n\t\t}\r\n\r\n\t\tif (generalizedendpointType==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_P2MP_NEW_LEAVES){\r\n\t\t\tSystem.arraycopy(p2mpEndpoints.getBytes(),0, this.object_bytes, pos, p2mpEndpoints.getLength());\r\n\t\t\tpos=pos+p2mpEndpoints.getLength();\r\n\t\t}\r\n\r\n\t\tif (generalizedendpointType==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_ASSISTED_UNICAST){\r\n\t\t\tSystem.arraycopy(assistedUnicastEndpoints.getBytes(),0, this.object_bytes, pos, assistedUnicastEndpoints.getLength());\r\n\t\t\tpos=pos+assistedUnicastEndpoints.getLength();\r\n\t\t}\r\n\r\n\t\tif (generalizedendpointType==ObjectParameters.PCEP_GENERALIZED_END_POINTS_TYPE_FULL_ANYCAST){\r\n\t\t\tSystem.arraycopy(fullAnycastEndpoints.getBytes(),0, this.object_bytes, pos, fullAnycastEndpoints.getLength());\r\n\t\t\tpos=pos+fullAnycastEndpoints.getLength();\r\n\t\t}\r\n\r\n\t}",
"public EncodedDocumentToSpeech(Object[] data) {\n\t\tthis.method = (String) data[0];\n\t\tthis.data2[0] = (String) data[1];\n\t\tthis.data2[1] = (String) data[2];\n\t\tthis.data2[2] = (String) data[3];\n\t\tthis.data2[3] = (String) data[4];\n\t\tthis.data2[4] = (String) data[5];\n\t\tthis.data2[5] = (String) data[6];\n\t}",
"public TypesAxis() {\r\n\t\tsuper(AxisTypes.class);\r\n\t}",
"public void endElement(String uri, String localName, String qName) throws SAXException {\n \r\n if(qName.equals(\"sensor\")){\r\n inSensor = false;\r\n }\r\n else if(qName.equals(\"description\")){\r\n if(inSensor){\r\n sensor.setDescription(innerTextBuilder.toString());\r\n }\r\n else{\r\n sensorGroup.setDescription(innerTextBuilder.toString());\r\n }\r\n }\r\n else if(qName.equals(\"type\")){\r\n sensor.setType(innerTextBuilder.toString());\r\n }\r\n else if(qName.equals(\"floor\")){\r\n sensor.setFloor(innerTextBuilder.toString());\r\n }\r\n else if(qName.equals(\"room\")){\r\n sensor.setRoom(innerTextBuilder.toString());\r\n }\r\n else if(qName.equals(\"positiondescription\")){\r\n sensor.setPositionDescription(innerTextBuilder.toString());\r\n }\r\n \r\n \r\n \r\n }",
"@Override\r\n\tpublic void endElement(String uri, String localName, String qName)\r\n\t\t\tthrows SAXException {\n\t\tif(qName.equalsIgnoreCase(\"item\")){\r\n\t\t\t//tempEvent = new PragyanEventData();\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"item\")){\r\n\t\t\ttempEvent = new PragyanEventData();\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"itemname\")){\r\n\t\t\ttempEvent.setEventName(tempString);\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"one\")){\r\n\t\t\ttempEvent.setEventCaption(tempString);\r\n\t\t}\r\n\t\t\r\n\t\tif(qName.equalsIgnoreCase(\"imgurl\")){\r\n\t\t\ttempEvent.setEventImage(tempString);\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"starttime\")){\r\n\t\t\ttry { \r\n\t\t\t\t//Log.d(\"TIMESTART\", tempString);\r\n\t\t\t Date time = format.parse(dateWriter.toString()); \r\n\t\t\t \r\n\t\t\t tempEvent.addStartTime(time);\r\n\t\t\t\t\r\n\t\t\t\twritingDate = false;\r\n\t\t\t\tdateWriter.reset();\r\n\t\t\t} catch (java.text.ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\ttempString=\"\";\r\n\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tfinally{}\r\n\t\t}\r\n\t\t\r\n\t\tif(qName.equalsIgnoreCase(\"endtime\")){\r\n\t\t\ttry { \r\n\t\t\t\t//Log.d(\"TIMEEND\", tempString);\r\n\t\t\t Date time = format.parse(dateWriter.toString()); \r\n\t\t\t\ttempEvent.addEndTime(time);\r\n\t\t\t\ttempString=\"\";\r\n\t\t\t\twritingDate = false;\r\n\t\t\t\tdateWriter.reset();\r\n\r\n\t\t\t} catch (java.text.ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t//Log.d(\"ERROR\", tempEvent.getEventName());\r\n\t\t\t\t//Log.d(\"ERROR\", tempString);\r\n\t\t\t\ttempString=\"\";\r\n\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tfinally{}\r\n\t\t}\r\n\t\t\r\n\t\tif(qName.equalsIgnoreCase(\"children\")){\r\n\t\t\ttempEvent =stackEvents.pop();\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"main\")){\r\n\t\t\ttempEvent.addPageTitle(\"About\");\r\n\t\t\ttempString = tempString.replace(\"$$##$$\", \"\\n\");\r\n\t\t\ttempString = tempString.replace(\"$$!!$$\", \" \");\r\n\t\t\ttempString = tempString.replace(\"$$%%$$\", \" \");\r\n\t\t\t//Log.d(\"MAIN\",tempString);\r\n\t\t\ttempEvent.addPageContent(tempString);\r\n\t\t\tstartPage=false;\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"pagename\")){\r\n\t\t\tif(startPage){\r\n\t\t\t\t////Log.d(\"FIXIT\",tempString.trim());\r\n\t\t\t\ttempEvent.addPageTitle(tempString.trim());\r\n\t\t\t\ttempString=\"\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"pgimg\")){\r\n\t\t\tif(startPage){\r\n\t\t\t\ttempEvent.setEventSecondaryImage(rootUrl+tempString);\r\n\t\t\t\ttempString=\"\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"content\")){\r\n\t\t\t//Log.d(\"ACTION\",\"hit contentend\"+String.valueOf(startPage)+\":\"+tempString);\r\n\t\t\tif(startPage){\r\n\t\t\t\ttempEvent.addPageContent(charWriter.toString());\r\n\t\t\t\t////Log.d(\"CONT\",charWriter.toString());\r\n\t\t\t\ttempString=\"\";\r\n\t\t\t\tcharWriter.reset();\r\n\t\t\t\tstartContent = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(qName.equalsIgnoreCase(\"page\")){\r\n\t\t\t////Log.d(\"FOXIT\",\"pageend:\"+String.valueOf(tempEvent.pageTitles.size()));\r\n\t\t\tstartPage=false;\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic void startElement(String uri, String localName, String qName,\n\t\t\tAttributes atts) throws SAXException {\n\t\tbuilder.setLength(0);\n\t\tif (localName.equals(\"dimen\")) {\n\t\t\tconfigDimen = new ConfigDimen();\n\t\t\tbuilder.setLength(0);\n\t\t\tString name = atts.getValue(\"name\");\n\t\t\tString type = atts.getValue(\"type\");\n\t\t\tconfigDimen.name = name;\n\t\t\tconfigDimen.type = type;\n\t\t} else if (localName.equals(\"boolean\")) {\n\t\t\tconfigBoolean = new ConfigBoolean();\n\t\t\tconfigBoolean.name = atts.getValue(\"name\");\n\t\t} else if (localName.equals(\"interger\")) {\n\t\t\tString name = atts.getValue(\"name\");\n\t\t\tString value = atts.getValue(\"value\");\n\t\t\tString type = atts.getValue(\"type\");\n\t\t\tif (type == null || type.isEmpty() || type.equals(\"px\")) {\n\t\t\t\tmInteger.put(name, Integer.parseInt(value));\n\t\t\t} else if (type.equals(\"dp\") || type.equals(\"dip\")) {\n\t\t\t\tmInteger.put(name,\n\t\t\t\t\t\tTools.dip2px(mContext, Integer.parseInt(value)));\n\t\t\t}\n\t\t} else if (localName.equals(\"float\")) {\n\t\t\tString name = atts.getValue(\"name\");\n\t\t\tString value = atts.getValue(\"value\");\n\t\t\tString type = atts.getValue(\"type\");\n\t\t\tif (type == null || type.isEmpty() || type.equals(\"px\")) {\n\t\t\t\tmFloat.put(name, Float.parseFloat(value));\n\t\t\t} else if (type.equals(\"dp\") || type.equals(\"dip\")) {\n\t\t\t\tfinal float scale = appContext.mContainerContext.getResources()\n\t\t\t\t\t\t.getDisplayMetrics().density;\n\t\t\t\tmFloat.put(name, (Float.parseFloat(value) * scale));\n\t\t\t}\n\t\t} else if (localName.equals(\"string\")) {\n\t\t\tconfigString = new ConfigString();\n\t\t\tconfigString.name = atts.getValue(\"name\");\n\n\t\t} else if (localName.equals(\"string-array\")) {\n\t\t\tparentName = atts.getValue(\"name\");\n\t\t\tparentTag = \"string-array\";\n\t\t\tstringList = new ArrayList<String>();\n\t\t\tif (mStringArray.containsKey(parentName)) {\n\t\t\t\tmStringArray.remove(parentName);\n\t\t\t}\n\t\t} else if (localName.equals(\"item\")) {\n\t\t\tif (parentTag.equals(\"string-array\")) {\n\n\t\t\t}\n\t\t}\n\t}",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.InitializeHelloWorldWS param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.InitializeHelloWorldWS.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticated param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticated.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder clearEnvelopeId() {\n envelopeId = null;\n fieldSetFlags()[2] = false;\n return this;\n }",
"public DetonationPdu(edu.nps.moves.jaxb.dis.DetonationPdu x)\n {\n super(x); // Call superclass constructor\n\n\n edu.nps.moves.dis.EntityID foo_0;\n if(x.getMunitionID() == null)\n foo_0 = new edu.nps.moves.dis.EntityID();\n else\n foo_0 = new edu.nps.moves.dis.EntityID(x.getMunitionID() );\n this.setMunitionID(foo_0);\n\n\n edu.nps.moves.dis.EventID foo_1;\n if(x.getEventID() == null)\n foo_1 = new edu.nps.moves.dis.EventID();\n else\n foo_1 = new edu.nps.moves.dis.EventID(x.getEventID() );\n this.setEventID(foo_1);\n\n\n edu.nps.moves.dis.Vector3Float foo_2;\n if(x.getVelocity() == null)\n foo_2 = new edu.nps.moves.dis.Vector3Float();\n else\n foo_2 = new edu.nps.moves.dis.Vector3Float(x.getVelocity() );\n this.setVelocity(foo_2);\n\n\n edu.nps.moves.dis.Vector3Double foo_3;\n if(x.getLocationInWorldCoordinates() == null)\n foo_3 = new edu.nps.moves.dis.Vector3Double();\n else\n foo_3 = new edu.nps.moves.dis.Vector3Double(x.getLocationInWorldCoordinates() );\n this.setLocationInWorldCoordinates(foo_3);\n\n\n edu.nps.moves.dis.BurstDescriptor foo_4;\n if(x.getBurstDescriptor() == null)\n foo_4 = new edu.nps.moves.dis.BurstDescriptor();\n else\n foo_4 = new edu.nps.moves.dis.BurstDescriptor(x.getBurstDescriptor() );\n this.setBurstDescriptor(foo_4);\n\n this.detonationResult = x.getDetonationResult();\n this.numberOfArticulationParameters = x.getNumberOfArticulationParameters();\n this.pad = x.getPad();\n this.articulationParameters = new ArrayList();\n for(int idx = 0; idx < x.getArticulationParameters().size(); idx++)\n {\n this.articulationParameters.add( new edu.nps.moves.dis.ArticulationParameter((edu.nps.moves.jaxb.dis.ArticulationParameter) x.getArticulationParameters().get(idx)));\n }\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheck param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlementPrecheck.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){\r\n return factory.getDefaultEnvelope();\r\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){\r\n return factory.getDefaultEnvelope();\r\n }",
"private void serializeOutOfTypeSystemElements() throws SAXException {\n if (cds.marker != null) {\n return;\n }\n if (cds.sharedData == null) {\n return;\n }\n Iterator<OotsElementData> it = cds.sharedData.getOutOfTypeSystemElements().iterator();\n while (it.hasNext()) {\n OotsElementData oed = it.next();\n workAttrs.clear();\n // Add ID attribute\n addIdAttribute(workAttrs, oed.xmiId);\n\n // Add other attributes\n Iterator<XmlAttribute> attrIt = oed.attributes.iterator();\n while (attrIt.hasNext()) {\n XmlAttribute attr = attrIt.next();\n addAttribute(workAttrs, attr.name, attr.value);\n }\n // debug\n if (oed.elementName.qName.endsWith(\"[]\")) {\n Misc.internalError(new Exception(\n \"XMI Cas Serialization: out of type system data has type name ending with []\"));\n }\n // serialize element\n startElement(oed.elementName, workAttrs, oed.childElements.size());\n\n // serialize features encoded as child elements\n Iterator<XmlElementNameAndContents> childElemIt = oed.childElements.iterator();\n while (childElemIt.hasNext()) {\n XmlElementNameAndContents child = childElemIt.next();\n workAttrs.clear();\n Iterator<XmlAttribute> attrIter = child.attributes.iterator();\n while (attrIter.hasNext()) {\n XmlAttribute attr = attrIter.next();\n addAttribute(workAttrs, attr.name, attr.value);\n }\n\n if (child.contents != null) {\n startElement(child.name, workAttrs, 1);\n addText(child.contents);\n } else {\n startElement(child.name, workAttrs, 0);\n }\n endElement(child.name);\n }\n\n endElement(oed.elementName);\n }\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.Hello param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.Hello.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"public interface AddressedEnvelope<M, A extends SocketAddress> extends ReferenceCounted {\n M content();\n\n A recipient();\n\n AddressedEnvelope<M, A> retain();\n\n AddressedEnvelope<M, A> retain(int i);\n\n A sender();\n\n AddressedEnvelope<M, A> touch();\n\n AddressedEnvelope<M, A> touch(Object obj);\n}",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){\n return factory.getDefaultEnvelope();\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){\n return factory.getDefaultEnvelope();\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){\n return factory.getDefaultEnvelope();\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){\n return factory.getDefaultEnvelope();\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){\n return factory.getDefaultEnvelope();\n }",
"public interface EventDefinition extends EObject {\r\n}",
"com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest addNewEvSORequest();",
"private Encounter() {\n super(null,null);\n }",
"public WorldFile( double resx, double resy, double rotation1, double rotation2, Envelope envelope, TYPE type ) {\n this.resx = resx;\n this.resy = resy;\n this.rotation1 = rotation1;\n this.rotation2 = rotation2;\n if ( type == TYPE.CENTER ) {\n this.envelope = envelope;\n } else { // convert to internal TYPE.CENTER format\n this.envelope = GeometryFactory.createEnvelope( envelope.getMin().getX() + resx / 2,\n envelope.getMin().getY() + resy / 2,\n envelope.getMax().getX() - resx / 2,\n envelope.getMax().getY() - resy / 2,\n envelope.getCoordinateSystem() );\n }\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(sample.ws.HelloWorldWSStub.HelloAuthenticatedWithEntitlements.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"public static void main(String[] args) {\n\n // locale for inputting double values with dot delimiter\n Scanner scanner = new Scanner(System.in).useLocale(Locale.US);\n final String agreement = \"(?i)(y|yes)\";\n\n /*\n Array for temporary saving sides of both of envelopes.\n vertical side of A envelope = sides[0]\n horizontal side of A envelope = sides[1]\n vertical side of B envelope = sides[2]\n horizontal side of B envelope = sides[3]\n */\n double sides[] = new double[4];\n\n do {\n\n try {\n for (int i = 0; i < sides.length; i++) {\n switch (i) {\n case 0:\n System.out.print(\"\\nEnvelope A\\nVertical side: \");\n break;\n case 1:\n System.out.print(\"\\nHorizontal side: \");\n break;\n case 2:\n System.out.print(\"\\nEnvelope B\\nVertical side: \");\n break;\n case 3:\n System.out.print(\"\\nHorizontal side: \");\n }\n sides[i] = scanner.nextDouble();\n\n }\n\n\n Envelope envelopeA;\n Envelope envelopeB;\n envelopeA = Envelope.createEnvelope(sides[0], sides[1]);\n envelopeB = Envelope.createEnvelope(sides[2], sides[3]);\n\n if (envelopeA.isFitInto(envelopeB)) {\n System.out.println(\"\\nEnvelope A can be put in envelope B\\n\");\n } else if (envelopeB.isFitInto(envelopeA)) {\n System.out.println(\"\\nEnvelope B can be put in envelope A\\n\");\n } else {\n System.out.println(\"\\nNeither of them can fit into each other\\n\");\n }\n\n System.out.print(\"\\nWould you like to try again? \");\n } catch (NumberFormatException | InputMismatchException e) {\n System.out.println(\"Wrong arguments entered\");\n printInfo();\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n } while (scanner.next().matches(agreement));\n scanner.close();\n }",
"private void addXMLEventWriter(XMLEvent event) throws XMLStreamException {\n\n\t\tboolean in_doc_unit = cur_path.toString().contains(doc_unit_path);\n\n\t\tif (!in_doc_unit)\n\t\t\txml_writer.add(event);\n\n\t\telse if (no_document_key)\n\t\t\tinterim_events.add(event);\n\n\t\telse if (!omit_doc_unit) {\n\n\t\t\tif (interim_events.size() > 0) {\n\n\t\t\t\tinterim_events.forEach(_event -> {\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\txml_writer.add(_event);\n\n\t\t\t\t\t} catch (XMLStreamException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\t\t\tinterim_events.clear();\n\n\t\t\t}\n\n\t\t\txml_writer.add(event);\n\n\t\t}\n\n\t}",
"public OesMessageRecord() {\n super(OesMessage.OES_MESSAGE);\n }",
"@Override\r\n protected SimpleBody addObject(Entity e) {\n PhysicsShape ps = e.get(PhysicsShape.class);\r\n PhysicsMassType pmt = e.get(PhysicsMassType.class);\r\n Position pos = e.get(Position.class);\r\n\r\n // Right now only works for CoG-centered shapes \r\n SimpleBody newBody = createBody(e.getId(), pmt.getTypeName(ed), ps.getFixture(), true);\r\n\r\n newBody.setPosition(pos); //ES position: Not used anymore, since Dyn4j controls movement\r\n\r\n newBody.getTransform().setTranslation(pos.getLocation().x, pos.getLocation().y); //Dyn4j position\r\n newBody.getTransform().setRotation(pos.getRotation());\r\n\r\n newBody.setUserData(e.getId());\r\n\r\n newBody.setLinearDamping(0.3);\r\n\r\n return newBody;\r\n }",
"protected SOAPEnvelope getSOAPEnvelope() throws Exception {\n InputStream in = new ByteArrayInputStream(SOAPMSG.getBytes());\n Message msg = new Message(in);\n msg.setMessageContext(msgContext);\n return msg.getSOAPEnvelope();\n }",
"public void transmitEvents(){\n Log.info(\"Transmitting Events\", EventShare.class);\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n for(EventTrigger trigger : eventGroup.getValue()){\n if(trigger.getServer()!=this) { // do not send own events...\n if(trigger.getMethod()!=null){ // its a local event\n if(trigger.getMethod().isAnnotationPresent(ES.class)){\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }else {\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n }",
"@Override\n\tprotected void uGenerate(float[] channels) \n\t{\n\t\tif (!isTurnedOn)\n\t\t{\n\t\t\tfor(int i = 0; i < channelCount(); i++)\n\t\t\t{\n\t\t\t\tchannels[i] = beforeAmplitude*audio.getLastValues()[i];\n\t\t\t}\n\t\t}\n\t\t// after the envelope, just output the afterAmplitude*audio\n\t\telse if (timeFromOff > releaseTime)\n\t\t{\n\t\t\tfor(int i = 0; i < channelCount(); i++)\n\t\t\t{\n\t\t\t\tchannels[i] = afterAmplitude*audio.getLastValues()[i];\n\t\t\t}\t\n\t\t\tif ( unpatchAfterRelease )\n\t\t\t{\n\t\t\t if ( output != null )\n\t\t\t {\n\t\t\t unpatch( output );\n\t\t\t output = null;\n\t\t\t }\n\t\t\t if ( ugenOutput != null )\n\t\t\t {\n\t\t\t unpatch( ugenOutput );\n\t\t\t ugenOutput = null;\n\t\t\t }\n\t\t\t unpatchAfterRelease = false;\n\t\t\t}\n\t\t}\n\t\t// inside the envelope\n\t\telse\n\t\t{\n\t\t\tif ((isTurnedOn) && (!isTurnedOff))\n\t\t\t{\n\t\t\t\t// ATTACK\n\t\t\t\tif (timeFromOn <= attackTime)\n\t\t\t\t{\n\t\t\t\t\t// use time remaining until maxAmplitude to change amplitude\n\t\t\t\t\tfloat timeRemain = (attackTime - timeFromOn);\n\t\t\t\t\tamplitude += (maxAmplitude - amplitude)*timeStepSize/timeRemain;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// DECAY\n\t\t\t\telse if ((timeFromOn > attackTime) && (timeFromOn <= (attackTime+decayTime)))\n\t\t\t\t{\n\t\t\t\t\t// use time remaining until sustain to change to sustain level\n\t\t\t\t\tfloat timeRemain = (attackTime + decayTime - timeFromOn);\n\t\t\t\t\tamplitude += (sustainLevel*maxAmplitude - amplitude)*timeStepSize/timeRemain;\t\t\t\n\t\t\t\t}\n\t\t\t\t// SUSTAIN\n\t\t\t\telse if (timeFromOn > (attackTime+decayTime))\n\t\t\t\t{\n\t\t\t\t\t// hold the sustain level\n\t\t\t\t\tamplitude = sustainLevel*maxAmplitude;\n\t\t\t\t}\n\t\t\t\ttimeFromOn += timeStepSize;\n\t\t\t}\n\t\t\t// RELEASE\n\t\t\telse //isTurnedOn and isTurnedOFF and timeFromOff < releaseTime\n\t\t\t{\n\t\t\t\t// use remaining time to get to afterAmplitude\n\t\t\t\tfloat timeRemain = (releaseTime - timeFromOff);\n\t\t\t\tamplitude += (afterAmplitude - amplitude)*timeStepSize/timeRemain;\n\t\t\t\ttimeFromOff += timeStepSize;\n\t\t\t}\n\t\t\t// finally multiply the input audio to generate the output\n\t\t\tfor(int i = 0; i < channelCount(); i++)\n\t\t\t{\n\t\t\t\tchannels[i] = amplitude*audio.getLastValues()[i];\n\t\t\t}\t\t\n\t\t}\n\t}",
"public interface Event {\n public static final String NAMESPACE = \"http://purl.org/NET/c4dm/event.owl#\";\n\n // classes\n public static final URI\n Event = new URIImpl(NAMESPACE + \"Event\"),\n Factor = new URIImpl(NAMESPACE + \"Factor\"),\n Product = new URIImpl(NAMESPACE + \"Product\");\n\n // properties\n public static final URI\n agent = new URIImpl(NAMESPACE + \"agent\"),\n agent_in = new URIImpl(NAMESPACE + \"agent_in\"),\n factor = new URIImpl(NAMESPACE + \"factor\"),\n factor_of = new URIImpl(NAMESPACE + \"factor_of\"),\n hasAgent = new URIImpl(NAMESPACE + \"hasAgent\"),\n hasFactor = new URIImpl(NAMESPACE + \"hasFactor\"),\n hasLiteralFactor = new URIImpl(NAMESPACE + \"hasLiteralFactor\"),\n hasProduct = new URIImpl(NAMESPACE + \"hasProduct\"),\n hasSubEvent = new URIImpl(NAMESPACE + \"hasSubEvent\"),\n isAgentIn = new URIImpl(NAMESPACE + \"isAgentIn\"),\n isFactorOf = new URIImpl(NAMESPACE + \"isFactorOf\"),\n literal_factor = new URIImpl(NAMESPACE + \"literal_factor\"),\n place = new URIImpl(NAMESPACE + \"place\"),\n producedIn = new URIImpl(NAMESPACE + \"producedIn\"),\n produced_in = new URIImpl(NAMESPACE + \"produced_in\"),\n product = new URIImpl(NAMESPACE + \"product\"),\n sub_event = new URIImpl(NAMESPACE + \"sub_event\"),\n time = new URIImpl(NAMESPACE + \"time\");\n}",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderIDForPayment param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(org.pahospital.www.radiologyservice.RadiologyServiceStub.RadiologyOrderIDForPayment.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setSenderAddressEnvelopeLevel2(java.lang.String value) {\n validate(fields()[28], value);\n this.senderAddressEnvelopeLevel2 = value;\n fieldSetFlags()[28] = true;\n return this;\n }",
"@Test\n public void writeOptions() {\n GeoPackageWriter writer = new GeoPackageWriter(WKB.Endian.Little, GeoPackage.EnvelopeType.NoEnvelope);\n String hex = writer.writeToHex(new Point(Coordinate.create2D(31.19999710971274, -26.466667461352472), Dimension.Two, \"4326\"));\n assertEquals(\"47500001000010E60101000020E6100000C082B50233333F40C09DCC8477773AC0\".toUpperCase(), hex);\n // Big / No Envelope\n writer = new GeoPackageWriter(WKB.Endian.Big, GeoPackage.EnvelopeType.NoEnvelope);\n hex = writer.writeToHex(new Point(Coordinate.create2D(31.19999710971274, -26.466667461352472), Dimension.Two, \"4326\"));\n assertEquals(\"47500000000010E60020000001000010E6403F333302B582C0C03A777784CC9DC0\".toUpperCase(), hex);\n\n // Little / Envelope\n writer = new GeoPackageWriter(WKB.Endian.Little, GeoPackage.EnvelopeType.Envelope);\n hex = writer.writeToHex(new Point(Coordinate.create2D(31.19999710971274, -26.466667461352472), Dimension.Two, \"4326\"));\n assertEquals(\"47500003000010E6403F333302B582C0403F333302B582C0C03A777784CC9DC0C03A777784CC9DC00101000020E6100000C082B50233333F40C09DCC8477773AC0\".toUpperCase(), hex);\n // Big / Envelope\n writer = new GeoPackageWriter(WKB.Endian.Big, GeoPackage.EnvelopeType.Envelope);\n hex = writer.writeToHex(new Point(Coordinate.create2D(31.19999710971274, -26.466667461352472), Dimension.Two, \"4326\"));\n assertEquals(\"47500002000010E6403F333302B582C0403F333302B582C0C03A777784CC9DC0C03A777784CC9DC00020000001000010E6403F333302B582C0C03A777784CC9DC0\".toUpperCase(), hex);\n\n // Little / Envelope Z\n writer = new GeoPackageWriter(WKB.Endian.Little, GeoPackage.EnvelopeType.EnvelopeZ);\n hex = writer.writeToHex(new Point(Coordinate.create3D(31.19999710971274, -26.466667461352472, 145.54), Dimension.Three, \"4326\"));\n assertEquals(\"47500005000010E6403F333302B582C0403F333302B582C0C03A777784CC9DC0C03A777784CC9DC040623147AE147AE140623147AE147AE101010000A0E6100000C082B50233333F40C09DCC8477773AC0E17A14AE47316240\".toUpperCase(), hex);\n // Big / Envelope Z\n writer = new GeoPackageWriter(WKB.Endian.Big, GeoPackage.EnvelopeType.EnvelopeZ);\n hex = writer.writeToHex(new Point(Coordinate.create3D(31.19999710971274, -26.466667461352472, 145.54), Dimension.Three, \"4326\"));\n assertEquals(\"47500004000010E6403F333302B582C0403F333302B582C0C03A777784CC9DC0C03A777784CC9DC040623147AE147AE140623147AE147AE100A0000001000010E6403F333302B582C0C03A777784CC9DC040623147AE147AE1\".toUpperCase(), hex);\n\n // Little / Envelope M\n writer = new GeoPackageWriter(WKB.Endian.Little, GeoPackage.EnvelopeType.EnvelopeM);\n hex = writer.writeToHex(new Point(Coordinate.create2DM(31.19999710971274, -26.466667461352472, 145.54), Dimension.TwoMeasured, \"4326\"));\n assertEquals(\"47500007000010E6403F333302B582C0403F333302B582C0C03A777784CC9DC0C03A777784CC9DC040623147AE147AE140623147AE147AE10101000060E6100000C082B50233333F40C09DCC8477773AC0E17A14AE47316240\".toUpperCase(), hex);\n // Big / Envelope M\n writer = new GeoPackageWriter(WKB.Endian.Big, GeoPackage.EnvelopeType.EnvelopeM);\n hex = writer.writeToHex(new Point(Coordinate.create2DM(31.19999710971274, -26.466667461352472, 145.54), Dimension.TwoMeasured, \"4326\"));\n assertEquals(\"47500006000010E6403F333302B582C0403F333302B582C0C03A777784CC9DC0C03A777784CC9DC040623147AE147AE140623147AE147AE10060000001000010E6403F333302B582C0C03A777784CC9DC040623147AE147AE1\".toUpperCase(), hex);\n\n // Little / Envelope 3DM\n writer = new GeoPackageWriter(WKB.Endian.Little, GeoPackage.EnvelopeType.EnvelopeZM);\n hex = writer.writeToHex(new Point(Coordinate.create3DM(31.19999710971274, -26.466667461352472, 145.54, 25.98), Dimension.ThreeMeasured, \"4326\"));\n assertEquals(\"47500009000010E6403F333302B582C0403F333302B582C0C03A777784CC9DC0C03A777784CC9DC040623147AE147AE140623147AE147AE14039FAE147AE147B4039FAE147AE147B01010000E0E6100000C082B50233333F40C09DCC8477773AC0E17A14AE473162407B14AE47E1FA3940\".toUpperCase(), hex);\n // Big / Envelope 3DM\n writer = new GeoPackageWriter(WKB.Endian.Big, GeoPackage.EnvelopeType.EnvelopeZM);\n hex = writer.writeToHex(new Point(Coordinate.create3DM(31.19999710971274, -26.466667461352472, 145.54, 25.98), Dimension.ThreeMeasured, \"4326\"));\n assertEquals(\"47500008000010E6403F333302B582C0403F333302B582C0C03A777784CC9DC0C03A777784CC9DC040623147AE147AE140623147AE147AE14039FAE147AE147B4039FAE147AE147B00E0000001000010E6403F333302B582C0C03A777784CC9DC040623147AE147AE14039FAE147AE147B\".toUpperCase(), hex);\n }",
"public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setEnvelopeId(java.lang.String value) {\n validate(fields()[2], value);\n this.envelopeId = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"@Override\n protected void initEventAndData() {\n }",
"public void buildPartyAudio(int quantity){\r\n if(quantity != 0){\r\n eventRoomItems.addItem(itemFactory.constructPartyAudio());\r\n }\r\n else{\r\n eventRoomItems.addItem(null);\r\n }\r\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetTerminalCardType param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetTerminalCardType.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"private void initialiseEventAliases() {\n eventAliases.put(\"entity\", EntityEvent.class);\n eventAliases.put(\"entityc\", EntityCombustEvent.class);\n eventAliases.put(\"entitydbb\", EntityDamageByBlockEvent.class);\n eventAliases.put(\"entitydbe\", EntityDamageByEntityEvent.class);\n eventAliases.put(\"entitydbp\", EntityDamageByProjectileEvent.class);\n eventAliases.put(\"entityd\", EntityDamageEvent.class);\n eventAliases.put(\"entitye\", EntityExplodeEvent.class);\n }",
"@Override\n public void send(Envelope envelope) throws IOException {\n sentEnvelopes.add(envelope);\n \n if (onSentCallback != null) {\n Thread t = new Thread(onSentCallback);\n t.start();\n }\n }",
"public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n/* 47 */ String thisElement = qName;\n/* 48 */ if (thisElement != null) {\n/* 49 */ this.elNames.push(thisElement);\n/* */ \n/* 51 */ if (thisElement.equals(\"methodResponse\")) {\n/* 52 */ this.objects.push(new MethodResponse());\n/* 53 */ } else if (thisElement.equals(\"params\")) {\n/* 54 */ this.objects.push(new Params());\n/* 55 */ } else if (thisElement.equals(\"param\")) {\n/* 56 */ this.objects.push(new Param());\n/* 57 */ } else if (thisElement.equals(\"value\")) {\n/* 58 */ this.objects.push(new Value());\n/* 59 */ } else if (thisElement.equals(\"array\")) {\n/* 60 */ this.objects.push(new Array());\n/* 61 */ } else if (thisElement.equals(\"data\")) {\n/* 62 */ this.objects.push(new Data());\n/* 63 */ } else if (thisElement.equals(\"struct\")) {\n/* 64 */ this.objects.push(new Struct());\n/* 65 */ } else if (thisElement.equals(\"member\")) {\n/* 66 */ this.objects.push(new Member());\n/* 67 */ } else if (thisElement.equals(\"fault\")) {\n/* 68 */ this.objects.push(new Fault());\n/* */ } \n/* */ } \n/* */ }",
"public DocumentElement EventInterested(ArrayList<Event> interestedEvents) {\n\t\tif (interestedEvents.size() != 0) {\n\t\t\tNPPhraseSpec s11 = nlgFactory.createNounPhrase(pronoun);\n\t\t\t\n\t\t\tSPhraseSpec s = new SPhraseSpec(nlgFactory);\n\t\t\ts.setVerb(\"is interested\");\n\t\n\t\t\tSPhraseSpec s1 = new SPhraseSpec(nlgFactory);\n\t\t\ts1.setVerb(\"go\");\n\t\t\ts1.setFeature(Feature.FORM, Form.GERUND);\n\t\n\t\t\tPPPhraseSpec p1 = new PPPhraseSpec(nlgFactory);\n\t\t\tp1.addComplement(s1);\n\t\t\tp1.setPreposition(\"in\");\n\t\t\ts.addModifier(p1); \n\t\n\t\t\tPPPhraseSpec p2 = new PPPhraseSpec(nlgFactory);\n\t\t\tp2.addComplement(\"events\");\n\t\t\tp2.setPreposition(\"to\");\n\t\t\ts1.addModifier(p2); \n\t\n\t\t\tCoordinatedPhraseElement obj = nlgFactory.createCoordinatedPhrase();\n\t\t\tfor (int i = 0; i < interestedEvents.size(); i++) {\n\t\t\t\tNPPhraseSpec object1 = nlgFactory.createNounPhrase(interestedEvents.get(i).getName());\n\t\t\t\tString location = generateLocation(interestedEvents.get(i).getLocation());\n\t\n\t\t\t\tif (!(\"\").equals(location)) {\n\t\t\t\t\tPPPhraseSpec pp = new PPPhraseSpec(nlgFactory);\n\t\t\t\t\tpp.addComplement(location);\n\t\t\t\t\tpp.setPreposition(\"in\");\n\t\t\t\t\tobject1.addComplement(pp);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tobj.addCoordinate(object1); \n\t\t\t}\n\t\n\t\t\tp2.addPostModifier(obj);\n\t\t\tobj.addPreModifier(\"such as\");\n\t\t\t\n\t\t\ts11.addPostModifier(s);\n\t\t\t\n\t\t\treturn nlgFactory.createSentence(s11);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"private void fillEmbeddedTypes() {\n List<String> otherClassesNames = new ArrayList<>(PRIMITIVE_TYPES);\n otherClassesNames.add(\"[]\");\n otherClassesNames.add(\"...\");\n\n List<TypeConstructor> otherClasses = new ArrayList<>();\n for (String type : otherClassesNames) {\n Classifier classifier = new Classifier(type, Language.JAVA, \"\", null, new ArrayList<MemberEntity>(), \"\");\n otherClasses.add(classifier);\n QualifiedName name = new QualifiedName(OTHER_PACKAGE, type);\n classes.put(name, classifier);\n parameters.put(name, new ParametersDescription());\n superTypes.put(name, new ArrayList<JavaType>());\n createClassMaps(name);\n }\n\n PackageEntity otherPackage = new PackageEntity(OTHER_PACKAGE, Language.JAVA, otherClasses,\n new ArrayList<MemberEntity>(), new ArrayList<PackageEntity>(), \"\", null);\n packages.put(OTHER_PACKAGE, otherPackage);\n\n for (TypeConstructor otherClass : otherClasses) {\n otherClass.setContainingPackage(otherPackage);\n }\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.AddUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.AddUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCard param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.TerminalReturnCard.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }",
"public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}",
"@Override\r\n protected SimpleBody addObject(Entity e) {\n PhysicsShape ps = e.get(PhysicsShape.class);\r\n PhysicsMassType pmt = e.get(PhysicsMassType.class);\r\n Position pos = e.get(Position.class);\r\n\r\n // Right now only works for CoG-centered shapes \r\n SimpleBody newBody = createStatic(e.getId(), pmt.getTypeName(ed), ps.getFixture(), true);\r\n\r\n newBody.setPosition(pos); //ES position: Not used anymore, since Dyn4j controls movement\r\n\r\n newBody.getTransform().setTranslation(pos.getLocation().x, pos.getLocation().y); //Dyn4j position\r\n newBody.getTransform().setRotation(pos.getRotation());\r\n\r\n newBody.setUserData(e.getId());\r\n\r\n newBody.setLinearDamping(0.3);\r\n\r\n return newBody;\r\n }",
"private Event(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Event(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }"
] |
[
"0.6050284",
"0.5697936",
"0.5126551",
"0.50544274",
"0.5043509",
"0.49930328",
"0.4934741",
"0.49139762",
"0.48825184",
"0.4862691",
"0.4858354",
"0.4841546",
"0.48370582",
"0.48303938",
"0.4798459",
"0.47628406",
"0.46799448",
"0.46592638",
"0.46574646",
"0.46418583",
"0.46280754",
"0.45962474",
"0.45898083",
"0.45678046",
"0.45587775",
"0.45544288",
"0.45520172",
"0.45441684",
"0.45167074",
"0.451433",
"0.4493156",
"0.44830182",
"0.4471552",
"0.4452391",
"0.44405153",
"0.44377553",
"0.4420982",
"0.44166762",
"0.44144422",
"0.44038975",
"0.43911055",
"0.43744677",
"0.43682975",
"0.43582636",
"0.43518192",
"0.43486616",
"0.43454006",
"0.43453333",
"0.43413895",
"0.43385938",
"0.4337793",
"0.43341452",
"0.4330484",
"0.43263623",
"0.4322262",
"0.4319432",
"0.43184972",
"0.4314706",
"0.43097106",
"0.43097106",
"0.43039435",
"0.43034762",
"0.4303188",
"0.43001485",
"0.43001485",
"0.43001485",
"0.43001485",
"0.43001485",
"0.4299911",
"0.4281508",
"0.4280567",
"0.42796516",
"0.4276882",
"0.42751756",
"0.4274943",
"0.4272624",
"0.42671996",
"0.42646605",
"0.42601395",
"0.42525128",
"0.42515612",
"0.42465502",
"0.42440763",
"0.42390808",
"0.42381987",
"0.4231791",
"0.42260262",
"0.42211124",
"0.42196962",
"0.42143986",
"0.42047495",
"0.41948333",
"0.41936255",
"0.41893342",
"0.41879168",
"0.41856283",
"0.41745618",
"0.41726637",
"0.41694075",
"0.41694075"
] |
0.47665548
|
15
|
Output the event in an envelope that is tagged with the ID associated with the Transaction to the EventProducer
|
private void output(Animal animal) {
Envelope envelope = new BasicEnvelope(animal, id.toString(), scope);
transactionProducer.produce(envelope);
int i = totalAnimals.incrementAndGet();
lastEnvelope = envelope;
log.info(bundleMarker,
"Sent animal #{} of type={} and id={} to the producer service with scope {}",
new Object[] { i, animal.eClass().getName(), id, envelope.getScope() });
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void output(String scope, Measurement measurement, Long id){\n\t\tmeasurementTransaction = \n\t\t\tMeasurementTransaction.newInstance(measurement, scope, id);\n\t\t\n\t\tMap<String, Object> table = new HashMap<String, Object>();\n\t\ttable.put(IROUTER_PAYLOAD.toProp(),\n\t\t\t\tmeasurementTransaction);\n\t\ttable.put(Constants.BUNDLE_SYMBOLICNAME, \n\t\t\t\tFrameworkUtil.getBundle(this.getClass()).getSymbolicName());\n\t\t\n\t\tif(eventAdmin != null) {\n\t\t\teventAdmin.postEvent(\n\t\t\t\t\tnew Event(\n\t\t\t\t\t\t\tEVENT_ADMIN_TOPIC.toProp(), table));\n\t\t\tint i = totalMeasurements.incrementAndGet();\n\t\t\tlog.info(bundleMarker, \"{} sent {} #{} to the event service\",\n\t\t\t\t\tnew Object[] {this, measurementTransaction,i});\n\t\t}else{\n\t\t\tlog.warn(bundleMarker,\"{} failed to find EventAdmin service\",this);\n\t\t}\n\t}",
"public java.lang.String getEnvelopeId() {\n return envelopeId;\n }",
"public java.lang.String getEnvelopeId() {\n return envelopeId;\n }",
"protected void sequence_ALL_CURRENT_EVENTS_EXPIRED_OutputEventType_RAW(ISerializationContext context, OutputEventType semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"@Override\n public void writeTo(MwsWriter w) {\n w.write(\"http://mws.amazonservices.com/Finances/2015-05-01\", \"PayWithAmazonEvent\",this);\n }",
"void writeEvent (Event event) throws Exception {\n this.write(\"[event]\\n\");\n this.write(\"timeline \" + event.timeline.name + \"\\n\");\n this.write(\"name \" + event.name + \"\\n\");\n this.write(\"startDate \" + event.startDate[0] + \" \" + event.startDate[1] + \" \" + event.startDate[2] + \"\\n\");\n this.write(\"endDate \" + event.endDate[0] + \" \" + event.endDate[1] + \" \" + event.endDate[2] + \"\\n\");\n this.write(\"visible \" + (event.visible ? 1 : 0) + \"\\n\");\n this.write(event.notes + \"\\n[/event]\\n\");\n this.newLine();\n this.flush();\n }",
"public void printVenueCharges (Event _event) {\n\t}",
"public String toString() {\n StringBuffer buffer = new StringBuffer(\"\\t<semantic_event\");\n\n if (transactionId != null) {\n buffer.append(\" transaction_id=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(transactionId));\n buffer.append(\"\\\"\");\n }\n\n if (name != null) {\n buffer.append(\" name=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(name));\n buffer.append(\"\\\"\");\n }\n\n if (trigger != null) {\n buffer.append(\" trigger=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(trigger));\n buffer.append(\"\\\"\");\n }\n\n if (subtype != null) {\n buffer.append(\" subtype=\\\"\");\n buffer.append(LogFormatUtils.escapeAttribute(subtype));\n buffer.append(\"\\\"\");\n }\n\n buffer.append(\"/>\\n\");\n\n return buffer.toString();\n }",
"@Override\n public void emitEvent(int type, long id) {\n Tracer.emitEvent(id, type);\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn this.event;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId();\n\t}",
"public String getEventID(){\n return eventID;\n }",
"protected void sequence_Event(ISerializationContext context, Event semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"public void sendPurchaseHit() {\n\n // In production code, would need to iterate\n // over all the products in the cart\n // Here we assume that the currently selected dinner\n // is the only thing in the cart\n Product product = new Product()\n .setName(\"dinner\")\n .setPrice(5)\n .setVariant(thisDinner)\n .setId(thisDinnerId)\n .setQuantity(1);\n\n // Get a unique transaction ID\n String tID = Utility.getUniqueTransactionId(thisDinnerId);\n ProductAction productAction =\n new ProductAction(ProductAction.ACTION_PURCHASE)\n .setTransactionId(tID);\n\n Tracker tracker = ((MyApplication) getApplication()).getTracker();\n\n tracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Shopping steps\")\n .setAction(\"Purchase\")\n .setLabel(thisDinner)\n .addProduct(product)\n .setProductAction(productAction)\n .build());\n }",
"java.lang.String getTxId();",
"public String getEventId();",
"public java.lang.String getEventId() {\n return eventId;\n }",
"public java.lang.String getEventId() {\n return eventId;\n }",
"public TransactionEvent() {\n this.local = true;\n }",
"String getEventId();",
"String serialize(PushEventSource eventSource);",
"public int getEventID() {\r\n return eventID;\r\n }",
"public void send(EventStore es, Template template);",
"@Override\n\tpublic void processRequest(RequestEvent requestEvent) {\n\t\t requestEvent.getServerTransaction();\n\t\tSystem.out.println(\"Sending ------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"[]:\"+requestEvent.toString());\n\t}",
"@KafkaListener(topics = TW_SERVICE_TEMPLATE_EXAMPLE_TOPIC, containerFactory = EXAMPLE_CUSTOM_LISTENER)\n public void process(TemplateEvent event) {\n log.info(event.toString());\n }",
"public int getEventID()\n {\n return eventID;\n }",
"private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }",
"protected void printEvent(Event event) {\n System.out.println(\"\\t\" + event.getName());\n System.out.println(\"\\t\" + event.getDate().getDate());\n System.out.println(\"\\t\" + event.getTime().get12HTime());\n\n if (event.getDuration() != 0) {\n System.out.println(\"\\tFor \" + event.getDuration() + \" minutes\");\n }\n }",
"public String toStringEvent(String id){\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n String speakers = \"\";\n if (getEventSpeaker(id).size() != 0){\n if (getEventSpeaker(id).size() == 1){\n speakers = \", Speaker: \";\n }\n else{speakers = \", Speakers: \";}\n for (Speaker s: getEventSpeaker(id)){\n speakers += \" \" + s.getName() + \", \";\n }\n String line = \"Event: \" + getEvent(id).getTitle() + \", Room: \" +\n getEventRoom(id).getRoomName()\n + speakers + \"Starts at: \" + getEvent(id).getStartTime().format(formatter) + \", Ends at: \" +\n getEvent(id).getEndTime().format(formatter);\n if (getEvent(id).getVIPStatus()){\n line += \", VIP restricted event\";\n }\n return line;}\n else { String line = \"Event: \" + getEvent(id).getTitle() + \", Room: \" +\n getEventRoom(id).getRoomName()\n + \", Starts at: \" + getEvent(id).getStartTime().format(formatter) + \", Ends at: \" +\n getEvent(id).getEndTime().format(formatter);\n if (getEvent(id).getVIPStatus()){\n line += \", VIP restricted event\";\n }\n return line;\n }\n }",
"public long getEventId() {\n return eventId;\n }",
"public void sendEvent(Event event);",
"public Envelope getEnvelope() {\n return this.envelope;\n }",
"public void setEnvelope(Envelope envelope) {\n this.envelope = envelope;\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearTransactionId() {\n transactionId = null;\n fieldSetFlags()[24] = false;\n return this;\n }",
"@Override\n public Object getEvent() {\n return eventObj;\n }",
"@Override\n public String toString() {\n StringBuilder newString = new StringBuilder();\n newString.append(\"Event{\" +\n \"eventID: \" + eventID + \", \" +\n \"descendant: \" + descendant + \", \" +\n \"personID: \" + personID + \", \" +\n \"eventType: \" + eventType + \", latitude: \" + latitude +\n \", longitude: \" + longitude +\n \", country: \" + country +\n \", city: \" + city +\n \", year: \" + year + \"}\");\n return newString.toString();\n }",
"public void emit(String event, JsonObject jsonObject) {\n//\t\tif (ev == 'newListener') {\n//\t\t\treturn this.$emit.apply(this, arguments);\n//\t\t}\n\n\t\tJsonObject packet = new JsonObject();\n\t\tpacket.putString(\"type\", \"event\");\n\t\tpacket.putString(\"name\", event);\n\n//\t\tif ('function' == typeof lastArg) {\n//\t\t\tpacket.id = ++this.ackPackets;\n//\t\t\tpacket.ack = lastArg.length ? 'data' : true;\n//\t\t\tthis.acks[packet.id] = lastArg;\n//\t\t\targs = args.slice(0, args.length - 1);\n//\t\t}\n\t\tif(jsonObject != null) {\n\t\t\tJsonArray args = new JsonArray();\n\t\t\targs.addObject(jsonObject);\n\t\t\tpacket.putArray(\"args\", args);\n\t\t}\n\t\tthis.packet(packet);\n\t}",
"@EventHandler\n public void on(MoneyDepositedEvent event) {\n System.out.println(\"Received Event -> MoneyDepositedEvent\");\n }",
"private void persistEvent(Event event) {\n\t\tAssert.notNull(event, \"Event cannot be null persisting received JMS message\");\n\t\tList<EventAttribute> eventAttributes = event.getEventAttributes();\n\t\tfor (EventAttribute eventAttribute : eventAttributes) {\n\t\t\tlog.debug(\n\t\t\t\t\t\"Recieved new via JMS Broker API an event for account number {} and tx amount of {} . About to persist it to the repository.\",\n\t\t\t\t\teventAttribute.getAccountNum(), eventAttribute.getTxAmount());\n\t\t\tevent.setApiType(JMS_BROKER);\n\t\t}\n\t\teventRepository.save(event);\n\t}",
"public void printTransaction() {\n\t\tdao.printTransaction();\r\n\t\t\r\n\t}",
"@Override\n public void publish(Event<? extends Enum, ?> event) {\n byte[] body = null;\n if (null == event) {\n log.error(\"Captured event is null...\");\n return;\n }\n if (event instanceof DeviceEvent) {\n body = bytesOf(MQUtil.json((DeviceEvent) event));\n } else if (event instanceof TopologyEvent) {\n body = bytesOf(MQUtil.json((TopologyEvent) event));\n } else if (event instanceof LinkEvent) {\n body = bytesOf(MQUtil.json((LinkEvent) event));\n } else {\n log.error(\"Invalid event: '{}'\", event);\n return;\n }\n processAndPublishMessage(body);\n }",
"public Integer getEventid() {\n return eventid;\n }",
"public Envelope getEnvelope() {\n return envelope;\n }",
"public void sendReceipt(ActionEvent event) throws IOException, FileNotFoundException, DocumentException {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\r\n HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();\r\n System.err.println(\"hahaha teest\");\r\n// thisOrder = (OrderEntity) event.getComponent().getAttributes().get(\"viewOrder\");\r\n System.out.println(\"No1: in sending invoice\" + thisOrder.getOrderId());\r\n billingSessionBean.createReceipt(thisOrder.getInvoice().getInvoiceId(), currentDate);\r\n thisOrder.setStatus(\"ReceiptSent\");\r\n orderSessionBean.updateOrder(thisOrder);\r\n double amount = thisOrder.getSalePrice();\r\n int receivable = billingSessionBean.viewAccount(2).getId();\r\n int cash = billingSessionBean.viewAccount(1).getId();\r\n System.out.println(\"whats the price now? and account\" + amount + receivable + cash);\r\n billingSessionBean.receivePayment(amount, cash);\r\n billingSessionBean.postPayment(amount, receivable);\r\n System.out.println(\"NO2: After confirming\" + thisOrder.getStatus());\r\n fBEmailSessionBean.sendReceipt(thisOrder.getEmail(), thisOrder.getInvoice().getReceipt());\r\n }",
"public Receipt recordTransaction(Transaction t) throws RemoteException;",
"public String updateEvent(Event event)\n {\n em.merge(event);\n return (\"Event updatet\");\n }",
"public String getTxid() {\n return txid;\n }",
"public void setEventID(String eventID){\n this.eventID = eventID;\n }",
"public TransactionOutput(PublicKey reciepient, String msg, String parentTransactionId) {\n\t\tthis.reciepient = reciepient;\n\t\tthis.msg = msg;\n\t\tthis.parentTransactionId = parentTransactionId;\n\t\tthis.id = StringUtil.applySha256(StringUtil.getStringFromKey(reciepient)+msg+parentTransactionId);\n\t}",
"Event persist(String origin, String aggregateId, String type, String payload);",
"public String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId() {\n return transactionId;\n }",
"public Object getEvent() {\r\n return event;\r\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setTransactionId(java.lang.String value) {\n validate(fields()[24], value);\n this.transactionId = value;\n fieldSetFlags()[24] = true;\n return this;\n }",
"byte[] writeEvent(ProcessInstance processInstance, Object value) throws IOException;",
"public Event publish(Address resource, String event, int expires, Content body);",
"public final String getEventType() {\n return this.id;\n }",
"public String getTransactionId() {\n return this.transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"@Override\n\tpublic String formatEvent(Event event) {\n\t\treturn event.getStartingTime() + \":00 - \"\n\t\t\t + event.getEndingTime() + \":00: \" + event.getEventName() + '\\n';\n\t}",
"XMLSecEvent processEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException;",
"Object visitEnvelope(EnvelopeNode node, Object state);",
"public String getEvent() {\n return this.event;\n }",
"@Override\r\n\tpublic Long getEventId() {\n\t\treturn null;\r\n\t}",
"public Object getEventSubject() {\n return eventSubject;\n }",
"@Override \r\n\tpublic String toString(){\r\n\t\t\r\n\t\treturn transCode + id;\r\n\t}",
"public java.lang.String getTransactionId() {\r\n return transactionId;\r\n }",
"@MessagingGateway(defaultRequestChannel = \"eventOutput\")\ninterface EventWriter {\n\n @Gateway(requestChannel = \"eventOutput\")\n void writeEvent(Event event);\n}",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public java.lang.String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionID() {\n\t return this.transactionID;\n\t}",
"@SagaEventHandler(associationProperty = \"transferId\")\n public void on(MoneyTransferCancelledEvent event) {\n end();\n }",
"protected String getTransactionId() {\n return transactionId;\n }",
"public String getTransactionId()\n\t{\n\t\treturn transactionId;\n\t}",
"@Override\n public String toString() {\n StringBuffer buf = new StringBuffer(\"TriggerEvent{name=\");\n buf.append(name).append(\",type=\").append(type);\n if (payload != null) {\n buf.append(\",payload=\").append(payload.toString());\n }\n buf.append(\"}\");\n return String.valueOf(buf);\n }",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public String getTransactionId() {\n\t\treturn transactionId;\n\t}",
"public void transmitEvents(){\n Log.info(\"Transmitting Events\", EventShare.class);\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n for(EventTrigger trigger : eventGroup.getValue()){\n if(trigger.getServer()!=this) { // do not send own events...\n if(trigger.getMethod()!=null){ // its a local event\n if(trigger.getMethod().isAnnotationPresent(ES.class)){\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }else {\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n }",
"public void printCurrentTransaction() {\n\t\tregister[registerSelected].printCurrentTransaction();\n\t}",
"String getTransactionId();",
"String getTransactionId();",
"private String distributionEnvelopeWrap(String m, String id, String profileId)\n throws Exception {\n\n StringBuilder sb = new StringBuilder(distributionEnvelopeTemplate);\n substitute(sb, \"__SOAP_ACTION__\", soapaction);\n substitute(sb, \"__TRACKING_ID__\", trackingId);\n if (profileId == null) {\n substitute(sb, \"__PROFILEID__\", \"\");\n } else {\n StringBuilder sbProfile = new StringBuilder(\" profileid=\\\"\");\n sbProfile.append(profileId);\n sbProfile.append(\"\\\"\");\n substitute(sb, \"__PROFILEID__\", sbProfile.toString());\n }\n // Initial version: Address list and Sender address are always empty\n if (datasource.hasValue(id, \"__RTR_ADDR_1__\")) {\n StringBuilder sbaddr = new StringBuilder();\n sbaddr.append(\"<itk:addresslist>\");\n sbaddr.append(makeAddress(id, \"__RTR_ADDR_1__\", \"__RTR_ADDR_OID_1__\"));\n sbaddr.append(makeAddress(id, \"__RTR_ADDR_2__\", \"__RTR_ADDR_OID_2__\"));\n sbaddr.append(makeAddress(id, \"__RTR_ADDR_3__\", \"__RTR_ADDR_OID_3__\"));\n sbaddr.append(\"</itk:addresslist>\");\n substitute(sb, \"__ADDRESS_LIST__\", sbaddr.toString());\n } else {\n substitute(sb, \"__ADDRESS_LIST__\", \"\");\n }\n if (datasource.hasValue(id, \"__SNDR_ADDR__\")) {\n StringBuilder sndr = new StringBuilder(\"<itk:senderAddress uri=\\\"\");\n sndr.append(datasource.getValue(id, \"__SNDR_ADDR__\"));\n sndr.append(\"\\\"\");\n if (datasource.hasValue(id, \"__SNDR_ADDR_OID__\")) {\n sndr.append(\" type=\\\"\");\n sndr.append(datasource.getValue(id, \"__SNDR_ADDR_OID__\"));\n sndr.append(\"\\\"\");\n }\n sndr.append(\"/>\\n\");\n substitute(sb, \"__SENDER_ADDRESS__\", sndr.toString());\n } else {\n substitute(sb, \"__SENDER_ADDRESS__\", \"\");\n }\n if (auditIdentity == null) {\n substitute(sb, \"__OID__\", \"\");\n substitute(sb, \"__AUDIT_IDENTITY__\", \"\");\n } else if (auditIdentity.contains(\"/\")) {\n substitute(sb, \"__OID__\", auditIdentity.substring(0, auditIdentity.indexOf(\"/\")));\n substitute(sb, \"__AUDIT_IDENTITY__\", auditIdentity.substring(auditIdentity.indexOf(\"/\")));\n } else {\n substitute(sb, \"__OID__\", \"\");\n substitute(sb, \"__AUDIT_IDENTITY__\", auditIdentity);\n }\n\n StringBuilder handlingSpec = new StringBuilder(\"<itk:handlingSpecification>\");\n boolean handlingSpecPopulated = false;\n for (int i = 1; i <= 3; i++) {\n if (datasource.hasValue(id, \"__HND_SPEC_\" + i + \"__\")) {\n if (!datasource.getValue(id, \"__HND_SPEC_\" + i + \"__\").isEmpty()) {\n handlingSpec.append(makeHandlingSpecification(id, \"__HND_SPEC_\" + i + \"__\", \"__HND_SPEC_TYPE_\" + i + \"__\"));\n handlingSpecPopulated = true;\n }\n }\n }\n handlingSpec.append(\"</itk:handlingSpecification>\");\n\n if (handlingSpecPopulated) {\n substitute(sb, \"__HANDLING_SPECIFICATION__\", handlingSpec.toString());\n } else {\n substitute(sb, \"__HANDLING_SPECIFICATION__\", \"\");\n }\n String payloadId = Template.resolveDataValue(\"__UCASE_UUID__\");\n substitute(sb, \"__PAYLOAD_ID__\", payloadId);\n if (mimetype == null) {\n substitute(sb, \"__MIME_TYPE__\", XML_MIMETYPE);\n } else {\n substitute(sb, \"__MIME_TYPE__\", mimetype);\n }\n substitute(sb, \"__BASE64__\", base64 ? \"base64=\\\"true\\\"\" : \"\");\n substitute(sb, \"__COMPRESSED__\", compress ? \"compressed=\\\"true\\\"\" : \"\");\n substitute(sb, \"__PAYLOAD__\", m);\n return sb.toString();\n }",
"public void translateTo(PriceEvent event, long sequence, String msg) {\n\t\t}",
"protected void createEnvelope(int id, int group, int inBus, int outBus,\n\t\t\tfloat amp) {\n\n\t\tObject args[] = new Object[12];\n\t\targs[0] = new String(\"ELenv\");\n\t\targs[1] = new Integer(id); // need a unique ID\n\t\targs[2] = new Integer(1); // add to tail of group\n\t\targs[3] = new Integer(group);\n\t\targs[4] = new String(\"inBus\");\n\t\targs[5] = new Integer(inBus); // need a unique bus # here\n\t\targs[6] = new String(\"outChannel\");\n\t\targs[7] = new Integer(outBus);\n\t\targs[8] = new String(\"ampScale\");\n\t\targs[9] = new Float(amp);\n\n\t\tsendMessage(\"/s_new\", args);\n\n\t\t_nodeIdList.add(id);\n\t}",
"public void askForEventID() {\n System.out.println(\"What is the event ID?\");\n }",
"@EventHandler\n public void on(MoneyWithdrawnEvent event) {\n System.out.println(\"Received Event -> MoneyWithdrawnEvent\");\n }",
"@Override\n public void author(SinkEventAttributes attributes)\n {\n }",
"protected void forward(IAnnounceEvent event){\r\n \t\ttry {\r\n \t\t\t_wrappedOut.write(event.getSerial());\r\n \t\t\t_output.writeASE(event.toSExp());\r\n \t\t} catch (IOException e) {\r\n \t\t\tSystem.err.println(\"Failed forwarding the message:\\n\"+event.toSExp()+\"\\nbecause: \"+e.getMessage());\r\n \t\t}\r\n \t}",
"public int getTransactionId() {\n return transactionId;\n }",
"public void print(StringBuffer toStringBuffer) {\n\ttoStringBuffer.append(\"Container Transaction: \").append(this.getTransactionAttribute()).append(\"@\").append(this.getDescription());\n }",
"UUID getTransactionId();",
"@Override\r\n\tpublic String toStringFormat() {\n\t\treturn transactionId + \" \" + merhcantId\r\n\t\t\t\t+ \" \" + transactionVolume + \" \" + transactionAmount\r\n\t\t\t\t+ \" \" + transactionDate+\"\\n\";\r\n\t}",
"private void encode(BsonWriter writer, AppendEvent event) {\n writer.writeStartDocument();\n safeWriteString(writer, EventContainer.FIELD_PATH, event.getPath());\n writer.writeEndDocument();\n }",
"@Override\n\tprotected void encode(ChannelHandlerContext ctx, Envelope env, ByteBuf out) throws Exception {\n\t\t// (1) header (48 bytes)\n\t\t// --------------------------------------------------------------------\n\t\tout.writeInt(MAGIC_NUMBER); // 4 bytes\n\n\t\tif (out.getInt(out.writerIndex()-4) != MAGIC_NUMBER) {\n\t\t\tthrow new RuntimeException();\n\t\t}\n\n\t\tout.writeInt(env.getSequenceNumber()); // 4 bytes\n\t\tenv.getJobID().writeTo(out); // 16 bytes\n\t\tenv.getSource().writeTo(out); // 16 bytes\n\t\tout.writeInt(env.getEventsSerialized() != null ? env.getEventsSerialized().remaining() : 0); // 4 bytes\n\t\tout.writeInt(env.getBuffer() != null ? env.getBuffer().size() : 0); // 4 bytes\n\t\t// --------------------------------------------------------------------\n\t\t// (2) events (var length)\n\t\t// --------------------------------------------------------------------\n\t\tif (env.getEventsSerialized() != null) {\n\t\t\tout.writeBytes(env.getEventsSerialized());\n\t\t}\n\n\t\t// --------------------------------------------------------------------\n\t\t// (3) buffer (var length)\n\t\t// --------------------------------------------------------------------\n\t\tif (env.getBuffer() != null) {\n\t\t\tBuffer buffer = env.getBuffer();\n\t\t\tout.writeBytes(buffer.getMemorySegment().wrap(0, buffer.size()));\n\n\t\t\t// Recycle the buffer from OUR buffer pool after everything has been\n\t\t\t// copied to Nettys buffer space.\n\t\t\tbuffer.recycleBuffer();\n\t\t}\n\t}",
"String evel_json_encode_event()\r\n\t {\r\n\t\tEVEL_ENTER();\r\n\t\t\r\n\t\tassert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t \r\n\t JsonObject obj = Json.createObjectBuilder()\r\n\t \t .add(\"event\", Json.createObjectBuilder()\r\n\t\t \t .add( \"commonEventHeader\",eventHeaderObject() )\r\n\t\t \t .add( \"thresholdCrossingAlert\",evelThresholdCrossingObject() )\r\n\t\t \t ).build();\r\n\r\n\t EVEL_EXIT();\r\n\t \r\n\t return obj.toString();\r\n\r\n\t }",
"protected abstract String transactionContextMessage();",
"public void addStartElement(final String pTagName) throws XMLStreamException {\n\t\tfinal XMLEvent tmpEvent = eventFactory.createStartElement(StringUtils.EMPTY, StringUtils.EMPTY, pTagName);\n\t\twriter.add(tmpEvent);\n\t\twriter.flush();\n\t}",
"void publish(Event event) throws PublishingException;",
"public void audit( String message )\n {\n _getAuditLogger().info( ILogger.EVENT_CODE.TRANSACTION, message );\n }"
] |
[
"0.5746264",
"0.54423183",
"0.54031336",
"0.5400106",
"0.52861905",
"0.52574027",
"0.52113414",
"0.5199271",
"0.5170505",
"0.5128102",
"0.5123317",
"0.5019437",
"0.50020826",
"0.4983364",
"0.49581844",
"0.49239928",
"0.49131384",
"0.4890231",
"0.4886977",
"0.48704824",
"0.48514882",
"0.48432416",
"0.48214942",
"0.48174995",
"0.48164862",
"0.47990716",
"0.47912228",
"0.47892773",
"0.4775023",
"0.47607216",
"0.4749851",
"0.4738457",
"0.4731155",
"0.47226888",
"0.4693074",
"0.46929672",
"0.46912122",
"0.46887812",
"0.46866533",
"0.46790338",
"0.46774575",
"0.46668553",
"0.46586296",
"0.46581325",
"0.46506995",
"0.46481723",
"0.4641887",
"0.4638878",
"0.46346614",
"0.46249354",
"0.46236446",
"0.46236446",
"0.46222216",
"0.4617586",
"0.46111444",
"0.45990515",
"0.4598637",
"0.45755315",
"0.45740625",
"0.45740625",
"0.45697096",
"0.45681006",
"0.45671713",
"0.456564",
"0.45569175",
"0.45430627",
"0.452943",
"0.45283487",
"0.45168757",
"0.45153072",
"0.45153072",
"0.45142534",
"0.4511281",
"0.45054543",
"0.45035985",
"0.44985074",
"0.4496838",
"0.4496838",
"0.44940168",
"0.44914368",
"0.44896123",
"0.44896123",
"0.44813952",
"0.44801503",
"0.4480097",
"0.44739133",
"0.44733077",
"0.44699395",
"0.44604775",
"0.4450367",
"0.44473556",
"0.44468567",
"0.44462675",
"0.44429293",
"0.44428837",
"0.44407898",
"0.4439445",
"0.44379652",
"0.44363555",
"0.44331735"
] |
0.5762931
|
0
|
use ASTParse to parse string
|
protected void parse(ComponentInstance componentInstance) {
try {
componentInstance.clearDependencies();
ICompilationUnit element = (ICompilationUnit) JavaCore.create(componentInstance.getResource());
ASTParser parser = ASTParser.newParser(AST.JLS8);
parser.setSource(element);
parser.setKind(ASTParser.K_COMPILATION_UNIT);
parser.setResolveBindings(true);
final CompilationUnit cu = (CompilationUnit) parser.createAST(null);
componentInstance.setCompilationUnitAST(cu);
componentInstance.setType(element.getTypes()[0]);// TODO - Considera apenas um tipo por arquivo...
ASMLReosurceJavaVisitor reosurceJavaVisitor = asmlContext.getReosurceJavaVisitor();
reosurceJavaVisitor.setComponentInstance(componentInstance);
reosurceJavaVisitor.setProject(iProject);
cu.accept(reosurceJavaVisitor);
} catch (JavaModelException e) {
e.printStackTrace();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void parse(String string) {\n\t\t\n\t}",
"public abstract T parse(String str);",
"public abstract T parse(String s);",
"public static Expr parse(String str) {\r\n\t\tExprBinary at = new ExprBinary(null, null); // the root of the tree\r\n\t\tStringBuilder opstore = new StringBuilder(); // stores operator characters\r\n\t\tStringBuilder adder = new StringBuilder(); // stores value characters\r\n\t\tboolean text = false; // whether inside of a string\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tboolean add = (c != '\\\\'); // whether to add the char to adder. ignore escape char\r\n\t\t\tboolean leftSide = (opstore.length() == 0); // whether on the left side of the binary expression (before the operator)\r\n\t\t\tString adderStr = adder.toString();\r\n\t\t\tString opStr = opstore.toString();\r\n\r\n\t\t\tif (c == '\"') { // string\r\n\t\t\t\tif (i == 0 || str.charAt(i - 1) != '\\\\') {\r\n\t\t\t\t\ttext = !text; // ignore string contents\r\n\t\t\t\t}\r\n\t\t\t} else if (!text) {\r\n\t\t\t\tif (c == ' ') {\r\n\t\t\t\t\tadd = false; // ignore spaces\r\n\t\t\t\t} else if (c == '(') { // grouping or function\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tString contents = str.substring(i + 1, closeIndex);\r\n\t\t\t\t\tExpr group; // the expression denoted by the parentheses group\r\n\r\n\t\t\t\t\tif (i > 0 && (!isReserved(str.charAt(i - 1)) || str.charAt(i - 1) == ')')) { // function\r\n\t\t\t\t\t\tif (adderStr.isEmpty()) { // function reference call ... func()()\r\n\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(null, contents); // a reference call is only a parameter group, null name\r\n\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t} else { // function call\r\n\t\t\t\t\t\t\tif (adderStr.startsWith(\".\")) { // function sub call ... func().subfunc()\r\n\t\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t\t} else { // standalone function ... func()\r\n\t\t\t\t\t\t\t\tif (Character.toString(adderStr.charAt(0)).equals(Operator.REF.op)) { // @func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprFuncRef(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\t} else { // func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprCall(adderStr, contents);\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} else { // parenthetical grouping\r\n\t\t\t\t\t\tchar cc = (adderStr.length() == 1 ? adderStr.charAt(0) : 0); // operator before parenthesis ... !()\r\n\t\t\t\t\t\tif (isReserved(cc)) { // operation on the group\r\n\t\t\t\t\t\t\tgroup = new ExprUnary(Operator.get(Character.toString(cc)), parse(contents));\r\n\t\t\t\t\t\t} else { // ignore character, not an operator\r\n\t\t\t\t\t\t\tgroup = parse(contents);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add to tree\r\n\t\t\t\t\tif (leftSide) at.setLeft(group);\r\n\t\t\t\t\telse at.setRight(group);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (c == '{') { // array initializer ... {}\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tExpr arr = new ExprArray(str.substring(i + 1, closeIndex), adderStr);\r\n\r\n\t\t\t\t\tif (adderStr.length() == 1 && isReserved(adderStr.charAt(0))) {\r\n\t\t\t\t\t\t// unary op done on array initializer ... !{}\r\n\t\t\t\t\t\tarr = new ExprUnary(Operator.get(Character.toString(adderStr.charAt(0))), arr);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (leftSide) at.setLeft(arr);\r\n\t\t\t\t\telse at.setRight(arr);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (isOp(c)) { // operator\r\n\t\t\t\t\t// add value used in operation to tree\r\n\t\t\t\t\tif (!adderStr.isEmpty()) {\r\n\t\t\t\t\t\tif (leftSide) { // ex: adderStr + ___\r\n\t\t\t\t\t\t\tat.setLeft(parseValue(adderStr));\r\n\t\t\t\t\t\t} else { // ex: (___ + adderStr) + ___\r\n\t\t\t\t\t\t\tat.setRight(parseValue(adderStr));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opStr.equals(\"\") || (i > 0 && isOp(str.charAt(i - 1)))) { // accumulate operator from adjacent operator characters (ex: != consists of ! and =)\r\n\t\t\t\t\t\tif (!(adderStr.isEmpty() && (opStr + c).equals(\"-\")) && (Operator.get(opStr + c) != null || (opStr.isEmpty() && isOp(c)))) {// if the operator exists, then it is an operator character\r\n\t\t\t\t\t\t\tif (opStr.equals(\"-\") && c == '-') { // this and the above line handle negatives and double negatives\r\n\t\t\t\t\t\t\t\topStr = \"+\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topStr += c;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // existing operator operation must be added to tree ... in \"(a + b) * c\", \"(a+b)\" must be abstracted-out so we get \"x * c\"\r\n\t\t\t\t\t\tint endIndex = i + 1; // end index of operator\r\n\r\n\t\t\t\t\t\t// get entire operator if operator is more than 1 character long\r\n\t\t\t\t\t\tfor (int i2 = endIndex; i2 < str.length(); i2++) {\r\n\t\t\t\t\t\t\tif (isOp(str.charAt(i2))) endIndex++;\r\n\t\t\t\t\t\t\telse break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOperator nextOp = Operator.get(str.substring(i, endIndex)); // second (right-most) operator\r\n\t\t\t\t\t\tat.op = Operator.get(opStr); // first (left-most) operator\r\n\r\n\t\t\t\t\t\t// group values in operation by operator precedence\r\n\t\t\t\t\t\tint p1 = precedence(nextOp); // right-most op\r\n\t\t\t\t\t\tint p2 = precedence(at.op); // left-most op\r\n\r\n\t\t\t\t\t\tif (p1 > p2) { // group around the right-most op\r\n\t\t\t\t\t\t\tExprBinary right = new ExprBinary(at, nextOp);\r\n\t\t\t\t\t\t\tright.setLeft(at.right());\r\n\r\n\t\t\t\t\t\t\tat.setRight(right);\r\n\t\t\t\t\t\t\tat = right;\r\n\r\n\t\t\t\t\t\t} else if (p1 < p2) { // group around the left-most op\r\n\t\t\t\t\t\t\tExprBinary last = at;\r\n\t\t\t\t\t\t\tExprBinary match = at.parent();\r\n\r\n\t\t\t\t\t\t\t// correctly add to the binary tree based on precedence of operators\r\n\t\t\t\t\t\t\twhile (match instanceof ExprBinary && p1 < (p2 = precedence(((ExprBinary) match).op))) {\r\n\t\t\t\t\t\t\t\tlast = match;\r\n\t\t\t\t\t\t\t\tmatch = match.parent();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tExprBinary tr = new ExprBinary(match, nextOp);\r\n\t\t\t\t\t\t\ttr.setLeft(last);\r\n\r\n\t\t\t\t\t\t\tif (match != null) {\r\n\t\t\t\t\t\t\t\tif (last == match.right()) match.setRight(tr);\r\n\t\t\t\t\t\t\t\telse match.setLeft(tr);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tat = tr;\r\n\r\n\t\t\t\t\t\t} else { // group from left to right (equal operator precedence)\r\n\t\t\t\t\t\t\tExprBinary left = new ExprBinary(at, at.op); // group existing values into left node, add right to open right node spot\r\n\t\t\t\t\t\t\tleft.setLeft(at.left());\r\n\t\t\t\t\t\t\tleft.setRight(at.right());\r\n\r\n\t\t\t\t\t\t\tat.op = nextOp;\r\n\t\t\t\t\t\t\tat.setLeft(left);\r\n\t\t\t\t\t\t\tat.setRight(null);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\topStr = nextOp.op;\r\n\t\t\t\t\t\ti = endIndex - 1;\r\n\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// store valid value characters\r\n\t\t\tif (add) {\r\n\t\t\t\tadder.append(c);\r\n\r\n\t\t\t\t// if this is the last character, then add the stored value to the tree.\r\n\t\t\t\t// otherwise, would be incorrectly ignored because there is no next operator\r\n\t\t\t\tif (i + 1 == str.length()) {\r\n\t\t\t\t\tif (opstore.length() == 0) {\r\n\t\t\t\t\t\tat.setLeft(parseValue(adder.toString()));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tat.setRight(parseValue(adder.toString()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// initialize binary tree operator if not done so already\r\n\t\tif (at.op == null) {\r\n\t\t\tat.op = Operator.get(opstore.toString());\r\n\t\t}\r\n\r\n\t\t// after traversing the tree to some point, we need to get back to root so we can return the entire tree\r\n\t\twhile (at.parent() != null) {\r\n\t\t\tat = (ExprBinary) at.parent();\r\n\t\t}\r\n\r\n\t\t// the expression may not actually be a binary operation\r\n\t\tif (at.op == null && at.right() == NULL) {\r\n\t\t\tif (at.left() == NULL) return NULL; // the expression is empty\r\n\t\t\treturn at.left(); // the expression is a single value/unary-operation\r\n\t\t}\r\n\r\n\t\treturn at;\r\n\t}",
"protected abstract SimpleType doParseString(String s);",
"private SourceFile _parseString(String txt) throws ParseException {\n ACParser p = new ACParser(txt);\n return p.SourceFile();\n }",
"public StringParser getStringParser();",
"private GraphSprite parseGraph(String str) {\n ParseResult<GraphAST> result = GraphAST.parse(new StringSlice(str));\n if(result.success()) {\n GraphAST grAST = result.getAST();\n Debug.debugln(\"Parse success. Stringified version of result: \\n\" + grAST.stringify());\n return grAST.toGraph();\n }\n else {\n throw new CazgraphException(\"Could not parse graph: \" + result.getMessage());\n }\n }",
"public E parse(String argument);",
"@Test\n public void test() throws ParseException {\n String test1 = \"klasse Test{ voeruit() { getal number is 1; } }\";\n parse(test1, \"program\");\n }",
"public T parse(String value);",
"void Parse(Source source);",
"public void parse(Lexer lex);",
"public Parse(String str)\r\n {\r\n super(str);\r\n }",
"private static void treeApproach(String s) throws ParsingException {\n\t}",
"private static Expr parseValue(String string) {\r\n\t\tif (string.isEmpty()) return null;\r\n\r\n\t\tchar first = string.charAt(0);\r\n\t\tif (first != '\"' && first != '-' && isReserved(first)) {\r\n\t\t\treturn new ExprUnary(Operator.get(Character.toString(first)), new ExprVal(string.substring(1)));\r\n\t\t} else {\r\n\t\t\treturn new ExprVal(string);\r\n\t\t}\r\n\t}",
"void parse();",
"Object parse(String line) throws IOException, FSException {\n int oldLine=code.curLine;\n try {\n code.curLine=-1;\n code.forError=line;\n char[] chars=line.toCharArray();\n LineLoader.checkLine(chars);\n tok=new LexAnn(chars);\n tok.nextToken();\n // a script must always start with a word...\n try {\n parseStmt();\n } catch (RetException e) {\n return retVal;\n }\n } finally {\n code.curLine=oldLine;\n }\n return null;\n }",
"public Object parseValue(String expr);",
"public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }",
"private static Expression retrieveParseExpression(String expression) {\n return StaticJavaParser.parseExpression(expression);\n }",
"@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}",
"public IValuable parse(String value);",
"public Tree<String> parse(Tree<State> tree) {\n\t\tTree<String> parsed = null;\n\t\ttry { // do NOT expect it to crash\n\t\t\tviterbiParse(tree);\n\t\t\tparsed = StateTreeList.stateTreeToStringTree(tree, Inferencer.grammar.numberer);\n\t\t\tparsed = Inferencer.extractBestMaxRuleParse(chart, parsed.getYield());\n\t\t} catch (Exception e) {\n\t\t\tparsed = new Tree<String>(Inferencer.DUMMY_TAG);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn parsed;\n\t}",
"public Object parse(String arg) {\n return (arg);\n }",
"private String doParse(String inputText)\n\t{\n\t\tmakeParser(\"program test \" + inputText);\n\t\ttree = parser.dijkstraText();\n\t\tassertTrue(true);\n\t\treturn tree.toStringTree(parser);\n\t}",
"private ParseTree parse(String testProgram, String parseOption) {\n CharStream input = new ANTLRInputStream(testProgram);\n Lexer lexer = new LanguageLexer(input);\n TokenStream tokens = new CommonTokenStream(lexer);\n LanguageParser parser = new LanguageParser(tokens);\n\n ParseTree result = null;\n if(parseOption.equals(\"program\")) {\n result = parser.program();\n } else if (parseOption.equals(\"stat\")) {\n result = parser.stat();\n } else { // Parse Expression.\n result = parser.expr();\n }\n\n return result;\n }",
"Parse createParse();",
"public NFA parse() throws ParseException;",
"static public GCode fromString(String str) {\n int c = str.indexOf('(');\n if(c != -1) {\n str = str.substring(0,c-1);\n } \n String[] parts = str.split(\" \");\n GCode g = new GCode(parts[0]);\n // parse args\n for(int i=1; i < parts.length; i++) {\n String arg = parts[i].substring(0,1);\n if(parts[i].length() == 1) {\n g.arg(arg);\n } else {\n String value = parts[i].substring(1);\n g.arg(arg, value); \n }\n }\n return g;\n }",
"Argument<T> parse(Function<String, ParseResult<T>> parser);",
"public abstract void fromString(String s, String context);",
"public SmartScriptParser(String text) {\n lexer = new SmartScriptLexer(text);\n documentNode = new DocumentNode();\n stack = new ObjectStack();\n parse();\n\n}",
"public void parse() {\n }",
"public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}",
"public static Expression parse(String exp) {\n\t\texp = exp.replace(\" \", \"\");\r\n\t\tchar[] cs = exp.toCharArray();\r\n\t\tint i = 0;\r\n\t\twhile (i < cs.length && !Operator.validOp(cs[i])) {\r\n\t\t\t++i;\r\n\t\t}\r\n\t\tif (i == cs.length)\r\n\t\t\treturn new Expression(Token.parse(exp));\r\n\t\telse {\r\n\t\t\t//to preserve order of operations here, flip order accordingly\r\n\t\t\t//if the operator is * or /\r\n\t\t\treturn new Expression(\r\n\t\t\t\t\tExpression.parse(exp.substring(0,i)),\r\n\t\t\t\t\t(Operator)Token.parse(cs[i]),\r\n\t\t\t\t\tExpression.parse(exp.substring(i+1, exp.length()))\r\n\t\t\t);\r\n\t\t}\r\n\t}",
"private ASTNode buildAST(String contents) throws JavaModelException {\n\t\treturn buildAST(contents, this.workingCopy);\n\t}",
"public static void parseAST(Node astNode) {\n\n int childrenNum = astNode.getChildCount();\n for (int i = 0; i < childrenNum; i++) {\n Node child = astNode.getChild(i);\n String astNodeType = child.getClass().getName();\n\n if (astNodeType.contains(\"Text\")) {\n if (child.getValue().contains(\"\\n\")) {\n lineNum++;\n }\n }\n if (astNodeType.contains(\"Element\")) {\n String localName = ((Element) child).getLocalName();\n if (localName.equals(\"decl_stmt\")) {\n String type = ((Element) child).getChildElements().get(0).getChildElements(\"type\", \"http://www.sdml.info/srcML/src\").get(0).getValue();\n String name = ((Element) child).getChildElements().get(0).getChildElements(\"name\", \"http://www.sdml.info/srcML/src\").get(0).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (localName.equals(\"function_decl\")) {\n String type = ((Element) child).getChildElements().get(0).getValue();\n String name = ((Element) child).getChildElements().get(1).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (localName.equals(\"function\")) {\n String type = ((Element) child).getChildElements().get(0).getValue();\n String name = ((Element) child).getChildElements().get(1).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(child);\n } else if (localName.equals(\"block\")) {\n parseAST(child);\n } else if (localName.equals(\"expr_stmt\")) {\n Element exprChild = ((Element) ((Element) child).getChildElements().get(0).getChild(0));\n String exprType = exprChild.getLocalName();\n if (exprType.equals(\"name\")) {\n String name = exprChild.getValue();\n String type = \"\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (exprType.equals(\"call\")) {\n String name = exprChild.getChild(0).getValue();\n String type = \"call\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(exprChild);\n }\n } else if (localName.equals(\"call\")) {\n String name = child.getChild(0).getValue();\n String type = \"call\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(child);\n } else if (localName.equals(\"argument\")) {\n Element c = ((Element) ((Element) child).getChildElements().get(0).getChild(0));\n if (c.getLocalName().equals(\"name\")) {\n String name = c.getValue();\n String type = \"\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else {\n parseAST(child);\n }\n\n\n } else if (!entity.getTerminal().contains(localName)) {\n parseAST(child);\n }\n\n }\n }\n\n }",
"public ParseResult parse(String string, String lastLabel) {\n\t\t\n\t\tstring = upcase(string);\n\t\tstring = string.replaceAll(\"\\\\r\", \"\");\n\t\tstring = string.replaceAll(\"\\\\n\", \"\");\n\t\t\n\t\tint tokenStartPos = 0, argstartcommand = 0;\n\t\t\n\t\tParseResult result = new ParseResult();\n\t\tresult.originalLine = string;\n\t\tif (string.matches(\"[ \\t]*\")) {\n\t\t\tresult.empty = true;\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t// save the original string for later reference, manipulate a copy of it\n\t\tString s = escape(string); // escaping has to be done to allow for spaces and tabs inside strings\n\t\t\n\t\t// comment at the end? strip it!\n\t\ts = stripComments(s, result);\n\t\t\n\t\t// label at the beginning? remember it, then strip it!\n\t\t// first, see whether there might be a label in the string\n\t\tif (labelEnd(s) != -1) {\n\t\t\t// if so, check its validity\n\t\t\tString checkedLabel = getLabel(s);\n\t\t\tif (checkedLabel == null) {\n\t\t\t\tresult.error = new ParseError(result.originalLine, getRawLabelString(s), 0, \"Invalid Label\");\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\tresult.label = checkedLabel;\n\t\t\t\tlastLabel = checkedLabel;\n\t\t\t\ttokenStartPos = labelEnd(s);\n\t\t\t\ts = stripLabel(s);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// anything left?\n\t\tif (s.matches(\"[, \\t]*\")) {\n\t\t\tresult.labelOnly = true;\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t// seems to be a command, analyze it\n\t\tArrayList<FullArgument> arguments = new ArrayList<>();\n\t\tString command = null, argument = \"\";\n\t\tboolean commaDone = false;\n\t\tint nextSize = -1, size, type, lastType = Op.NULL;\n\t\tboolean sizeExplicit = false;\n\n /*\n * before splitting the string into tokens, remove spaces in \"expressions\" between square brackets\n * in order to avoid certain false positives like: \n * - \"A comma must only be placed after a parameter\" (occurs e.g with \"mov [eax + 1], ...\") \n * - \"You must place a comma between any two parameters\" (occurs e.g with \"mov [ ebx +1], ...\")\n * - \"Invalid expression\" (occurs e.g. with mov eax, [ebx + 1]\" or \"mov eax, [ ebx]\"\n */ \n StringBuffer sb = new StringBuffer();\n Pattern pt = Pattern.compile(\"\\\\[.*\\\\]\");\n Matcher mt = pt.matcher(s);\n\n while(mt.find()) {\n // remove all spaces/tabs between brackets to avoid the false positives outlined above \n mt.appendReplacement(sb, mt.group(0).replaceAll(\"[ \\t]\", \"\"));\n }\n mt.appendTail(sb);\n s = sb.toString(); \n\n\t\tString[] tokens = s.split(\"[ \\t]\"); // split the string into \"words\"/tokens\n\t\tfor (String token : tokens) { // and look at any ...\n\t\t\tif (!token.equals(\"\")) { // ... non-empty word\n\t\t\t\n\t\t\t\ttoken = unescape(token);\n\t\t\t\targument = hex2dec(token); // convert any numbers to decimal\n\t\t\t\ttype = getOperandType(argument);\n\t\t\t\t// the token's start position is needed for correct error highlighting\n\t\t\t\ttokenStartPos = string.indexOf(token, tokenStartPos);\n\t\t\t\t// syntax checking\n\t\t\t\tif (lastType == Op.SIZEQUALI) {\n\t\t\t\t\tif (!Op.matches(type, Op.MEM | Op.IMM | Op.LABEL | Op.VARIABLE)) {\n\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\"Only an immediate or a memory location is allowed after a size qualifier\");\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (type == Op.COMMA) {\n\t\t\t\t\tif (!Op.matches(lastType, Op.PARAM)) {\n\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\"A comma must only be placed after a parameter\");\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\tcommaDone = true;\n\t\t\t\t}\n\t\t\t\t// the actual parsing\n\t\t\t\t\n\t\t\t\tif (Op.matches(type, Op.SIZEQUALI)) {\n\t\t\t\t\t// if it's a size qualifier, remember its information and we're done\n\t\t\t\t\tnextSize = getOperandSize(token, type);\n\t\t\t\t} else if (type == Op.COMMA) {\n\t\t\t\t\t// if it was only a comma, do nothing else\n\t\t\t\t} else if (command == null) {\n\t\t\t\t\t// if there was no command so far, the current token will be it\n\t\t\t\t\tcommand = token;\n\t\t\t\t\tresult.mnemo = command;\n\t\t\t\t\targstartcommand = tokenStartPos;\n\t\t\t\t\tcommaDone = true; // no comma necessary directly after the command\n\t\t\t\t\t// otherwise, it's an argument for a command\n\t\t\t\t} else {\n\t\t\t\t\t// determine the argument's size\n\t\t\t\t\tsize = -1;\n\t\t\t\t\tif (!commaDone && Op.matches(type, Op.PARAM)) {\n\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\"You must place a comma between any two parameters\");\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\tif (nextSize != -1) { // previous size qualifier?\n\t\t\t\t\t\tif (Op.matches(type, Op.IMM | Op.CHARS)) {\n\t\t\t\t\t\t\tif (getOperandSize(argument, type) > nextSize) {\n\t\t\t\t\t\t\t\tresult.error = new ParseError(string, token, tokenStartPos,\n\t\t\t\t\t\t\t\t\t\"Operand does not match previous size qualifier.\");\n\t\t\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsize = nextSize;\n\t\t\t\t\t\tnextSize = -1;\n\t\t\t\t\t\tsizeExplicit = true;\n\t\t\t\t\t} else if (!Op.matches(type, Op.IMM)) {\n\t\t\t\t\t\tsize = getOperandSize(argument, type);\n\t\t\t\t\t}\n\t\t\t\t\t// update the type information with the size, e.g. we had MEM and now get M32\n\t\t\t\t\ttype = getSizedOperandType(argument, type, size);\n\t\t\t\t\t// add the argument to the list of arguments\n\t\t\t\t\targuments.add(new FullArgument(argument, token, tokenStartPos, type, size, sizeExplicit,\n\t\t\t\t\t\tdataspace));\n\t\t\t\t\tsizeExplicit = false;\n\t\t\t\t\tcommaDone = type == Op.FPUQUALI;\n\t\t\t\t\t// if the first token was a prefix and the current argument is actually\n\t\t\t\t\t// the command, no comma is required afterwards\n\t\t\t\t\tif (commandLoader.commandExists(argument)) {\n\t\t\t\t\t\tcommaDone = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlastType = type; // remember the argument's type\n\t\t\t\ttokenStartPos += token.length();// and add its length to the search start position for the\n\t\t\t\t// next one\n\t\t\t}\n\t\t}\n\t\t\n\t\t// swap command and first argument if the command is actually a prefix\n\t\tif (Op.matches(getOperandType(command), Op.PREFIX) && (arguments.size() > 0)) {\n\t\t\tString temp = command;\n\t\t\tcommand = arguments.get(0).arg;\n\t\t\tresult.mnemo = command;\n\t\t\targuments.set(0, new FullArgument(temp, temp, 0, Op.PREFIX, -1, false, dataspace));\n\t\t\targstartcommand += temp.length();\n\t\t} else if ((arguments.size() > 0) && (arguments.get(0).address.type == Op.PREFIX)) {\n\t\t\tresult.error = new ParseError(string, arguments.get(0),\n\t\t\t\t\"Prefixes must be placed before the command\");\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t// check whether the command exists\n\t\tif (!commandLoader.commandExists(command)) {\n\t\t\tresult.mnemo = null;\n\t\t\tresult.error = new ParseError(string, command, argstartcommand, \"Unknown command\");\n\t\t\treturn result;\n\t\t}\n\t\t// load the command object\n\t\tJasminCommand cmd = (JasminCommand) commandLoader.getCommand(command);\n\t\tif (cmd instanceof PreprocCommand) {\n\t\t\t// note: PreprocCommands will be executed later on!\n\t\t\tif (lastLabel == null) {\n\t\t\t\tresult.error = new ParseError(string, command, 0,\n\t\t\t\t\t\"Preprocessor commands must be preceded by a label.\");\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\tdataspace.registerConstant(lastLabel);\n\t\t\t}\n\t\t} else if (cmd instanceof PseudoCommand) {\n\t\t\t// if a pseudo command follows a label, the label has to be registered as a variable,\n\t\t\t// as the command won't be executed right away\n\t\t\tif (lastLabel != null) {\n\t\t\t\tdataspace.registerVariable(lastLabel);\n\t\t\t}\n\t\t} else {\n\t\t\t// if a normal command follows a label that previously may have been a constant/variable, reset\n\t\t\t// its state\n\t\t\tif (lastLabel != null) {\n\t\t\t\tdataspace.unregisterConstant(lastLabel);\n\t\t\t\tdataspace.unregisterVariable(lastLabel);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// check for >1 memory access\n\t\tif (!cmd.overrideMaxMemAccess(command)) {\n\t\t\tint numMemoryAccesses = 0;\n\t\t\tfor (FullArgument a : arguments) {\n\t\t\t\tif ((a.address.type & Op.MEM) != 0) {\n\t\t\t\t\tnumMemoryAccesses++;\n\t\t\t\t}\n\t\t\t\tif (numMemoryAccesses > 1) {\n\t\t\t\t\tresult.error = new ParseError(string, a, \"Only one memory access allowed.\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t\n\t\t// initialize a Parameters object for the command to play with\n\t\tParameters param = new Parameters(dataspace, this);\n\t\tparam.set(string, command, arguments, cmd.defaultSize(command), cmd.signed());\n\t\tif (lastLabel != null) {\n\t\t\tparam.label = lastLabel;\n\t\t}\n\t\tfor (FullArgument a : arguments) {\n\t\t\tresult.usedLabels.addAll(a.usedLabels);\n\t\t}\n\n\t\tfor (FullArgument a : arguments) {\n\t\t\t// check validity of the arguments\n\t\t\tString errorMsg = isValidOperand(a, false);\n\t\t\tif (errorMsg != null) {\n\t\t\t\tresult.error = new ParseError(string, a, errorMsg);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// let the command do command-specific validating of its arguments\n\t\tParseError error = cmd.validate(param);\n\t\tif (error != null) {\n\t\t\tresult.error = error;\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\tresult.command = cmd;\n\t\tresult.param = param;\n\t\t\n\t\t// preprocessing commands are executed right now\n\t\tif (cmd instanceof PreprocCommand) {\n\t\t\tcmd.execute(param);\n\t\t}\n\t\treturn result;\n\t}",
"@Test\n\tpublic void testParse() {\n\t\tSentence s = new Sentence();\n\t\ts.parseSentence(BASE_STRING);\n\t\tassertEquals(19, s.getSentenceComponents().size());\n\n\t\t// verify that a string of whitespace count as one token\n\t\ts = new Sentence();\n\t\ts.parseSentence(WHITESPACE_STRING);\n\t\tassertEquals(1, s.getSentenceComponents().size());\n\n\t\t// verify that leading and trailing space is kept\n\t\ts = new Sentence();\n\t\ts.parseSentence(ENDSPACE_STRING);\n\t\tassertEquals(7, s.getSentenceComponents().size());\n\n\t\t// verify parsing works as expected\n\t\ts = new Sentence();\n\t\ts.parseSentence(PARSE_VALIDATION_STRING);\n\t\tList<SentenceComponent> tokens = s.getSentenceComponents();\n\t\tassertEquals(5, tokens.size());\n\t\tassertEquals(\"hello\", tokens.get(0).getValue());\n\t\tassertEquals(\",\", tokens.get(1).getValue());\n\t\tassertEquals(\" \", tokens.get(2).getValue());\n\t\tassertEquals(\"world\", tokens.get(3).getValue());\n\t\tassertEquals(\"!\", tokens.get(4).getValue());\n\t}",
"public abstract void parseValue(String value);",
"public abstract String parse(String name, List<CodeLine> c, Cluster cluster, Map<String,String> subs, Assemble compiler);",
"static Command parse(String text) throws ParseException {\n Parser parser = new Parser(text);\n return parser.parse();\n }",
"protected abstract void parse(String line);",
"@Override ASTSeq parse_impl(Exec E) {\n try {\n if (!E.skipWS().hasNext()) throw new IllegalArgumentException(\"End of input unexpected. Badly formed AST. Missing `from` argument.\");\n _from = E.nextDbl();\n } catch (ClassCastException e) {\n e.printStackTrace();\n throw new IllegalArgumentException(\"Argument `from` expected to be a number.\");\n }\n // Get the to\n try {\n if (!E.skipWS().hasNext()) throw new IllegalArgumentException(\"End of input unexpected. Badly formed AST. Missing `to` argument.\");\n _to = E.nextDbl();\n } catch (ClassCastException e) {\n e.printStackTrace();\n throw new IllegalArgumentException(\"Argument `to` expected to be a number.\");\n }\n // Get the by\n try {\n if (!E.skipWS().hasNext()) throw new IllegalArgumentException(\"End of input unexpected. Badly formed AST. Missing `by` argument.\");\n _by = E.nextDbl();\n } catch (ClassCastException e) {\n e.printStackTrace();\n throw new IllegalArgumentException(\"Argument `by` expected to be a number.\");\n }\n\n if( _from >= _to ) throw new IllegalArgumentException(\"`from` >= `to`: \" + _from + \">=\" + _to);\n if( _by <= 0 ) throw new IllegalArgumentException(\"`by` must be >0: \" + _by + \" <=0\");\n\n E.eatEnd(); // eat the ending ')'\n // Finish the rest\n ASTSeq res = (ASTSeq) clone();\n res._asts = new AST[]{}; // in reverse order so they appear correctly on the stack.\n return res;\n }",
"public void testParse() throws Exception\r\n {\r\n System.out.println(\"parse\");\r\n \r\n String context1 = \"package test.testpack;\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n String context2 = \"package test.test.testpack;\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n String context3 = \"\\npack age test.test.testpack ;\\n class TestClass \\n{\\n\\tdouble d;\\n}\";\r\n String context4 = \"package test.test.testpack\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n \r\n String context5 = \"package test.test.testpack;\\n class TestClass {\\n\\tdouble d;\\n}\";\r\n String context6 = \"package test.test.testpack;\\n class Test Class{\\n\\tdouble d;\\n}\";\r\n String context7 = \"package test.test.testpack;\\n class TestClass\\n{\\n\" +\r\n \"\\t//Det här är en double\\n\" +\r\n \"\\tdouble d;\\n\" +\r\n \"\\tdouble[] ds;\\n\" +\r\n \"\\tidltype test.test2.Test2Class idlTestObject;\" +\r\n \"\\n}\";\r\n \r\n \r\n FileParser instance = new FileParser();\r\n \r\n IDLClass expResult = null;\r\n \r\n IDLClass result = instance.parse(context1);\r\n assertEquals(result.getPackageName(), \"test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n result = instance.parse(context2);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context3);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 2: Invalid package declaration.\", ex.getMessage());\r\n }\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context4);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 1: Missing ; .\", ex.getMessage());\r\n }\r\n \r\n result = instance.parse(context5);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context6);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 2: Invalid class declaration.\", ex.getMessage());\r\n }\r\n \r\n result = instance.parse(context7);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n assertEquals(result.getFields().get(0).getComment(), \"//Det här är en double\");\r\n \r\n \r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }",
"ASTMatch parse_impl(Exec E) {\n AST ary = E.parse();\n\n // The `table` arg\n AST a = E.parse();\n if( a instanceof ASTString ) _strsTable = new String[]{((ASTString)a)._s};\n else if( a instanceof ASTStringList ) _strsTable = ((ASTStringList)a)._s;\n else if( a instanceof ASTNum ) _dblsTable = new double[]{((ASTNum)a)._d};\n else if( a instanceof ASTDoubleList ) _dblsTable = ((ASTDoubleList)a)._d;\n else throw new IllegalArgumentException(\"`table` expected to be either a String or an slist. Got: \" + a.getClass());\n if(_strsTable!=null) Arrays.sort(_strsTable);\n else Arrays.sort(_dblsTable);\n\n // `nomatch` is just a number in case no match\n AST nm = E.parse();\n if( nm instanceof ASTNum ) _nomatch = ((ASTNum)nm)._d;\n else throw new IllegalArgumentException(\"Argument `nomatch` expected a number. Got: \" + nm.getClass());\n\n // drop the incomparables arg for now ...\n AST incomp = E.parse();\n\n E.eatEnd(); // eat the ending ')'\n ASTMatch res = (ASTMatch) clone();\n res._asts = new AST[]{ary};\n return res;\n }",
"public static native JavaScriptObject parseString(String xml) /*-{\n\t\treturn Titanium.XML.parseString(xml);\n\t}-*/;",
"private T parse(String value)\n\t\t{\n\t\t\treturn null;\n\t\t}",
"public interface Parser<T> {\n\t\n\t/**\n\t * Il metodo che deve essere completato per poter analizzare la stringa\n\t * @param value la stringa da analizzare\n\t * @return il tipo di dato voluto\n\t */\n\tpublic T parse(String value);\n\t\n}",
"public static Object parse(String s) throws ParseException {\n try {\n return parse(new StringReader(s));\n } catch (IOException e) {\n // We cannot get an IOException when reading from String.\n throw new AssertionError(e);\n }\n }",
"private void parse() {\r\n for (int length = sourceCode.length(); index < length; ++index) {\r\n char c = sourceCode.charAt(index);\r\n if (!Character.isWhitespace(c)) {\r\n ArrayList<String> tokens = tokenizeStatement(sourceCode);\r\n if (tokens != null) {\r\n parseStatementTokens(tokens);\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n }",
"protected Element parseString(String str){\n\t\ttry {\n\t\t\tparser.parse(str);\n\t\t\treturn parser.getDocument().getDocumentElement();\n\t\t} catch (SAXException e) {\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn el(\"failure\", text(\"The workflow instrumenter could not insert an activity here, because\" +\n\t\t\t\"the code for the activitiy, that was supplied in the requirement specification was not correct!\"));\n\t}",
"public DataValue parse(String value) {\r\n \tthrow new RuntimeException(\"no implementation\");\r\n }",
"SAPL parse(String saplDefinition);",
"public WebutilsExpression parse(String expressionStr)\r\n\t{\r\n\t\tExpression expression = expressionEvaluator.parse(expressionStr);\r\n\t\treturn new WebutilsExpression(expression, expressionRegistry);\r\n\t}",
"public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public Token toToken(String s);",
"private String parseRegExp(String exp) throws Exception {\r\n\t\treturn RegexpTranslationHelper.translateANTLRToAutomatonStyle(exp);\r\n\t}",
"public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }",
"public abstract T parseLine(String inputLine);",
"public double parse(String inputString){\n\t\tclear();\n\t\tinput = inputString;\n\t\treturn expr(true);\n\t}",
"public String parseString() {\n\t\tString string = scanner.next();\n\t\treturn string;\n\t}",
"private void parse(String str) {\n if (str == null) {\n throw new IllegalArgumentException(\"Empty job execution instruction found!\");\n }\n String[] parts = str.split(\" \");\n if (parts.length == 1) {\n parseSpecial(str);\n } else if (parts.length == 5) {\n try {\n setMinutes(parseMinutes(parts[0].trim().toLowerCase()));\n setHours(parseHours(parts[1].trim().toLowerCase()));\n setDaysOfMonth(parseDaysOfMonth(parts[2].trim().toLowerCase()));\n setMonths(parseMonths(parts[3].trim().toLowerCase()));\n setDaysOfWeek(parseDaysOfWeek(parts[4].trim().toLowerCase()));\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Schedule \" + str + \" is malformed:\" + e.getMessage());\n }\n } else {\n throw new IllegalArgumentException(\"Schedule \" + str + \" is malformed!\");\n }\n }",
"protected abstract MAJOR_JAVA_TYPE parseValue(@Nonnull String value) throws ParsingException;",
"@Override\n\tpublic void parse(String s) throws MalformedFileException {\n\t\t\n\t}",
"@Test\n public void testExploratoryString() throws IOException {\n String simplestProgram = \"x := 1;\" +\n \"y :={0,1,2,33};\" +\n \"if (x>y) then \" +\n \"{x:=1;} \" +\n \"else \" +\n \"{y:=1;}\";\n\n CharStream inputCharStream = new ANTLRInputStream(new StringReader(simplestProgram));\n TokenSource tokenSource = new GrammarLexer(inputCharStream);\n TokenStream inputTokenStream = new CommonTokenStream(tokenSource);\n GrammarParser parser = new GrammarParser(inputTokenStream);\n\n //parser.addErrorListener(new TestErrorListener());\n parser.setErrorHandler(new BailErrorStrategy());\n\n GrammarParser.ProgramContext context = parser.program();\n\n System.out.println(context.getText());\n\n logger.info(context.toString());\n }",
"public abstract Object parseRecord(String input);",
"CParser getParser();",
"Optional<T> parse(@Nonnull String s);",
"private JSONDocument parseString(String data){\n JSONDocument temp = null;\n int pointer = 0;\n boolean firstValidCharReached = false;\n do{\n char c = data.charAt(pointer ++);\n switch (c) {\n case '{':\n HashMap thm = this.parseMap(this.getFull(data.substring(pointer),0));\n temp = new JSONDocument(thm);\n firstValidCharReached = true;\n break;\n case '[':\n ArrayList tal = this.parseList(this.getFull(data.substring(pointer),1));\n temp = new JSONDocument(tal);\n firstValidCharReached = true;\n break;\n }\n }while (!firstValidCharReached);\n return temp;\n }",
"@Test\n public void sunnyday_string(){\n SetupMocks.setup();\n\n List<Token> tokens= new ArrayList<>();\n\n tokens.add(new Token(Token.TSTRG,1,1,null));\n\n\n tokens.add(new Token(Token.TILIT,1,1,null));\n\n Parser parser = new Parser(tokens);\n\n NPrintItemNode nPrintItemNode = new NPrintItemNode();\n nPrintItemNode.setnExprNode(NExprNode.INSTANCE());\n\n TreeNode printitem = nPrintItemNode.make(parser);\n\n assertEquals(TreeNode.NSTRG, printitem.getValue());\n\n }",
"public void parse(String aMessage) {\r\n \r\n assert aMessage!=null;\r\n assert fBuffer!=null;\r\n \r\n iMessage=aMessage;//set parse string\r\n iIndex=0;//start parsing at first character\r\n iRootElement=parseRoot();//parse message\r\n \r\n }",
"protected ASTParser createASTParser() {\n ASTParser parser = ASTParser.newParser(this.testLevel);\n return parser;\n }",
"void parse(String[] args);",
"public void parseString(String str) {\r\n\t\t\tint spaceAt = str.indexOf(' ');\r\n\r\n\t\t\tsrcService_ = str.substring(0, spaceAt);\r\n\t\t\tdestService_ = str.substring(spaceAt + 1);\r\n\t\t}",
"public static IValueNode eval(@NonNull final String s) {\n return compile(s).eval();\n }",
"protected Object parseValue (String value)\n throws Exception\n {\n return value;\n }",
"@Test\n void testParser() {\n VmParsingHelper.DEFAULT.parse(VM_SRC);\n }",
"public void parse(String filename);",
"@Test\n public void parseToken() {\n }",
"abstract protected Parser createSACParser();",
"static public void execute(String s ) throws Exception\n\t{\n\t\tPostalLexer lexer = new PostalLexer(s);\n\t\tIToken t = lexer.getNextSymbol();\n\t\t//System.out.print(\"Tokens : \");\n\t\t//while (t.getTerminal() != gt.numberOfTerminals())\n\t\t//{\n\t\t//\tSystem.out.print(\"(\"+t.getTerminal()+\")\"+t.getSymbol()+\" \");\n\t\t//\tt = lexer.getNextSymbol();\n\t\t//}\n\t\t//System.out.println();\n\t\tTreeNode st = LL1Parser.parse(new PostalLexer(s), gt) ;\n\t\t//System.out.println(\"ST created\");\n\t\tPostalNode ast = (PostalNode) ST2AST.tradProgram(st);\n\t\t//System.out.println(\"AST created\");\n\t\t//System.out.println(ast);\n\t\tPostalEnvironment e = new PostalEnvironment();\n\t\tast.execute(e);\n\t\t//System.out.println(\"Execution done\");\n\t\t\t\n\t}",
"static void parse() {\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n varList.add(\"0\");\r\n\r\n // Find the first lexeme\r\n lex();\r\n\r\n // Check if the tokens form a statement\r\n if(checkStatement()) {\r\n System.out.println(\"\\nGRAMMAR IS CORRECT!\");\r\n //System.out.println(grammar);\r\n }\r\n else\r\n System.out.println(\"\\nERROR - UNEXPECTED LEXEME: \\\"\" + lexeme + \"\\\"\");\r\n\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n index = 0;\r\n lex();\r\n translate();\r\n }",
"@Override ASTRunif parse_impl(Exec E) {\n AST ary = E.parse();\n // parse the seed\n _seed = (long) E.parse().treeWalk(new Env(new HashSet<Key>())).popDbl();\n E.eatEnd(); // eat the ending ')'\n ASTRunif res = (ASTRunif) clone();\n res._asts = new AST[]{ary};\n return res;\n }",
"public abstract void parse() throws IOException;",
"public ExpenseEntity parse(String line);",
"public ParsedPage parse(String src);",
"@Test\n void parse() throws ParseException {\n }",
"@Test\n public void testParse()\n {\n System.out.println(\"parse\");\n System.out.println(\" Test simple case\");\n final File file = new File(\"src/test/data/test.example.txt\");\n final Lexer lexer = new Lexer();\n final Token token = lexer.analyze(file);\n Model model = token.parse();\n assertTrue(model.isCompiled());\n System.out.println(\" Test complex case\");\n final File complexFile = new File(\"src/test/data/balancer.example.txt\");\n final Token complexToken = lexer.analyze(complexFile);\n model = complexToken.parse();\n assertTrue(model.isCompiled());\n }",
"public static Result<MessageType, JSONException> fromString(String str) {\r\n return Result.ofRuntime(() -> valueOf(str))\r\n .mapError(ignored -> new JSONException(\"command not recognised\"));\r\n }",
"Program parse() throws SyntaxException {\n\t\tProgram p = null;\n\t\tp = program();\n\t\tmatchEOF();\n\t\treturn p;\n\t}",
"public AST(RuleContext ctx){\n this.ctx = ctx;\n }",
"public void parseXML(String XML);",
"public static ASTProgram parseValidProgram(String text)\n {\n ASTProgram program = null;\n try {\n program = (new MyDecafParser()).parse(\n (new MyDecafLexer()).lex(text));\n } catch (IOException ex) {\n assertTrue(false);\n } catch (InvalidTokenException ex) {\n assertTrue(false);\n } catch (InvalidSyntaxException ex) {\n assertTrue(false);\n }\n return program;\n }",
"@Test\n\tpublic void testExpression() throws ParseException {\n\t\tExpression expression = langParser(\"a\").expression();\n\t\tassertEquals(expression.getClass(), Identifier.class);\n\t\texpression = langParser(\"a()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\texpression = langParser(\"a.b\").expression();\n\t\tassertEquals(expression.getClass(), MemberAccess.class);\n\t\texpression = langParser(\"1\").expression();\n\t\tassertEquals(expression.getClass(), LongLiteral.class);\n\t\texpression = langParser(\"1.1\").expression();\n\t\tassertEquals(expression.getClass(), DoubleLiteral.class);\n\t\texpression = langParser(\"if(a,b,c)\").expression();\n\t\tassertEquals(expression.getClass(), TernaryIf.class);\n\t}",
"public static Expression compile(@NonNull final String s) {\n return new Expression(PARSER.parse(s));\n }",
"private Parser makeParser(String input) throws LexicalException {\r\n\t\tshow(input); //Display the input \r\n\t\tScanner scanner = new Scanner(input).scan(); //Create a Scanner and initialize it\r\n\t\tshow(scanner); //Display the Scanner\r\n\t\tParser parser = new Parser(scanner);\r\n\t\treturn parser;\r\n\t}",
"void parse(String[] args) throws Exception;",
"public Object stringToValue(String text) throws ParseException {\n Pattern pattern = getPattern();\n\n if (pattern != null) {\n Matcher matcher = pattern.matcher(text);\n\n if (matcher.matches()) {\n setMatcher(matcher);\n return super.stringToValue(text);\n }\n throw new ParseException(\"Pattern did not match\", 0);\n }\n return text;\n }",
"public Program parse() throws SyntaxException {\n\t\tProgram p = program();\n\t\tmatchEOF();\n\t\treturn p;\n\t}"
] |
[
"0.6951169",
"0.6890166",
"0.68732315",
"0.6750542",
"0.65023917",
"0.647148",
"0.6410876",
"0.63824457",
"0.63534236",
"0.62742764",
"0.62720263",
"0.6239982",
"0.6158983",
"0.6142368",
"0.6127143",
"0.6089197",
"0.6088859",
"0.60494673",
"0.6014764",
"0.5977628",
"0.59574986",
"0.59495556",
"0.5912251",
"0.59099174",
"0.58696675",
"0.5857955",
"0.58525795",
"0.5847973",
"0.58320975",
"0.58149123",
"0.5802391",
"0.57916266",
"0.5789379",
"0.5771662",
"0.5748576",
"0.5738076",
"0.57181025",
"0.569552",
"0.5693189",
"0.5657483",
"0.5657396",
"0.56500417",
"0.56377405",
"0.5632243",
"0.56267923",
"0.5621867",
"0.5619503",
"0.56067955",
"0.5581535",
"0.55548036",
"0.5541858",
"0.5538408",
"0.55357176",
"0.5532676",
"0.55307573",
"0.55252236",
"0.5520057",
"0.55112803",
"0.5489501",
"0.54773587",
"0.5463618",
"0.54631484",
"0.54627764",
"0.54566926",
"0.5451407",
"0.5450753",
"0.54487294",
"0.54486436",
"0.54482657",
"0.54438627",
"0.5421379",
"0.541566",
"0.54063326",
"0.540492",
"0.5398823",
"0.53966606",
"0.53950167",
"0.5390985",
"0.53700686",
"0.53684634",
"0.53662497",
"0.535853",
"0.53574425",
"0.53467965",
"0.53452754",
"0.53391695",
"0.5336353",
"0.53345287",
"0.53237134",
"0.53139496",
"0.5309",
"0.53050524",
"0.5304498",
"0.53003794",
"0.529668",
"0.5296167",
"0.528843",
"0.5274912",
"0.52646244",
"0.52593154",
"0.5259059"
] |
0.0
|
-1
|
Inflate the menu; this adds items to the action bar if it is present.
|
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] |
[
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] |
0.0
|
-1
|
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
|
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
] |
[
"0.79043454",
"0.7805307",
"0.7766523",
"0.7726966",
"0.76315224",
"0.7621912",
"0.758477",
"0.75306976",
"0.74880254",
"0.74575543",
"0.74575543",
"0.7438532",
"0.7421883",
"0.7402763",
"0.73917615",
"0.7386916",
"0.7379295",
"0.7370095",
"0.7362524",
"0.7355668",
"0.73453736",
"0.7341163",
"0.73305136",
"0.7328424",
"0.7326022",
"0.73185575",
"0.7316514",
"0.73133105",
"0.73039705",
"0.73039705",
"0.73018175",
"0.72980475",
"0.7293134",
"0.7286246",
"0.7283366",
"0.72808856",
"0.72785276",
"0.7259704",
"0.7259704",
"0.7259704",
"0.7259644",
"0.72593737",
"0.7249992",
"0.72239757",
"0.7219266",
"0.7216562",
"0.7204262",
"0.72002286",
"0.7200063",
"0.71934915",
"0.7184896",
"0.717771",
"0.7168381",
"0.71673703",
"0.71539783",
"0.7153406",
"0.71359825",
"0.7134769",
"0.7134769",
"0.71291566",
"0.71290356",
"0.7124105",
"0.71230125",
"0.71229",
"0.7121768",
"0.7117213",
"0.7117213",
"0.7117213",
"0.7117213",
"0.71171486",
"0.71170366",
"0.71167237",
"0.7114887",
"0.71122557",
"0.7109733",
"0.71086675",
"0.71055007",
"0.7099629",
"0.70980704",
"0.7096012",
"0.7093658",
"0.7093658",
"0.708592",
"0.7082855",
"0.70810896",
"0.7080205",
"0.7073979",
"0.70682657",
"0.7061635",
"0.7059869",
"0.70598",
"0.70514536",
"0.7037983",
"0.7037983",
"0.70357627",
"0.7035278",
"0.7035278",
"0.7032543",
"0.70311016",
"0.7029504",
"0.70182127"
] |
0.0
|
-1
|
Copyright (C) 2004 2019 UCWeb Inc. All Rights Reserved. Description : GitHubService.java Creation : 2019/8/4 Author : cangui.ccg
|
public interface GitHubService {
@GET("users/{user}/repos")
Call<String> listRepos(@Path("user") String user);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface GitHubApi {\n\nString CALL_BACK = \"gitdroid\";\n // GitHub开发者,申请就行\n String CLIENT_ID = \"42da7ad27e1072117a76\";\n String CLIENT_SECRET = \"0d6c0947115aa6ec24498e96fa912ca02fc0457a\";\n\n // 授权时申请的可访问域\n String INITIAL_SCOPE = \"user,public_repo,repo\";\n\n // WebView来加载此URL,用来显示GitHub的登陆页面\n String AUTH_URL =\n \"https://github.com/login/oauth/authorize?client_id=\" +\n CLIENT_ID + \"&\" + \"scope=\" + INITIAL_SCOPE;\n /**\n * 获取访问令牌API\n * @Filed 代表的是表格中的字段名 @FiledMap(Map集合)(调用时传入一个map集合就可以)\n * @Headers 代表请求头 请求token的方法(call模型)\n */\n @Headers(\"Accept: application/json\")\n @FormUrlEncoded\n @POST(\"https://github.com/login/oauth/access_token\")\n Call<AccessResultToken> getOAuthToken(\n @Field(\"client_id\") String client,\n @Field(\"client_secret\") String clientSecret,\n @Field(\"code\") String code);\n //请求用户信息:\n @GET(\"user\")\n Call<User> getUserInfo();\n //搜索热门仓库的api\n //search/repositories?q={query}{&page,per_page,sort,order}\n //http://api.github.com/search/repositories?q=java&page=1\n @GET(\"search/repositories\")\n Call<RepoResult> getRepoSearch(@Query(\"q\")String language, @Query(\"page\")int pageId);\n // https://api.github.com/repos/square/okhttp/readme\n /**\n * @param owner 仓库的拥有者\n * @param repo 仓库的名称\n * @return 仓库的Readme页面的内容,{@link RepoContentResult#content}将是Markdown格式。\n */\n @GET(\"repos/{owner}/{repo}/readme\")\n Call<RepoContentResult> getReadme(@Path(\"owner\") String owner, @Path(\"repo\") String repo);\n\n /**\n * 获取一个Markdown内容对应的HTMl页面\n * @param body 请求体,内容来自{@link RepoContentResult#content}\n * @return Call对象\n */\n @Headers({\n \"Content-Type:text/plain\"\n })\n @POST(\"/markdown/raw\")\n Call<ResponseBody> markdown(@Body RequestBody body);\n}",
"public interface GitHubService {\n @GET(\"repos/{owner}/{repo}/contributors\")\n Call<List<Contributor>> repoContributors(\n @Path(\"owner\") String owner,\n @Path(\"repo\") String repo);\n\n\n HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient okHttpClient = new OkHttpClient.Builder().addInterceptor(httpLoggingInterceptor).addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request original = chain.request();\n HttpUrl originalHttpUrl = original.url();\n\n HttpUrl.Builder originalUrlBuilder = originalHttpUrl.newBuilder();\n originalUrlBuilder.addQueryParameter(\"access_token\", \"YOUR_TOKEN\");\n\n HttpUrl url = originalUrlBuilder.build();\n\n Request.Builder reqBuilder = original.newBuilder().url(url);\n return chain.proceed(reqBuilder.build());\n }\n }).build();\n\n\n\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"https://api.github.com/\")\n .addConverterFactory(GsonConverterFactory.create()).client(okHttpClient)\n .build();\n\n @GET(\"/users/{username}\")\n Call<Contributor>user(\n @Path(\"username\")String login);\n\n @GET\n Call<List<Repository>> getRepos(@Url String url);\n\n}",
"public interface GitHubService {\n\n @GET(\"/repos/{owner}/{repo}/contributors\")\n Call<List<Contributor>> contributors(\n @Path(\"owner\") String owner,\n @Path(\"repo\") String repo\n );\n\n @GET(\"/repos/square/retrofit/issues\")\n Call<List<Issue>> retrofiIssues();\n}",
"public interface GirolandoService {\n public static final String BASE_URL = \"https://api.github.com/\";\n\n @GET(\"repositories\")\n Call<List<Owner>> getOwners();\n\n}",
"public interface GitHubService {\n// @GET(\"article/list/1/15/1\")\n// Call<JinXuanBean> getQuamZiData();\n @GET(\"article/list/{page}/15/{type}\")\n Call<JinXuanBean> getQuamZiData(@Path(\"page\") int page, @Path(\"type\") int type);\n\n @GET(\"article/{articleId}\")\n Call<ArticleBean> getArticle(@Path(\"articleId\") int articleId);\n @GET(\"review/article/content/{page}/15/{articleId}\")\n Call<Comment> getComment(@Path(\"page\") int page, @Path(\"articleId\") int articleId);\n}",
"public interface GitService extends Service {\n\n /**\n * Checks that project has selected branches\n *\n * @param project project for checking\n * @param branches branches that need to be checked\n * @param isCommon if true - checking will occur for all selected branches, if false - for at least one of them.\n * @return true if project contains selected branches, false if does not contains\n */\n boolean containsBranches(Project project, List<Branch> branches, boolean isCommon);\n\n /**\n * Checkouts projects to selected branch\n *\n * @param projects projects that need to be checked out\n * @param branch selected branch\n * @param progress the listener for obtaining data on the process of performing the operation\n *\n * @return map with projects and theirs checkout statuses\n */\n Map<Project, JGitStatus> checkoutBranch(List<Project> projects, Branch branch, ProgressListener progress);\n\n /**\n * Checkouts projects to selected branch\n *\n * @param projects projects that need to be checked out\n * @param branchName name of the branch\n * @param isRemote <code>true</code> if the branch has {@link BranchType#REMOTE}\n * @param progress the listener for obtaining data on the process of performing the operation\n * @return map with projects and theirs checkout statuses\n */\n Map<Project, JGitStatus> checkoutBranch(List<Project> projects, String branchName, boolean isRemote, ProgressListener progress);\n\n /**\n * Gets projects that have uncommited changes\n *\n * @param projects projects that need to be checked\n * @return list of projects that has uncommited changes\n */\n List<Project> getProjectsWithChanges(List<Project> projects);\n\n /**\n * Reverts uncommited changes\n *\n * @param projects projects that need to be resets\n * @return list of projects that and their discard statuses\n */\n Map<Project, JGitStatus> revertChanges(List<Project> projects);\n\n /**\n * Commit changes to selectedProjects\n *\n * @param projects projects that contains changes\n * @param commitMessage message for commit\n * @param isPushImmediately if true - make push operation after commiting, if false - make commit without pushing\n * @param progressListener Listener for obtaining data on the process of performing the operation.\n */\n Map<Project, JGitStatus> commitChanges(List<Project> projects, String commitMessage, boolean isPushImmediately,\n ProgressListener progressListener);\n\n /**\n * Creates new branch\n *\n * @param projects the projects that needs new branch\n * @param branchName new branch name\n * @param startPoint corresponds to the start-point option; if <code>null</code>, the current HEAD will be used\n * @param force if <code>true</code> and the branch with the given name\n * already exists, the start-point of an existing branch will be\n * set to a new start-point; if false, the existing branch will\n * not be changed\n * @return map with projects and theirs statuses of branch creating\n */\n Map<Project, JGitStatus> createBranch(List<Project> projects, String branchName, String startPoint, boolean force);\n\n /**\n * Returns the set of selected type of branches\n *\n * @param projects projects list\n * @param branchType selected {@link BranchType}\n * @param isOnlyCommon if <code>true</code> returns only common branches for all projects and otherwise if <code>false</code>\n * @return set of the branches or empty set if such type of branches does not exist for this projects\n */\n Set<Branch> getBranches(List<Project> projects, BranchType branchType, boolean isOnlyCommon);\n\n /**\n * Returns current branch name for selected project\n *\n * @param project - selected project\n * @return current branch name for selected project or <code>null</code> if project has no branches (unreachable state)\n */\n String getCurrentBranchName(Project project);\n\n /**\n * Pushed selected projects to upstream\n *\n * @param projects - list of projects\n * @param progressListener - listener for obtaining data on the process of performing the operation\n * @return map of operation statuses\n */\n Map<Project, JGitStatus> push(List<Project> projects, ProgressListener progressListener);\n\n /**\n * Pulls changes in selected projects from upstream\n *\n * @param projects - selected projects\n * @param progressListener - instance of {@link OperationProgressListener}\n * @return <code>true</code> if pull operation works well and <code>false</code> otherwise\n */\n boolean pull(List<Project> projects, OperationProgressListener progressListener);\n\n /**\n * Checks that project has any references.\n *\n * @param project the cloned project\n * @return <code>true</code> if project has any references, <code>false</code> if project does not have references.\n */\n public boolean hasAtLeastOneReference(Project project);\n\n /**\n * Returns count of commits ahead and behind index\n *\n * @param project - project to show status\n * @param branchName - the name of branch\n * @return array of ahead and behind commits counts<br>\n * Array consists of two parameters:\n * first is the count of commits ahead Index, <br>\n * second is the count of commits behind Index\n */\n public int[] getAheadBehindIndexCounts(Project project, String branchName);\n\n /**\n * Checks whether the project has conflicts and uncommitted changes.\n *\n * @param project the project\n * @return array of values. Array consists of two parameters:\n * - has conflicts: <true> is has, otherwise <false>.\n * - has changes: <true> is has, otherwise <false>.\n */\n public boolean[] hasConflictsAndChanges(Project project);\n\n /**\n * Starts canceling process for cloning. This may take some time.\n */\n void cancelClone();\n\n /** This method return tracking branch.\n *\n * @param project\n * @return tracking branch.\n */\n public String getTrackingBranch(Project project);\n\n /**\n * This method return all commits for currently selected project\n *\n * @param project the project\n * @param branchName the branch\n * @return list of all commits for currently selected project\n */\n public List<Commit> getAllCommits(Project project, String branchName);\n\n /**\n * Gets ChangedFiles for project.\n *\n * @param project the project\n * @return a ChangedFiles list\n */\n List<ChangedFile> getChangedFiles(Project project);\n\n /**\n * Adds untracked files to index.\n *\n * @param files the map of projects and changed files\n * @return the list of added files\n */\n List<ChangedFile> addUntrackedFilesToIndex(Map<Project, List<ChangedFile>> files);\n\n /**\n * Resets changed files to head\n *\n * @param files the map which has projects and their changed files\n * @return a list of changed files\n */\n List<ChangedFile> resetChangedFiles(Map<Project, List<ChangedFile>> files);\n\n /**\n * Gets ProjectStatus for project.\n * We use {@link Status} for getting info about conflicting, untracked files etc.\n * Also, use it for checking the presence of uncommitted changes.\n * Gets current branch name, ahead and behind indexes using {@link Git}.\n *\n * @param project the project\n * @return ProjectStatus for the project.\n */\n ProjectStatus getProjectStatus(Project project);\n\n /**\n * Gets branches of project\n *\n * @param projects cloned project\n * @param brType type branch\n * @param onlyCommon if value is <code>true</code> return only common branches of projects,\n * if <code>false</code> return all branches.\n * @return a list of branches\n */\n Set<Branch> getBranches(Collection<Project> projects, BranchType brType, boolean onlyCommon);\n\n /**\n * Replaces changed files with HEAD revision\n *\n * @param changedFiles the files for replacing\n */\n void replaceWithHEADRevision(Collection<ChangedFile> changedFiles);\n\n /**\n * Creates stash for projects\n *\n * @param projects the cloned projects\n * @param stashMessage the stash message\n * @param includeUntracked <code>true</code> if need to include untracked file to stash, otherwise <code>false</code>\n * @return a map of operation statuses\n */\n Map<Project, Boolean> createStash(List<Project> projects, String stashMessage, boolean includeUntracked);\n\n /**\n * Gets list of stashes for projects\n *\n * @param projects the cloned projects\n * @return a list of projects' stashes\n */\n List<Stash> getStashList(List<Project> projects);\n\n /**\n * Applies stash for the project\n *\n * @param stash the stash for applying\n * @param progressListener the listener for obtaining data on the process of performing the operation\n */\n void applyStashes(Stash stash, ProgressListener progressListener);\n\n /**\n * Drops stash from the project\n *\n * @param stash the stash which need to drop\n * @return a map of operation statuses\n */\n Map<Project, Boolean> stashDrop(Stash stash);\n\n /**\n * Deletes branch from projects\n *\n * @param projects the cloned projects\n * @param deletedBranch the branch which will be deleted\n * @param progressListener the listener for obtaining data on the process of performing the operation\n * @return a map of operation statuses by each project.\n * <code>true</code> if a branch was successfully deleted from a project, otherwise <code>false</code>.\n */\n Map<Project, Boolean> deleteBranch(List<Project> projects, Branch deletedBranch, ProgressListener progressListener);\n}",
"public interface GitHubInterface {\n //http://test.xdyapi.haodai.net/Wallet/getAccountList?os_type=1&appid=1&imei=867614023363542&app_version=35000&channel=web&auth_tms=20170306133730&auth_did=5793&auth_dsig=08526488a4ade5a8&auth_uid=193594&auth_usig=8493bf3e111114c9?os_type=1&appid=1&imei=867614023363542&app_version=35000&channel=web&auth_tms=20170306133730&auth_did=5793&auth_dsig=08526488a4ade5a8&auth_uid=193594&auth_usig=8493bf3e111114c9&xid=193594\n\n //这是retrofit版本\n// @POST(\"Wallet/{user}\")\n// Call<Repo> listRepos(@Path(\"user\") String user, @QueryMap Map<String, String> map);\n\n //这是retrofit2版本\n //注意:ResponseBody这个类需要导入\"import okhttp3.ResponseBody\"这个包的\n @POST(\"Wallet/{user}\")\n Call<ResponseBody> listRepos(@Path(\"user\") String user, @QueryMap Map<String, String> map);\n}",
"public interface GitHubService {\n\n String BASE_URL = \"https://api.github.com/\";\n String SEARCH_USERS = \"search/users\";\n String GET_USER = \"/users/{username}\";\n String GET_USER_REPOS = \"/users/{username}/repos\";\n\n @GET(SEARCH_USERS)\n Observable<SearchResult> searchUsers(@Query(\"q\") String query, @Query(\"page\") int page);\n\n @GET(GET_USER)\n Observable<GitHubUserFullProfile> getUser(@Path(\"username\") String username);\n\n @GET(GET_USER_REPOS)\n Observable<List<UserRepo>> getUserRepos(@Path(\"username\") String username, @Query(\"page\") int page);\n\n}",
"public interface GitHubService {\n\n String BASE_URL = \"https://api.github.com/\";\n\n @GET(\"user\")\n Observable<User> basicAuth(@Header(\"Authorization\") String credential);\n\n @GET(\"users/{username}/followers\")\n Observable<List<Follower>> getFollowers(@Path(\"username\") String username);\n}",
"public GithubClient() {\n// client = ClientBuilder.newClient();\n// userTarget = client.target(\"https://api.github.com/users/{username}\");\n// userRepoTarget = client.target(\"https://api.github.com/users/{username}/repos\");\n// releaseCountTarget = client.target(\"https://api.github.com/repos/{owner}/{repo}/releases\");\n }",
"public interface RemoteService {\n String ENDPOINT = \"https://api.github.com/\";\n\n @GET(\"users/hulkdx/repos\")\n Flowable<List<GitHubRepositoryEntity>> getRepos();\n\n public class Factory {\n\n public static RemoteService create() {\n OkHttpClient client = new OkHttpClient.Builder()\n .connectTimeout(10, TimeUnit.SECONDS)\n .readTimeout(10, TimeUnit.SECONDS)\n .build();\n\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(ENDPOINT)\n .client(client)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .build();\n return retrofit.create(RemoteService.class);\n }\n }\n}",
"private HelloGitUtil(){\n\t}",
"public interface GitHubService {\n\n @GET(\"user/{user}/repos\")\n Observable<GitHubData> listRepos(@Path(\"user\") String user);\n\n}",
"public interface SVNService {\n public Map<String, String> getLatestFileCheckout(String svnUrl, String sourceDir, String svnId, String svnPassword, int startRevision, int endRevision) throws Exception;\n public Map<String, String> getLatestFileCheckout(ProjectParam param) throws Exception;\n public Map<String, String> getRepositorypaths(String svnUrl, String svnId, String svnPassword, int startRevision, int endRevision) throws Exception;\n public boolean compileComplete(String sourceDir, String sourceWWWDir, String sourceLibDir, String sourceDeployDir) throws Exception;\n public boolean compileComplete(ProjectParam valid) throws IOException;\n\n public boolean svnConnectionCheck(String svnId, String svnPassword);\n}",
"public void testGitHub() {\n\t}",
"public interface GithubService {\n String SERVICE_ENDPOING = \"https://api.github.com\";\n\n @GET(\"/users/{login}\")\n Observable<Github> getUser(@Path(\"login\") String login);\n}",
"public interface CopyrightService {\n\n Page<CopyrightContract> listCopyrights(CopyrightContract condition, int offset, int pageSize);\n\n long countCopyrights(CopyrightContract condition);\n\n CopyrightContract findCopyright(long id);\n\n String saveCopyrightContract(Copyright cc, long[] productIdArr, String[] priceArr, int submit, String type);\n\n List<Copyright> listProductContracts(long productId);\n\n String createCopyrightContract(CopyrightContract copyrightContract);\n\n String removeCopyright(Long id);\n\n String updateCopyrightContract(CopyrightContract copyrightContract);\n\n String saveCopyrightFiles(List<CopyrightFile> copyrightFiles);\n\n List<CopyrightFile> loadCopyrightContractFiles(String productId);\n\n String deleteCopyrightFile(String id);\n\n CopyrightFile findCopyrightFile(Long fileId);\n\n List<CopyrightFile> loadCopyrightPageFiles(String productId);\n\n List<CopyrightFile> loadAuthorIdCardFiles(String productId);\n\n List<CopyrightFile> loadGrantPaperFiles(String productId);\n\n List<CopyrightFile> loadPublishContractFiles(String productId);\n\n CopyrightProductInfo queryProductCopyright(Long productId);\n\n String generateContractCode(String signDate, String type);\n\n List<CopyrightFile> loadToSaleContractFiles(String productId);\n\n String changeCopyrightState(long id, String state);\n\n List<CopyrightFile> loadRightsFiles(String productId);\n}",
"@SuppressWarnings(\"ALL\")\npublic interface GithubService {\n // for GET request\n @GET(\"users/{username}/following\") // specify the sub url for our base url\n\n Observable<List<GithubUser>> getFollowing(@Path(\"username\") String username);\n// GithubUser is a POJO class which receives the response of this API\n\n @GET(\"/users/{username}\")\n Observable<GithubUserInfos> getUserInfos(@Path(\"username\") String username);\n public static final Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"https://api.github.com/\") //Setting the Root URL\n .addConverterFactory(GsonConverterFactory.create())\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .build();\n\n}",
"public interface ProjectService {\n\n void clone(String projectName);\n\n void switchBranch(String projectName,String branchName);\n\n void createNewBranch(String projectName,String oldBranchName,String newBranchName);\n\n String getAddressByProject(String projectName);\n\n File getLocalFileByProject(String projectName);\n\n}",
"public interface PullRequestsService {\n @Headers({\n \"Accept: application/json\"\n })\n\n @GET(\"repos/{owner}/{repository}/pulls\")\n Call <List<PullRequest>> getPullRequests(@Path(\"owner\") String owner,\n @Path(\"repository\") String repository);\n}",
"public interface GithubRepoCommentsRequst {\n @GET(\"/repos/{owner}/{repo}/comments\")\n List<Comment> getCommentsForRepo(@Path(\"owner\") String owner, @Path(\"repo\") String repo);\n}",
"public static void main(String[] args) {\n System.out.println(\"www.github\");\n MessageService messageService = new MessageService();\n System.out.print(messageService.getMessage());\n }",
"public interface WebDavService\r\n{\r\n\r\n /**\r\n * WedDAV \"GET\" method. See <a href='http://www.ietf.org/rfc/rfc2518.txt'>HTTP\r\n * methods for distributed authoring sec. 8.4 \"GET, HEAD for Collections\"</a>.\r\n * \r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param range Range HTTP header\r\n * @param version version name\r\n * @param ifModifiedSince if-modified-since header\r\n * @param ifModifiedSince if-none-match header\r\n * @param baseURI base URI info\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response get(String repoName, String repoPath, String range, String ifModifiedSince, String ifNoneMatch,\r\n String version, UriInfo baseURI);\r\n\r\n /**\r\n * WedDAV \"HEAD\" method. see <a\r\n * href='http://www.ietf.org/rfc/rfc2518.txt'>HTTP methods for distributed\r\n * authoring sec. 8.4 \"GET, HEAD for Collections\"</a>.\r\n * \r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param baseURI base URI info\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response head(String repoName, String repoPath, UriInfo baseURI);\r\n\r\n /**\r\n * WedDAV \"PUT\" method. See <a\r\n * href='http://www.ietf.org/rfc/rfc2518.txt'>HTTP methods for distributed\r\n * authoring sec. 8.7 \"PUT\"</a>.\r\n * \r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If HTTP Header\r\n * @param fileNodeTypeHeader JCR NodeType header\r\n * @param contentNodeTypeHeader JCR Content-NodeType header\r\n * @param mixinTypes JCR Mixin types header\r\n * @param mimeType Content-Type HTTP header\r\n * @param userAgent User-Agent HTTP header\r\n * @param inputStream stream that contain incoming data\r\n * @param UriInfo URI info\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response put(String repoName, String repoPath, String lockTokenHeader, String ifHeader, String fileNodeTypeHeader,\r\n String contentNodeTypeHeader, String mixinTypes, MediaType mediaType, String userAgent, InputStream inputStream,\r\n UriInfo uriInfo);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If HTTP Header\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response delete(String repoName, String repoPath, String lockTokenHeader, String ifHeader);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param destinationHeader Destination HTTP Header\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @param depthHeader Depth HTTP header\r\n * @param overwriteHeader Overwrite HTTP header\r\n * @param baseURI base URI info\r\n * @param body Request body\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response copy(String repoName, String repoPath, String destinationHeader, String lockTokenHeader, String ifHeader,\r\n String depthHeader, String overwriteHeader, UriInfo baseURI, HierarchicalProperty body);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @param nodeTypeHeader JCR Node-Type header\r\n * @param mixinTypesHeader JCR Mixin-Types header\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response mkcol(String repoName, String repoPath, String lockTokenHeader, String ifHeader, String nodeTypeHeader,\r\n String mixinTypesHeader, UriInfo uriInfo);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param destinationHeader Destination HTTP header\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @param depthHeader Depth HTTP header\r\n * @param overwriteHeader Overwrite HTTP header\r\n * @param baseURI base URI info\r\n * @param body Request body\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response move(String repoName, String repoPath, String destinationHeader, String lockTokenHeader, String ifHeader,\r\n String depthHeader, String overwriteHeader, UriInfo baseURI, HierarchicalProperty body);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response options(String repoName);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param depthHeader Depth HTTP header\r\n * @param baseURI base URI info\r\n * @param body Request body\r\n * @return the instance of javax.ws.rs.core.Response HTTP response\r\n */\r\n Response propfind(String repoName, String repoPath, String depthHeader, UriInfo baseURI, HierarchicalProperty body);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @param baseURI base URI info\r\n * @param body Request body\r\n * @return the instance of javax.ws.rs.core.Response HTTP response\r\n */\r\n Response proppatch(String repoName, String repoPath, String lockTokenHeader, String ifHeader, UriInfo baseURI,\r\n HierarchicalProperty body);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @param depth Depth HTTP header\r\n * @param body Request body\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response lock(String repoName, String repoPath, String lockTokenHeader, String ifHeader, String depth,\r\n HierarchicalProperty body);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response unlock(String repoName, String repoPath, String lockTokenHeader, String ifHeader);\r\n\r\n // DeltaV: RFC-3253 Versioning Extensions to WebDAV\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response checkin(String repoName, String repoPath, String lockTokenHeader, String ifHeader);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response checkout(String repoName, String repoPath, String lockTokenHeader, String ifHeader);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param depth Depth HTTP header\r\n * @param baseURI base URI info\r\n * @param body Request body\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response report(String repoName, String repoPath, String depth, UriInfo baseURI, HierarchicalProperty body);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response uncheckout(String repoName, String repoPath, String lockTokenHeader, String ifHeader);\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response versionControl(String repoName, String repoPath, String lockTokenHeader, String ifHeader);\r\n\r\n // Order: RFC-3648: Web Distributed Authoring and Versioning (WebDAV)\r\n // Ordered Collections Protocol\r\n\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @param baseURI base URI info\r\n * @param body Request body\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response order(String repoName, String repoPath, String lockTokenHeader, String ifHeader, UriInfo baseURI,\r\n HierarchicalProperty body);\r\n\r\n // Search\r\n /**\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param baseURI base URI info\r\n * @param body Request body\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response search(String repoName, String repoPath, UriInfo baseURI, HierarchicalProperty body);\r\n\r\n /**\r\n * WebDAV ACL method according to protocol extension - Access Control Protocol: RFC3744\r\n * More details here: <a href='http://www.webdav.org/specs/rfc3744.html'>Web Distributed \r\n * Authoring and Versioning (WebDAV) Access Control Protocol</a>\r\n * @param repoName repository name\r\n * @param repoPath path in repository\r\n * @param lockTokenHeader Lock-Token HTTP header\r\n * @param ifHeader If- HTTP Header\r\n * @param body Request body\r\n * @return the instance of javax.ws.rs.core.Response\r\n */\r\n Response acl(String repoName, String repoPath, String lockTokenHeader, String ifHeader, HierarchicalProperty body);\r\n}",
"public interface GithubApiService {\n @GET(\"/users/{user}/repos\")\n Observable<ArrayList<Repo>> getRepoData(@Path(\"user\") String user);\n}",
"public interface GitHubClient {\n String ENDPOINT = \"https://api.github.com\";\n @GET(\"/users\")\n Call<ArrayList<User>> userList();\n}",
"String repoUrl();",
"@Test\n public void getEndpoint() throws IOException {\n CloseableHttpClient httpclient = HttpClients.createDefault();\n\n //Creating a HttpGet object\n HttpPost httppost = new HttpPost(\"https://api.github.com/user/repos\");\n String auth=Credentials.getEmail()+\":\"+Credentials.getPassWard();\n byte[] encodedAuth = Base64.encodeBase64(auth.getBytes(Charset.forName(\"ISO-8859-1\")));\n String authHeader=\"Basic \"+new String(encodedAuth);\n httppost.setHeader(HttpHeaders.AUTHORIZATION,authHeader);\n String json=\"{\\\"name\\\": \\\"ploiko\\\"}\";\n httppost.setEntity(new StringEntity(json, ContentType.APPLICATION_JSON));\n HttpResponse httpresponse = httpclient.execute(httppost);\n System.out.println(httpresponse.getStatusLine());\n int actual=httpresponse.getStatusLine().getStatusCode();\n Assert.assertEquals(actual,201);\n //System.out.println(getHeaders(httpresponse,\"Access-Control-Allow-Methods\"));\n //System.out.println(httpresponse.getAllHeaders().toString());\n\n }",
"Git getGit();",
"public interface GithubApiService {\n @GET(\"/users/{username}\")\n Observable<UserResponse> getUser(\n @Path(\"username\") String username\n );\n\n @GET(\"/users/{username}/repos\")\n Observable<List<RepositoryResponse>> getUsersRepositories(\n @Path(\"username\") String username\n );\n}",
"@Test\n void retrieveDataFromGitHub() {\n g.retrieveDataFromGitHub();\n GitHubSearchResponse r = g.getResponse();\n assertNotNull(r.getItems(), \"Results cannot be null\");\n assertEquals(r.getTotalCount(), r.getItems().size(),\n \"Unequal total results count and actual number of results\");\n }",
"public interface GitApi {\n @GET(\"users/mvvOrigin/repos\")\n Observable<ResponseBody> getUserRepositories();\n}",
"public interface GitBookService {\n\n @GET(\"search\")\n Observable<SearchResult> search(@Query(\"q\") String keyword, @Query(\"page\") int page);\n\n /**\n *\n * @param lang 语言\n * all: 全部\n * en: 英文\n * zh: 中文\n * fr: french\n * ar: arabic\n * es: spanish\n * @return\n */\n @GET(\"explore\")\n Observable<ExploreResult> explore(@Query(\"lang\") String lang, @Query(\"page\") int page);\n\n}",
"public interface AlbumService {\r\n\r\n /**\r\n * Asynchronously returns detailed information about a given album, including its tracks.\r\n * \r\n * @param apikey\r\n * the API key\r\n * @param pretty\r\n * if <code>true</code> pretty prints the JSON\r\n * @param catalog\r\n * countries' catalog (two-letter country code, which is case-sensitive)\r\n * @param albumId\r\n * the ID of the album to load\r\n * @param callBack\r\n * callback to which the result is passed\r\n */\r\n @GET(\"/v1/albums/{albumId}\")\r\n void getAlbum( //\r\n @Query(\"apikey\") String apikey, //\r\n @Query(\"pretty\") boolean pretty, //\r\n @Query(\"catalog\") String catalog, //\r\n @Path(\"albumId\") String albumId, //\r\n Callback<AlbumData> callBack);\r\n\r\n /**\r\n * Returns a list of new releases, curated by Rhapsody. This list can be personalized for the user by passing the\r\n * <code>userId</code>. The personalization is made by Rhapsody based upon recent listening history.\r\n *\r\n * <p>\r\n * <i>Hint:</i> The <code>userId</code> is the {@link AccountData#id}.\r\n * </p>\r\n *\r\n * @param apikey\r\n * the API key\r\n * @param pretty\r\n * if <code>true</code> pretty prints the JSON\r\n * @param catalog\r\n * countries' catalog (two-letter country code, which is case-sensitive)\r\n * @param userId\r\n * the user ID to get personalized new releases, if <code>null</code>no personalization is made\r\n * @param limit\r\n * the number of releases which are loaded, if <code>null</code> the servers default value is used\r\n * @param callBack\r\n * callback to which the result is passed\r\n */\r\n @GET(\"/v1/albums/new\")\r\n void getNewReleases( //\r\n @Query(\"apikey\") String apikey, //\r\n @Query(\"pretty\") boolean pretty, //\r\n @Query(\"catalog\") String catalog, //\r\n @Query(\"guid\") String userId, //\r\n @Query(\"limit\") Integer limit, //\r\n Callback<Collection<AlbumData>> callBack);\r\n\r\n /**\r\n * Synchronously returns detailed information about a given album, including its tracks.\r\n * \r\n * @param apikey\r\n * the API key\r\n * @param pretty\r\n * if <code>true</code> pretty prints the JSON\r\n * @param catalog\r\n * countries' catalog (two-letter country code, which is case-sensitive)\r\n * @param albumId\r\n * the ID of the album to load\r\n * @return the {@link AlbumData}\r\n */\r\n @GET(\"/v1/albums/{albumId}\")\r\n AlbumData getAlbum( //\r\n @Query(\"apikey\") String apikey, //\r\n @Query(\"pretty\") boolean pretty, //\r\n @Query(\"catalog\") String catalog, //\r\n @Path(\"albumId\") String albumId);\r\n}",
"@Test\n public void testGetRepos() throws Exception\n {\n String userName = \"ahmed-fathy-aly\";\n List<Repo> repoList = gitHubAPIService.getRepos(userName);\n\n assertNotNull(repoList);\n assertTrue(repoList.size() > 0);\n for (Repo repo : repoList)\n {\n assertNotNull(repo.getName());\n assertNotNull(repo.getId());\n }\n }",
"public interface ApiInterface {\n\n //Account API\n String ping(OkHttpClient client);\n\n String obtainAuthToken(OkHttpClient client, String username, String password);\n\n JSONObject checkAccountInfo(OkHttpClient client, String token);\n\n JSONObject getServerInformation(OkHttpClient client);\n\n //Starred File API\n List<StarredFile> listStarredFiles(OkHttpClient client, String token);\n\n //Library API\n List<Library> listLibraries(OkHttpClient client, String token);\n\n Library getLibraryInfo(OkHttpClient client, String token, String repo_id);\n\n List<LibraryHistory> getLibraryHistory(OkHttpClient client, String token, String repo_id);\n\n JSONObject createNewLibrary(OkHttpClient client, String token, String libName, String desc, String password);\n\n boolean deleteLibrary(OkHttpClient client, String token, String repo_id);\n\n //File API\n String getFileDownloadLink(OkHttpClient client, String token, String repo_id, String p, boolean reuse);\n\n FileDetail getFileDetail(OkHttpClient client, String token, String repo_id, String p);\n\n List<FileCommit> getFileHistory(OkHttpClient client, String token, String repo_id, String p);\n\n boolean createFile(OkHttpClient client, String token, String repo_id, String p);\n\n boolean renameFile(OkHttpClient client, String token, String repo_id, String p, String newName);\n\n boolean moveFile(OkHttpClient client, String token, String repo_id, String p, String dst_repo, String dst_dir);\n\n boolean revertFile(OkHttpClient client, String token, String repo_id, String p, String commit_id);\n\n boolean deleteFile(OkHttpClient client, String token, String repo_id, String p);\n\n String getUploadLink(OkHttpClient client, String token, String repo_id, String p);\n\n List<UploadFileRes> uploadFile(OkHttpClient client, String token, String uploadLink, String parent_dir, String relative_path, File... files);\n\n String getUpdateLink(OkHttpClient client, String token, String repo_id, String p);\n\n boolean updateFile(OkHttpClient client, String token, String updataLink, File file, String target_file);\n\n //Directory API\n List<DirectoryEntry> listDirEntriesByP(OkHttpClient client, String token, String repo_id, String p);\n\n// List<DirectoryEntry> listDirectoryEntriesByID(OkHttpClient client,String token,String repo_id,String id);\n\n List<DirectoryEntry> listAllDirEntries(OkHttpClient client, String token, String repo_id);\n\n boolean createNewDir(OkHttpClient client, String token, String repo_id, String p);\n\n boolean renameDir(OkHttpClient client, String token, String repo_id, String p, String newName);\n\n boolean deleteDir(OkHttpClient client, String token, String repo_id, String p);\n\n String getDirDownloadToken(OkHttpClient client, String token, String repo_id, String parent_dir, String dirents);\n\n boolean queryZipProgress(OkHttpClient client, String token, String dirDownloadToken);\n\n String getDirDownloadLink(OkHttpClient client, String token, String dirDownloadToken);\n}",
"public interface LibraryService {\n\n /*\n\n 1.Search--Keyword\n 2.Get List\n A.Order by created time\n B.Refresh and load next page\n 3.Get specific one\n\n */\n\n @GET(\"classes/Library\")\n Observable<BaseResponse<Library>> getLibrary(@QueryMap Map<String, String> parametersMap);\n\n /*\n curl -X PUT \\\n -H \"X-LC-Id: OOhkF87ffBYBHmvph465ApmV-gzGzoHsz\" \\\n -H \"X-LC-Key: OkaU2qxpo1fbHPtc9o7yQVgM\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"upvotes\":{\"__op\":\"Increment\",\"amount\":1}}' \\\n https://api.leancloud.cn/1.1/classes/Post/558e20cbe4b060308e3eb36c\n */\n @PUT(\"classes/Library/{objId}\")\n Observable<ResponseBody> increaseCount(@Path(\"objId\") String objId, @Body CountIncrement countIncrement);\n\n \n}",
"public static void main(String... args) throws Exception {\n String token = args.length > 0 ? args[0] : \"\";\n String url = args.length > 1 ? args[1] : \"https://github.com/FasterXML/jackson-databind\";\n GitHubProject project = GitHubProject.parse(url);\n GitHub github = new GitHubBuilder().withOAuthToken(token).build();\n NumberOfDependentProjectOnGitHub provider\n = new NumberOfDependentProjectOnGitHub(new GitHubDataFetcher(github, token));\n System.out.println(provider.fetchValueFor(project));\n }",
"public interface FileService extends PublicService {\n\n /**\n * Retrieves reference to a file by fileName\n */\n FileReference getFile(String fileName);\n \n /**\n * Creates a reference for a new file.\n * Use FileReference.getOutputStream() to set content for the file.\n * Requires user to be a member of a contributer or full roles.\n * @param fileName\n * @param toolId - optional parameter\n * @return\n */\n FileReference createFile(String fileName, String toolId);\n \n /**\n * Deletes the file.\n * Requires user to be a member of a contributer or full roles.\n * @param fileReferece\n */\n void deleteFile(FileReference fileReferece);\n \n /**\n * Returns a url to the file\n * Property WebSecurityUtil.DBMASTER_URL (dbmaster.url) is used as a prefix\n */\n URL toURL(FileReference fileReferece);\n}",
"GitRemote(String aName) { _name = aName; }",
"private void commitRepChanges() {\r\n\t\t\r\n\t\t// get repository info\r\n\t\tString repURL = repURLFld.getText();\r\n\t\tString boURI = repBaseOntFld.getText();\r\n\t\tthis.repositoryAuthor = repAuthorFld.getText();\r\n\t\tthis.reposityCreatedDate = repDateFld.getText();\r\n\t\t\r\n\t\tString status = \"Status: [ACTION - Commit to Repository]...\";\r\n\t\ttry {\r\n\t\t\tthis.repositoryURI = new URI(repURL);\r\n\t\t\tthis.baseOntologyURI = new URI(boURI);\r\n\t\t}\r\n\t\tcatch (URISyntaxException ex) {\r\n\t\t\tstatusBar.setText(status+\"Invalid Repository URL and/or Base Ontology URI\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// check if repository already exists\r\n\t\t\tboolean repExists = this.loadRepositoryHeader();\r\n\t\t\t\r\n\t\t\tif (!repExists) {\r\n\t\t\t\t// creating new repository\r\n\t\t\t\t// form repository header\r\n\t\t\t\tURI[] headerURI = new URI[1];\r\n\t\t\t\theaderURI[0] = new URI(this.repositoryURI+\"#header\");\r\n\t\t\t\t\r\n\t\t\t\tif (this.repositoryAuthor.equals(\"\") || this.reposityCreatedDate.equals(\"\")) {\r\n\t\t\t\t\tint opt = JOptionPane.showConfirmDialog(null, \"Repository Author and/or Date not specified. Continue?\", \"Creating Repository\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\tif (opt == JOptionPane.NO_OPTION) return;\r\n\t\t\t\t}\r\n\t\t\t\t// create annotea description for header\r\n\t\t\t\tDescription header = new Description();\r\n\t\t\t\theader.setAnnotates(headerURI);\r\n\t\t\t\theader.setAuthor(this.repositoryAuthor);\r\n\t\t\t\theader.setCreated(this.reposityCreatedDate);\r\n\t\t\t\theader.setAnnotatedEntityDefinition(this.baseOntologyURI.toString());\r\n\t\t\t\tthis.headVersionNumber = 0;\r\n\t\t\t\theader.setBody(String.valueOf(this.headVersionNumber));\r\n\t\t\t\theader.setBodyType(\"text/html\");\r\n\t\t\t\theader.setAnnotationType(this.annotType);\r\n\t\t\t\tclient.post(header);\r\n\t\t\t\tstatusBar.setText(status+\"Ontology Repository Header posted at \"+headerURI[0]);\r\n\t\t\t\ttoggleRepOptions(false);\r\n\t\t\t\tversionDescriptions[0] = header;\r\n\t\t\t\tswoopModel.updateVersionRepository(repositoryURI, versionDescriptions);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// test changes\r\n\t\t\tboolean success = this.testChanges(true);\r\n\t\t\tif (success){\r\n\t\t\t\t// prompt user for comment on commit\r\n\t\t\t\tString commitComment = JOptionPane.showInputDialog(this, \"COMMIT New Version (Details):\");\r\n\t\t\t\t\r\n\t\t\t\tif (commitComment==null) {\r\n\t\t\t\t\tstatusBar.setText(status+\"CANCELLED\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// transform SwoopChange list to Description list (to save author, date, uris etc)\r\n\t\t\t\tList descList = transformChangeList(repChanges);\r\n\t\t\t\t// serialize each description into RDF/XML\r\n\t\t\t\t// and make it one large string with separator (\"[SWOOP-ANNOTATED-CHANGE-SET]\") in the middle\r\n\t\t\t\tString largeChangeSetString = \"\";\r\n\t\t\t\tfor (Iterator iter = descList.iterator(); iter.hasNext();) {\r\n\t\t\t\t\tDescription desc = (Description) iter.next();\r\n\t\t\t\t\tString descStr = desc.serializeIntoString(swoopModel);\t\t\t\t\t\r\n\t\t\t\t\tlargeChangeSetString += descStr + separator;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// ENCODE CDATA\r\n\t\t\t\tlargeChangeSetString = largeChangeSetString.replaceAll(\"CDATA\", \"ENCODED-CDATA\");\r\n\t\t\t\tlargeChangeSetString = largeChangeSetString.replaceAll(\"]]>\", \"]ENCODED]>\");\r\n\t\t\t\t\r\n\t\t\t\t// finally commit a single annotation with the entire changeset string in the body\r\n\t\t\t\t// also allow author to make annotation on commit\r\n\t\t\t\tDescription commit = new Description();\r\n\t\t\t\tcommit.setAuthor(swoopModel.getUserName());\r\n\t\t\t\tcommit.setCreated(swoopModel.getTimeStamp());\r\n\t\t\t\tcommit.setBody(largeChangeSetString);\r\n\t\t\t\tcommit.setBodyType(\"text/html\");\r\n\t\t\t\tcommit.setAnnotatedEntityDefinition(commitComment);\r\n\t\t\t\tcommit.setAnnotationType(this.annotType);\r\n\t\t\t\t\r\n\t\t\t\t// increment headVersionNum and write new commit\r\n\t\t\t\t// at repURL+\"#\"+headVersionNum\r\n\t\t\t\tthis.headVersionNumber++;\r\n\t\t\t\tURI[] annotates = new URI[1];\r\n\t\t\t\tannotates[0] = new URI(repositoryURI.toString()+\"#\"+String.valueOf(this.headVersionNumber));\r\n\t\t\t\tcommit.setAnnotates(annotates);\r\n\t\t\t\t// COMMIT!\r\n\t\t\t\tclient.post(commit);\r\n\t\t\t\t\r\n\t\t\t\t// post-process:\r\n\t\t\t\t// 1. rewrite rep header added newly incremented headVersionNumber \r\n\t\t\t\tthis.rewriteRepHeader();\r\n\t\t\t\t// 2. set newCommitNode params to current commit\r\n\t\t\t\tnewCommitNode.swoopChange.setAuthor(commit.getAuthor());\r\n\t\t\t\tnewCommitNode.swoopChange.setTimeStamp(commit.getCreated());\r\n\t\t\t\tnewCommitNode.swoopChange.setDescription(commit.getAnnotatedEntityDefinition());\r\n\t\t\t\t// 3. save newCommitNode in versionCommits array and Description in versionDescriptions array\r\n\t\t\t\tversionNodes[this.headVersionNumber] = newCommitNode;\r\n\t\t\t\tversionDescriptions[this.headVersionNumber] = commit;\r\n\t\t\t\tswoopModel.updateVersionRepository(repositoryURI, versionDescriptions);\r\n\t\t\t\t// 4. for each child of newCommitNode, set its swoopChange.onRepository value to true\r\n\t\t\t\tfor (Iterator iter3=newCommitNode.children.iterator(); iter3.hasNext();) {\r\n\t\t\t\t\tTreeTableNode child = (TreeTableNode) iter3.next();\r\n\t\t\t\t\tchild.swoopChange.isOnRepository = true;\r\n\t\t\t\t}\r\n\t\t\t\t// 5. create newCommitNode and add to root at the end\r\n\t\t\t\tnewCommitNode = new TreeTableNode(new SwoopChange(swoopModel.getUserName(), null, null, swoopModel.getTimeStamp(), \"New Version Commit\", true, false));\r\n\t\t\t\tnewCommitNode.swoopChange.isTopNode = true;\r\n\t\t\t\trepRoot.addChild(newCommitNode);\r\n\t\t\t\trepChanges = new ArrayList(); // also clear this\r\n\t\t\t\tstatusBar.setText(status+\"Committed New Version \"+this.headVersionNumber);\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tstatusBar.setText(status+\"FAILED\");\r\n\t\t}\r\n\t\tthis.refreshRepTreeTable(false);\r\n\t}",
"public void getReposClicked(View v) {\n clearRepoList();\n // Call our getRepoList() function that is defined above and pass in the\n // text which has been entered into the etGitHubUser text input field.\n// getRepoList(etGitHubUser.getText().toString());\n }",
"public void gitThis(){\n\t}",
"public interface WikiAPIService {\n\n // Set a constant of links limits.\n int titleLimits = 200;\n\n /**\n * GET HTTP function to return Wiki extracts from url. Query parameter for the title of\n * the article is added to the function via the @Query annotation. The rest of query\n * parameters are hard-coded since they are always needed.\n *\n * The query parameter 'titles' are added in a {Title1}|{Title2}|...etc. format.\n */\n @GET(\"w/api.php?action=query\" +\n // Retrieve extracts and thumbnail image associated with article\n \"&prop=extracts|pageimages\" +\n \"&redirects\" +\n // Return extract in plain text (Boolean)\n \"&explaintext=1\" +\n // Return only the intro section (Boolean)\n \"&exintro=1\" +\n // Return the page ids as a list\n \"&indexpageids\" +\n // The max width of the thumbnail.\n \"&pithumbsize=1080\" +\n // Return in a JSON format.\n \"&format=json\" +\n // Return new json format with proper page array.\n \"&formatversion=2\")\n Call<WikiExtractsJSONResponse> requestExtracts(@Query(\"titles\") String titles);\n\n /**\n * GET HTTP function to return a number of featured Wikipedia link titles. These\n * link titles will be chosen at random to then be inserted into the requestExtracts()\n * function that will bring the extracts of these titles.\n */\n @GET(\"w/api.php?action=query\" +\n // Retrieve title links\n \"&prop=links\" +\n // Retrieve links in the main page\n \"&titles=メインページ\" +\n // Only return articles (Not users or meta pages)\n \"&plnamespace=0\" +\n // Return a limit number defined in companion object\n \"&pllimit=\" + titleLimits +\n // Return in json format\n \"&format=json\" +\n // Return new json format\n \"&formatversion=2\")\n Call<WikiTitlesJSONResponse> requestDailyTitles();\n}",
"public interface iRepository {\n\n @GET(\"contacts/\")\n Call<User> getContacts();\n\n @FormUrlEncoded\n @POST(\"/user/register/\")\n Call<RootLogin> signUp(@Field(\"fullName\") String fullName, @Field(\"password\") String password, @Field(\"email\") String email,\n @Field(\"key\") String key, @Field(\"sig\") String sig, @Field(\"accountType\") String accountType, @Field(\"externalUserId\") String externalUserId, @Field(\"externalPhotoUrl\") String externalPhotoUrl);\n\n @FormUrlEncoded\n @POST(\"/user/auth/\")\n Call<RootLogin> login(@Field(\"password\") String password, @Field(\"email\") String email,\n @Field(\"key\") String key, @Field(\"sig\") String sig);\n\n @FormUrlEncoded\n @POST(\"/user/delete/\")\n Call<Status> accountDelete(@Field(\"key\") String key, @Field(\"sig\") String sig, @Field(\"hash\") String hash);\n\n @FormUrlEncoded\n @POST(\"/monitor/add/\")\n Call<RootRegister> addMonitor(@Field(\"startDate\") String startDate, @Field(\"name\") String name,\n @Field(\"address\") String address, @Field(\"interval\") String interval, @Field(\"type\") String type, @Field(\"port\") String port, @Field(\"keywords\") String keywords,\n @Field(\"mobileDateTime\") String mobileDateTime, @Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash);\n\n @FormUrlEncoded\n @POST(\"/monitor/list/\")\n Call<RootMonitorList> getMonitorList(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash);\n\n @FormUrlEncoded\n @POST(\"/user/forgetpass/\")\n Call<RootRegister> forgotPassword(@Field(\"email\") String email,\n @Field(\"key\") String key, @Field(\"sig\") String sig);\n\n @FormUrlEncoded\n @POST(\"/status/add/\")\n Call<RootRegister> sendStatus(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId, @Field(\"status\") String status, @Field(\"mobileDateTime\") String mobileDateTime, @Field(\"deviceName\") String deviceName, @Field(\"ipAddress\") String ipAddress);\n\n\n @FormUrlEncoded\n @POST(\"/status/list/\")\n Call<RootMonitorStatus> getStatusList(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId, @Field(\"timeFrame\") String timeFrame);\n\n @FormUrlEncoded\n @POST(\"/status/get/\")\n Call<RootMonitorStatus> getMonitorStatus(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId);\n\n @FormUrlEncoded\n @POST(\"/monitor/delete/\")\n Call<RootRegister> sendMonitorDelete(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId);\n\n @FormUrlEncoded\n @POST(\"/monitor/pause/\")\n Call<RootRegister> sendMonitorPause(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId);\n\n @FormUrlEncoded\n @POST(\"/status/ping/\")\n Call<RootMonitorStatus> getStatusPing(@Field(\"sig\") String sig, @Field(\"key\") String key, @Field(\"hash\") String hash, @Field(\"monitorId\") String monitorId);\n\n\n @GET(\"/\")\n Call<ResponseBody> checkType1();\n\n\n// @POST(\"api2/completePrfile\")\n// Call<User> completeProfile(@Header(\"Authorization\") String authorization, @Body User userLogin);\n//\n// @POST(\"/api2/login\")\n// Call<User> loginUser(@Body User userLogin);\n//\n\n\n// @POST(\"api2/community\")\n// Call<ModelCummunity> addCommunity(@Header(\"Authorization\") String authorization, @Body ModelCummunity modelCummunity);\n//\n// @POST(\"api2/m.facebook\")\n// Call<User> facebookLogin(@Body User book);\n//\n// @POST(\"api2/m.google\")\n// Call<User> googleLogin(@Body User book);\n//\n// @Multipart\n// @POST(\"api2/upload\")\n// Call<User> uploadBook(@Header(\"Authorization\") String authorization, @Part MultipartBody.Part filePart);\n//\n// @GET(\"api2/community\")\n// Call<RootModel> search(@Header(\"Authorization\") String authorization, @Query(\"searchkeyword\") String searchkeyword);\n//\n// @GET(\"api2/joinCommunity/{cum_id}\")\n// Call<RootModelJoinCommunity> joinCum(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String cum_id);\n//\n// @GET(\"api2/communityRoom/{cum_id}\")\n// Call<RootModel> getRooms(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String cum_id);\n//\n// @POST(\"api2/communityRoom/{cum_id}\")\n// Call<RootModel> createRoom(@Header(\"Authorization\") String authorization, @Body ModelRoom modelRoom, @Path(\"cum_id\") String cum_id);\n//\n// @GET(\"api2/communityMembers/{cum_id}\")\n// Call<ModelCommunityMembers> getCommunityMembers(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String cum_id);\n//\n// @POST(\"api2/addServiceProvider\")\n// Call<RootModel> addServiceProvider(@Header(\"Authorization\") String authorization, @Body ModelUserInfo modelProfession);\n//\n// @GET(\"api2/getuserdetail\")\n// Call<RootUserInfo> getUserDetail(@Header(\"Authorization\") String authorization);\n//\n// @GET(\"api2/joinRoom/{room_id}\")\n// Call<RootModel> joinRoom(@Header(\"Authorization\") String authorization, @Path(\"room_id\") String room_id);\n//\n// @GET(\"/api2/communityPosts/{cum_id}\")\n// Call<RootPost> getPosts(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String room_id);\n//\n// @POST(\"api2/updatePrfile\")\n// Call<RootModel> updateProfile(@Header(\"Authorization\") String authorization, @Body ModelUserInfo user);\n//\n// @GET(\"/api2/roomMembers/{room_id}\")\n// Call<RootModelGroupMember> getRoomMembers(@Header(\"Authorization\") String authorization, @Path(\"room_id\") String room_id);\n//\n// @GET(\"/api2/myCommunities\")\n// Call<RootMyCommunities> getMyCommunities(@Header(\"Authorization\") String authorization);\n//\n// @POST(\"/api2/communityPost/{cum_id}\")\n// Call<RootModel> addPost(@Header(\"Authorization\") String authorization, @Body ModelPost modelPost, @Path(\"cum_id\") String cum_id);\n//\n//\n// @GET(\"api2/getCommunityProfession/{cum_id}\")\n// Call<ModelCommunityMembers> getDirectory(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String cum_id);\n//\n//\n// @FormUrlEncoded\n// @POST(\"api2/getmemberdetail\")\n// Call<RootUserInfo> getOtherUserInfo(@Header(\"Authorization\") String authorization, @Field(\"userId\") String userId);\n//\n//\n// @GET(\"/api2/getServiceProvider/{cum_id}\")\n// Call<ModelCommunityMembers> getServiceProviders(@Header(\"Authorization\") String authorization, @Path(\"cum_id\") String cumId, @Query(\"profesion\") String profesion);\n//\n//\n// @GET(\"api2/communityPostLike/{post_id}\")\n// Call<RootModel> likePost(@Header(\"Authorization\") String authorization, @Path(\"post_id\") String post_id);\n//\n// @GET(\"api2/communityPostComment/{post_id}\")\n// Call<RootComment> getComments(@Header(\"Authorization\") String authorization, @Path(\"post_id\") String post_id);\n//\n//\n// @FormUrlEncoded\n// @POST(\"api2/communityPostComment/{post_id}\")\n// Call<RootComment> postComment(@Header(\"Authorization\") String authorization, @Path(\"post_id\") String post_id, @Field(\"comment\") String comment);\n\n\n}",
"@Bean // Inject this bean -> -at Qualifier(\"githubWebClient\")\n\tpublic WebClient githubWebClient() {\n\n\t\tfinal DefaultUriBuilderFactory defaultUriBuilderFactory = new DefaultUriBuilderFactory(this.githubBaseUrl);\n\t\tdefaultUriBuilderFactory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.NONE);\n\t\t\n\t\tfinal TcpClient tcpClient = TcpClient.create()\n\t\t\t\t.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, TIMEOUT)\n\t\t\t\t.doOnConnected(conn -> conn.addHandlerLast(new ReadTimeoutHandler(TIMEOUT)).addHandlerLast(new WriteTimeoutHandler(TIMEOUT)))\n\t\t\t\t.wiretap(true); // Helps logging, each request and response will be logged in full detail.\n\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tfinal ClientHttpConnector clientHttpConnector = new ReactorClientHttpConnector(\n\t\t\t\tHttpClient.from(tcpClient).keepAlive(true));\n\n\t\treturn webClientBuilder\n\t\t\t\t.uriBuilderFactory(defaultUriBuilderFactory)\n\t\t\t\t.baseUrl(this.githubBaseUrl)\n\t\t\t\t.codecs(clientCodecConfigure -> clientCodecConfigure.defaultCodecs().enableLoggingRequestDetails(true))\n\t\t\t\t.clientConnector(clientHttpConnector).codecs(clientConfigurer -> clientConfigurer.defaultCodecs().maxInMemorySize(TRANFER_SIZE * 1024 * 1024))\n\t\t\t\t.defaultHeader(HttpHeaders.CONTENT_TYPE, GITHUB_V3_MIME_TYPE)\n\t\t\t\t.defaultHeader(HttpHeaders.USER_AGENT, USER_AGENT)\n .filter(ExchangeFilterFunctions\n .basicAuthentication(/*appProperties.getGithub().getUsername(),\n appProperties.getGithub().getToken())*/\"username\", \"password\"))\n\t\t\t\t.filters(exchangeFilterFunctions -> {\n\t\t\t\t\texchangeFilterFunctions.add(logRequest());\n//\t\t\t\t\texchangeFilterFunctions.add(logResponse());\n\t\t\t\t})\n\t\t\t\t.build();\n\t}",
"public interface ITagService {\n\n\t/**\n\t * 1.创建标签\n\t *\n\t * @param accessToken\n\t * @param name\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic Tag create(String accessToken, String name) throws Exception;\n\n\t/**\n\t * 2.获取公众号已创建的标签\n\t *\n\t * @param accessToken\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic Tags get(String accessToken) throws Exception;\n\n\t/**\n\t * 3.编辑标签\n\t *\n\t * @param accessToken\n\t * @param id\n\t * @param name\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic JSONObject updateTag(String accessToken, String id, String name) throws Exception;\n\n\t/**\n\t * 4.删除标签\n\t *\n\t * @param accessToken\n\t * @param grouid\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic JSONObject delete(String accessToken, int grouid) throws Exception;\n\n\t/**\n\t * 5. 获取标签下粉丝列表\n\t *\n\t * @param tagid\n\t * @param next_openid\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic JSONObject tagGetOpenids(String accessToken,int tagid, String next_openid) throws Exception;\n\n\t/**\n\t * 6. 批量为用户打标签\n\t *\n\t * @param openid_list\n\t * @param tagid\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic JSONObject batchTagging(String accessToken,List<String> openid_list, int tagid) throws Exception;\n\n\t/**\n\t * 7.批量为用户取消标签\n\t *\n\t * @param openid_list\n\t * @param tagid\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic JSONObject batchuntagging(String accessToken,List<String> openid_list, int tagid) throws Exception;\n\n\t/**\n\t * 8.获取用户身上的标签列表\n\t *\n\t * @param accessToken\n\t * @param openid\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic JSONObject getIdList(String accessToken, String openid) throws Exception;\n\n\n\n}",
"public interface OfficialWebsiteHistoryService extends Service<OfficialWebsiteHistory> {\n\n}",
"public interface GithubUserSearchService {\n\n @GET(\"users\")\n Observable<GitHubUsersResponse> getGithubUsersList(@Query(\"q\") String searchName);\n\n}",
"Response head(String repoName, String repoPath, UriInfo baseURI);",
"public interface MyServer {\n @GET(\"/repos/{owner}/{repo}/contributors\")\n Call<ResponseBody>contributors(@Path(\"owner\") String owner,@Path(\"repo\") String repo);\n}",
"public interface GitClient {\n\n\t/**\n\t * Instances of the GitClient that are identified by the path of the git\n\t * repository.\n\t */\n\tpublic Map<IPath, GitClient> instances = new HashMap<IPath, GitClient>();\n\n\t/**\n\t * Retrieves an existing GitClient instance or creates a new instance if there\n\t * is no instance for the given path yet.\n\t * \n\t * @return GitClient instance.\n\t */\n\tpublic static GitClient getOrCreate() {\n\t\tIPath path = ConfigPersistenceManager.getPathToGit();\n\t\tString reference = ConfigPersistenceManager.getBranch();\n\t\tString projectKey = ConfigPersistenceManager.getProjectKey();\n\t\treturn getOrCreate(path, reference, projectKey);\n\t}\n\n\t/**\n\t * Retrieves an existing GitClient instance or creates a new instance if there\n\t * is no instance for the given path yet.\n\t * \n\t * @param path\n\t * to the .git folder.\n\t * @param reference\n\t * git object identifier, e.g., HEAD, refs/heads/master or commit id.\n\t * @param projectKey\n\t * of the associated JIRA project.\n\t * @return GitClient instance.\n\t */\n\tpublic static GitClient getOrCreate(IPath path, String reference, String projectKey) {\n\t\tif (instances.containsKey(path)) {\n\t\t\treturn instances.get(path);\n\t\t}\n\t\tGitClient gitClient = new GitClientImpl(path, reference, projectKey);\n\t\tinstances.put(path, gitClient);\n\t\treturn gitClient;\n\t}\n\n\t/**\n\t * Retrieve the commit message for a given line from a blamed file as a\n\t * RevCommit.\n\t * \n\t * @param filePath\n\t * path to the file to be blamed.\n\t * @param line\n\t * the line that is to be analyzed.\n\t * @return {@link GitCommit} object.\n\t */\n\tGitCommit getCommitForLine(IPath filePath, int line);\n\n\t/**\n\t * Retrieve the commit message for a given line from a blamed file.\n\t * \n\t * @param filePath\n\t * path to the file to be blamed.\n\t * @param line\n\t * the line that is to be analyzed.\n\t * @return commit message.\n\t */\n\tString getCommitMessageForLine(IPath filePath, int line);\n\n\t/**\n\t * Retrieves all commits on the current branch.\n\t * \n\t * @return set of all commits on the current branch as a list of\n\t * {@link GitCommit} objects.\n\t */\n\tList<GitCommit> getCommits();\n\n\t/**\n\t * Retrieve the commits with the JIRA issue key in their commit message.\n\t * \n\t * @param jiraIssueKey\n\t * key for which commits are searched.\n\t * @return commits with the JIRA issue key in their commit message as a list of\n\t * {@link GitCommit} objects.\n\t */\n\tList<GitCommit> getCommitsForJiraIssue(String jiraIssueKey);\n\n\t/**\n\t * Get a map of diff entries and the respective edit lists for a commit.\n\t * \n\t * @param commit\n\t * as a {@link GitCommit} object.\n\t * @return map of diff entries and respective edit lists.\n\t */\n\tMap<DiffEntry, EditList> getDiff(GitCommit commit);\n\n\t/**\n\t * Returns a set of changed files for a commit.\n\t * \n\t * @param commit\n\t * as a {@link GitCommit} object\n\t * @return set of {@link ChangedFile} objects.\n\t */\n\tSet<ChangedFile> getChangedFiles(GitCommit commit);\n\n\t/**\n\t * Returns the jgit git object.\n\t * \n\t * @return jgit git object.\n\t */\n\tGit getGit();\n\n\t/**\n\t * Returns the path to the .git folder.\n\t * \n\t * @return path to the .git folder.\n\t */\n\tIPath getPath();\n\n\t/**\n\t * Show what author and revision last modified each line of a file.\n\t * \n\t * @param filePath\n\t * path to the file to be blamed.\n\t * @return git blame result for the given file.\n\t */\n\tBlameResult getGitBlameForFile(IPath filePath);\n\n\t/**\n\t * Get the parent commit for a given commit.\n\t * \n\t * @param commit\n\t * commit as a {@link GitCommit} object.\n\t * @return parent commit as a {@link GitCommit} object.\n\t */\n\tGitCommit getParent(GitCommit commit);\n\n\t/**\n\t * Gets the git object identifier, e.g., HEAD, refs/heads/master or commit id.\n\t * \n\t * @return git object identifier.\n\t */\n\tString getReference();\n\n\t/**\n\t * Get the jgit repository object.\n\t * \n\t * @return jgit repository object\n\t */\n\tRepository getRepository();\n\n\t/**\n\t * Sets the git object identifier, e.g., HEAD, refs/heads/master or commit id.\n\t * \n\t * @param reference\n\t * git object identifier.\n\t */\n\tvoid setReference(String reference);\n}",
"public interface AuthorService {\n\n /**\n * Save a author.\n *\n * @param authorVO the entity to save\n * @return the persisted entity\n */\n void insert(AuthorVO authorVO);\n\n /**\n * Get all the authors.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<Author> findAllByName(Pageable pageable,String name);\n\n /**\n * Get the \"id\" author.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Author findOne(String id);\n\n /**\n * Delete the \"id\" author.\n *\n * @param id the id of the entity\n */\n void delete(String id);\n\n void update(AuthorVO authorVO);\n}",
"public interface AuthorService {\n /**\n * Creates Author object\n * @param author Author instance\n * @return Author identifier\n * @throws LogicException if DAOException obtained\n */\n Long createAuthor(Author author) throws LogicException;\n\n /**\n * Deletes field from database\n * @param authorId Long value\n * @throws LogicException if DAOException obtained\n */\n void deleteAuthor(Long authorId) throws LogicException;\n void updateAuthor(Author author) throws LogicException;\n Author getAuthorByNewsId(Long newsId) throws LogicException;\n List<Author> getListOfAuthors() throws LogicException;\n void unwireNewsAuthors(Long newsId) throws LogicException;\n List<Author> getListAvailableAuthors() throws LogicException;\n}",
"public interface CommentService {\n\n @Headers({\n \"User-Agent: Mobile-Android\",\n \"Content-Type:application/json\"\n })\n\n @GET(ServiceUtils.COMMENTBYID)\n Call<List<Comment>> getCommentPost(@Path(\"id\") int id);\n\n @GET(ServiceUtils.COMMENTID)\n Call<Comment> getCommentId(@Path(\"id\") int id);\n\n @GET(ServiceUtils.SORTCOMMENT)\n Call<List<Comment>> sortComment();\n\n @GET(ServiceUtils.SORTCOMMENTBYLIKE)\n Call<List<Comment>> sortCommentByLike();\n\n @POST(ServiceUtils.ADDCOMMENT)\n Call<Comment> addComment(@Body Comment comment);\n\n @DELETE(ServiceUtils.DELETECOMMENT)\n Call<Comment> deleteComment(@Path(\"id\") Integer id);\n\n @PUT(ServiceUtils.LIKEDISLIKECOMMENT)\n Call<Comment> likeDislike(@Body Comment comment, @Path(\"id\") int id);\n\n @PUT(ServiceUtils.UPDATECOMMENT)\n Call<Comment> updateComment(@Body Comment comment, @Path(\"id\") int id);\n}",
"public interface AuthorInfoService {\n\t\n\t/**\n\t * Retrieves an author's profile for the given authorId\n\t * @param authorId Id of an author\n\t * @return author's profile information \n\t */\n\tpublic Author getAuthorProfile(int authorId);\n\t\n\t/**\n\t * Retrieves a list of published papers by author for the given authorId\n\t * @param authorId Id of an author\n\t * @return list of published papers\n\t */\n\t\n\tpublic List<AuthorPaper> getAuthorPapers(int authorId) throws SQLException;\n\t\n\t/**\n\t * Retrieves a list of conferences attended by author for the given authorId\n\t * @param authorId Id of an author\n\t * @return list of conference papers\n\t */\n\tpublic List<Conference> getAuthorConferenceServed(int authorId) throws SQLException;\n\t\n}",
"public interface CommunityService extends WorkspaceService\r\n{\r\n\r\n static final String COMMUNITY_SERVICE_KEY = \"COMMUNITY_SERVICE_KEY\";\r\n\r\n /**\r\n * Creations of a Community object reference.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return Community object reference\r\n * @exception CommunityException\r\n */\r\n Community createCommunity( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creations of a Community storage instance.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return CommunityStorage community storage\r\n * @exception CommunityException\r\n */\r\n CommunityStorage createCommunityStorage( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creation of a Community object reference based on a supplied storage object.\r\n * @param store a community storage object\r\n * @return Community a Community object reference\r\n * @exception CommunityException\r\n */\r\n Community getCommunityReference( CommunityStorage store ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Returns a reference to a Community given a persistent storage object identifier.\r\n * @param pid community short persistent identifier\r\n * @return Desktop the corresponding PID\r\n * @exception NotFound if the supplied pid does not matach a know desktop\r\n */\r\n Community getCommunityReference( byte[] pid )\r\n throws NotFound;\r\n\r\n}",
"@Override\n\tpublic String getRepositoryURL(String userId) throws GitException {\n\n\t\tlogger.info(\"getRepoURL method Begins\");\n\t\t\n\t\tString repoURL = null;\n\t\tString uri = env.getProperty(\"api.github.users.uri\")+userId;\n\n\t\tlogger.info(\"GIT Request URL: \"+uri);\n\t\t\n\t\ttry {\n\n\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\t\tHttpEntity<String> entity = new HttpEntity<String>(\"parameters\", headers);\n\n\t\t\tResponseEntity<String> result = restTemplate.exchange(uri, HttpMethod.GET, entity, String.class);\n\n\t\t\tSystem.out.println(result);\n\t\t\t\n\t\t Map<String,Object> object = JsonMapperUtil.convertJSONToModel(result.getBody());\n\t\t \n\t\t repoURL=(String)object.get(env.getProperty(\"github.user.repos_url\"));\n\n\t\t\tlogger.debug(\"RepoURL -> \"+repoURL);\n\t\t\t\n\t\t} catch (HttpClientErrorException e) {\n\t\t System.out.println(e.getStatusCode());\n\t\t System.out.println(e.getResponseBodyAsString());\n\t\t //repoURL = \"Not Found\";\n\t\t repoURL = GitConstants.NOT_FOUND;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new GitException(e.getMessage());\n\t\t}\n\n\t\tlogger.info(\"getRepoURL method Ends\");\n\n\t\tif (null != repoURL) {\n\t\t\treturn repoURL;\n\t\t}\n\n\t\treturn GitConstants.NOT_FOUND;\n\n\t}",
"public interface TagService {\n\n boolean retagIdea(ArrayList<Tag> newTag, Idea idea, User user);\n\n /**\n * Saves the tags provided as a comma separate string.\n * It Parses the tag string and checks for de-dupe and finally save them\n * into data store.\n * \n * @param tags The String object representing the comma separated tag\n * strings.\n * @return list of saved tag objects.\n */\n List<Tag> saveTags(String tags);\n\n /**\n * Retrieves a list of Tags by keys.\n * \n * @param keys the collection of keys of Tag objects.\n * @return Returns the list of Tag objects corresponding to keys.\n */\n List<Tag> getTagsByKeys(Collection<String> keys);\n\n /**\n * Retrieves the tags staring with a specific string.\n * \n * @param startString the start string to be matched with the title of\n * the tags\n * @param retrievalInfo the {@link RetrievalInfo} object containing the\n * request parameters\n * \n * @return list of fetched tags\n */\n List<Tag> getTagsWithSpecificStartString(String startString, RetrievalInfo retrievalInfo);\n\n /**\n * Get the data for auto suggestion of tags.\n * \n * @param startString the start string for which the suggestions are to\n * be fetched.\n * @param retrievalInfo the {@link RetrievalInfo} object containing the\n * request parameters\n * @return the list of fetched tags\n */\n List<Tag> getTagsForAutoSuggestion(String startString, RetrievalInfo retrievalInfo);\n\n /**\n * Get the data for Tag Cloud.The tags returned are sorted alphabetically.\n * \n * @param retrievalInfo the {@link RetrievalInfo} object containing the\n * request parameters\n * @return the list of tags for tag cloud\n */\n List<Tag> getTagsForTagCloud(RetrievalInfo retrievalInfo);\n\n /**\n * Get the tag with title equal to the tagName param.\n * \n * @param tagName the title of the tag to be fetched\n * @return the {@link Tag} object\n */\n Tag getTagByName(String tagName);\n\n /**\n * Get the tags associated with ideas owned by a user.\n * \n * @param user the user whose tags are to be fetched\n * @return list of tags associated with ideas of the user\n */\n List<Tag> getMyTagCloud(User user);\n\n /**\n * Iterates through the list of objects and increment the weight if each Tag\n * {@link Tag} object.\n * \n * @param tags comma separated tags string.\n * @return list of tags for which, weight successfully incremented.\n */\n\n List<Tag> incrementWeights(String tags);\n\n /**\n * Save a tag\n * \n * @param tag the {@link Tag} object to be saved\n * @return the saved {@link Tag} object\n */\n Tag saveTag(Tag tag);\n\n /**\n * Iterates through the list of objects and decrement the weight of each Tag\n * {@link Tag} object.\n * \n * @param tags comma separated tags string.\n * @return list of tags for which, weight successfully decremented.\n */\n\n List<Tag> decrementWeights(String tags);\n\n /**\n * Remove tags with zero weight from the list\n * \n * @param tagList the list of {@link Tag} objects from which to remove\n * objects with zero weight\n * @return the filtered list\n */\n List<Tag> removeTagWithZeroWeight(List<Tag> tagList);\n}",
"public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}",
"public interface MergerService {\n /**\n * 封存、启封、销户 分页\n * @param map\n * @return\n */\n List<PersonsAccountNumberState> SealedPage1(Map map);\n\n /**\n * 封存、启封 销户 查询信息条数\n * @param map\n * @return\n */\n List<Map> SealedPageCount1(Map map);\n\n\n /**\n * 判断唯一性校验 封存 启封 销户 校验 不能重复操作\n * @param map\n * @return\n */\n List<Map> verification(Map map);\n\n /**\n * 校验贷款的人 不能销户 和 封存\n * @param map\n * @return\n */\n List<Map> loansVerification(Map map);\n /**\n * 封存 启封 销户 操作弹出层查询信息\n * @param map\n * @return\n * element--controller放到service层\n */\n Map operationQuery(Map map);\n\n /**\n * 获取审核信息 放入审核表中\n * @param map\n * @return\n * element 放到service层\n */\n Map unsealAudit1(Map map, HttpSession session);\n\n /**\n * 获取审核信息 添加到审核表中\n * @param map\n * @return\n * element\n */\n int unsealAuditAdd1(Map map);\n\n /**\n * 获取分页数据\n * @param map\n * @return\n */\n List<personDetail> getPage1(Map map);\n\n /**\n * 获取分页数据总数量\n * @param map\n * @return\n */\n int getPageCount1(Map map);\n\n\n //12121648查看审批\n /**\n * 审批工作类别查询\n * @return\n */\n List<Map> accraditation1();\n\n /**\n * 查询贷款记录表中的信息 录入查看审批表中\n * @param map\n * @return\n */\n List<Map> loans1(Map map);\n\n /**\n * 查询贷款记录表中的总信息条数\n * @return\n */\n int loansCount1();\n\n /**\n * 查询封存、启封、销户 记录表\n * @param map\n * @return\n */\n List<Map> breaka1(Map map);\n\n /**\n * 查询封存、启封、销户 记录表 条数\n * @return\n */\n int breakaCount1();\n\n /**\n * 查询人员转移记录表中信息 录入查看审批表中\n * @param map\n * @return\n */\n List<Map> transfer(Map map);\n\n /**\n * 查询人员转移记录表 条数\n * @return\n */\n int transferCount();\n\n /**\n * 查询公积金提取记录表\n * @param map\n * @return\n */\n List<Map> extract(Map map);\n /**\n * 查询公积金提取记录表\n * @param map\n * @return\n */\n List<Map> extract1(Map map);\n\n /**\n * 查询公积金提取记录表 条数\n * @return\n */\n int extractCount1();\n}",
"public interface RssFetcherService {\n\n /**\n * Returns a list of SyndFeed generated by an array of feed urls.\n *\n * @param feedUrls set of rss feed urls\n * @return a list of Rome SyndFeeds generated by the list of urls\n * @throws IOException an I/O exception has occurred\n * @throws FeedException an Feed exception has occurred\n * @throws FetcherException an FetcherException has occurred\n */\n List<SyndFeed> getRssFeeds(Set<String> feedUrls) throws FeedException, IOException,\n FetcherException;\n\n List<Map<String, String>> getAllInformationFromLatestFeed();\n}",
"@Override\n\tpublic List<GitResponseVO> getRepositoryList(String repoUrl) throws GitException {\n\t\t\n\t\tlogger.info(\"getRepositoryList method Begins\");\n\t\t//String repoUrl=null;\n\t\tList<GitResponseVO> gitResponseList =null;\n\t\t\n\t\tlogger.info(\"Repo URL ->>> \"+repoUrl);\n\t\ttry {\n\t\t\t// Fetches the repository list post fetching the repo URL\n\t\t\tif(!repoUrl.equalsIgnoreCase(GitConstants.NOT_FOUND)) {\n\t\t\t\t\n\t\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\t\t\tHttpEntity<String> entity = new HttpEntity<String>(\"parameters\", headers);\n\n\t\t\t\tResponseEntity<String> result = restTemplate.exchange(repoUrl, HttpMethod.GET, entity, String.class);\n\t\t\t\t\n\t\t\t\tgitResponseList = JsonMapperUtil.getRepositoryDetails(result.getBody());\n\n\t\t\t\tlogger.info(\"Repo List -> \"+gitResponseList.size());\n\n\t\t\t\tfor(GitResponseVO res: gitResponseList) {\n\t\t\t\t\tSystem.out.println(res.toString());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tlogger.info(\"User Id not Found\");\n\t\t\t}\n\t\t\t\t\t\t\n\n\t\t}catch (Exception e) {\n\t\t\tthrow new GitException(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t\treturn gitResponseList;\n\t}",
"public interface ICardService {\r\n /**\r\n * 查询帖子\r\n * @param params {\"bbsid\": 1, \"housename\": \"test\"}\r\n * @return\r\n * @throws Exception\r\n */\r\n String search(String params) throws Exception;\r\n\r\n /**\r\n * 创建帖子\r\n * @param params {'bbsId':1,'customerId':1,'content':'test','lon':'1.1','lat':'1.1','address':'YanJiaQiao No.1','picUrls':'1.jpg,2.jpg,3.jpg'}\r\n * @return\r\n * @throws Exception\r\n */\r\n String cardCreate(String params) throws Exception;\r\n\r\n /**\r\n * 创建帖子\r\n * @param params {'houseid':1, 'bbsid': 1,'customerId':1,'content':'test','lon':'1.1','lat':'1.1','address':'YanJiaQiao No.1','picUrls':'1.jpg,2.jpg,3.jpg'}\r\n * @return\r\n * @throws Exception\r\n */\r\n String insertCard(String params) throws Exception;\r\n\r\n /**\r\n * 点赞\r\n * @param params {\"cardid\":\"1\",\"cardownerid\":\"1\",\"customerid\":\"2\"}\r\n * @return\r\n */\r\n String like(String params) throws Exception;\r\n\r\n /**\r\n * 评论\r\n * @param params {\"bbsid\":\"1\",\"cardid\":\"1\",\"housename\":\"test\",\"customerid\":\"2\",\"cardownerid\":\"1\",\"content\":\"xxxxx\"}\r\n * @return\r\n * @throws Exception\r\n */\r\n String comment(String params) throws Exception;\r\n\r\n /**\r\n * 回复\r\n * @param params {\"bbsid\":\"1\",\"cardid\":\"1\",\"cardownerid\":\"1\",\"housename\":\"test\",\"senderid\":\"2\",\"commentid\":\"1\",\"receiverid\":\"1\",\"content\":\"xxxxx\"}\r\n * @return\r\n * @throws Exception\r\n */\r\n String resp(String params) throws Exception;\r\n\r\n /**\r\n * 添加帖子图片\r\n * @param params (帖子ID,图片ID数组)\r\n * @return\r\n */\r\n String addPicture(String params) throws Exception;\r\n}",
"public interface ICardService {\r\n /**\r\n * @param params eg:{'bbsId':1,'customerId':1,'type':'','pubDateFrom':'20151008','pubDateTo':'20151108'}\r\n * @return\r\n * @throws Exception\r\n */\r\n String search(String params) throws Exception;\r\n\r\n /**\r\n * @param params eg: {'cardId':1}\r\n * @return\r\n * @throws Exception\r\n */\r\n String cardDetail(String params) throws Exception;\r\n\r\n /**\r\n * @param params, eg: {'bbsId':1,'customerId':1,'content':'test','lon':'1.1','lat':'1.1','address':'YanJiaQiao No.1','picUrls':'1,2,3'}\r\n * @return\r\n * @throws Exception\r\n */\r\n String create(String params) throws Exception;\r\n\r\n /**\r\n * save card\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String save(String params)throws Exception;\r\n\r\n /**\r\n * delete card\r\n * @param params, eg: {'cardId':1}\r\n * @return\r\n * @throws Exception\r\n */\r\n String delete(String params) throws Exception;\r\n\r\n /**\r\n * 添加帖子图片\r\n * @param params (帖子ID,图片ID数组)\r\n * @return\r\n */\r\n String addPicture(String params) throws Exception;\r\n\r\n /**\r\n * 获取帖子图片\r\n * @param params(帖子ID)\r\n * @return\r\n * @throws Exception\r\n */\r\n String getPictures(String params) throws Exception;\r\n\r\n /**\r\n * 删除帖子图片\r\n * @param params,{'picId':1}\r\n * @return\r\n * @throws Exception\r\n */\r\n String deletePicture(String params) throws Exception;\r\n\r\n /**\r\n * 排序帖子图片\r\n * @param params,eg:{'picId':1,'sortno':2}\r\n * @return\r\n * @throws Exception\r\n */\r\n String resortPicture(String params) throws Exception;\r\n}",
"public interface IRepoListPresenter {\n public void loadCommits(String userName);\n}",
"public interface RepoTempHumService {\n\n Map<String, Object> selectById(Integer repositoryId,int offset, int limit) throws RepoTempHumServiceException;\n\n Map<String, Object> selectAll(int offset, int limit) throws RepoTempHumServiceException;\n\n boolean addRepoTempHumRecord(RepoTempHumDO repoTempHumDO) throws RepoTempHumServiceException;\n\n public File exportRecord(List<RepoTempHumDTO> rows);\n}",
"public interface JanDanApiService {\n\n\n}",
"public interface RxReposInterface {\n\n //public interface IGetDetailsService {\n //@GET(BuildConfig.GET_DETAILS_ENDPOINT)\n //Observable<Detail> getDetails(@Query(\"q\") String someDetail);\n\n @GET(\"orgs/{org}/repos\")\n Observable<List<Repo>> organizationRepoList(\n @Path(\"org\") String organization,\n @Query(\"type\") String repoType,\n @Query(\"sort\") String orderingParameter,\n @Query(\"direction\") Integer order,\n @Query(\"per_page\") Integer maxNumberOfRepos);\n\n\n //https://api.github.com/repos/square/wire/contributors\n @GET(\"repos/{org}/{repo}/contributors\")\n Observable<List<Contributor>> getContributorsList(\n @Path(\"org\") String organization,\n @Path(\"repo\") String repo,\n @Query(\"per_page\") Integer maxNumberOfContributors\n );\n\n\n\n @GET(\"orgs/square/repos\")\n Observable<List<Repo>> getRepoList();\n\n\n @GET(\"repos/square/{repo}/contributors\")\n Observable<List<Contributor>> getContribsList(\n @Path(\"repo\") String repo\n );\n\n @GET(\"orgs/square/repos?per_page=1000\")\n Observable<Response<List<Repo>>> getPageWithRepoList();\n\n @GET\n Observable<Response<List<Repo>>> responceWithRepoListByLink(\n @Url String url);\n\n\n @GET(\"repos/square/{repo}/contributors?per_page=1000\")\n Observable<Response<List<Contributor>>> getPageWithContributorsList(\n @Path(\"repo\") String repo\n );\n\n @GET\n Observable<Response<List<Contributor>>> responceWithContributorsListByLink(\n @Url String url);\n\n}",
"@Test\n public void testCommitsApi() throws Exception\n {\n \n \n RequestBuilder builder = new RequestBuilder(\"GET\");\n Request request = builder.setUrl(\n UriTemplate.fromTemplate(BASE)\n .append(PATH_EXPRESSION)\n .set(\"user\", \"damnhandy\")\n .set(\"repo\", \"Handy-URI-Templates\")\n .set(\"function\",\"commits\")\n .expand()).build();\n Assert.assertEquals(\"https://api.github.com/repos/damnhandy/Handy-URI-Templates/commits\", request.getUrl());\n executeRequest(createClient(), request);\n }",
"public interface TBizProjectDocService extends BaseService<TBizProjectDoc,TBizProjectDocExample>{\n\n PageParams<TBizProjectDoc> list(PageParams<TBizProjectDoc> pageParams);\n\n List<TBizProjectDoc> listAll();\n\n TBizProjectDoc findById(@NotNull Long id);\n\n Boolean del(List<Long> ids);\n\n Boolean saveOrUpdate(TBizProjectDoc bean);\n\n\n void saveOrUpdate(Long projectId,List<Long> docIds);\n\n\n List<Long> getDocIdsByProjectId(Long projectId);\n\n}",
"public interface PeopleService\n{\n @GET(\"peoples/\")\n Call<List<People>> getPeopleAll(@Header(\"merchantCode\") String kodeMerchant);\n\n @GET(\"peoples/{id}\")\n Call<List<People>> getPeople(@Header(\"merchantCode\") String kodeMerchant, @Path(\"id\") String id);\n\n @POST(\"peoples/\")\n Call<HashMap<Integer, String>> postPeople(@Header(\"merchantCode\") String kodeMerchant, @Body People people);\n\n @PUT(\"peoples/{id}\")\n Call<HashMap<Integer, String>> updatePeople(@Header(\"merchantCode\") String kodeMerchant, @Path(\"id\") String id, @Body People people);\n\n @DELETE(\"peoples/{id}\")\n Call<HashMap<Integer, String>> deletePeople(@Header(\"merchantCode\") String kodeMerchant, @Path(\"id\") String id);\n}",
"public interface GitApi {\n\n @GET(\"/search/users\")\n Call<GitModel> getUsers(@Query(\"q\") String query);\n\n}",
"@kotlin.Metadata(mv = {1, 1, 10}, bv = {1, 0, 2}, k = 1, d1 = {\"\\u0000&\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\bf\\u0018\\u0000 \\u000b2\\u00020\\u0001:\\u0001\\u000bJ\\b\\u0010\\u0002\\u001a\\u00020\\u0003H&J\\b\\u0010\\u0004\\u001a\\u00020\\u0003H&J\\b\\u0010\\u0005\\u001a\\u00020\\u0006H&J\\u0010\\u0010\\u0007\\u001a\\u00020\\b2\\u0006\\u0010\\t\\u001a\\u00020\\nH&\\u00a8\\u0006\\f\"}, d2 = {\"Lcom/android/example/paging/pagingwithnetwork/reddit/ServiceLocator;\", \"\", \"getDiskIOExecutor\", \"Ljava/util/concurrent/Executor;\", \"getNetworkExecutor\", \"getRedditApi\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/api/RedditApi;\", \"getRepository\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/repository/RedditPostRepository;\", \"type\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/repository/RedditPostRepository$Type;\", \"Companion\", \"app_debug\"})\npublic abstract interface ServiceLocator {\n public static final com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator.Companion Companion = null;\n \n @org.jetbrains.annotations.NotNull()\n public abstract com.android.example.paging.pagingwithnetwork.reddit.repository.RedditPostRepository getRepository(@org.jetbrains.annotations.NotNull()\n com.android.example.paging.pagingwithnetwork.reddit.repository.RedditPostRepository.Type type);\n \n @org.jetbrains.annotations.NotNull()\n public abstract java.util.concurrent.Executor getNetworkExecutor();\n \n @org.jetbrains.annotations.NotNull()\n public abstract java.util.concurrent.Executor getDiskIOExecutor();\n \n @org.jetbrains.annotations.NotNull()\n public abstract com.android.example.paging.pagingwithnetwork.reddit.api.RedditApi getRedditApi();\n \n @kotlin.Metadata(mv = {1, 1, 10}, bv = {1, 0, 2}, k = 1, d1 = {\"\\u0000 \\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u0002\\n\\u0002\\b\\u0002\\b\\u0086\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u000e\\u0010\\u0004\\u001a\\u00020\\u00052\\u0006\\u0010\\u0006\\u001a\\u00020\\u0007J\\u0010\\u0010\\b\\u001a\\u00020\\t2\\u0006\\u0010\\n\\u001a\\u00020\\u0005H\\u0007R\\u000e\\u0010\\u0003\\u001a\\u00020\\u0001X\\u0082\\u0004\\u00a2\\u0006\\u0002\\n\\u0000R\\u0010\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005X\\u0082\\u000e\\u00a2\\u0006\\u0002\\n\\u0000\\u00a8\\u0006\\u000b\"}, d2 = {\"Lcom/android/example/paging/pagingwithnetwork/reddit/ServiceLocator$Companion;\", \"\", \"()V\", \"LOCK\", \"instance\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/ServiceLocator;\", \"context\", \"Landroid/content/Context;\", \"swap\", \"\", \"locator\", \"app_debug\"})\n public static final class Companion {\n private static final java.lang.Object LOCK = null;\n private static com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator instance;\n \n @org.jetbrains.annotations.NotNull()\n public final com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator instance(@org.jetbrains.annotations.NotNull()\n android.content.Context context) {\n return null;\n }\n \n /**\n * * Allows tests to replace the default implementations.\n */\n @android.support.annotation.VisibleForTesting()\n public final void swap(@org.jetbrains.annotations.NotNull()\n com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator locator) {\n }\n \n private Companion() {\n super();\n }\n }\n}",
"public interface ProjectService {\n\n public String chargeProject(String instance, String id);\n\n public void createProject(String instance, String name);\n\n public void delete(String instance, String id);\n\n public List<Project> chargeAll(String instance);\n\n public void update(String instance, String id, String name);\n}",
"public interface ProjectsService {\n\n /**\n * Save a projects.\n *\n * @param projectsDTO the entity to save\n * @return the persisted entity\n */\n ProjectsDTO save(ProjectsDTO projectsDTO);\n\n /**\n * Get all the projects.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<ProjectsDTO> findAll(Pageable pageable);\n\n /**\n * Get the \"id\" projects.\n *\n * @param id the id of the entity\n * @return the entity\n */\n ProjectsDTO findOne(String id);\n\n /**\n * Delete the \"id\" projects.\n *\n * @param id the id of the entity\n */\n void delete(String id);\n}",
"public interface ContactGroupHistoryService extends GenericService<ContactGroupHistory, Long>{\n\n public UUID newVersion(ContactGroup contactGroup, Long groupId, UUID contactHistoryVersion, UUID version, boolean markAsDeleted);\n public Optional<ContactGroupHistory> getPreviousVersion(Long contactGroupId);\n public List<ContactGroup> getContactGroup(UUID contactGroupVersion) throws NotFoundException;\n\n\n}",
"public interface GitFollowing {\n /**\n * Get calls to access following.\n *\n * @param user the given user's name.\n * @return a list of UserFollowing objects.\n */\n @GET(\"/users/{user}/following\")\n Call<List<UserFollowing>> getUserFollowing(@Path(\"user\") String user);\n}",
"public interface GitFollowingsService {\n @GET(\"users/{username}/following\")\n Observable<List<Follow>> getGitFollowings(@Path(\"username\") String username);\n}",
"public interface Repository {\n\n }",
"public interface Repository {\n\n }",
"public interface TinyurlService {\n\n /**\n * 根据长链接生成短链接\n * @param baseUrl\n * @param rawUrl\n * @return\n */\n BaseResult<String> createTinyurl(String baseUrl, String rawUrl);\n\n /**\n * 根据短连接code查找长地址\n * @param base62Code\n * @return\n */\n BaseResult<String> getLongUrl(String baseUrl,String base62Code);\n\n /**\n * 个性化code\n * @param baseUrl\n * @param base62Code\n * @param rawUrl\n * @return\n */\n BaseResult<String> createTinyurl(String baseUrl,String base62Code, String rawUrl);\n}",
"@Override\n protected AccGitHuber doInBackground(Void... voids) {\n return executeRequest();\n }",
"public interface ClientService {\n /**\n\t * Creates a new client.\n\t * \n\t * @param created\n\t * The information of the created client.\n\t * @return The created client.\n\t */\n\tpublic Client create(Client created);\n\n\t/**\n\t * Deletes a client.\n\t * \n\t * @param clientId\n\t * The id of the deleted client.\n\t * @return The deleted client.\n\t * @throws EntityNotFoundException\n\t * if no client is found with the given id.\n\t */\n\tpublic Client delete(Integer clientId) throws EntityNotFoundException;\n\n\t/**\n\t * Finds all clients.\n\t * \n\t * @return A list of clients.\n\t */\n\tpublic Page<Client> findAll(QueryFilter[] queryFilters, Pageable pageable);\n\t\n\tpublic Page<Client> findAll(Pageable pageable);\n\t\n\t/**\n\t * Finds client by id.\n\t * \n\t * @param id\n\t * The id of the wanted client.\n\t * @return The found client. If no client is found, this method returns\n\t * null.\n\t */\n\tpublic Client findById(Integer id) throws\n\t EntityNotFoundException;\n\t/**\n\t * Updates the information of a client.\n\t * \n\t * @param updated\n\t * The information of the updated client.\n\t * @return The updated client.\n\t * @throws EntityNotFoundException\n\t * if no client is found with given id.\n\t */\n\tpublic Client update(Client updated) throws EntityNotFoundException;\n\n\t/**\n\t * Retrieve the total count of the clients in the repository.\n\t * \n\t * @param None\n\t * .\n\t * @return The count of the client.\n\t */\n\n\tpublic long countAll();\n\n\n public Page<Client> findAssociatedValues(Object value, String entityName, String key, Pageable pageable);\n\n\n}",
"private RssFeedServiceImpl(){\n }",
"public interface IProjectInfoService extends IGenericService<ProjectInfo> {\n\t\n\tpublic List<String> getProjectDetailUrls();\n}",
"public interface GithubRepository {\n\n Single<List<GithubModel>> getRepo();\n\n}",
"public static void main(String[] args) {\nSystem.out.println(\"day one example how to use git\");\r\n\t}",
"public interface Repository {\n /**\n * 获取位置信息,本地缓存,两天请求一次\n *\n * @param cityId\n * @return\n */\n Single<HttpResult<Void>> getSubways(String cityId);\n\n}",
"@Override\n public GitRepoStats getRepoStatistics(String userName, String repoName , String type) throws GitException, RepoUserNotFoundException {\n GitRepoStats openPr=new GitRepoStats();\n try {\n responseCount=0;\n //based on the strategy gets the api url\n StrategyContext createGitApi=new StrategyContext (new GitStatisticsApi());\n String url=createGitApi.createAPI(userName,repoName,type);\n //call recessive the pr api with open status by reading the headers rel value\n processPrdDetails(url,true);\n openPr.setCount(responseCount);\n } catch (HttpClientErrorException hce) {\n LOGGER.error(\"GitApiImpl :: getRepoStatistics HttpClientErrorException :: \", hce);\n throw new GitException(VALID_REPO);\n }\n return openPr;\n }",
"public interface CodebadgeService {\n\n /**\n * Save a codebadge.\n *\n * @param codebadge the entity to save\n * @return the persisted entity\n */\n Codebadge save(Codebadge codebadge);\n\n /**\n * Get all the codebadges.\n *\n * @return the list of entities\n */\n List<Codebadge> findAll();\n\n /**\n * Get the \"id\" codebadge.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Codebadge findOne(Long id);\n\n /**\n * Delete the \"id\" codebadge.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n * Search for the codebadge corresponding to the query.\n *\n * @param query the query of the search\n * \n * @return the list of entities\n */\n List<Codebadge> search(String query);\n}",
"public interface ProfileService {\n\n /**\n * persist object\n *\n * @author Yuebiao ma\n * @version 1.0\n * @param st object pending to be persisted\n * @since 2016-03-30\n *\n */\n public void insert(Profile st);\n\n /**\n * delete object\n *\n * @author Yuebiao ma\n * @version 1.0\n * @param id of object pending to be deleted\n * @since 2016-03-30\n *\n */\n public void delete(String id);\n\n /**\n * query object list\n *\n * @author Yuebiao ma\n * @version 1.0\n * @param id of object to be queried\n * @since 2016-03-30\n *\n */\n public List<Profile> getProfilebyid(String id);\n\n public void update(Profile obj);\n\n public String testquery();\n\n}",
"public GerritService() { super(TAG); }",
"public interface AuthorService {\n String printAllAuthors();\n String printAuthorById(long id);\n String printBooksByAuthor(long id);\n}",
"public interface Api {\n\n String APP_DOMAIN = \"https://api.github.com\";\n\n String RequestSuccess = \"0\";\n}",
"public interface IBlogService {\n List<PostViewModel> getAllPosts();\n List <PostViewModel> getPostsByAuthor(UserViewModel author) throws Exception;\n long addPost(CreatePostViewModel postViewModel) throws Exception;\n long deletePost(Long postId) throws Exception;\n long addComment(AddCommentViewModel commentViewModel) throws Exception;\n long deleteComment(Long commentId) throws Exception;\n List<CommentViewModel> getAllCommentsForPost(long postId) throws Exception;\n\n}",
"@Override\n\tprotected HttpRequest createHttpRequest() {\n HttpGet httpGet = new HttpGet(getHost() + \"/repos/\" + owner + \"/\" + repo + \"/pulls?state=\" + state);\n httpGet.setHeader(\"Accept\", GITHUB_ACCEPT_HEADER);\n if (username != null && password != null) {\n \thttpGet.setHeader(\"Authentication\", AuthenticationUtils.getBasicAuthentication(username, password));\n }\n return httpGet;\n }",
"public interface BillService {\n\n//\t/**\n//\t * <p>MethodName: getCount</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: int</P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tint getCount() throws Exception;\n//\n//\t/**\n//\t * <p>MethodName: getPageList</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: List<BaseInfo></P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tList<BaseInfo> getPageList(PageParameter pageParameter) throws Exception;\n//\n//\t/**\n//\t * <p>MethodName: delete</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: int</P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tint delete(List<String> idList) throws Exception;\n//\n//\t/**\n//\t * <p>MethodName: delete</p>\n//\t * <p>Description: </p>\n//\t * <p>Company: www.shuiguoyizhan.com</p>\n//\t * <p>Parameter: </P>\n//\t * <p>Return Type: int</P>\n//\t * @author yjs\n//\t * @date 2016-5-8\n//\t * @vession 1.0.0\n//\t */\n//\tint delete(String billId) throws Exception;\n\n\t\n}",
"public interface AuthorService {\n AuthorDTO create(AuthorDTO author);\n List<AuthorDTO> findAll();\n AuthorDTO findById(int id);\n List<AuthorDTO> findBySurname(String surname);\n AuthorDTO findAuthor(String name, String surname);\n}",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tCloseableHttpClient CloseableHttpClient= HttpClients.createDefault();\n\t\tHttpGet get = new HttpGet(\"https://reqres.in/api/users/2\");\n\t\tCloseableHttpResponse CloseableHttpResponse= CloseableHttpClient.execute(get);\n\t\tint StatusCode= CloseableHttpResponse.getStatusLine().getStatusCode();\n\n\t\t//int daten= CloseableHttpResponse.getHeaders();\n\t\tHeader[] Headers= CloseableHttpResponse.getAllHeaders();\n\t\tSystem.out.println(StatusCode);\n\nString str=null;\n\t\tString reponse=EntityUtils.toString(CloseableHttpResponse.getEntity(),\"UTF-8\");\n\t\tSystem.out.println(\"---------------------------\");\t\n\t\tSystem.out.println(reponse);\n\n\t\tJSONObject jSONObject = new JSONObject(reponse);\n\t\tJSONObject jSONData=(JSONObject) jSONObject.get(\"data\");\n\t\tSystem.out.println(jSONData.get(\"first_name\"));\n\t\tjSONData.put(\"first_name\", \"Tushar\");\n\t\tSystem.out.println(jSONData.get(\"first_name\"));\n\t\t\n\t\tString strRequestPayload = FileUtils.readFileToString(new File (\"C:\\\\Users\\\\tushar.chitale\\\\Desktop\\\\screenshot\\\\payloadnew.txt\"));\n\t\t//System.out.println(strRequestPayload);\n if ((strRequestPayload.contains(\"morpheus\")) == true)\n {\n \t str=strRequestPayload.replace(\"leader\", \"HELLO\");\n }\n System.out.println(str);\n\t\t//strRequestPayload.replace(oldChar, newChar)\n \n\t}",
"public interface Pledge_Service {\n\n PledgeEnt getPledge(String id);\n List<PledgeEnt> getPledgeList(String line_no,String CUSTCOD);\n\n}"
] |
[
"0.70986205",
"0.67865497",
"0.6572974",
"0.6520631",
"0.63442737",
"0.63109964",
"0.6282231",
"0.62785107",
"0.62624437",
"0.6253412",
"0.61390424",
"0.59772074",
"0.59680146",
"0.59496194",
"0.59407717",
"0.5931927",
"0.59089446",
"0.5856665",
"0.58512866",
"0.58443063",
"0.58211976",
"0.5789174",
"0.57855105",
"0.57811147",
"0.5768003",
"0.5716243",
"0.5698226",
"0.5648789",
"0.5642966",
"0.5597433",
"0.5583404",
"0.5578791",
"0.5548946",
"0.55370045",
"0.5532586",
"0.55314815",
"0.55272716",
"0.54956895",
"0.54548144",
"0.544935",
"0.5446924",
"0.54235613",
"0.54085594",
"0.5401361",
"0.53952587",
"0.5381791",
"0.5378818",
"0.53690034",
"0.53677636",
"0.5355606",
"0.53519624",
"0.5349944",
"0.53422457",
"0.5334089",
"0.53322315",
"0.5322636",
"0.53179586",
"0.53117555",
"0.5310237",
"0.5308633",
"0.53036934",
"0.52988476",
"0.529604",
"0.52880096",
"0.5280866",
"0.5273228",
"0.5260853",
"0.526081",
"0.5255279",
"0.52446455",
"0.52395725",
"0.5237344",
"0.5237078",
"0.5229469",
"0.5228011",
"0.52263844",
"0.5222033",
"0.52193856",
"0.51949203",
"0.51949203",
"0.51943994",
"0.5177531",
"0.51678234",
"0.5165926",
"0.51640916",
"0.51569176",
"0.5148908",
"0.51472324",
"0.5142886",
"0.5142094",
"0.5140298",
"0.5139984",
"0.5139348",
"0.51358473",
"0.5133456",
"0.5132902",
"0.5127227",
"0.51176536",
"0.51033235",
"0.5102349"
] |
0.6182047
|
10
|
TODO use a different step to check the home title
|
@Given("The dealer open the MilesWeb portal Dealer home page {string}")
public void the_dealer_open_the_MilesWeb_portal_Dealer_home_page(String url) {
navigateTo.milesWebHomePage(url, "MilesWeb portale Dealer");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test \n\tpublic void homePageTitleTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\t\t\n\t\t//Fetch title \n\t\tString title = homePage.getTitle();\n\t\t\n\t\t//Assert title content \n\t\tAssert.assertTrue(title.equals(\"Lorem Ipsum - All the facts - Lipsum generator\"));\n\t}",
"@When(\"I am on Home page\")\n public void homepage_i_am_on_home_page() {\n homePage = new HomePage(driver);\n homePage.check_page_title();\n }",
"@Test\n public void verifyTitleOfHomePageTest()\n {\n\t \n\t String abc=homepage.validateHomePageTitle();\n\t Assert.assertEquals(\"THIS IS DEMO SITE FOR \",abc );\n }",
"public void verifyUserIsOnHomepage()\n {\n asserttextmessage(getTextFromElement(_welcomeTileText),expected,\"user on home page\");\n\n }",
"public void verifyDashboardTitle() {\n app.azzert().titleEquals(\"PECOS\");\n }",
"@When(\"^User checks$\")\r\n\r\n\tpublic void user_cahecks_the_title() throws Throwable {\n\r\n\t\tSystem.out.println(\"Page Title \" + driver.getTitle());\r\n\r\n\t\tActualTitle =driver.getTitle();\r\n\r\n\t}",
"@Test\n @Then(\"Headphones page is opened\")\n public void s08_HPUrlCheck() {\n String currentHPTitle = driver.getTitle();\n if (currentHPTitle.contains(\"Наушники\")) {\n System.out.println(\"Step08 PASSED\");\n }\n else\n {\n System.out.println(\"Step08 FAILED\");\n }\n System.out.println(\"Step08 PASSED\");\n }",
"@Given(\"^user is on home page of website$\")\n public void userIsOnHomePageOfWebsite() {\n\n }",
"protected boolean titlePageNeeded(){\n return true;\n }",
"@Test\n\tpublic void titlevalidation() throws IOException\n\t{\n\t\t\n\t\tLandingpage l=new Landingpage(driver);\n\t\t//compare text from the browser with the actual text\n\t\t//here comes assertion\n\t\tAssert.assertEquals(l.title().getText(),\"FEATURED COURSES\");\n\t\tlog.info(\"Compared properly\");\n\t\t\n\t}",
"@Test\n\n public void validateAppTitle() throws IOException {\n LandingPage l = new LandingPage(driver);\n //compare the text from the browser with actual text.- Error..\n Assert.assertEquals(l.getTitle().getText(), \"FEATURED COURSES\");\n\n System.out.println(\"Test running from Inside docker for tests dated 22-03-2020\");\n System.out.println(\"Test completed\");\n\n ;\n\n\n }",
"@Feature(value = \"Site testing\")\n @Stories(value = {@Story(value = \"Main page functionality\"),\n @Story(value = \"Service page functionality\")})\n @Test(priority = 1)\n public void mainPageTitleBeforeLoginTest() {\n checkMainPageTitle(mainPage);\n }",
"protected String getHomePageTitle() { \n return null; \n }",
"public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }",
"@When(\"^title of the page is Guru$\")\n\tpublic void title_of_the_page_is_Guru() {\n\t\tString title= driver.getTitle();\n\t\t Assert.assertEquals(title, \"Guru99 Bank Home Page\");\n\t\t System.out.println(title);\n\t}",
"@Given(\"^I am on the Home page$\")\n public void iAmOnTheHomePage() throws Throwable {\n home.isPageOpened();\n //throw new PendingException();\n }",
"@Given(\"I am on Magalu HomePage\")\n\tpublic void i_am_on_the_homepage() {\n\t\tdriver.get(Homeurl);\n\t}",
"@Test(priority=0)\n\tpublic void titleVerification() {\n\t\tString expectedTitle = \"Facebook – log in or sign up\";\n\t\tString actualTitle = driver.getTitle();\n\t\tAssert.assertEquals(actualTitle, expectedTitle);\n\t}",
"public void validateTitle()\r\n\t{\r\n\t\tString titleDisplayed = this.heading.getText();\r\n\t\tassertEquals(titleDisplayed, \"Dashboard\");\r\n\t\tSystem.out.println(\"Value is asserted\");\r\n\t\t\t}",
"public String homePageTitle() {\n\t\tString title=driver.getTitle();\n\t\treturn title;\n\t}",
"@Then(\"^get the title home page$\")\r\n public void test_amazon_login_page_title() {\r\n\r\n driver.manage().timeouts().pageLoadTimeout(4, TimeUnit.SECONDS);\r\n driver.manage().timeouts().implicitlyWait(4, TimeUnit.SECONDS);\r\n\r\n String title = driver.getTitle();\r\n Assert.assertEquals(\"Amazon.com: Online Shopping for Electronics, Apparel, Computers, Books, DVDs & more\", title);\r\n }",
"public void angelHomePage()\r\n\t{\r\n\t\tResultUtil.report(\"INFO\", \"AngelHomePage > angelHomePage\", driver);\r\n\t\tswitchFrameToAngelContent();\r\n\t\tif(Element.verify(\"Logged in Message\", driver, \"XPATH\", \"//span[@class='pageTitleSpan' and text()='Home']\"))\r\n\t\t{\r\n\t\t\tResultUtil.report(\"PASS\", \"Successfully logged in\", driver);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tResultUtil.report(\"FAIL\", \"Login failed\", driver);\r\n\t\t}\t\t\r\n\t}",
"public boolean titlePresent(String title){\n\t\t\t boolean pageRedirected = false;\n\t pageRedirected = driver.getTitle().equals(title);\n\t Reporter.log(\"==========title Presnt for ProductPage======\", true);\n\t \n\t return pageRedirected;\n\t }",
"@Given(\"^User is on Home Page$\")\r\n\tpublic void user_is_on_Home_Page() throws Throwable {\n\t\tsetBrowser();\r\n\t\tsetBrowserConfig();\r\n\t\tdriver.get(\"http://demowebshop.tricentis.com/\");\r\n\t}",
"public String getHomePageTitle() {\n\t\t//instantiate a web element and have the driver get it\n\t\t//WebElement homePageTitle = driver.findElement(By.xpath(\"//div[@id='bodyContent']//h1\"));\n\t\t//System.out.println(\"Home page title text \" + homePageTitle.getText());\n\t\tlogger.info(\"Home Page Title text is: \" + homePageTitle.getText());\n\t\treturn homePageTitle.getText();//homePageTitle is a PageFactory Element, see above. \n\t}",
"public String validateLoginPageTitile(){\n return driver.getTitle();//qani vor gettitley stringa get berum menq\n }",
"public String validatePageTitle(){\n\treturn driver.getTitle();\t\n\t}",
"@Test \n\tpublic void homePageHeaderTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// Validate page header \n\t\tString header = homePage.getHeader();\n\t\tAssert.assertTrue(header.equals(\"\"));\n\n\t\t// Fetch latin quote: \n\t\tString latinQuote = homePage.getQuote(\"latin\");\n\t\tAssert.assertEquals(\"\\\"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...\\\"\", latinQuote);\n\n\t\t// Fetch english quote, which is: \n\t\tString englishQuote = homePage.getQuote(\"english\"); \n\t\tAssert.assertEquals(\"\\\"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain...\\\"\",englishQuote); \n\t}",
"@Given(\"user is on admin login page\")\r\npublic void user_is_on_admin_login_page() {\n\r\n\tdriver.get(\"http://uniformm1.upskills.in/admin/index.php?route=common/dashboard&token=GojamxBwtSmLEAaHnCBgb3P8yKe4N2vQ\");\r\n\tString curTitle = driver.getTitle();\r\n\t\r\n\tAssert.assertEquals(curTitle, \"Administration\");\r\n}",
"@Then(\"^check the heading of the page$\")\r\n\tpublic void check_the_heading_of_the_page() throws Exception {\n\t\tString heading=driver.findElement(By.xpath(\".//*[@id='mainCnt']/div[1]/div[1]/h1\")).getText();\r\n\t\tif(heading.contentEquals(\"Hotel Booking Application\")) {\r\n\t\t\tSystem.out.println(\"content matched\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"content not matched\");\r\n\t\t}\r\n\t\tThread.sleep(2000);\r\n\t//\tdriver.close();\r\n\t}",
"@TestCaseId( id = 1 )\n\t@Steps ( steps = {\n\t\t\t@Step( number = 1, description = \"WHEN user navigates to main page\",\n\t\t\t\t expectedResults = {\n\t\t\t\t\t\t\"THEN url matches the current locale and environment\",\n\t\t\t\t\t\t\"AND the site title, matches the locale defined title\",\n\t\t\t\t })\n\t})\n\t@Test ( description = \"Testing the Locale Common Header Branding initial state and functionality\",\n\t\t\tenabled = true,\n\t\t\tgroups = { \"US\", \"UK\", \"AU\" }\n\t)\n\tpublic void homePage_InitialState_Title_And_Url( ITestContext testContext ) throws Exception\n\t{\n\t\t//logger.info( \"Starting executing method < '{}' > for < '{}' >\", testContext.getName(), testContext.getIncludedGroups() );\n\n\t\tPreConditions.checkNotNull( this.homePage, \"Home page is null, before starting test\" );\n\n\t\t/* THEN url matches the current locale and environment */\n\n\t\tfinal String REASON1 = \"Asserting home page url based locale and environment\";\n\t\tfinal Matcher<String> EXPECTED_URL = JMatchers.is( SiteSessionManager.get().getBaseUrl().toExternalForm() );\n\t\tfinal String ACTUAL_URL = homePage.getCurrentUrl();\n\t\tSiteSessionManager.get().createCheckPoint( \"VALIDATE_URL\" ).assertThat( REASON1, ACTUAL_URL, EXPECTED_URL );\n\n\t\t/* AND the site title, matches the locale */\n\n\t\tfinal String REASON2 = \"Asserting home page title match the locale defined title\";\n\t\t//final Matcher<String> EXPECTED_TITLE = JMatchers.is( ( String ) SiteProperty.HOME_PAGE_TITLE.fromContext() );\n\t\t//final String ACTUAL_TITLE = homePage.getTitle();\n\t\t//SiteSessionManager.get().createCheckPoint( \"VALIDATE_TITLE\" ).assertThat( REASON2, ACTUAL_TITLE, EXPECTED_TITLE );\n\n\t\tSiteSessionManager.get().assertAllCheckpoints();\n\n\t}",
"@Then(\"^homepage is visible$\")\n\tpublic void homepage_is_visible() throws Throwable {\n\t\tString verify = driver.findElement(By.xpath(\"//marquee[@class='heading3']\")).getText();\n\t\tAssert.assertEquals(verify, \"Welcome To Customer's Page of Guru99 Bank\", \"Error in loading!\");\n\t}",
"boolean hasTitle();",
"public boolean verifyHomePageDisplayed(){\r\n\t\tWebDriver driver = SeleniumDriver.getInstance().getWebDriver();\r\n\t\tWebElement body;\r\n\t\ttry{\r\n\t\t\tbody = driver.findElement(By.tagName(\"body\"));\r\n\t\t\tif(body.getAttribute(\"class\").contains(\"home page\")){\r\n\t\t\t\tmyAssert.setGblPassFailMessage(\"pass\", \"UpTake home page is displayed\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tmyAssert.setGblPassFailMessage(\"fail\", \"UpTake home page is not displayed\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t return true;\r\n\t}",
"public String getHomePageTitle()\n\t{\n\t\treturn elementUtils.getWebPageTitle();\n\t}",
"@Test\r\n\t\tpublic void testShowsCorrectTitle() {\r\n\t\t\t\r\n\t\t\t// Simply check that the title contains the word \"Hoodpopper\"\r\n\t\t\t\r\n\t\t\tString title = driver.getTitle();\r\n\t\t\tassertTrue(title.contains(\"Hoodpopper\"));\r\n\t\t}",
"public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t\t\n\t}",
"public void verifySessionIntroTitle(){\r\n String actualIntroHeading = driver.findElement(By.className(introHeadingClassLocator)).getText().trim();\r\n Assert.assertTrue(actualIntroHeading.contains(expectedIntroHeading),\"Intro Title is present.\");\r\n }",
"private void checkToHome() {\n toolbar.setTitle(R.string.find_food);\n homeFragment = new HomeFragment();\n if (searchMenuItem != null) {\n searchMenuItem.setVisible(true);\n }\n displaySelectedFragment(homeFragment);\n }",
"public void Verify_Home_error_msg_displayed_on_Empty_Search()\r\n\t{\r\n\t\tString Runtime_text=Home_error_msg.getText();\r\n\t\tif(Runtime_text.contains(Exp_home_err_msg))\r\n\t\t\tSystem.out.println(\"As expected error msg displayed at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected home error message displayed at webpage\");\r\n\t}",
"public boolean verifyTitle(String title) {\n\t\tif (getter().getTitle().equals(title)) {\r\n\t\t\tSystem.out.println(\"Page title: \"+title+\" matched successfully\");\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Page url: \"+title+\" not matched\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Then(\"^Homepage is populated$\")\r\n public void homepage_is_populated() throws Throwable {\n \tSystem.out.println(\"Validated HomePage\");\r\n \r\n }",
"public boolean isHomeLinkPresent() {\r\n\t\treturn isElementPresent(groupListSideBar.replace(\"Group List\", \"Home\"), SHORTWAIT);\r\n\t}",
"public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t}",
"public boolean checkPageTitle(String title) {\n return new WebDriverWait(webDriver, DRIVER_WAIT_TIME).until(ExpectedConditions.titleIs(title));\n }",
"@Given(\"^user is on the main page of website$\")\n public void userIsOnTheMainPageOfWebsite() {\n }",
"@Test(priority=3, dependsOnMethods= {\"validateUrl\"})\n\tpublic void validateTtitle() {\n\t\t\n\t\tString actualTtitle = driver.getTitle();\n\t\tString expectedTitle = \"Messenger\";\n\t\tAssert.assertEquals(actualTtitle, expectedTitle);\n\t\t\n\t\t\n\t\t\n\t\tReporter.log(\"Validating the messanger page title\");\n\t\t\n\t}",
"private boolean isCurrent(){\n return (getPageTitle().size() > 0);\n }",
"public void pressHomeButton() {\n System.out.println(\"TV is already on the home screen\\n\");\n }",
"@Given(\"User is on the HomePage\")\r\n\tpublic void user_is_on_the_home_page() \r\n\t{\n\t driver.get(\"https://lkmdemoaut.accenture.com/TestMeApp/fetchcat.htm\");\r\n\t driver.findElement(By.linkText(\"SignIn\")).click();\r\n\t \r\n\t WebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name(\"userName\"))));\r\n\t \r\n\t driver.findElement(By.id(\"userName\")).sendKeys(\"Lalitha\");\r\n\t driver.findElement(By.id(\"password\")).sendKeys(\"password123\");\r\n\t driver.findElement(By.name(\"Login\")).click();\r\n\t}",
"@Test(priority = 1)\r\n\tpublic void testHomePage() {\r\n\t\tdriver.navigate().to(HomePage.URL);\r\n\t\tdriver.manage().window().maximize();\r\n\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\tHomePage.clickAnnouncementButton(driver);\r\n\t\tHomePage.clickCookiesButton(driver);\r\n\r\n\t\tHomePage.clickLogin(driver);\r\n\r\n\t\tString currentUrl = driver.getCurrentUrl();\r\n\t\tString expectedUrl = \"https://www.humanity.com/app/\";\r\n\t\tSoftAssert sa = new SoftAssert();\r\n\t\tsa.assertEquals(currentUrl, expectedUrl);\r\n\t\tsa.assertAll();\r\n\t}",
"@Given(\"Goto settings page and verify title\")\n\tpublic void goto_settings_page_and_verify_title() throws InterruptedException {\n\t\tdriver.findElement(By.xpath(\"//div[@id='sidebar-wrapper']/div/a[4]/span[2]\")).click();\n\t\tThread.sleep(2000);\n\t\tString SettingsTitle = driver.getTitle();\n\t\tSystem.out.println(\"THe page title is: \" +SettingsTitle);\n\t\tThread.sleep(2000);\n\t}",
"@Test(priority = 3)\n\tpublic void isHomeDataCorrect() {\n\t\tlog.info(\"Validating the homepage data\");\n\t\tList<String> data = home.changesInElement(driver);\n\t\tAssert.assertEquals(data.get(0), \"BLR\");\n\t\tAssert.assertEquals(data.get(1), \"BOM\");\n\t\tlog.info(\"All the details of homepage are correct\");\n\t\tHomePageFlow.dateInput();\n\t}",
"@Given(\"I am on the Home Page\")\n public void i_am_on_the_home_page(){\n i_logged_into_Tenant_Manager_Project_list_page();\n\n }",
"@Given(\"^Registered user is on the main page of website$\")\n public void registeredUserIsOnTheMainPageOfWebsite() {\n }",
"public void verifyHomeItemIsSelectedByDefault() {\n\t\tmoveToElement(ActiveHome);\n\t\tAssert.assertTrue(isElementPresent(ActiveHome));\n\t\treportInfo();\t\t\n\t}",
"public String validateAddVehiclePageTitleTitle(){\n\t\treturn driver.getTitle();\n\t}",
"public boolean verifyTitle(String expTitle)\n\t{\n\t\tif(expTitle.equals(driver.getTitle().trim()))// if 1.1 started here\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public void isRedirectionCorrect() {\n\n\t\tString title = WebUtility.getTitle();\n\t\tAssert.assertEquals(title, data.getValidatingData(\"homepage_Title\"));\n\t\tSystem.out.println(\"Redirection is on the correct page\");\n\t}",
"@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }",
"@Then(\"^I should see \\\"([^\\\"]*)\\\" page$\")\n public void i_should_see_page(String arg1) throws Throwable {\n settings.verifyPageTitle(arg1);\n\n\n }",
"private void checkTitle(final WebDriver driver) {\r\n\t\tfinal String title = driver.getTitle();\r\n\t\tAssert.assertEquals(\"Wrong page title\", PAGE_TITLE, title);\r\n\t}",
"public static void pageTitleVerify(String expected) {\r\n\t\tString actual = driver.getTitle();\r\n\t\tAssert.assertEquals(actual, expected);\r\n\t\tReporter.log(\"Page title is Verified\");\r\n\r\n\t}",
"public void verifyPageTitle(String page) {\n\t\tWebElement title=driver.findElement(By.xpath(\"//a[contains(text(),'\"+page+\"')]\"));\n\t\tmoveToElement(title);\n\t\tAssert.assertTrue(isElementPresent(title),\"The [\"+page+\"] is not present]\");\n\t}",
"public default boolean hasTitle() {\n\t\tString title = getTitle();\n\t\treturn title != null && !title.trim().isEmpty();\n\t}",
"@Test(groups ={Slingshot,Regression})\n\tpublic void verifyTitleField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Title Field validations and its appropriate error message\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.ValidateAddnewUserTitleField(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}",
"@Test\n public void validateHomePageTest() {\n HomePage homePage = new HomePage(getDriver());\n log.info(\"RUN AUTOTEST TO VALIDATE HOMEPAGE\");\n homePage\n .goToHomePage_method()\n .validateHomePage();\n }",
"@Test\n\tpublic void VerifyTheSearchResult() {\n\t\tString searchString = \"The Choice\";\n\t\thomePage.search(searchString);\n\t\tString searchTitle = resultPage.getSearchResultTitle();\n\t\tAssert.assertTrue(searchTitle.contains(searchString));\n\t}",
"@Given(\"^customer is on home page$\")\n\tpublic void customer_is_on_home_page() throws Throwable {\n\t throw new PendingException();\n\t}",
"@SmallTest\n\tpublic void testTitle() {\n\t\tassertEquals(getActivity().getTitle(), solo.getString(R.string.title_activity_memory_game));\n\t}",
"String getOssHomepage();",
"public void verifyPage() {\n\t\twaitForPageToLoad();\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tAssert.assertEquals(title,\"News: India News, Latest Bollywood News, Sports News, Business & Political News, National & International News | Times of India\");\n\t}",
"@Then(\"User should be navigated to services page\")\n\tpublic static void services_positive_tc_001() throws Exception {\n\t\ttry {\n\t\t\tstr=driver.findElement(By.xpath(OR_reader(\"Object Locator\",\"services_title\"))).isDisplayed();\n\t\t\tAssert.assertEquals(str, true);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttakeScreenShot(\"services_positive_tc_001\");\n\t\t}\n\t}",
"public void testGetTitle() {\n System.out.println(\"getTitle\");\n Wizard instance = new Wizard();\n String expResult = \"\";\n String result = instance.getTitle();\n assertEquals(expResult, result);\n }",
"@When(\"^the user open Automation Home page$\")\r\n\tpublic void the_user_open_Automation_Home_page() throws Throwable {\n\t w.Homepage1();\r\n\t}",
"public boolean checkPageTitleContains(String title) {\n return new WebDriverWait(webDriver, DRIVER_WAIT_TIME)\n .until(ExpectedConditions.titleContains(title));\n }",
"public boolean isSetHomepage() {\n return this.homepage != null;\n }",
"@Then(\"User can view the dashboard\")\npublic void user_can_view_the_dashboard() {\n addCust = new AddcustomerPage(driver);\n Assert.assertEquals(\"Dashboard / nopCommerce administration\", addCust.getPageTitle());\n \n}",
"public boolean isAt() {\n\t\treturn Browser.title().equals(title);\n\t}",
"public boolean verifyPageTitle(By by) {\n commonMethods.switchToFrame(driver, \"frameMain\");\n Boolean isDisplayed = $(by).isDisplayed();\n switchTo().defaultContent();\n return isDisplayed;\n }",
"public void verifyDemoPageisOpened(String strTitleofthepage) {\r\n\t\tWebElement demopage = driver.findElement(By.xpath(\"//h3[text()='\" + strTitleofthepage + \"']\"));\r\n\t\tif (demopage.isDisplayed()) {\r\n\t\t\tSystem.out.println(demopage.getText() + \"is opened\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Expected page is not opened\");\r\n\t\t}\r\n\t}",
"public boolean verifyPageTitle(String pageTitle) {\n commonMethods.switchToFrame(driver, \"frameMain\");\n String headerName = $(header).text();\n switchTo().defaultContent();\n return (headerName.contains(pageTitle));\n }",
"@Test\n public void testHomepageWelcomeText()\n {\n try {\n WebElement e = driver.findElement(By.className(\"lead\"));\n String elementText = e.getText();\n assertTrue(elementText.contains(\"Welcome, friend,\") && elementText.contains(\"to a land of pure calculation\"));\n } catch (NoSuchElementException e) {\n fail();\n }\n }",
"@Test\t\r\n\r\npublic void forgot(){\n\t\r\n driver.findElement(By.partialLinkText(\"Forgot\")).click();\r\n System.out.println(\"the forgotpage title is \"+\" \"+driver.getTitle());\r\n String expectedTitle = \"Forgot Password | Can't Log In | Facebook\";\r\n String actualTitle = driver.getTitle();\r\n softassert.assertEquals(actualTitle, expectedTitle);\r\n softassert.assertAll();\r\n \r\n}",
"@Given(\"^user in the home page of Southall travel$\")\n public void user_in_the_home_page_of_Southall_travel() throws Throwable {\n }",
"@Given(\"User is on google home page\")\npublic void user_is_on_google_home_page() {\n System.out.println(\"Given-Homepage\");\n}",
"@Test\n\tpublic void accountsPageTitleTest(){\n\t\tSystem.out.println(\"Test 1\");\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(\"Page Title is: \" + title);\n\t\tAssert.assertEquals(title, \"My Account\"); // Assert is a Class and AssertEquals is a Static method as it is referred by class name\n\t}",
"@Test(priority = 2, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"To Verify Title and Title Text\")\n\tpublic void VerifyTitleTxt() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tdata.VerifyTitlenText();\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Title and Title Text\", \"yes\");\n\t}",
"@Test(priority = 4)\n\tpublic void homePageRedirection() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect(validate);\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the Hero Image Product Validation testing\");\n\n\t}",
"private void returnHome(){\n if (Boolean.toString(UpdatedHomePage.updatedHomeStarted).equals(\"false\")) {\n startActivity(new Intent(FinalPlan.this, Home.class));\n } else {\n Intent intent = new Intent(this, UpdatedHomePage.class);\n Bundle extras = new Bundle();\n extras.putBoolean(\"filtered\", true);\n intent.putExtras(extras);\n startActivity(intent);\n }\n }",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"public void viewListofHomes() {\n\t\ttry {\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to get list of homes\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to get list of homes\");\n\t\t}\n\t}",
"public void shortDescribe(CoState cos) {\n\t\tcos.outputText(\"Home menu.\");\r\n\t}",
"private void testGetCompanyHome() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n NodeRef companyHome = getompanyHomeFolder();\n assertNotNull(companyHome);\n String companyHomeName = (String) nodeService.getProperty(companyHome, ContentModel.PROP_NAME);\n assertNotNull(companyHomeName);\n assertEquals(\"Company Home\", companyHomeName);\n LOG.debug(\"Got \" + companyHomeName + \" NodeRef: \" + companyHome);\n }",
"@BeforeMethod\n\tpublic void setUp() throws InterruptedException {\n\t\tsetUpDriver(\"chrome\", \"https://opensource-demo.orangehrmlive.com/\");\n\t\tboolean swagLabs = driver.findElement(By.xpath(\"//title[text()='OrangeHRM']\")).isDisplayed();\n\t\t if(swagLabs=true) { \n\t\t\t System.out.println(\"This is the right title\"); \n\t\t }else { \n\t\t\t System.out.println(\"This is the wrong title\"); \n\t\t }\n\t\t Thread.sleep(2000);\n\t}",
"String getTitle();",
"String getTitle();"
] |
[
"0.7704381",
"0.7600453",
"0.73747116",
"0.7197442",
"0.70769656",
"0.7006296",
"0.6937634",
"0.6918983",
"0.6907315",
"0.6901001",
"0.6900813",
"0.684262",
"0.6824472",
"0.67961955",
"0.6792222",
"0.6755956",
"0.67150176",
"0.6680237",
"0.66679037",
"0.6643609",
"0.66422623",
"0.6638417",
"0.66077036",
"0.6596903",
"0.65775704",
"0.65763545",
"0.65376824",
"0.65091956",
"0.6500425",
"0.64851433",
"0.648345",
"0.6480707",
"0.64598334",
"0.642298",
"0.640462",
"0.63897675",
"0.638089",
"0.63686216",
"0.6364415",
"0.63497484",
"0.6336551",
"0.633498",
"0.63334227",
"0.6294794",
"0.62832516",
"0.62762773",
"0.62451524",
"0.6242848",
"0.6230915",
"0.6199369",
"0.6188632",
"0.6179813",
"0.61779803",
"0.6164083",
"0.6162433",
"0.61497414",
"0.61458427",
"0.61449915",
"0.6131663",
"0.61145395",
"0.6114156",
"0.60991824",
"0.60802805",
"0.6070694",
"0.60571927",
"0.6045986",
"0.6035544",
"0.6032847",
"0.6031585",
"0.6031319",
"0.6030851",
"0.60281104",
"0.6022873",
"0.6015052",
"0.6008663",
"0.5996352",
"0.5988393",
"0.59868383",
"0.5960625",
"0.59528476",
"0.5950956",
"0.5949411",
"0.5946664",
"0.59406537",
"0.59348166",
"0.59340256",
"0.59317553",
"0.59312576",
"0.5926202",
"0.5925528",
"0.59219474",
"0.59219474",
"0.59219474",
"0.59219474",
"0.59219474",
"0.59121215",
"0.58991677",
"0.5898957",
"0.58980846",
"0.5890335",
"0.5890335"
] |
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 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();
jTextField1 = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
jTextField2 = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jTextField3 = new javax.swing.JTextField();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jButton5 = new javax.swing.JButton();
jLabel5 = new javax.swing.JLabel();
jComboBox1 = new javax.swing.JComboBox<>();
addInternalFrameListener(new javax.swing.event.InternalFrameListener() {
public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {
formInternalFrameActivated(evt);
}
public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {
}
public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {
}
public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {
}
public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {
}
public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {
}
public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {
}
});
jLabel1.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N
jLabel1.setText("* Vehiculo");
jTextField1.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
jLabel2.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N
jLabel2.setText("Color");
jButton1.setBackground(new java.awt.Color(255, 255, 255));
jButton1.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N
jButton1.setText(" ");
jButton1.setFocusable(false);
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jLabel3.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N
jLabel3.setText("* Serie");
jTextField2.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
jLabel4.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N
jLabel4.setText("Placas");
jTextField3.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
jButton2.setBackground(new java.awt.Color(255, 255, 255));
jButton2.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N
jButton2.setText("Agregar");
jButton2.setFocusable(false);
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jButton3.setBackground(new java.awt.Color(255, 255, 255));
jButton3.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N
jButton3.setText("Cancelar");
jButton3.setFocusable(false);
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jButton4.setBackground(new java.awt.Color(255, 255, 255));
jButton4.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N
jButton4.setText("Actualizar");
jButton4.setFocusable(false);
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jTextArea1.setColumns(20);
jTextArea1.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N
jTextArea1.setLineWrap(true);
jTextArea1.setRows(5);
jTextArea1.setWrapStyleWord(true);
jTextArea1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Comentario", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 8))); // NOI18N
jScrollPane1.setViewportView(jTextArea1);
jButton5.setBackground(new java.awt.Color(255, 255, 255));
jButton5.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N
jButton5.setText("Eliminar");
jButton5.setFocusable(false);
jLabel5.setFont(new java.awt.Font("Dialog", 1, 10)); // NOI18N
jLabel5.setText("Agencia");
jComboBox1.setFont(new java.awt.Font("Dialog", 1, 10)); // NOI18N
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel3)
.addGap(29, 29, 29)))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel5)
.addGap(22, 22, 22)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(jTextField1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 406, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jButton5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton2))))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4)
.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton4)
.addComponent(jButton3)
.addComponent(jButton2)
.addComponent(jButton5))
.addContainerGap(15, Short.MAX_VALUE))
);
pack();
}
|
{
"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 }",
"@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 LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\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 FrmMenu() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] |
[
"0.7319975",
"0.7291426",
"0.7291426",
"0.7291426",
"0.7286372",
"0.7249133",
"0.72134817",
"0.7208172",
"0.7196412",
"0.7190365",
"0.7184679",
"0.71593916",
"0.7147999",
"0.7093026",
"0.7080469",
"0.7056178",
"0.69875216",
"0.69774026",
"0.69545585",
"0.69538534",
"0.69452554",
"0.69424194",
"0.69357204",
"0.6931598",
"0.6928378",
"0.6924548",
"0.6924153",
"0.6911372",
"0.6911153",
"0.6893088",
"0.68923634",
"0.6891",
"0.68903977",
"0.6889337",
"0.68828684",
"0.6881574",
"0.6881235",
"0.6878528",
"0.6875488",
"0.6874173",
"0.6871147",
"0.68604684",
"0.6856229",
"0.6855731",
"0.6854888",
"0.6854778",
"0.68532974",
"0.68529445",
"0.68529445",
"0.6843208",
"0.6836825",
"0.68361586",
"0.68285096",
"0.68282986",
"0.6826397",
"0.68238246",
"0.6822819",
"0.681734",
"0.6816736",
"0.68100905",
"0.6809092",
"0.6808217",
"0.68082136",
"0.68076205",
"0.68026686",
"0.67949307",
"0.6793832",
"0.6792444",
"0.67903346",
"0.67889607",
"0.67888707",
"0.67885673",
"0.6782288",
"0.6766402",
"0.67653865",
"0.6764692",
"0.67566204",
"0.67552745",
"0.6752128",
"0.6751242",
"0.6743578",
"0.6738973",
"0.67371684",
"0.6735791",
"0.67334443",
"0.6727505",
"0.67269194",
"0.6720125",
"0.67154783",
"0.6715316",
"0.6713893",
"0.67090744",
"0.67064255",
"0.670392",
"0.67012566",
"0.67005646",
"0.669898",
"0.66985846",
"0.66949356",
"0.66912866",
"0.6689551"
] |
0.0
|
-1
|
allocate a new file (structure) table entry for this file name allocate/retrieve and register the corresponding inode using dir increment this inode's count immediately write back this inode to the disk return a reference to this file (structure) table entry
|
public synchronized FileTableEntry falloc( String filename, String mode ) {
short iNum = -1;
Inode inode = null;
// if not directory assign to the inumber corresponding to the file
if (filename.equals("/") == false){
iNum = directory.namei(filename);
}else{
// if its the directory assign iNum to 0
iNum = 0;
}
// file not found
if (iNum == -1){
// checks to see if file mode is equal to "r"
if(mode.compareTo("r") == 0) {
// return null since you cannot create a file in read mode
return null;
// file not in read mode, therefore create a new file
} else {
// allocate a new file (structure) table entry for this file name
iNum = directory.ialloc(filename);
//unable to create file return
if(iNum == -1) {
return null;
}
// assign iNodes array by iNum to inode
inode = new Inode();
iNodes[iNum] = inode;
}
// file was found
}else {
inode = iNodes[iNum];
}
// in read mode
if (mode.compareTo("r") == 0) {
// wait until the flag is in write mode
while (inode.flag > 1) {
try {
wait();
} catch (InterruptedException e) {}
}
//set flag to read
inode.flag = 1;
inode.count++;
}else{
while (inode.flag > 0) {
try {
wait();
} catch (InterruptedException e) {}
}
inode.flag = 2;
// increment this inode's count
inode.count++;
}
// immediately write back this inode to the disk
inode.toDisk(iNum);
// make new file table entry
FileTableEntry ftEnt = new FileTableEntry(inode, iNum, mode);
// add the new entry to the table
table.addElement(ftEnt);
// return a reference to this file (structure) table entry
return ftEnt;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public synchronized FileTableEntry falloc(String filename, String mode) {\n\t\tshort iNumber = -1; //inode number\n\t\tInode inode = null;//set null for inode\n\t\t\n\t\twhile (true) {\n\t\t\t//get iNumber from file name\n\t\t\tiNumber = (filename.equals(\"/\")) ? (short) 0 : dir.namei(filename);\n\t\t\t\n\t\t\t//if the iNumber is greater or equal 0, exist the inode\n\t\t\tif (iNumber >= 0) {\n\t\t\t\tinode = new Inode(iNumber);\n\t\t\t\t\n\t\t\t\t//if the file request for read, and flag is read or used or unused\n\t\t\t\tif (mode.equals(\"r\")) {\n\t\t\t\t\tif (inode.flag == READ || inode.flag == USED || inode.flag == UNUSED) {\n\t\t\t\t\t\tinode.flag = READ;//set the flag for read\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//if the file can write, wait until finish\n\t\t\t\t\t} else if (inode.flag == WRITE) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twait();\n\t\t\t\t\t\t} catch (InterruptedException e) {}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// I want to write, but no one is reading it\n\t\t\t\t\tif (inode.flag == USED || inode.flag == UNUSED) {\n\t\t\t\t\t\tinode.flag = WRITE;//set the flag for write\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else { // I want to write, but someone is reading it\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twait();//if flag can read or write, wait until they finish\n\t\t\t\t\t\t} catch (InterruptedException e) {}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if the node can exist, return null\n\t\t\t} else if (mode.equals(\"r\")) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\t//if the node cannot exist, create a new node and use directory to get iNumber\n\t\t\t\tif (!mode.equals(\"r\")) {\n\t\t\t\t\tiNumber = dir.ialloc(filename);\n\t\t\t\t\tinode = new Inode(iNumber);\n\t\t\t\t\tinode.flag = WRITE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tinode.count++;//increstment for count the users number\n\t\tinode.toDisk(iNumber);\n\t\t//create a new file table entry \n\t\tFileTableEntry entry = new FileTableEntry(inode, iNumber, mode);\n\t\ttable.addElement(entry);//add data in the file table\n\t\treturn entry;\n\t}",
"public synchronized FileTableEntry fAlloc( String filename, String mode )\n {\n short iNumber;\n Inode iNode;\n\n while (true)\n {\n iNumber = (filename.equals(\"/\") ? (short) 0 : directory.namei(filename));\n\n if (iNumber >= 0)\n {\n iNode = new Inode(iNumber);\n if (mode.equals(\"r\"))\n {\n if (iNode.usedFlag == 0 || iNode.usedFlag == 1 || iNode.usedFlag == 2)\n {\n iNode.usedFlag = 2;\n break;\n }\n else if (iNode.usedFlag == 3)\n {\n try\n {\n wait();\n }\n catch (InterruptedException e)\n {\n SysLib.cerr(\"Read Error\");\n }\n }\n }\n else\n {\n if (iNode.usedFlag == 1 || iNode.usedFlag == 0)\n {\n iNode.usedFlag = 3;\n break;\n }\n else\n {\n try\n {\n wait();\n }\n catch (InterruptedException e)\n {\n SysLib.cerr(\"Write Error\");\n }\n }\n }\n }\n else if (!mode.equals(\"r\"))\n {\n iNumber = directory.iAlloc(filename);\n iNode = new Inode(iNumber);\n iNode.usedFlag = 3;\n break;\n }\n else\n {\n return null;\n }\n }\n iNode.count++;\n iNode.toDisk(iNumber);\n FileTableEntry entry = new FileTableEntry(iNode, iNumber, mode);\n table.addElement(entry);\n return entry;\n }",
"public synchronized FileTableEntry falloc(String fileName, String mode) {\n Inode myNode = null;\n short blockID;\n while(true) \n {\n if(fileName.equals(\"/\")) {\n blockID = 0;\n } else {\n blockID = dir.namei(fileName); \n }\n\n if(blockID >= 0) { //Not superblock\n myNode = new Inode(blockID);\n break;\n }\n\n if(mode.compareTo(\"r\") == 0) {\n return null;\n }\n blockID = dir.ialloc(fileName);\n myNode = new Inode();\n break;\n }\n\n myNode.count++;\n myNode.toDisk(blockID);\n FileTableEntry toAdd = new FileTableEntry(myNode, blockID, mode);\n table.addElement(toAdd);\n return toAdd;\n }",
"public void newFile(int temp) {\n if(!doesExist(temp)){\n System.out.println(\"The Directory does not exist \");\n return;\n }\n\n directory nodeptr = root;\n for(int count = 0; count < temp; count++) {\n nodeptr = nodeptr.forward;\n }\n int space = nodeptr.f.createFile(nodeptr.count);\n nodeptr.count++;\n nodeptr.availableSpace = 512 - space;\n\n }",
"private int handleCreate(int name) {\n\t\tString FileName = readVirtualMemoryString(name, MAXSTRLEN);\n\t\t//check to make sure file name is valid\n\t\tif(FileName == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\t//find a free file descriptor\n\t\tint fileIndex = -1;\n\t\tfor(int i = 2; i < 16; i++)\n\t\t{\n\t\t\tif(fileDescriptors[i] == null)\n\t\t\t{\n\t\t\t\tfileIndex = i;\n\t\t\t}\n\t\t}\n\t\t//error if there is no free file descriptor\n\t\tif(fileIndex == -1)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\tOpenFile file = ThreadedKernel.fileSystem.open(FileName, true);\n\t\t//error if file cannot be created\n\t\tif(file == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\t//create the file with the associated file descriptor\n\t\telse\n\t\t{\n\t\t\tfileDescriptors[fileIndex] = file;\n\t\t\treturn fileIndex;\n\t\t}\n\t}",
"long addEntry(DirectoryEntry newEntry) {\n // Unlink an entry from the free list (or add to the end of the existing\n // directory)\n long pos;\n if (freeEntries.size() > 0) {\n pos = freeEntries.get(0);\n freeEntries.remove(0);\n } else {\n pos = endOfEntries;\n endOfEntries += 32;\n }\n // Put the new entry into it's slot\n dirStream.position(pos);\n newEntry.writeTo(dirStream);\n // Update internal structures to reflect new entry (as if read from\n // disk)\n entries.put(pos, newEntry);\n handleAccessed(true);\n return pos;\n }",
"public static int creat(String pathname, short mode)\n throws Exception {\n // get the full path\n String fullPath = getFullPath(pathname);\n FileSystem fileSystem = openFileSystems[ROOT_FILE_SYSTEM];\n\n StringBuffer dirname = new StringBuffer(\"/\");\n IndexNode currIndexNode = getRootIndexNode();\n IndexNode prevIndexNode = null;\n short indexNodeNumber = FileSystem.ROOT_INDEX_NODE_NUMBER;\n\n StringTokenizer st = new StringTokenizer(fullPath, \"/\");\n String name = \".\"; // start at root node\n while (st.hasMoreTokens()) {\n name = st.nextToken();\n if (!name.equals(\"\")) {\n // check to see if the current node is a directory\n if ((currIndexNode.getMode() & S_IFMT) != S_IFDIR) {\n // return (ENOTDIR) if a needed directory is not a directory\n process.errno = ENOTDIR;\n return -1;\n }\n\n // check to see if it is readable by the user\n // ??? tbd\n // return (EACCES) if a needed directory is not readable\n\n if (st.hasMoreTokens()) {\n dirname.append(name);\n dirname.append('/');\n }\n\n // get the next inode corresponding to the token\n prevIndexNode = currIndexNode;\n currIndexNode = new IndexNode();\n indexNodeNumber = findNextIndexNode(\n fileSystem, prevIndexNode, name, currIndexNode);\n }\n }\n\n // ??? we need to set some fields in the file descriptor\n int flags = O_WRONLY; // ???\n FileDescriptor fileDescriptor = null;\n\n if (indexNodeNumber < 0) {\n // file does not exist. We check to see if we can create it.\n\n // check to see if the prevIndexNode (a directory) is writeable\n // ??? tbd\n // return (EACCES) if the file does not exist and the directory\n // in which it is to be created is not writable\n\n currIndexNode.setMode(mode);\n currIndexNode.setNlink((short) 1);\n\n // allocate the next available inode from the file system\n short newInode = fileSystem.allocateIndexNode();\n if (newInode == -1)\n return -1;\n\n fileDescriptor =\n new FileDescriptor(fileSystem, currIndexNode, flags);\n // assign inode for the new file\n fileDescriptor.setIndexNodeNumber(newInode);\n\n// System.out.println( \"newInode = \" + newInode ) ;\n fileSystem.writeIndexNode(currIndexNode, newInode);\n\n // open the directory\n // ??? it would be nice if we had an \"open\" that took an inode \n // instead of a name for the dir\n// System.out.println( \"dirname = \" + dirname.toString() ) ;\n int dir = open(dirname.toString(), O_RDWR);\n if (dir < 0) {\n Kernel.perror(PROGRAM_NAME);\n System.err.println(PROGRAM_NAME +\n \": unable to open directory for writing\");\n process.errno = ENOENT;\n return -1;\n }\n\n // scan past the directory entries less than the current entry\n // and insert the new element immediately following\n int status;\n DirectoryEntry newDirectoryEntry =\n new DirectoryEntry(newInode, name);\n DirectoryEntry currentDirectoryEntry = new DirectoryEntry();\n while (true) {\n // read an entry from the directory\n status = readdir(dir, currentDirectoryEntry);\n if (status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error reading directory in creat\");\n System.exit(EXIT_FAILURE);\n } else if (status == 0) {\n // if no entry read, write the new item at the current \n // location and break\n writedir(dir, newDirectoryEntry);\n break;\n } else {\n // if current item > new item, write the new item in \n // place of the old one and break\n if (currentDirectoryEntry.getName().compareTo(\n newDirectoryEntry.getName()) > 0) {\n int seek_status =\n lseek(dir, -DirectoryEntry.DIRECTORY_ENTRY_SIZE, 1);\n if (seek_status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error during seek in creat\");\n System.exit(EXIT_FAILURE);\n }\n writedir(dir, newDirectoryEntry);\n break;\n }\n }\n }\n // copy the rest of the directory entries out to the file\n while (status > 0) {\n DirectoryEntry nextDirectoryEntry = new DirectoryEntry();\n // read next item\n status = readdir(dir, nextDirectoryEntry);\n if (status > 0) {\n // in its place\n int seek_status =\n lseek(dir, -DirectoryEntry.DIRECTORY_ENTRY_SIZE, 1);\n if (seek_status < 0) {\n System.err.println(PROGRAM_NAME +\n \": error during seek in creat\");\n System.exit(EXIT_FAILURE);\n }\n }\n // write current item\n writedir(dir, currentDirectoryEntry);\n // current item = next item\n currentDirectoryEntry = nextDirectoryEntry;\n }\n\n // close the directory\n close(dir);\n } else {\n // file does exist ( indexNodeNumber >= 0 )\n\n // if it's a directory, we can't truncate it\n if ((currIndexNode.getMode() & S_IFMT) == S_IFDIR) {\n // return (EISDIR) if the file is a directory\n process.errno = EISDIR;\n return -1;\n }\n\n // check to see if the file is writeable by the user\n // ??? tbd\n // return (EACCES) if the file does exist and is unwritable\n\n // free any blocks currently allocated to the file\n int blockSize = fileSystem.getBlockSize();\n int blocks = (currIndexNode.getSize() + blockSize - 1) /\n blockSize;\n for (int i = 0; i < blocks; i++) {\n int address = currIndexNode.getBlockAddress(i);\n if (address != FileSystem.NOT_A_BLOCK) {\n fileSystem.freeBlock(address);\n currIndexNode.setBlockAddress(i, FileSystem.NOT_A_BLOCK);\n }\n }\n\n // update the inode to size 0\n currIndexNode.setSize(0);\n\n // write the inode to the file system.\n fileSystem.writeIndexNode(currIndexNode, indexNodeNumber);\n\n // set up the file descriptor\n fileDescriptor =\n new FileDescriptor(fileSystem, currIndexNode, flags);\n // assign inode for the new file\n fileDescriptor.setIndexNodeNumber(indexNodeNumber);\n\n }\n\n return open(fileDescriptor);\n }",
"public HeapFile(File f, TupleDesc td) {\n this.file = f;\n this.tableId = f.getAbsoluteFile().hashCode();\n this.td = td;\n int pageSize = BufferPool.PAGE_SIZE;\n int pagesNeeded;\n\n RandomAccessFile rf;\n try {\n rf = new RandomAccessFile(f, \"r\");\n pagesNeeded = (int) Math.ceil((double) rf.length() / pageSize);\n } catch (Exception e) {\n System.err.println(\"Caugth exception1:\" + e.getMessage());\n return;\n }\n this.numPages = pagesNeeded;\n System.out.println(\"Created \" + pagesNeeded + \" heap files.\");\n pages = new HeapPage[pagesNeeded];\n\n // TODO Find out the best way to handle exceptions\n for (int pageIndex = 0; pageIndex < pagesNeeded; ++pageIndex) {\n int offset = pageIndex * pageSize;\n byte[] data = new byte[pageSize];\n try {\n rf.readFully(data, offset, pageSize);\n HeapPageId pid = new HeapPageId(tableId, pageIndex);\n System.out.println(\"Created HeapPageId\");\n pages[pageIndex] = new HeapPage(pid, data);\n System.out.println(\"Wrote to pages[\"+pageIndex+\"].\");\n } catch (Exception e) {\n System.err.println(\"Caught exception2:\" + e.getMessage());\n return;\n }\n }\n }",
"void allocate(ApexFile parent_file, int link_factor){\n assert this.used == false;\n\n //delete the block from parent file\n\n // CHECK THAT IF THE PARENT FILE IS NULL THEN DO NOT DO THE DELETE BLOCK STEP\n if(this.parentFile != null){\n this.parentFile.deleteBlock(this);\n }\n\n this.parentFile = parent_file;\n this.used = true;\n this.hf = 1;//reset\n this.uf = 1;//reset\n this.lf = link_factor;//binaries or non binaries\n }",
"public FileTableEntry open(String filename, String mode)\n\t{\n\t\tFileTableEntry ftEnt = filetable.falloc(filename, mode);\n\n\t\t//checking mode for writing\n\t\tif (ftEnt != null) {\n\t\t\tif (mode.equals(\"w\")) {\n\t\t\t\tif(!deallocAllBlocks(ftEnt)) {\n\t\t\t\t\tftEnt = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (mode.equals(\"a\")) {\n\t\t\t\tftEnt.seekPtr = ftEnt.inode.length;\n\t\t\t}\n\t\t}\n\t\treturn ftEnt;\n\t}",
"public FileTable(Directory directory) {\n\t\ttable = new Vector();//set struture table \n\t\tdir = directory;//set director for receive a reference\n\t}",
"public abstract long NewFileNumber();",
"public static void createNewTable(int i) {\n // SQLite connection string\n// String url = \"jdbc:sqlite:C://sqlite/db/file\" + i +\".db\";\n String url = \"jdbc:sqlite:F:\\\\splitespace\\\\fileinfo\" + i + \".db\";\n // SQL statement for creating a new table\n String sql = \"CREATE TABLE IF NOT EXISTS FileInfo (\\n\"\n + \"\tid integer PRIMARY KEY,\\n\"\n + \"\tpath VARCHAR(255) NOT NULL,\\n\"\n + \"\tscantime BIGINT\\n\"\n + \");\";\n\n String sql2 = \"CREATE TABLE IF NOT EXISTS FileInfo (\\n\"\n + \"\tid integer PRIMARY KEY,\\n\"\n + \"\tpid integer,\\n\"\n + \"\tpath VARCHAR(255) NOT NULL,\\n\"\n + \" isParent VARCHAR(11),\\n\"\n + \" abpath VARCHAR(255),\\n\"\n + \" abppath VARCHAR(255)\\n\"\n + \");\";\n\n try (Connection conn = DriverManager.getConnection(url);\n Statement stmt = conn.createStatement()) {\n // create a new table\n stmt.execute(sql2);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"private int handleOpen(int name) {\n\t\tString FileName = readVirtualMemoryString(name, MAXSTRLEN);\n\t\t//error if file name is not valid\n\t\tif(FileName == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\t//find a free file descriptor\n\t\tint fileIndex = -1;\n\t\tfor(int i = 2; i < 16; i++)\n\t\t{\n\t\t\tif(fileDescriptors[i] == null)\n\t\t\t{\n\t\t\t\tfileIndex = i;\n\t\t\t}\n\t\t}\n\n\t\t//error if no file descriptor is free\n\t\tif(fileIndex == -1)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\tOpenFile file = ThreadedKernel.fileSystem.open(FileName, false);\n\n\t\t//error if file cannot be created\n\t\tif(file == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfileDescriptors[fileIndex] = file;\n\t\t\treturn fileIndex;\n\t\t}\n\t}",
"private void allocateGrainTable(int grainTable) {\n int startSector = serverHeader.freeSector;\n byte[] emptyGrainTable = new byte[header.numGTEsPerGT * 4];\n fileStream.position(startSector * (long) Sizes.Sector);\n fileStream.write(emptyGrainTable, 0, emptyGrainTable.length);\n // Update header\n serverHeader.freeSector += MathUtilities.ceil(emptyGrainTable.length, Sizes.Sector);\n byte[] headerBytes = serverHeader.getBytes();\n fileStream.position(0);\n fileStream.write(headerBytes, 0, headerBytes.length);\n // Update the global directory\n globalDirectory[grainTable] = startSector;\n writeGlobalDirectory();\n this.grainTable = new byte[header.numGTEsPerGT * 4];\n currentGrainTable = grainTable;\n }",
"private void createD64DirectoryEntry( DirectoryEntry directoryEntry, List<Sector> usedSectors) {\n\n\t// Get the position of the new directory entry to create.\n\t// Just count the existing known directory entries for now.\n\tint newEntryPos = getDirectory().getDirectoryEntries().size();\n\n\t// A d64 directory sector has 8 entries per sector, so calculate the sector and offset.\n\tint entrySector = 1 + newEntryPos / 8;\n\tint entryOffset = 32 * ( newEntryPos % 8);\n\n\t// Fetch the sector with the directory entries.\n\tSector directorySector = getSector( 18, entrySector); // Sector 0 contains the BAM.\n\n\t// Check, if the filename is C= compliant.\n\tif( ! directoryEntry.getFileName().endsWith( \".PRG\")) {\n\n\t System.err.println( \"Can only store .PRG files for now\");\n\n\t return;\n\t}\n\n\t// Remove the suffix of the filename.\n\tString filename = directoryEntry.getFileName();\n\tfilename = filename.substring( 0, filename.indexOf( \".PRG\"));\n\tif( filename.length() > 16) { // Cut the filename to 16 characters.\n\t filename = filename.substring( 0, 16);\n\t}\n\n\t// Now set the data of the entry.\n\tdirectorySector.setDataByte( entryOffset + 2, (byte)0x82); // Set type to .prg\n\t\n\t// Copy the name into the directory.\n\tint currentCharIndex = 5;\n\tfor( char currentChar : filename.toCharArray()) {\n\n\t directorySector.setDataByte( currentCharIndex++, CharsetUtils.getInstance().ascii2petscii( currentChar));\n\t}\n\n\t// Pad the file with 0xa0, if it is too short.\n\twhile( currentCharIndex < 20) {\n\t directorySector.setDataByte( currentCharIndex++, (byte)0xa0);\n\t}\n\t \n\t// Set the position of the first sector.\n\tdirectorySector.setDataByte( 3, (byte)( usedSectors.get( 0).getTrackIndex()));\n\tdirectorySector.setDataByte( 4, (byte)( usedSectors.get( 0).getSectorIndex()));\n\n\t// Set the length of the file.\n\tdirectorySector.setDataByte( 0x1e, (byte)( usedSectors.size() % 256));\n\tdirectorySector.setDataByte( 0x1f, (byte)( usedSectors.size() / 256));\n }",
"void sync() \n\t{\n\t\tFileTableEntry ftEntry = open(\"/\", \"w\");\t\t//read directory from disk\n\t\tbyte[] buffer = directory.directory2bytes();\n\t\twrite(ftEntry, buffer);\n\t\tclose(ftEntry);\n\t\tsuperblock.sync();\t\t\t\t\t//write superblock back to disk\n\t}",
"public void create(int temp) {\n\n directory newFile = new directory();\n newFile.a = temp;\n\n directory FilePtr;\n\n\n if (root == null) {\n root = newFile;\n root.forward = null;\n root.back = null;\n return;\n }\n\n FilePtr = root;\n\n while (FilePtr.forward != null) {\n FilePtr = FilePtr.forward;\n }\n FilePtr.forward = newFile;\n FilePtr = FilePtr.forward;\n FilePtr.forward = null;\n\n return;\n\n }",
"public abstract FilesystemEntry createChildEntry(String name, String hash, long size,\n\t\t\tint links, Share share);",
"public void add(FileSystemEntry entry);",
"public FileTable( Directory directory )\n { // constructor\n table = new Vector( ); // instantiate a file (structure) table\n this.directory = directory; // receive a reference to the Director\n }",
"public HeapFile(File f, TupleDesc td) {\n this.tupleDesc = td;\n this.file = f;\n this.fid = file.getAbsoluteFile().hashCode();\n this.numOfPages = (int)Math.ceil((double)f.length()/(double)BufferPool.PAGE_SIZE);\n if(f.length()==0) \n//\t\t\ttry {\n//\t\t\t\twritePage(new HeapPage(new HeapPageId(fid, 0), new byte[BufferPool.PAGE_SIZE]));\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\tthis.numOfPages = 0;\n// }\n }",
"public int inodeTablePointer(int groupDescriptorNo) throws IOException\n {\n \tByteBuffer buf_groupDescriptor = ByteBuffer.allocate(1024);\n \tbuf_groupDescriptor.order(ByteOrder.LITTLE_ENDIAN);\n \tbyte[] bytes = new byte[1024];\n f.seek(2048);\n \tf.read(bytes);\n \n \tbuf_groupDescriptor.put(bytes);\n inodeTablePointer = buf_groupDescriptor.getInt((groupDescriptorNo*32)+8);\n //System.out.println(\"inodeTablePointer \"+groupDescriptorNo +\" : \"+ inodeTablePointer);\n return inodeTablePointer;\n }",
"public String addFile(String fn)\n\t{\n\t\tString intfn= sysdir + File.separator + fn;\n\t\tsynchronized( syncFiles ) // get Intermediate-Data access for the key \n\t\t{\n\t\t\twhile( syncFileswait )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsyncFiles.wait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tsyncFileswait= true;\n\t\t\t\n\t\t\tfiles.put(fn, intfn);\n\t\t\t\n\t\t\tsyncFileswait= false;\n\t\t\tsyncFiles.notifyAll();\n\t\t}\n\t\t\n\t\treturn intfn;\n\t}",
"public void insertFile(Packet packet) {\r\n\t\t\r\n\t\t// Use hashCode function to get a hash of the file name in the range 0 - 2^n - 1\r\n\t\tint fileHash = (int) (packet.fileName.hashCode() % (Math.pow(2, 4) - 1));\r\n\t\t\r\n\t\t// If hash is a negative number, multiply by -1 to get a positive hash value\r\n\t\tif(fileHash < 0) {\r\n\t\t\tfileHash = fileHash * -1;\r\n\t\t}\r\n\t\t\r\n\t\t// Create InetSocketAddress ArrayList, add InetSocketAddress\r\n\t\tArrayList<InetSocketAddress> fileLocationList = new ArrayList<InetSocketAddress>();\r\n\t\tInetSocketAddress fileLocation = new InetSocketAddress(packet.peerClientIP, packet.peerClientListenPort);\r\n\t\t\r\n\t\t// Check if fileHash is equal to Peer Node ID, check if file is in the DHT - if so, just add inet address else add file name and location to the DHT\r\n\t\tif(fileHash == peerNode.peerClientID) {\r\n\t\t\tjava.util.Date date = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if fileHash < Peer Node ID and Peer Node ID < Peer Node Predecessor Peer ID - if so, add file\r\n\t\telse if(fileHash < peerNode.peerClientID && peerNode.peerClientID < peerNode.predPeerID) {\r\n\t\t\tjava.util.Date date2 = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date2 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date2 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if fileHash < Peer Node ID and fileHash > Peer Node Predecessor Peer ID - if so, add file\r\n\t\telse if(fileHash < peerNode.peerClientID && fileHash > peerNode.predPeerID) {\r\n\t\t\tjava.util.Date date3 = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date3 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date3 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Check if fileHash > Peer Node ID and Peer Node Successor Peer ID < Peer Node ID - if so, add file\r\n\t\telse if(fileHash > peerNode.peerClientID && peerNode.succPeerID < peerNode.peerClientID) {\r\n\t\t\tjava.util.Date date4 = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date4 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date4 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Otherwise, forward packet on\r\n\t\telse {\r\n\t\t\tPacket p = packet;\r\n\t\t\ttry {\r\n\t\t\t\tpeerNode.peer2Peer = new Socket(peerNode.succPeerIP, peerNode.succPeerPort);\r\n\t\t\t\tpeerNode.peer2PeerOutStream = new ObjectOutputStream(peerNode.peer2Peer.getOutputStream());\r\n\t\t\t\tpeerNode.peer2PeerInStream = new ObjectInputStream(peerNode.peer2Peer.getInputStream());\r\n\t\t\t\tpeerNode.peer2PeerOutStream.writeObject(p);\r\n\t\t\t\t\r\n\t\t\t\t// Close connection/socket\r\n\t\t\t\tcloseConnection();\r\n\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public OutputStream getOutputStream( DirectoryEntry directoryEntry) {\n\n\t// Check, if this directory entry is a directory itself.\n\tif( directoryEntry.isDirectory()) {\n\n\t return null; // Cannot create subdirectories yet.\n\t}\n\n\t// Start with a check, if there are still free directory entries to store a new file.\n\tif( getDirectory().getDirectoryEntries().size() >= 144) {\n\n\t return null; // No free directory entries, it seems.\n\t}\n\n\t// Now try get free filespace for the new file.\n\tint neededSectors = directoryEntry.getFileSizeAsBytes() / getUnitSize();\n\tif( ( neededSectors * getUnitSize()) < directoryEntry.getFileSizeAsBytes()) { // If there are some bytes left for another sector.\n\n\t ++neededSectors; // Add them to another sector (plus some empty bytes for padding.\n\t}\n\n\t// Now try to allocate enough free sectors for the file.\n\tList<Sector> availableSectors = getFreeSectors( neededSectors);\n\n\tif( availableSectors == null) { // Sectors cannot be allocated?\n\n\t return null; // => Cannot write file.\n\t}\n\n\t// Create directory entry for the file and the sectors to allocate.\n\tcreateD64DirectoryEntry( directoryEntry, availableSectors);\n\n\t// Link all the sectors of this file.\n\tSector lastSector = null;\n\tfor( Sector currentSector : availableSectors) {\n\t \n\t if( lastSector != null) { // If this is not the first sector.\n\n\t\t// Set the pointer of the last sector to this sector.\n\t\tlastSector.setDataByte( 0, (byte)( currentSector.getTrackIndex()));\n\t\tlastSector.setDataByte( 1, (byte)( currentSector.getSectorIndex()));\n\t }\n\n\t // Set this sector as the new last sector.\n\t lastSector = currentSector;\n\t}\n\t// Set the pointer of the last file sector to 0. Shouldn't be necessary, but anyway.\n\tlastSector.setDataByte( 0, (byte)0);\n\tlastSector.setDataByte( 1, (byte)0);\n\t\n\t// Set the image to modified.\n\tsetModified( true);\n\t\n\t// Return OutputStream for file to write.\n\treturn new D64FileOutputStream( availableSectors, directoryEntry, this);\n }",
"public BTreeSearchResult insert(String key, int info) throws IOException{\r\n\t\tint diskAccessNum = 0;\r\n\t\tif (this.length() == 0){\r\n\t\t\tthis.create();\r\n\t\t\tdiskAccessNum = 1; //create B-tree, 1 disk access\r\n\t\t}\r\n\t\tBTreeNode root = new BTreeNode(this.readPage(0), this.order); //read root, 1 disk access\r\n\t\t\r\n\t\tif (root.numKeys == root.key.length){//Create new root and split old one\r\n\t\t\tBTreeSearchResult newRoot = new BTreeSearchResult(new BTreeNode( this.order ), 0);\r\n\t\t\troot.parent = 0; //Always keep root as first page\r\n\t\t\tBTreeSearchResult oldRoot = new BTreeSearchResult(root, (int) (this.length()/this.pageSize)); //Move old root to end of file\r\n\t\t\tnewRoot.node.child[0] = oldRoot.pageFound;\r\n\t\t\tBTreeNode newChild = this.split(newRoot.node, 0, oldRoot); // 3 accesses for split\r\n\t\t\tdiskAccessNum = diskAccessNum + this.updatePointerOfChildren(oldRoot); // Access all children of old root to update their parent pointer\r\n\t\t\tdiskAccessNum = diskAccessNum + this.updatePointerOfChildren(new BTreeSearchResult(newChild, newRoot.node.child[1])); // Access all children of new node to update their parent pointer\r\n\t\t\tnewRoot.diskAccessNum = 4 + diskAccessNum;\r\n\t\t\treturn insertNonFull(newRoot, key, info);\r\n\t\t}else{\r\n\t\t\tBTreeSearchResult oldRoot = new BTreeSearchResult(root, 0);\r\n\t\t\toldRoot.diskAccessNum = 1 + diskAccessNum; // 1 access for root\r\n\t\t\treturn insertNonFull(oldRoot, key, info);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void open(TaskMonitor monitor) throws IOException, CancelledException {\n\t\tYAFFS2InputStream yaffs2Input = new YAFFS2InputStream(provider.getInputStream(0));\n\n\t\t// go through the image file, looking at each header entry, ignoring the data, storing the dir tree\n\t\twhile (!monitor.isCancelled()) {\n\t\t\tYAFFS2Entry headerEntry = yaffs2Input.getNextHeaderEntry();\n\t\t\tif (headerEntry == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstoreEntry(headerEntry, monitor);\n\t\t}\n\t}",
"private WatchKey register(Path dir) throws IOException {\n\t\tWatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);\n\t\tkeys.put(key, dir);\n\t\treturn key;\n\t}",
"private void insertToFile (PQNode node) throws Exception{\n int fileId = (node.getPqIndex()-1)/ENTRY_BLOCK_SIZE;\n File file = new File(DIRECTORY + getMapFileName(NAME_PATTERN, fileId));\n\n List<PQNode> nodes = retrieveWholeFile(node.getPqIndex());\n nodes.add(node);\n\n storeToFile(file,nodes, false);\n }",
"int insert(DiaryFile record);",
"private void init(int bytesPerId, int bytesPerType, int bytesPerPath) throws IOException {\n this.indexVersion = INDEX_VERSION;\n this.bytesPerId = bytesPerId;\n this.bytesPerType = bytesPerType;\n this.bytesPerPath = bytesPerPath;\n this.bytesPerSlot = bytesPerId + bytesPerType + bytesPerPath;\n this.entries = 0;\n \n logger.info(\"Creating uri index with {} bytes per entry\", bytesPerSlot);\n \n // Write header\n idx.seek(IDX_START_OF_HEADER);\n idx.writeInt(indexVersion);\n idx.writeInt(bytesPerId);\n idx.writeInt(bytesPerType);\n idx.writeInt(bytesPerPath);\n idx.writeLong(slots);\n idx.writeLong(entries);\n \n // If this file used to contain entries, we just null out the rest\n try {\n byte[] bytes = new byte[bytesPerSlot - 2];\n while (idx.getFilePointer() < idx.length()) {\n idx.writeChar('\\n');\n idx.write(bytes);\n }\n } catch (EOFException e) {\n // That's ok, we wanted to write until the very end\n }\n \n logger.debug(\"Uri index created\");\n }",
"public DFS()\n {\n\n\n writeLock = lock.writeLock();\n readLock = lock.readLock();\n\n recoverINodes();\n\n createDir(\"/\"); // add a root if it does not exist .\n\n }",
"protected DedicatedFile(short fid) \r\n \t //@ requires true;\r\n \t //@ ensures DedicatedFile(fid, null, true, nil, _);\r\n\t{\r\n\t\tsuper(fid);\r\n\t\tparentFile = null;\r\n\t\tsiblings = new File[MAX_SIBLINGS];\r\n\t\tnumber = 0;\r\n\t\t////@ close foreachp(nil, valid_id); // auto\r\n\t\t////@ close DedicatedFile(fid, null, true, nil, _); // auto\r\n\t}",
"private void populateNewChildDirectory(DirectoryEntry newEntry) {\n try (ClusterStream stream = new ClusterStream(fileSystem,\n FileAccess.Write,\n newEntry.getFirstCluster(),\n 0xffffffff)) {\n // First is the self-referencing entry...\n DirectoryEntry selfEntry = new DirectoryEntry(newEntry);\n selfEntry.setName(FileName.SelfEntryName);\n selfEntry.writeTo(stream);\n // Second is a clone of our self entry (i.e. parent) - though dates\n // are odd...\n DirectoryEntry parentEntry = new DirectoryEntry(getSelfEntry());\n parentEntry.setName(FileName.ParentEntryName);\n parentEntry.setCreationTime(newEntry.getCreationTime());\n parentEntry.setLastWriteTime(newEntry.getLastWriteTime());\n parentEntry.writeTo(stream);\n } catch (IOException e) {\n throw new dotnet4j.io.IOException(e);\n }\n }",
"synchronized ExerciseBuffer pinNew(String filename, PageFormatter fmtr) {\n\t ExerciseBuffer buff = chooseUnpinnedBuffer();\n if (buff == null)\n return null;\n Block blk=buff.assignToNew(filename, fmtr); // return the newly created block\n numAvailable--;\n buff.pin();\n \n if(bufferHashTable.containsValue(buff)){ //if value (buffer) is already exist then remove that key (blk) \n bufferHashTable.remove(blk); \n \n }\n bufferHashTable.put(blk, buff); // adding new key (blk) to HashTable\n \n return buff;\n }",
"public synchronized long add(String id, String type, String path)\n throws IOException {\n if (id == null)\n throw new IllegalArgumentException(\"Id cannot be null\");\n if (type == null)\n throw new IllegalArgumentException(\"Type cannot be null\");\n if (path == null)\n throw new IllegalArgumentException(\"Path cannot be null\");\n \n // Make sure this is a regular id\n if (id.getBytes().length != bytesPerId)\n throw new IllegalArgumentException(bytesPerId + \" byte identifier required\");\n \n long entry = entries;\n \n // Get the required entry size\n int typeLengthInBytes = type.getBytes().length;\n int pathLengthInBytes = path.getBytes().length;\n \n // Make sure there is still room left for an additional entry. One entry\n // consists of the uuid, the path and a closing '\\n'\n if (typeLengthInBytes >= bytesPerType || pathLengthInBytes >= bytesPerPath) {\n \n // Make sure the type field is long enough\n int newBytesPerType = bytesPerType;\n if (typeLengthInBytes >= bytesPerType) {\n logger.info(\"Type doesn't fit, triggering index resize\");\n while (newBytesPerType < typeLengthInBytes)\n newBytesPerType *= 2;\n }\n \n // Make sure the path field is long enough\n int newBytesPerPath = bytesPerPath;\n if (pathLengthInBytes >= bytesPerPath) {\n logger.info(\"Path doesn't fit, triggering index resize\");\n while (newBytesPerPath < pathLengthInBytes)\n newBytesPerPath *= 2;\n }\n \n bytesPerSlot = resize(bytesPerId, newBytesPerType, newBytesPerPath);\n }\n \n // See if there is an empty slot\n long startOfEntry = IDX_START_OF_CONTENT + (entries * bytesPerSlot);\n long address = IDX_START_OF_CONTENT;\n long e = 0;\n boolean reusingSlot = false;\n idx.seek(address);\n while (address < startOfEntry) {\n if (idx.readChar() == '\\n') {\n logger.debug(\"Found orphan line for reuse\");\n startOfEntry = address;\n reusingSlot = true;\n entry = e;\n break;\n }\n idx.skipBytes(bytesPerSlot - 2);\n address += bytesPerSlot;\n e++;\n }\n \n // Add the new address at the end\n idx.seek(startOfEntry);\n idx.write(id.getBytes());\n idx.write(type.getBytes());\n idx.write(new byte[bytesPerType - type.getBytes().length]);\n idx.write(path.getBytes());\n idx.writeChar('\\n');\n idx.write(new byte[bytesPerPath - pathLengthInBytes - 2]);\n \n if (!reusingSlot)\n slots++;\n entries++;\n \n // Update the file header\n idx.seek(IDX_HEADER_SLOTS);\n idx.writeLong(slots);\n idx.writeLong(entries);\n \n logger.debug(\"Added uri with id '{}', type '{}' and path '{}' as entry no {}\", new Object[] {\n id,\n type,\n path,\n entries });\n return entry;\n }",
"private void initializeFileSystem() \r\n \t /*@ requires identityFile |-> _ &*& identityFileSignature |-> _ &*& addressFile |-> _ &*& addressFileSignature |-> _\r\n\t\t\t &*& caRoleIDFile |-> _ &*& preferencesFile |-> _ &*& idDirectory |-> _\r\n\t\t\t &*& certificateDirectoryFile |-> _ &*& privateKeyDirectoryFile |-> _ &*& authenticationObjectDirectoryFile |-> _ &*& objectDirectoryFile |-> _\r\n\t\t\t &*& tokenInfo |-> _ &*& belpicDirectory |-> _ &*& dirFile |-> _\r\n\t\t\t &*& masterFile |-> _ &*& selectedFile |-> _;\r\n\t @*/\r\n \t/*@ ensures dirFile |-> ?theDirFile &*& theDirFile.ElementaryFile(_, _, ?dirFileData, _, _, _) &*& theDirFile != null \r\n \t &*& dirFileData != null &*& dirFileData.length == 0x25\r\n\t &*& belpicDirectory |-> ?theBelpicDirectory &*& theBelpicDirectory.DedicatedFile(_, _, _, ?belpic_siblings, _) &*& theBelpicDirectory != null\r\n\t &*& tokenInfo |-> ?theTokenInfo &*& theTokenInfo.ElementaryFile(_, _, ?tokenInfoData, _, _, _) &*& theTokenInfo != null\r\n\t &*& tokenInfoData != null &*& tokenInfoData.length == 0x30\r\n\t &*& objectDirectoryFile |-> ?theObjectDirectoryFile &*& theObjectDirectoryFile.ElementaryFile(_, _, ?objectDirectoryFileData, _, _, _) &*& theObjectDirectoryFile != null\r\n\t &*& objectDirectoryFileData != null &*& objectDirectoryFileData.length == 40\r\n\t &*& authenticationObjectDirectoryFile |-> ?theAuthenticationObjectDirectoryFile &*& theAuthenticationObjectDirectoryFile.ElementaryFile(_, _, ?authenticationObjectDirectoryFileData, _, _, _) &*& theAuthenticationObjectDirectoryFile != null\r\n\t &*& authenticationObjectDirectoryFileData != null &*& authenticationObjectDirectoryFileData.length == 0x40\r\n\t &*& privateKeyDirectoryFile |-> ?thePrivateKeyDirectoryFile &*& thePrivateKeyDirectoryFile.ElementaryFile(_, _, ?privateKeyDirectoryFileData, _, _, _) &*& thePrivateKeyDirectoryFile != null\r\n\t &*& privateKeyDirectoryFileData != null &*& privateKeyDirectoryFileData.length == 0xB0\r\n\t &*& certificateDirectoryFile |-> ?theCertificateDirectoryFile &*& theCertificateDirectoryFile.ElementaryFile(_, _, ?certificateDirectoryFileData, _, _, _) &*& theCertificateDirectoryFile != null\r\n\t &*& certificateDirectoryFileData != null &*& certificateDirectoryFileData.length == 0xB0\r\n\t &*& idDirectory |-> ?theIdDirectory &*& theIdDirectory.DedicatedFile(_, _, _, ?idDirectory_siblings, _) &*& theIdDirectory != null\r\n\t &*& identityFile |-> ?theIdentityFile &*& theIdentityFile.ElementaryFile(_, _, ?identityData, _, _, _) &*& theIdentityFile != null\r\n\t &*& identityData != null &*& identityData.length == 0xD0\r\n\t &*& identityFileSignature |-> ?theIdentityFileSignature &*& theIdentityFileSignature.ElementaryFile(_, _, ?identitySignatureData, _, _, _) &*& theIdentityFileSignature != null\r\n\t &*& identitySignatureData != null &*& identitySignatureData.length == 0x80\r\n\t &*& addressFile |-> ?theAddressFile &*& theAddressFile.ElementaryFile(_, _, ?addressFileData, _, _, _) &*& theAddressFile != null\r\n\t &*& addressFileData != null &*& addressFileData.length == 117\r\n\t &*& addressFileSignature |-> ?theAddressFileSignature &*& theAddressFileSignature.ElementaryFile(_, _, ?addressFileSignatureData, _, _, _) &*& theAddressFileSignature != null\r\n\t &*& addressFileSignatureData != null &*& addressFileSignatureData.length == 128\r\n\t &*& caRoleIDFile |-> ?theCaRoleIDFile &*& theCaRoleIDFile.ElementaryFile(_, _, ?caRoldIDFileData, _, _, _) &*& theCaRoleIDFile != null\r\n\t &*& caRoldIDFileData != null &*& caRoldIDFileData.length == 0x20\r\n\t &*& preferencesFile |-> ?thePreferencesFile &*& thePreferencesFile.ElementaryFile(_, _, ?preferencesFileData, _, _, _) &*& thePreferencesFile != null\r\n\t &*& preferencesFileData != null &*& preferencesFileData.length == 100\r\n\t &*& masterFile |-> ?theMasterFile &*& theMasterFile.MasterFile(0x3F00, null, _, ?master_siblings, _) &*& theMasterFile != null\r\n\t &*& master_siblings == cons<File>(theDirFile, cons(theBelpicDirectory, cons(theIdDirectory, nil)))\r\n\t &*& belpic_siblings == cons<File>(theTokenInfo, cons(theObjectDirectoryFile, cons(theAuthenticationObjectDirectoryFile, cons(thePrivateKeyDirectoryFile, cons(theCertificateDirectoryFile,nil)))))\r\n\t &*& idDirectory_siblings == cons<File>(theIdentityFile, cons(theIdentityFileSignature, cons(theAddressFile, cons(theAddressFileSignature, cons(theCaRoleIDFile, cons(thePreferencesFile, nil))))))\r\n\t &*& selectedFile |-> theMasterFile &*& theBelpicDirectory.getClass() == DedicatedFile.class &*& theIdDirectory.getClass() == DedicatedFile.class;\r\n\t @*/\r\n\t{\r\n\t\tmasterFile = new MasterFile();\r\n\t\t/*\r\n\t\t * initialize PKCS#15 data structures see\r\n\t\t * \"5. PKCS#15 information details\" for more info\r\n\t\t */\r\n\t\t\r\n\t\t//@ masterFile.castMasterToDedicated();\r\n\t\t\r\n\t\tdirFile = new ElementaryFile(EF_DIR, masterFile, (short) 0x25);\r\n\t\tbelpicDirectory = new DedicatedFile(DF_BELPIC, masterFile);\r\n\t\ttokenInfo = new ElementaryFile(TOKENINFO, belpicDirectory, (short) 0x30);\r\n\t\tobjectDirectoryFile = new ElementaryFile(ODF, belpicDirectory, (short) 40);\r\n\t\tauthenticationObjectDirectoryFile = new ElementaryFile(AODF, belpicDirectory, (short) 0x40);\r\n\t\tprivateKeyDirectoryFile = new ElementaryFile(PRKDF, belpicDirectory, (short) 0xB0);\r\n\t\tcertificateDirectoryFile = new ElementaryFile(CDF, belpicDirectory, (short) 0xB0);\r\n\t\tidDirectory = new DedicatedFile(DF_ID, masterFile);\r\n\t\t/*\r\n\t\t * initialize all citizen data stored on the eID card copied from sample\r\n\t\t * eID card 000-0000861-85\r\n\t\t */\r\n\t\t// initialize ID#RN EF\r\n\t\tidentityFile = new ElementaryFile(IDENTITY, idDirectory, (short) 0xD0);\r\n\t\t// initialize SGN#RN EF\r\n\t\tidentityFileSignature = new ElementaryFile(SGN_IDENTITY, idDirectory, (short) 0x80);\r\n\t\t// initialize ID#Address EF\r\n\t\t// address is 117 bytes, and should be padded with zeros\r\n\t\taddressFile = new ElementaryFile(ADDRESS, idDirectory, (short) 117);\r\n\t\t// initialize SGN#Address EF\r\n\t\taddressFileSignature = new ElementaryFile(SGN_ADDRESS, idDirectory, (short) 128);\r\n\t\t// initialize PuK#7 ID (CA Role ID) EF\r\n\t\tcaRoleIDFile = new ElementaryFile(CA_ROLE_ID, idDirectory, (short) 0x20);\r\n\t\t// initialize Preferences EF to 100 zero bytes\r\n\t\tpreferencesFile = new ElementaryFile(PREFERENCES, idDirectory, (short) 100);\r\n\t\t\r\n\t\tselectedFile = masterFile;\r\n\t\t//@ masterFile.castDedicatedToMaster();\r\n\t}",
"private void createFiOrDi(Directory root, String type, int freeBlock) {\n\t\tif(Constants.DIRECTORY_FILE.equals(type)) {\n\t\t\tsector.put(freeBlock, new Directory());\n\t\t} else {\n\t\t\tsector.put(freeBlock, new Data());\n\t\t}\n\t}",
"public HeapFile(File f, TupleDesc td) {\n // some code goes here\n \tm_f = f;\n \tm_td = td;\n }",
"private void writeInode(BuilderContext context) {\n fillCommonInodeData(context);\n inode.type = InodeType.Directory;\n setInodeRef(context.getInodeWriter().getPosition());\n inode.writeTo(context.getIoBuffer(), 0);\n context.getInodeWriter().write(context.getIoBuffer(), 0, inode.size());\n }",
"private void register(Path dir) throws IOException {\n\t\tWatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);\n\t\tif (trace) {\n\t\t\tPath prev = keys.get(key);\n\t\t\tif (prev == null) {\n\t\t\t\tif (logger.isDebugEnabled())\n\t\t\t\t\tlogger.debug(String.format(\"register: %s\\n\", dir));\n\t\t\t} else {\n\t\t\t\tif (!dir.equals(prev)) {\n\t\t\t\t\tif (logger.isDebugEnabled())\n\t\t\t\t\t\tlogger.debug(String.format(\"update: %s -> %s\\n\", prev, dir));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tkeys.put(key, dir);\n\t}",
"public Phile create( String name) throws PhileAlreadyExistsException, DiskFullException {\n\t\tif (fileList.containsKey(name)) {\n\t\t\tthrow new PhileAlreadyExistsException(\"File already exists\");\n\t\t}\n\t\telse if (totalNumberOfFiles == 32) {\n\t\t\tthrow new DiskFullException(\"Max number of files\");\n\t\t}\n\t\telse {\n\t\t\tPhile phile = new PhileImpl(name, this.tempDisk, currentStartingBlock, currentStartingBlock + 31);\n\t\t\tfileList.put(name, phile);\n\t\t\ttotalNumberOfFiles++;\n\t\t\topenFiles.add(phile);\n\t\t\tnumberOfOpenFiles++;\n\t\t\tcurrentStartingBlock += 32;\n\t\t\treturn phile;\n\t\t}\n }",
"public DbFileIterator iterator(TransactionId tid) {\n // some code goes here\n return new HeapFileIterator(this, tid);\n }",
"alluxio.proto.journal.File.InodeDirectoryEntry getInodeDirectory();",
"private boolean prepareNewFile(Descriptor d) {\r\n\t\tBitMask b = d.getEmptyBitmask();\r\n\r\n\t\tthis.file = new File(d, b, path, name);\r\n\r\n\t\tif (this.file.reallocate()) {\r\n\t\t\tcurrentState = State.CHASING_CHUNKS;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tthis.file = null;\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"protected RecordHeader allocateRecord(String key, int dataLength) throws IOException {\n // search for empty space\n RecordHeader newRecord = null;\n\n for (RecordHeader next : getMemIndex().values()) {\n int free = next.getFreeSpace();\n if (dataLength <= next.getFreeSpace()) {\n newRecord = next.split();\n writeRecordHeaderToIndex(next);\n break;\n }\n }\n if (newRecord == null) {\n // append record to end of file - grows file to allocate space\n long fp = getFileLength();\n setFileLength(fp + dataLength);\n newRecord = new RecordHeader(fp, dataLength);\n }\n return newRecord;\n }",
"public long insert(FFileInputDO FFileInput) throws DataAccessException;",
"public void newEntry(String file, User user) {\r\n TableEntry entry = new TableEntry();\r\n entry.fileName = file;\r\n entry.userName = user.getName();\r\n entry.date = DateUtils.getISO8601Date(System.currentTimeMillis());\r\n \r\n int sz = m_entries.size();\r\n if ( (MAX_SIZE > 0) && (sz >= MAX_SIZE) ) {\r\n clear();\r\n sz = 0;\r\n }\r\n \r\n synchronized(m_entries) {\r\n m_entries.add(entry);\r\n ++sz;\r\n }\r\n fireTableRowsInserted(sz, sz);\r\n }",
"public void newFile() {\r\n \t\tcurFile = null;\r\n \t}",
"public DbFileIterator iterator(TransactionId tid) {\n // some code goes here\n return new HeapFileIterator(tid, this);\n }",
"private static void AddFileMonitor(MemoryCacheMetaInfo meta) throws IOException {\n // if(meta.CacheType == MemoryCacheType.File)\n // {\n // Path myDir = Paths.get(meta.FilePath);\n // WatchService watcher = myDir.getFileSystem().newWatchService();\n // while (true)\n // {\n // try {\n // WatchKey watchKey = myDir.register(watcher,StandardWatchEventKinds.ENTRY_MODIFY) ;\n // for (WatchEvent<?> event : watchKey.pollEvents()) {\n // WatchEvent<Path> watchEvent = (WatchEvent<Path>) event;\n // WatchEvent.Kind<Path> kind = watchEvent.kind();\n //\n // System.out.println(watchEvent.context() + \", count: \" +\n // watchEvent.count() + \", event: \" + watchEvent.kind());\n // // prints (loop on the while twice)\n // // servers.cfg, count: 1, event: ENTRY_MODIFY\n // // servers.cfg, count: 1, event: ENTRY_MODIFY\n //\n // switch (kind.name()) {\n // case \"ENTRY_MODIFY\":\n // //handleModify(watchEvent.context()); // reload configuration class\n // break;\n // case \"ENTRY_DELETE\":\n // //handleDelete(watchEvent.context()); // do something else\n // break;\n // default:\n // System.out.println(\"Event not expected \" + event.kind().name());\n // }\n // }\n // }\n // catch (IOException e) {\n // e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n // }\n // }\n // }\n }",
"void insertFileCacheInfo(String filename){\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n Date curDate = cal.getTime();\n\n DateFormat sdf = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss z\");\n sdf.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n String cacheDate = sdf.format(curDate).toString();\n\n List<FileCache> fcl = fcds.getFileCache(filename);\n if(fcl != null) {\n if(fcl.size() != 0) {\n fcds.updateFileCache(filename, cacheDate);\n }else{\n fcds.createFileCache(filename, cacheDate);\n }\n }\n }",
"public IndexedFile(Disk disk, int recordSize, int keySize,\n\t\t\tint firstAllocated, int indexStart, int indexSectors,\n\t\t\tint indexRoot, int indexLevels) {\n\t\tthis.disk = disk;\n\t\tthis.indexRoot = indexRoot;\n\t\tthis.indexStart = indexStart;\n\t\tthis.overflowStart = indexRoot + 1;\n\t\tthis.overflowSectors = 0;\n\t}",
"private FileManager()\n {\n bookFile.open(\"bookdata.txt\");\n hisFile.open(\"history.txt\");\n idFile.open(\"idpassword.txt\");\n createIDMap();\n createHisMap(Customer.getInstance());\n }",
"public HeapFile(File f, TupleDesc td) {\n // some code goes here\n this.f = f;\n this.td = td;\n }",
"protected abstract void initTable() throws RemoteException, NotBoundException, FileNotFoundException;",
"alluxio.proto.journal.File.InodeFileEntry getInodeFile();",
"public interface VFSFile extends VFSEntry {\n /**\n * Get current length of this file.\n *\n * @return current length of file\n * @throws IOException I/O exception happened during operation\n */\n int getLength() throws IOException;\n\n /**\n * Set current read/write pointer of file relative to file start.\n *\n * @param offsetFromStart offset from beginning of file\n */\n void seek(int offsetFromStart);\n\n /**\n * Read block of data from file. Read operation starts from current pointer in file, then pointer advances to next\n * byte after last successfully read byte.\n *\n * @param buffer destination buffer to read into\n * @param bufferOffset offset in destination buffer where read bytes must be placed\n * @param length length of bytes to read from file\n * @return amount of successfully read bytes, -1 if there are no more bytes left in file\n * @throws IOException I/O exception happened during operation\n */\n int read(byte[] buffer, int bufferOffset, int length) throws IOException;\n\n /**\n * Write block of data to file, expanding it if necessary. Write operation starts from current pointer in file, then pointer advances to next\n * byte after last successfully written byte. File must be opened for write for this method to succeed.\n *\n * @param buffer source buffer to read bytes from\n * @param bufferOffset offset in source buffer from where bytes must be written to file\n * @param length length of bytes to write to file\n * @throws IOException I/O exception happened during operation\n */\n void write(byte[] buffer, int bufferOffset, int length) throws IOException;\n}",
"private void recoverINodes()\n {\n Map<String, DFSNode.SerializedDFSNode> serInodeMap = new HashMap<>();\n try (BufferedReader reader = new BufferedReader(new FileReader(dfsNodeFile)))\n {\n String line;\n while((line=reader.readLine())!=null)\n {\n DFSNode.SerializedDFSNode serializedINode = (DFSNode.SerializedDFSNode) JSONUtil.fromJSON(line, DFSNode.SerializedDFSNode.class);\n DFSNode inode = new DFSNode();\n inode.fqpn = serializedINode.fqpn;\n inode.dataBlockMetas = serializedINode.dataBlockMeta;\n inode.dirOrFile= serializedINode.dirOrFile;\n inodeMap.put(inode.fqpn,inode);\n\n\n serInodeMap.put(serializedINode.fqpn,serializedINode);\n if (NumberUtils.isCreatable(inode.fqpn))\n fileNodeCounter = Math.max(fileNodeCounter,Integer.valueOf(inode.fqpn));\n\n /* if (inode.dataBlockMetas!=null) {\n\n DFSDataBlockMeta meta = inode.dataBlockMetas.get(inode.dataBlockMetas.size()-1);\n\n meta.fileSystem = resolve(meta.fileSystemName);\n\n }*/\n\n\n }\n } catch (Exception ex) {\n ex.printStackTrace();}\n\n\n inodeMap.values().stream().forEach(inode->{\n\n DFSNode.SerializedDFSNode serializedINode = serInodeMap.get(inode.fqpn);\n\n // inode.next = inodeMap.get(serializedINode.nextNodeName);\n\n if (serializedINode.getNodeNames()!=null) {\n List<DFSNode> nodes = serializedINode.getNodeNames().stream().map(name -> {\n return inodeMap.get(name) ;\n }).collect(Collectors.toList());\n\n inode.setNodes(nodes);\n }\n });\n\n }",
"XfvhdlAntecedentMemFiles() {\r\n \t error = new XfvhdlError();\r\n \t }",
"@Override\r\n\tpublic void registerFile(FileVO fvo) {\r\n\t\tfiledao.create(fvo);\r\n\t\t\r\n\t}",
"public edu.umich.icpsr.ddi.FileContType addNewFileCont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileContType target = null;\n target = (edu.umich.icpsr.ddi.FileContType)get_store().add_element_user(FILECONT$2);\n return target;\n }\n }",
"public FileInfo getFileInformation(SrvSession sess, TreeConnection tree, String name)\n throws IOException {\n\n // Check for the null file name\n \n if (name == null)\n return null;\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the database is online\n \n if ( dbCtx.getDBInterface().isOnline() == false)\n throw new DiskOfflineException( \"Database is offline\");\n \n // Check if the path is a file stream\n \n FileState fstate = null;\n FileInfo finfo = null;\n \n if ( FileName.containsStreamName(name)) {\n\n // Check if there is an active file state for the stream\n \n fstate = getFileState(name,dbCtx,true);\n \n if ( fstate != null) {\n \n // Check if the file information is available\n \n finfo = (FileInfo) fstate.findAttribute(FileState.FileInformation);\n }\n\n // If the cached file information is not available then create it\n \n if ( finfo == null) { \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 parent = getFileState(filePath,dbCtx,true);\n \n // Check if the top level file exists\n \n if ( parent != null && parent.fileExists() == true) {\n \n // Get the top level file details\n \n DBFileInfo dbInfo = getFileDetails(name,dbCtx,parent);\n \n if ( dbInfo != null) {\n \n // Get the list of available streams\n \n StreamInfoList streams = loadStreamList(parent, dbInfo, dbCtx, true);\n \n if ( streams != null && streams.numberOfStreams() > 0) {\n \n // Get the details for the stream, if the information is valid copy it to a file information\n // object\n \n StreamInfo sInfo = streams.findStream(paths[2]);\n \n if ( sInfo != null) {\n \n // Create a file information object, copy the stream details to it\n \n finfo = new DBFileInfo(paths[1], name, dbInfo.getFileId(), dbInfo.getDirectoryId());\n finfo.setFileId(sInfo.getFileId());\n finfo.setFileSize(sInfo.getSize());\n \n // Use the parent files timestamps for now\n \n finfo.setCreationDateTime(dbInfo.getCreationDateTime());\n finfo.setAccessDateTime(dbInfo.getAccessDateTime());\n finfo.setModifyDateTime(dbInfo.getModifyDateTime());\n \n // Attach to the file state\n \n fstate.addAttribute(FileState.FileInformation, finfo);\n \n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"getFileInformation() stream=\" + name + \", info=\" + finfo);\n }\n }\n }\n }\n }\n }\n else {\n\n // Get, or create, the file state for the path\n \n fstate = getFileState(name, dbCtx, true);\n \n // Get the file details for the path\n \n DBFileInfo dbInfo = getFileDetails(name, dbCtx, fstate);\n \n // Set the full file/path name\n \n if ( dbInfo != null)\n dbInfo.setFullName(name);\n finfo = dbInfo;\n }\n\n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug() && finfo != null)\n Debug.println(\"getFileInformation info=\" + finfo.toString());\n\n // Return the file information\n\n return finfo;\n }",
"public void createSnapshot(){\n \t\tthis.snapshot = new SnapShot(this.getAddress(),this.getRoot() + File.separatorChar + this.snapshot_dir);\n \t\tthis.pRecursiveDelete(this.getRoot() + File.separatorChar + this.snapshot_dir);\n \t\tthis.clearFilelist();\n \n \t\tfor(String str : this.dirRecursiveRel(this.getRoot())){\n \t\t\tthis.pCreateFile(this.getSnapshot().getRoot() + File.separatorChar + str);\n \t\t\tthis.pCopyFile(this.getRoot() + File.separatorChar + str,this.getSnapshot().getRoot() + File.separatorChar + str);\n \t\t\tthis.addFile(str);\n \t\t\tthis.getFilelist().get(str).put(this.getAddress(),this.getFilelist().get(str).get(this.getAddress()) + 1);\n \t\t}\n \t\t\n \t\tthis.storeMetadata(this.getRoot());\n \t}",
"public SimpleDirectory() {\n this.container = new Entry[SimpleDirectory.DEFAULT_SIZE];\n this.loadFactor = SimpleDirectory.DEFAULT_LOAD_FACTOR;\n }",
"@Override\n protected NodeInfo createDirectoryEntry(NodeInfo parentEntry, Path dir) throws IOException {\n return drive.createFolder(parentEntry.getId(), toFilenameString(dir));\n }",
"protected PicoFile(RandomAccessFile backing, byte[] key) throws IOException {\n assert backing != null : \"Backing is null.\";\n assert key != null : \"Key is null.\";\n assert key.length > 0 : \"Key is missing.\";\n _backing = backing;\n _open = true;\n _resetDigest();\n // We are creating a new file, so truncate any existing file and\n // generate a new header.\n _backing.setLength(0L);\n _head = new PicoHeader();\n _head.setKey(key);\n\n // Now the Header size is fixed since we have the key and know the size\n // of the hash\n // we will write later.\n\n // This actually positions us to _head.offset + 0\n position(0L);\n }",
"public synchronized boolean ffree( FileTableEntry e )\n {\n\n if(table.removeElement(e))\n {\n e.inode.count--;\n e.inode.toDisk(e.iNumber);\n e = null;\n return true;\n\n } else return false;\n }",
"protected void openFiles() {\n\t\tthis.container = fso.openFile(prefix+EXTENSIONS[CTR_FILE],\"rw\");\n\t\tthis.metaData = fso.openFile(prefix+EXTENSIONS[MTD_FILE], \"rw\");\n\t\tthis.reservedBitMap = fso.openFile(prefix+EXTENSIONS[RBM_FILE], \"rw\");\n\t\tthis.updatedBitMap = fso.openFile(prefix+EXTENSIONS[UBM_FILE], \"rw\");\n\t\tthis.freeList = fso.openFile(prefix+EXTENSIONS[FLT_FILE], \"rw\");\n\t}",
"public void superBlock() throws FileNotFoundException, IOException\n {\n \tByteBuffer buf = ByteBuffer.allocate(1024);\n \tbuf.order(ByteOrder.LITTLE_ENDIAN);\n \tbyte[] bytes = new byte[1024];\n f.seek(1024);\n \tf.read(bytes);\n \tbuf.put(bytes);\n\n \tmagicNum = buf.getShort(56);\n \ttotalInodes = buf.getInt(0);\n \ttotalBlocks = buf.getInt(4);\n \tblocksPerGroup = buf.getInt(32);\n \tinodesPerGroup = buf.getInt(40);\n \tsizeOfInode = buf.getInt(88);\n\n \tbyte[] stringLabel = new byte[16];\n \tbuf.position(120);\n buf.get(stringLabel);\n \tvolumeLabel = new String(stringLabel);\n\n System.out.println(\"Magic Number : \"+String.format(\"0x%04X\",magicNum));\n System.out.println(\"Total Inodes: \"+totalInodes);\n System.out.println(\"Total Blocks: \"+totalBlocks);\n System.out.println(\"Blocks per Group: \"+blocksPerGroup);\n System.out.println(\"Inodes per Group: \"+inodesPerGroup);\n System.out.println(\"Size Of each Inode in bytes: \"+sizeOfInode);\n System.out.println(\"Volume Label: \"+ volumeLabel+ \"\\n\");\n }",
"public TcDirEntry add(String directory, String name, int kind) {\r\n\t\ttry {\r\n\t\t\tsynchronized (SysRpcTcAddDirEntryIn) {\r\n\t\t\t\tSysRpcTcAddDirEntryIn.dirPath = TcSysRpcDirEntry.convertDirEntryPathToHandle(directory);\r\n\t\t\t\tSysRpcTcAddDirEntryIn.dirEntryName = name;\r\n\t\t\t\tSysRpcTcAddDirEntryIn.kind.value = convertKind(kind);\r\n\t\t\t\tclient.client.SysRpcTcAddDirEntry_1(SysRpcTcAddDirEntryIn, SysRpcTcAddDirEntryOut);\r\n\t\t\t\tif (SysRpcTcAddDirEntryOut.retVal) {\r\n\t\t\t\t\tTcDirEntry dirEntry = new TcSysRpcDirEntry(SysRpcTcAddDirEntryOut.dirEntryPath.toString(), client);\r\n\t\t\t\t\treturn dirEntry;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tdisconnected(\"Disconnect in TcDirectoryModel - add: \");\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public void writeNode() throws IOException {\n // seek to end of file\n file.seek(offset);\n // write offset data\n file.writeLong(offset);\n // write numKeys data\n file.writeLong(numKeys);\n // write children offset\n for (int i = 0; i < children.length; i++){\n file.writeLong(children[i]);\n }\n // write key data\n for (int i = 0; i < keys.length; i++){\n if (keys[i] == null){\n file.writeLong(-1);\n file.writeInt(0);\n }\n else{\n file.writeLong(keys[i].getKey());\n file.writeInt(keys[i].getFrequency());\n }\n }\n\n //The node has been updated -- move it to the front of the cache\n if (cache != null){\n cache.addObject(this);\n }\n\n\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic static int fillHM(String fileName) throws Exception{\r\n\t\t//System.out.println(\"fileName:\"+fileName);\r\n\t\tcat.info(\"fileName:\"+fileName);\r\n\t\tif(hm == null){\r\n\t\t\thm = new HashMap();\r\n\t\t}\r\n//\t\tString fileURL = URL + fileName;\r\n\t\tString fileURL = fileName;\r\n\t\tFileInputStream in = new FileInputStream(fileURL);\r\n\t\tint len = in.available();\r\n\t\t////System.out.println(len);\r\n\t\tbyte[] bt = new byte[len];\r\n\t\tin.read(bt);\r\n\t\t////System.out.println(len);\r\n\t\t\r\n\t\tint pjz = Integer.parseInt(buffer);\r\n\t\tint zs = len/pjz;\r\n\t\tint xs = len%pjz;\r\n\t\t\r\n\t\tint count = 0;\r\n\t\tif(zs==0&&xs==0){\r\n\t\t\tcount = 0;\r\n\t\t}else if(zs==0&&xs!=0){\r\n\t\t\tcount = 1;\r\n\t\t}else if(zs!=0&&xs==0){\r\n\t\t\tcount = zs;\r\n\t\t}else if(zs!=0&&xs!=0){\r\n\t\t\tcount = zs + 1;\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<count-1;i++){\r\n\t\t\tbyte[] bt_i = new byte[pjz];\r\n\t\t\tSystem.arraycopy(bt,i*pjz,bt_i,0,pjz);\r\n\t\t\thm.put(fileName+\"[\"+String.valueOf(i)+\"]\",bt_i);\r\n\t\t}\r\n\t\tbyte[] bt_end = new byte[len-(count-1)*pjz];\r\n\t\tSystem.arraycopy(bt,(count-1)*pjz,bt_end,0,len-(count-1)*pjz);\r\n\t\thm.put(fileName+\"[\"+(count-1)+\"]\",bt_end);\r\n\t\t\r\n//\t\ti_count = count;\r\n//\t\tSystem.out.println(\"count-----------\"+count);\r\n\t\treturn count;\r\n\t}",
"public static int createFileID(String fileName) {\n\n int fileID;\n\n fileID = 0;\n\n // checks to see if the curent fileID is in database. If yes, then it generates a random new one until a new one is found. \n while (containsFileID(fileID)) {\n fileID = (int) (Math.random() * 100000000);\n }\n // adds this id/name pairing to the database\n addOrUpdateFileName(fileID, fileName);\n System.out.println(\"CreateFileID: \" + fileID + \", \" + fileName);\n // returns the id so the TranslationFile object can store it.\n\n return fileID;\n }",
"@Override\n protected synchronized void generateEntry(File file, boolean prefetch) {\n if (file == null) {\n throw new NullPointerException(\"file == null\");\n }\n ThumbnailCacheIndirection ci = new ThumbnailCacheIndirection(file);\n updateUsageTime(ci);\n fileCache.put(file, ci);\n if (prefetch) {\n workQueue.append(ci);\n } else {\n workQueue.push(ci);\n }\n }",
"private static int open(FileDescriptor fileDescriptor) {\n // scan the kernel open file list for a slot \n // and add our new file descriptor\n int kfd = -1;\n for (int i = 0; i < MAX_OPEN_FILES; i++)\n if (openFiles[i] == null) {\n kfd = i;\n openFiles[kfd] = fileDescriptor;\n break;\n }\n if (kfd == -1) {\n // return (ENFILE) if there are already too many open files\n process.errno = ENFILE;\n return -1;\n }\n\n // scan the list of open files for a slot \n // and add our new file descriptor\n int fd = -1;\n for (int i = 0; i < ProcessContext.MAX_OPEN_FILES; i++)\n if (process.openFiles[i] == null) {\n fd = i;\n process.openFiles[fd] = fileDescriptor;\n break;\n }\n if (fd == -1) {\n // remove the file from the kernel list\n openFiles[kfd] = null;\n // return (EMFILE) if there isn't room left\n process.errno = EMFILE;\n return -1;\n }\n\n // return the index of the file descriptor for now open file\n return fd;\n }",
"public void init() {\n File file = new File(FILE);\n if (!file.exists()) {\n File file2 = new File(file.getParent());\n if (!file2.exists()) {\n file2.mkdirs();\n }\n }\n if (this.accessFile == null) {\n try {\n this.accessFile = new RandomAccessFile(FILE, \"rw\");\n } catch (FileNotFoundException unused) {\n }\n }\n }",
"private void createEntry4(final long overallocation,\n final boolean failSetLength,\n final boolean failAddCacheLocation,\n final boolean cancel,\n final boolean keep,\n final EntryState transferState,\n final EntryState finalState)\n throws Throwable\n {\n new CellStubHelper() {\n @Message(required=true,step=1,cell=\"pnfs\")\n public Object message(PnfsSetLengthMessage msg)\n {\n assertEquals(size4, msg.getLength());\n if (failSetLength) {\n msg.setFailed(1, null);\n } else {\n msg.setSucceeded();\n }\n return msg;\n }\n \n @Message(required=true,step=1,cell=\"pnfs\")\n public Object message(PnfsAddCacheLocationMessage msg)\n {\n if (failAddCacheLocation) {\n msg.setFailed(1, null);\n } else {\n msg.setSucceeded();\n }\n return msg;\n }\n \n @Message(required=false,step=0,cell=\"pnfs\")\n public Object message(PnfsClearCacheLocationMessage msg)\n {\n msg.setSucceeded();\n return msg;\n }\n \n protected void run()\n throws FileInCacheException,\n CacheException,\n InterruptedException,\n IOException\n {\n WriteHandle handle =\n repository.createEntry(id4, info4, transferState,\n finalState, null);\n try {\n handle.allocate(size4 + overallocation);\n createFile(handle.getFile(), size4);\n if (cancel)\n handle.cancel(keep);\n assertStep(\"No messages received yet\", 0);\n } finally {\n handle.close();\n }\n }\n };\n }",
"public synchronized int resize(int newBytesPerId, int newBytesPerType, int newBytesPerPath)\n throws IOException {\n if (this.bytesPerId > newBytesPerId && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per id when there are entries in the index\");\n if (this.bytesPerType > newBytesPerType && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per type when there are entries in the index\");\n if (this.bytesPerPath > newBytesPerPath && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per path when there are entries in the index\");\n if (this.isReadOnly)\n throw new IllegalStateException(\"This index is readonly\");\n \n int newBytesPerSlot = newBytesPerId + newBytesPerType + newBytesPerPath;\n \n logger.info(\"Resizing uri index to {} ({}) slots and {} ({}) bytes per entry\", new Object[] { slots, this.slots, newBytesPerSlot, this.bytesPerSlot });\n \n String fileName = FilenameUtils.getBaseName(idxFile.getName());\n String fileExtension = FilenameUtils.getExtension(idxFile.getName());\n String idxFilenameNew = fileName + \"_resized.\" + fileExtension;\n File idxNewFile = new File(idxFile.getParentFile(), idxFilenameNew);\n long time = System.currentTimeMillis();\n \n logger.debug(\"Creating resized index at \" + idxNewFile);\n \n // Create the new index\n RandomAccessFile idxNew = null;\n try {\n idxNew = new RandomAccessFile(idxNewFile, \"rwd\");\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"Index file \" + idxNewFile + \" cannot be created: \" + e.getMessage(), e);\n }\n \n // Write header\n idxNew.seek(IDX_START_OF_HEADER);\n idxNew.writeInt(indexVersion);\n idxNew.writeInt(newBytesPerId);\n idxNew.writeInt(newBytesPerType);\n idxNew.writeInt(newBytesPerPath);\n idxNew.writeLong(slots);\n idxNew.writeLong(entries);\n \n // Position to read the whole content\n idx.seek(IDX_START_OF_CONTENT);\n \n // Write entries\n for (int i = 0; i < slots; i++) {\n byte[] bytes = new byte[newBytesPerSlot];\n if (i < this.slots) {\n idx.read(bytes, 0, this.bytesPerSlot);\n idxNew.write(bytes);\n } else {\n // Write an empty line\n idxNew.write(bytes);\n }\n }\n \n logger.debug(\"Removing old index at \" + idxFile);\n \n // Close and delete the old index\n idx.close();\n if (!idxFile.delete())\n throw new IOException(\"Unable to delete old index file \" + idxFile);\n \n // Close the new index, and move it into the old index' place\n logger.debug(\"Moving resized index into regular position at \" + idxFile);\n idxNew.close();\n if (!idxNewFile.renameTo(idxFile))\n throw new IOException(\"Unable to move new index file to \" + idxFile);\n \n try {\n idx = new RandomAccessFile(idxFile, \"rwd\");\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"Index file \" + idxNewFile + \" cannot be created: \" + e.getMessage(), e);\n }\n \n this.bytesPerSlot = newBytesPerSlot;\n this.bytesPerId = newBytesPerId;\n this.bytesPerType = newBytesPerType;\n this.bytesPerPath = newBytesPerPath;\n \n time = System.currentTimeMillis() - time;\n logger.info(\"Uri index resized in {}\", ConfigurationUtils.toHumanReadableDuration(time));\n return newBytesPerSlot;\n }",
"FileInfo create(FileInfo fileInfo);",
"protected void open () {\n\t\tif (this.container==null)\n\t\t\ttry {\n\t\t\t\tmigrateOnDemand();\n\t\t\t\topenFiles();\n\t\t\t\tthis.blockSize = metaData.readInt();\n\t\t\t\tthis.size = metaData.readInt();\n\t\t\t}\n\t\t\tcatch (IOException ie) {\n\t\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t\t}\n\t}",
"public synchronized boolean ffree(FileTableEntry entry) {\n\t\tInode inode = new Inode(entry.iNumber);//set the reference from file table\n\t\t\n\t\t if (table.remove(entry))\n\t {\n\t\t\t //check the table for read data\n\t if (inode.flag == READ)\n\t {\n\t if (inode.count == 1)\n\t {\n\t // remove the data\n\t notify();\n\t inode.flag = USED;\n\t }\n\t }\n\t //check the table for write data\n\t else if (inode.flag == WRITE)\n\t {\n\t inode.flag = USED;\n\t notifyAll();\n\t }\n\t //decreasement for count users number\n\t inode.count--;\n\t inode.toDisk(entry.iNumber);\n\t return true;\n\t }\n\t return false;\n\t }",
"private BTreeSearchResult insertNonFull(BTreeSearchResult input, String key, int info) throws IOException {\r\n\t\tkey = String.format(\"%1$-12s\", key).substring(0,12); //Append whitespaces to keep String size fixed to 12\r\n\t\t\r\n\t\tif (input.node.numKeys <= 0){\r\n\t\t\tinput.node.key[0] = key;\r\n\t\t\tinput.node.info[0] = info;\r\n\t\t\tinput.node.numKeys++;\r\n\t\t\tbyte[] byteBuffer = input.node.serialize(this.pageSize);\r\n\t\t\tthis.writePage(byteBuffer, input.pageFound*this.pageSize); // + 1 disk access\r\n\t\t\tinput.diskAccessNum++;\r\n\t\t}else{\r\n\t\t\tint i = -1-Arrays.binarySearch(Arrays.copyOfRange(input.node.key, 0, input.node.numKeys), key); // Search key first\r\n\t\t\t\tif (input.node.isLeaf()){\r\n\t\t\t\t\tfor (int j = input.node.numKeys; j>i; j--){\r\n\t\t\t\t\t\tinput.node.key[j] = input.node.key[j-1];\r\n\t\t\t\t\t\tinput.node.info[j] = input.node.info[j-1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinput.node.key[i] = key;\r\n\t\t\t\t\tinput.node.info[i] = info;\r\n\t\t\t\t\tinput.node.numKeys++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tbyte[] byteBuffer = input.node.serialize(this.pageSize);\r\n\t\t\t\t\tthis.writePage(byteBuffer, input.pageFound*this.pageSize); // + 1 disk access\r\n\t\t\t\t\tinput.diskAccessNum++;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tBTreeNode childNode = new BTreeNode(this.readPage(input.node.child[i]*this.pageSize), this.order); // + 1 disk access\r\n\t\t\t\t\tBTreeSearchResult child = new BTreeSearchResult(childNode, input.node.child[i]);\r\n\t\t\t\t\tchild.diskAccessNum = input.diskAccessNum + 1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (child.node.numKeys == child.node.key.length){\r\n\t\t\t\t\t\tchildNode = split(input.node, i, child); // + 3 disk access and return new child\r\n\t\t\t\t\t\tint diskAccessNum = this.updatePointerOfChildren(child); // Access all children of old root to update their parent pointer\r\n\t\t\t\t\t\tdiskAccessNum = diskAccessNum + this.updatePointerOfChildren(new BTreeSearchResult(childNode, input.node.child[i+1])); // Access all children of new node to update their parent pointer\r\n\t\t\t\t\t\tif (key.compareTo(input.node.key[i])>0)\r\n\t\t\t\t\t\t\tchild = new BTreeSearchResult(childNode, input.node.child[i+1]);\r\n\t\t\t\t\t\tchild.diskAccessNum = input.diskAccessNum + 4 + diskAccessNum;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn insertNonFull(child, key, info);\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn input;\r\n\t}",
"fileInfo(){\n\t\tsymbol = new node[MAXLINECOUNT + 2];\n\t\tother = null; // allocated later!\n\t}",
"Entity() {\n this.root = null;\n // As soon as the program is run, we sould start off with 1000 directory\n for (int temp = 0; temp < SIZE; temp++) {\n create(temp);\n }\n\n }",
"public interface FileSystemEntry {\n public long getCount();\n public long getSize();\n public String getName();\n}",
"public MemoryEntryInfo createMemoryEntryInfo() {\n\t\tMemoryEntryInfo info = new MemoryEntryInfo(new HashMap<String, Object>(this.info.getProperties()));\n\t\tinfo.getProperties().put(MemoryEntryInfo.FILE_MD5, md5);\n\t\tinfo.getProperties().put(MemoryEntryInfo.FILENAME, fileName);\n\t\tinfo.getProperties().put(MemoryEntryInfo.OFFSET, fileoffs);\n\t\treturn info;\n\t}",
"protected static void put(String name, Icon icon) \r\n\t{\r\n\t\tEntry\ttable[] = m_table;\r\n\t\tint\t\tindex;\r\n\r\n\t\tif (m_count >= m_threshold) {\r\n\t\t\t// Rehash the table if the threshold is exceeded\r\n\t\t\trehash();\r\n\t\t\ttable = m_table;\r\n\t\t} \r\n\t\t// Creates the new entry.\r\n\r\n\t\tindex = (name.hashCode() & 0x7FFFFFFF) % table.length;\r\n\t\ttable[index] = new Entry(name, icon, table[index]);;\r\n\t\t++m_count;\r\n }",
"public FileInfo()\r\n {\r\n hash = new HashInfo();\r\n }",
"protected File(SleuthkitCase db, long objId, long fsObjId, \n\t\t\tTSK_FS_ATTR_TYPE_ENUM attrType, short attrId, String name, long metaAddr, \n\t\t\tTSK_FS_NAME_TYPE_ENUM dirType, TSK_FS_META_TYPE_ENUM metaType, \n\t\t\tTSK_FS_NAME_FLAG_ENUM dirFlag, short metaFlags, \n\t\t\tlong size, long ctime, long crtime, long atime, long mtime, \n\t\t\tshort modes, int uid, int gid, String md5Hash, FileKnown knownState, String parentPath) {\n\t\tsuper(db, objId, fsObjId, attrType, attrId, name, metaAddr, dirType, metaType, dirFlag, metaFlags, size, ctime, crtime, atime, mtime, modes, uid, gid, md5Hash, knownState, parentPath);\n\t}",
"private KidDatabaseDisk(){\n //for use with loadFromFileUnsafe() builder\n super();\n sequenceLength.add(0);\n exceptionsArr = new ArrayList<HashMap<Integer,Character>>();\n exceptionsArr.add(new HashMap<Integer,Character>());\n }",
"public void initialilzeMapEntry(String file){\n\t\tmap.put(file, new LinkedList<HashMap<Integer, Integer>>());\n\t}",
"public void putNextEntry( TarEntry entry ) throws IOException {\n\t\tStringBuffer name = entry.getHeader().name;\n\t\tif ( ( entry.isUnixTarFormat() && name.length() > TarHeader.NAMELEN ) || ( ! entry.isUnixTarFormat()\n && name.length() > (TarHeader.NAMELEN + TarHeader.PREFIXLEN) )) { // Formata gore isim boyutu kontrolu yapar\n\t\t\tthrow new InvalidHeaderException( \"file name '\" + name + \"' is too long ( \" + name.length() + \" > \"\n + ( entry.isUnixTarFormat() ? TarHeader.NAMELEN : (TarHeader.NAMELEN + TarHeader.PREFIXLEN) ) + \" bytes )\" );\n\t\t\t}\n\t\tentry.writeEntryHeader( this.recordBuf ); // Basligi yazar\n\t\tthis.buffer.writeRecord( this.recordBuf ); // Kayiti yazar\n\t\tthis.currBytes = 0;\n\t\tif ( entry.isDirectory() )\n\t\t\tthis.currSize = 0;\n\t\telse\n\t\t\tthis.currSize = entry.getSize();\n\t\t}",
"public Directory() {\n files = new ArrayList<VipeFile>();\n sectors = new int[600];\n }",
"public void create(String indexerName,\n String workingDir,\n String namingPrefix,\n int recordPerFile,\n int recordByteSize)\n throws DataOrderingException;",
"@Override\n public void createDirectory(File storageName) throws IOException {\n }",
"public int allocate_map() {\r\n\t\tp_id = new int[idSize];\r\n\t\tif (p_id == null)\r\n\t\t\treturn -1;\r\n\t\telse\r\n\t\t\treturn 1;\r\n\t}",
"protected SMBFile(Session sess, FileInfo finfo, int fid) {\n\t\tm_sess = sess;\n\t\tm_info = finfo;\n\t\tm_FID = fid;\n\n\t\t// Initialize the file write position using the current file size\n\n\t\tm_txpos = getFileSize();\n\t}",
"private FSDataOutputStream createNewFile() throws Exception {\n\t\tlogger.traceEntry();\n\t\tPath newFile = new Path(rootDirectory, \"dim_\" + System.currentTimeMillis() + \".json\");\n\t\tlogger.debug(\"Creating file \" + newFile.getName());\n\t\tFSDataOutputStream dataOutputStream = null;\n\n\t\tif (!hadoopFileSystem.exists(newFile)) {\n\t\t\tdataOutputStream = hadoopFileSystem.create(newFile);\n\t\t} else {\n\t\t\tdataOutputStream = hadoopFileSystem.append(newFile);\n\t\t}\n\n\t\tdataOutputStreams.clear();\n\t\tdataOutputStreams.add(dataOutputStream);\n\t\tlogger.traceExit();\n\t\treturn dataOutputStream;\n\t}"
] |
[
"0.7032593",
"0.690927",
"0.67638373",
"0.6360543",
"0.59841424",
"0.5885336",
"0.5760627",
"0.56790465",
"0.56427836",
"0.55384475",
"0.5507714",
"0.5436079",
"0.542415",
"0.5417252",
"0.5402111",
"0.53985405",
"0.53655815",
"0.5354263",
"0.5335675",
"0.5311128",
"0.5306201",
"0.5297293",
"0.5296121",
"0.52651185",
"0.52399856",
"0.52184916",
"0.5203042",
"0.52019405",
"0.5193584",
"0.5184935",
"0.51676244",
"0.516754",
"0.51646864",
"0.51449245",
"0.5113236",
"0.51037806",
"0.51014787",
"0.508405",
"0.5073386",
"0.5064641",
"0.503607",
"0.50056446",
"0.4996443",
"0.4995557",
"0.49765524",
"0.49755394",
"0.4969214",
"0.49666247",
"0.49636823",
"0.49464628",
"0.49324757",
"0.4918124",
"0.49126023",
"0.49077868",
"0.48954535",
"0.48769745",
"0.48717862",
"0.48692724",
"0.48531967",
"0.4851083",
"0.48427507",
"0.48323253",
"0.48229808",
"0.4816851",
"0.48151764",
"0.481144",
"0.48030216",
"0.47968093",
"0.47833344",
"0.4780118",
"0.47742486",
"0.4770546",
"0.47646746",
"0.47606665",
"0.47591665",
"0.47590762",
"0.47392282",
"0.47359946",
"0.4731951",
"0.4729958",
"0.4725329",
"0.47217426",
"0.47207627",
"0.4715825",
"0.47071168",
"0.4693304",
"0.46773255",
"0.4676337",
"0.46741423",
"0.46690392",
"0.46533057",
"0.46498415",
"0.46401498",
"0.46387577",
"0.4635895",
"0.46277374",
"0.46270636",
"0.4624197",
"0.46241546",
"0.46216637"
] |
0.7109772
|
0
|
receive a file table entry reference save the corresponding inode to the disk free this file table entry. return true if this file table entry found in my table
|
public synchronized boolean ffree(FileTableEntry ftEnt) {
// count is zero so return false
if (ftEnt.inode.count == 0) {
return false;
}
// subtract 1 from the count
ftEnt.inode.count -= 1;
// if the count is zero after the decrement
// then it can be cahnged to unused mode
if (ftEnt.inode.count == 0) {
ftEnt.inode.flag = 0;
notify();
}
//remove the file table entry
return table.removeElement(ftEnt);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public synchronized boolean ffree(FileTableEntry entry) {\n\t\tInode inode = new Inode(entry.iNumber);//set the reference from file table\n\t\t\n\t\t if (table.remove(entry))\n\t {\n\t\t\t //check the table for read data\n\t if (inode.flag == READ)\n\t {\n\t if (inode.count == 1)\n\t {\n\t // remove the data\n\t notify();\n\t inode.flag = USED;\n\t }\n\t }\n\t //check the table for write data\n\t else if (inode.flag == WRITE)\n\t {\n\t inode.flag = USED;\n\t notifyAll();\n\t }\n\t //decreasement for count users number\n\t inode.count--;\n\t inode.toDisk(entry.iNumber);\n\t return true;\n\t }\n\t return false;\n\t }",
"public synchronized boolean fFree( FileTableEntry entry )\n {\n Inode inode = new Inode(entry.iNumber);\n if (table.remove(entry))\n {\n if (inode.usedFlag == 2)\n {\n if (inode.count == 1)\n {\n notify();\n inode.usedFlag = 1;\n }\n }\n else if (inode.usedFlag == 3)\n {\n inode.usedFlag = 1;\n notifyAll();\n }\n inode.count--;\n inode.toDisk(entry.iNumber);\n return true;\n }\n return false;\n }",
"public synchronized boolean ffree( FileTableEntry e )\n {\n\n if(table.removeElement(e))\n {\n e.inode.count--;\n e.inode.toDisk(e.iNumber);\n e = null;\n return true;\n\n } else return false;\n }",
"public boolean close(FileTableEntry ftEnt)\n\t{\n\t\t synchronized(ftEnt) {\n\t\t\t ftEnt.count--;\t\t\t \n\t\t\t if(ftEnt.count > 0) {\n\t\t\t\t return true;\n\t\t\t }\n\t\t }\n\t\t boolean ret = filetable.ffree(ftEnt);\n\t\t if (markedForDeletion.contains(ftEnt.iNumber) && ftEnt.count == 0) {\n\t\t \tdeallocate(ftEnt.inode, ftEnt.iNumber);\n\t\t }\n\t\t return ret;\n\t}",
"boolean commitEntryMemTableFlush() throws IOException;",
"boolean hasUpdateInodeFile();",
"public synchronized FileTableEntry falloc(String filename, String mode) {\n\t\tshort iNumber = -1; //inode number\n\t\tInode inode = null;//set null for inode\n\t\t\n\t\twhile (true) {\n\t\t\t//get iNumber from file name\n\t\t\tiNumber = (filename.equals(\"/\")) ? (short) 0 : dir.namei(filename);\n\t\t\t\n\t\t\t//if the iNumber is greater or equal 0, exist the inode\n\t\t\tif (iNumber >= 0) {\n\t\t\t\tinode = new Inode(iNumber);\n\t\t\t\t\n\t\t\t\t//if the file request for read, and flag is read or used or unused\n\t\t\t\tif (mode.equals(\"r\")) {\n\t\t\t\t\tif (inode.flag == READ || inode.flag == USED || inode.flag == UNUSED) {\n\t\t\t\t\t\tinode.flag = READ;//set the flag for read\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//if the file can write, wait until finish\n\t\t\t\t\t} else if (inode.flag == WRITE) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twait();\n\t\t\t\t\t\t} catch (InterruptedException e) {}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// I want to write, but no one is reading it\n\t\t\t\t\tif (inode.flag == USED || inode.flag == UNUSED) {\n\t\t\t\t\t\tinode.flag = WRITE;//set the flag for write\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else { // I want to write, but someone is reading it\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twait();//if flag can read or write, wait until they finish\n\t\t\t\t\t\t} catch (InterruptedException e) {}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if the node can exist, return null\n\t\t\t} else if (mode.equals(\"r\")) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\t//if the node cannot exist, create a new node and use directory to get iNumber\n\t\t\t\tif (!mode.equals(\"r\")) {\n\t\t\t\t\tiNumber = dir.ialloc(filename);\n\t\t\t\t\tinode = new Inode(iNumber);\n\t\t\t\t\tinode.flag = WRITE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tinode.count++;//increstment for count the users number\n\t\tinode.toDisk(iNumber);\n\t\t//create a new file table entry \n\t\tFileTableEntry entry = new FileTableEntry(inode, iNumber, mode);\n\t\ttable.addElement(entry);//add data in the file table\n\t\treturn entry;\n\t}",
"boolean hasInodeFile();",
"boolean hasUpdateInode();",
"public boolean updateInformationSchemaTable(){\n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\t\tboolean isFound = false;\n\t\ttry {\n\t\t\tRandomAccessFile tablesTableFile = new RandomAccessFile(\"information_schema.table.tbl\", \"rw\");\n\n\t\t\t//Searching to see if the information schema is present or not\n\t\t\twhile(tablesTableFile.getFilePointer() < tablesTableFile.length()){\n\t\t\t\tString readSchemaName = \"\";\n\t\t\t\tbyte varcharLength = tablesTableFile.readByte();\n\t\t\t\tfor(int j = 0; j < varcharLength; j++)\n\t\t\t\t\treadSchemaName += (char)tablesTableFile.readByte();\n\n\t\t\t\tif(readSchemaName.equals(currentSchemaName)){\n\t\t\t\t\tString readTableName = \"\";\n\t\t\t\t\tbyte varcharTableLength = tablesTableFile.readByte();\n\t\t\t\t\tfor(int j = 0; j < varcharTableLength; j++)\n\t\t\t\t\t\treadTableName += (char)tablesTableFile.readByte();\n\n\t\t\t\t\tif(readTableName.equals(tableName)){\n\t\t\t\t\t\tisFound = true;\n\t\t\t\t\t\tSystem.out.println(\"Table '\" + tableName + \"' already exits...\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\ttablesTableFile.readLong();\n\t\t\t\t} else {\n\t\t\t\t\tbyte traverseLength = tablesTableFile.readByte();\n\t\t\t\t\tfor(int j = 0; j < traverseLength; j++)\n\t\t\t\t\t\ttablesTableFile.readByte();\n\t\t\t\t\ttablesTableFile.readLong();\n\t\t\t\t}\t\n\t\t\t}\n\n\t\t\tif(!isFound){\n\t\t\t\t//Traversing to the end of file\n\t\t\t\ttablesTableFile.seek(tablesTableFile.length());\n\t\t\t\ttablesTableFile.writeByte(currentSchemaName.length()); // TABLE_SCHEMA\n\t\t\t\ttablesTableFile.writeBytes(currentSchemaName);\n\t\t\t\ttablesTableFile.writeByte(tableName.length()); // TABLE_NAME\n\t\t\t\ttablesTableFile.writeBytes(tableName);\n\t\t\t\ttablesTableFile.writeLong(0); // TABLE_ROWS\n\t\t\t}\n\n\t\t\ttablesTableFile.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\treturn isFound;\n\t}",
"boolean hasDeleteFile();",
"@Test (timeout=180000)\n public void testLingeringReferenceFile() throws Exception {\n TableName table =\n TableName.valueOf(\"testLingeringReferenceFile\");\n try {\n setupTable(table);\n assertEquals(ROWKEYS.length, countRows());\n\n // Mess it up by creating a fake reference file\n FileSystem fs = FileSystem.get(conf);\n Path tableDir= FSUtils.getTableDir(FSUtils.getRootDir(conf), table);\n Path regionDir = FSUtils.getRegionDirs(fs, tableDir).get(0);\n Path famDir = new Path(regionDir, FAM_STR);\n Path fakeReferenceFile = new Path(famDir, \"fbce357483ceea.12144538\");\n fs.create(fakeReferenceFile);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.LINGERING_REFERENCE_HFILE });\n // fix reference file\n doFsck(conf, true);\n // check that reference file fixed\n assertNoErrors(doFsck(conf, false));\n } finally {\n cleanupTable(table);\n }\n }",
"public synchronized FileTableEntry falloc( String filename, String mode ) {\n short iNum = -1;\n Inode inode = null;\n\n // if not directory assign to the inumber corresponding to the file\n if (filename.equals(\"/\") == false){\n iNum = directory.namei(filename);\n }else{\n // if its the directory assign iNum to 0\n iNum = 0;\n }\n\n // file not found\n if (iNum == -1){\n // checks to see if file mode is equal to \"r\"\n if(mode.compareTo(\"r\") == 0) {\n // return null since you cannot create a file in read mode\n return null;\n // file not in read mode, therefore create a new file\n } else {\n // allocate a new file (structure) table entry for this file name\n iNum = directory.ialloc(filename);\n\n //unable to create file return\n if(iNum == -1) {\n return null;\n }\n // assign iNodes array by iNum to inode\n inode = new Inode();\n iNodes[iNum] = inode;\n }\n // file was found\n }else {\n inode = iNodes[iNum];\n }\n\n // in read mode\n if (mode.compareTo(\"r\") == 0) {\n // wait until the flag is in write mode\n while (inode.flag > 1) {\n try {\n wait();\n } catch (InterruptedException e) {}\n }\n //set flag to read\n inode.flag = 1;\n inode.count++;\n }else{\n while (inode.flag > 0) {\n try {\n wait();\n } catch (InterruptedException e) {}\n }\n inode.flag = 2;\n // increment this inode's count\n inode.count++;\n }\n\n // immediately write back this inode to the disk\n inode.toDisk(iNum);\n // make new file table entry\n FileTableEntry ftEnt = new FileTableEntry(inode, iNum, mode);\n // add the new entry to the table\n table.addElement(ftEnt);\n\n // return a reference to this file (structure) table entry\n return ftEnt;\n\n }",
"private AFile getFileToCheck() {\n\t\tif (fileListTblMdl != null && ((compareCount > 8 && compareCount % 4 == 0) || compareCount >= fileList.size())) {\n\t\t\tfileListTblMdl.fireTableDataChanged();\n\t\t}\n\t\tif (compareCount >= fileList.size()) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tsynchronized (fileList) {\n\t\t\t\treturn fileList.get(compareCount++);\n\t\t\t}\n\t\t}\n\t}",
"public boolean lookup(SymbolTableEntry entry) {\n return table.containsKey(entry.getName());\n }",
"public synchronized FileTableEntry falloc(String fileName, String mode) {\n Inode myNode = null;\n short blockID;\n while(true) \n {\n if(fileName.equals(\"/\")) {\n blockID = 0;\n } else {\n blockID = dir.namei(fileName); \n }\n\n if(blockID >= 0) { //Not superblock\n myNode = new Inode(blockID);\n break;\n }\n\n if(mode.compareTo(\"r\") == 0) {\n return null;\n }\n blockID = dir.ialloc(fileName);\n myNode = new Inode();\n break;\n }\n\n myNode.count++;\n myNode.toDisk(blockID);\n FileTableEntry toAdd = new FileTableEntry(myNode, blockID, mode);\n table.addElement(toAdd);\n return toAdd;\n }",
"public void tableRefChanged() {\r\n\t\t// clear the table Element so it will be recreated\r\n\t\ttableElement = null;\r\n\t\t\r\n\t\t// tell the files that this table has changed\r\n\t\tif (refFiles != null) {\r\n\t\t\tfor(ReferenceFile refFile : refFiles) {\r\n\t\t\t\trefFile.setUpdated(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static boolean destroyEntry(String tableName, int id){\n try{\n File table = new File(tableName+\"Data.csv\");\n Scanner tableReader = new Scanner(table);\n String fileContent = tableReader.nextLine()+\"\\n\";\n boolean lineFound = false;\n while (tableReader.hasNextLine()){\n String currentLine = tableReader.nextLine();\n int lineId = Integer.parseInt(currentLine.split(\",\")[0]);\n if(lineId != id){\n fileContent += currentLine+\"\\n\";\n }else{\n lineFound = true;\n }\n }\n tableReader.close();\n if(lineFound){\n FileWriter tableWriter = new FileWriter(table);\n String[] fileLines = fileContent.split(\"\\n\");\n for(String l : fileLines){\n tableWriter.write(l+\"\\n\");\n }\n tableWriter.close();\n return true;\n }else{\n System.out.println(\"No se encontró una entrada con el id: \"+id);\n return false;\n }\n\n }catch(IOException e){\n e.printStackTrace();\n return false;\n }\n }",
"public synchronized FileTableEntry fAlloc( String filename, String mode )\n {\n short iNumber;\n Inode iNode;\n\n while (true)\n {\n iNumber = (filename.equals(\"/\") ? (short) 0 : directory.namei(filename));\n\n if (iNumber >= 0)\n {\n iNode = new Inode(iNumber);\n if (mode.equals(\"r\"))\n {\n if (iNode.usedFlag == 0 || iNode.usedFlag == 1 || iNode.usedFlag == 2)\n {\n iNode.usedFlag = 2;\n break;\n }\n else if (iNode.usedFlag == 3)\n {\n try\n {\n wait();\n }\n catch (InterruptedException e)\n {\n SysLib.cerr(\"Read Error\");\n }\n }\n }\n else\n {\n if (iNode.usedFlag == 1 || iNode.usedFlag == 0)\n {\n iNode.usedFlag = 3;\n break;\n }\n else\n {\n try\n {\n wait();\n }\n catch (InterruptedException e)\n {\n SysLib.cerr(\"Write Error\");\n }\n }\n }\n }\n else if (!mode.equals(\"r\"))\n {\n iNumber = directory.iAlloc(filename);\n iNode = new Inode(iNumber);\n iNode.usedFlag = 3;\n break;\n }\n else\n {\n return null;\n }\n }\n iNode.count++;\n iNode.toDisk(iNumber);\n FileTableEntry entry = new FileTableEntry(iNode, iNumber, mode);\n table.addElement(entry);\n return entry;\n }",
"protected static boolean containsFileID(double fileID) {\n\n String sql = \"SELECT fileID FROM files\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n if (fileID == rs.getDouble(\"fileID\")) {\n return true;\n }\n }\n } catch (SQLException e) {\n System.out.println(\"fileIDExists: \" + e.getMessage());\n }\n return false;\n\n }",
"boolean hasRetrieveFile();",
"boolean checkFile(MyIFileTable<Integer, Pair<String, BufferedReader>> fileTb) {\n Set<Integer> keys = fileTb.getKeys();\n for (Integer i : keys)\n if (fileTb.get(i).getFirstEl().equals(name))\n return true;\n return false;\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 hasDeleteBlock();",
"public synchronized void delete(long entry) throws IOException {\n long startOfEntry = IDX_START_OF_CONTENT + (entry * bytesPerSlot);\n \n // Remove the entry by writing a '\\n' to the first byte\n idx.seek(startOfEntry);\n idx.writeChar('\\n');\n idx.write(new byte[bytesPerSlot - 2]);\n \n // Update the file header\n entries--;\n idx.seek(IDX_HEADER_ENTRIES);\n idx.writeLong(entries);\n \n logger.debug(\"Removed uri at address '{}' from index\", entry);\n }",
"public boolean delete(K key)\r\n\t{\r\n\t\tint size = SIZES[sizeIdx];\r\n\r\n\t\t// Probe no more iterations than the size of the table\r\n\t\tfor (int i = 0; i < size; ++i)\r\n\t\t{\r\n\t\t\t// Compute the next index in the probe sequence\r\n\t\t\tint index = probe(key, i, size);\r\n\r\n\t\t\t// If we reach an empty slot, we know the key isn't in the table\r\n\t\t\tif (table[index] == null)\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// If we find the key and it isn't a tombstone\r\n\t\t\telse if (table[index].key.equals(key) && !table[index].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Make it a tombstone\r\n\t\t\t\ttable[index].isTombstone = true;\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// If we've been probing for a long time, the key probably isn't in the\r\n\t\t// table\r\n\t\treturn false;\r\n\t}",
"boolean accept(String diffEntryPath);",
"boolean hasUpdateInodeDirectory();",
"boolean hasCompleteFile();",
"public static boolean buffedKey(String sKey) {\n \tboolean ret = false;\r\n\t\tlock.lock(); \r\n\t\tret = (vFileMap.get(sKey)!=null);\r\n\t\tlock.unlock(); \r\n\t\treturn ret;\r\n }",
"private static void recoverEntries(\n File file, RandomAccessFile access,\n LinkedHashMap<UUID, byte[]> entries) throws IOException {\n byte[] header = new byte[BLOCK_SIZE];\n while (access.getFilePointer() + BLOCK_SIZE <= access.length()) {\n // read the tar header block\n access.readFully(header);\n\n // compute the header checksum\n int sum = 0;\n for (int i = 0; i < BLOCK_SIZE; i++) {\n sum += header[i] & 0xff;\n }\n\n // identify possible zero block\n if (sum == 0 && access.getFilePointer() + 2 * BLOCK_SIZE == access.length()) {\n return; // found the zero blocks at the end of the file\n }\n\n // replace the actual stored checksum with spaces for comparison\n for (int i = 148; i < 148 + 8; i++) {\n sum -= header[i] & 0xff;\n sum += ' ';\n }\n\n byte[] checkbytes = String.format(\"%06o\\0 \", sum).getBytes(UTF_8);\n for (int i = 0; i < checkbytes.length; i++) {\n if (checkbytes[i] != header[148 + i]) {\n log.warn(\"Invalid entry checksum at offset {} in tar file {}, skipping...\",\n access.getFilePointer() - BLOCK_SIZE, file);\n continue;\n }\n }\n\n // The header checksum passes, so read the entry name and size\n ByteBuffer buffer = ByteBuffer.wrap(header);\n String name = readString(buffer, 100);\n buffer.position(124);\n int size = readNumber(buffer, 12);\n if (access.getFilePointer() + size > access.length()) {\n // checksum was correct, so the size field should be accurate\n log.warn(\"Partial entry {} in tar file {}, ignoring...\", name, file);\n return;\n }\n\n Matcher matcher = NAME_PATTERN.matcher(name);\n if (matcher.matches()) {\n UUID id = UUID.fromString(matcher.group(1));\n\n String checksum = matcher.group(3);\n if (checksum != null || !entries.containsKey(id)) {\n byte[] data = new byte[size];\n access.readFully(data);\n\n // skip possible padding to stay at block boundaries\n long position = access.getFilePointer();\n long remainder = position % BLOCK_SIZE;\n if (remainder != 0) {\n access.seek(position + (BLOCK_SIZE - remainder));\n }\n\n if (checksum != null) {\n CRC32 crc = new CRC32();\n crc.update(data);\n if (crc.getValue() != Long.parseLong(checksum, 16)) {\n log.warn(\"Checksum mismatch in entry {} of tar file {}, skipping...\",\n name, file);\n continue;\n }\n }\n\n entries.put(id, data);\n }\n } else if (!name.equals(file.getName() + \".idx\")) {\n log.warn(\"Unexpected entry {} in tar file {}, skipping...\",\n name, file);\n long position = access.getFilePointer() + size;\n long remainder = position % BLOCK_SIZE;\n if (remainder != 0) {\n position += BLOCK_SIZE - remainder;\n }\n access.seek(position);\n }\n }\n }",
"public boolean hasDeleteFile() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }",
"@Override\n protected boolean removeEldestEntry(Map.Entry<String, Bitmap> eldest) {\n \t// Log.w(\"ImageDownloader\", \"removeEldestEntry() has been invoked: \" + eldest.getKey() + \" size()=\" + size());\n \t// Log.w(\"ImageDownloader\", \"Entries are transferred to soft reference cache\"); \n \tif (size() > HARD_CACHE_CAPACITY) {\n \t\tLog.w(\"ImageDownloader\", \"Entries are transferred to soft reference cache\");\n // Entries push-out of hard reference cache are transferred to soft reference cache\n sSoftBitmapCache.put(eldest.getKey(), new SoftReference<Bitmap>(eldest.getValue()));\n return true;\n } else\n \tLog.w(\"ImageDownloader\", \"Entries are Not transferred to soft reference cache\");\n return false;\n }",
"private int getEntBlock(FileTableEntry ftEnt)\n\t{\n\t\tint block = ftEnt.seekPtr / Disk.blockSize;\n\t\t//get actual block number\n\t\tif (block < Inode.directSize)\n\t\t{\n\t\t\treturn (int)ftEnt.inode.direct[block];\n\t\t}\n\n\t\tbyte[] temp = new byte[Disk.blockSize];\n\t\tSysLib.rawread((int)ftEnt.inode.indirect, temp);\n\t\treturn (int)SysLib.bytes2short(temp, (block - Inode.directSize) * 2);\n\t}",
"public boolean hasDeleteFile() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }",
"public boolean remove (Object item){\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\t\t\t\t\n\t\t\t\tif (table[index].remove(item)) {\n\t\t\t\t\tmodCount++;\n\t\t\t\t\thashTableSize--;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\n\t}",
"boolean tryLoadFreeIdsIntoCache()\n {\n if ( scanner == null && !atLeastOneIdOnFreelist.get() )\n {\n // If no scan is in progress (SeekCursor now sitting and waiting at some leaf in the free-list)\n // and if we have no reason to expect finding any free id from a scan then don't do it.\n return false;\n }\n\n if ( lock.tryLock() )\n {\n try\n {\n // A new scan is commencing, clear the queue to put ids in\n pendingItemsToCacheCursor = 0;\n // Get a snapshot of the size before we start. At the end of the scan the actual space available to fill with IDs\n // may be even bigger, but not smaller. This is important because we discover IDs, mark them as non-reusable\n // and then place them in the cache so IDs that wouldn't fit in the cache would need to be marked as reusable again,\n // which would be somewhat annoying.\n int maxItemsToCache = cache.capacity() - cache.size();\n\n // Find items to cache\n if ( maxItemsToCache > 0 && findSomeIdsToCache( maxItemsToCache ) )\n {\n // Get a writer and mark the found ids as reserved\n markIdsAsReserved();\n\n // Place them in the cache so that allocation requests can see them\n placeIdsInCache();\n return true;\n }\n }\n catch ( IOException e )\n {\n throw new UncheckedIOException( e );\n }\n finally\n {\n lock.unlock();\n }\n }\n return false;\n }",
"synchronized void checkAlive() {\n printAct(\"==>Checking all my Entries if alive \");\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Integer, FileLocation> entry = (Map.Entry) it.next();\n FileLocation location = entry.getValue();\n try {\n InetSocketAddress server = new InetSocketAddress(location.getIP(), location.getPort());\n Socket s = new Socket();\n s.connect(server, 200); //connect with to the AppliCation with a timeout\n ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream());\n out.writeInt(2); //request 2 = file request\n out.writeInt(5); //\"random\" port, specific for this request\n out.close();\n s.close();\n } catch (java.net.SocketTimeoutException ex) {\n this.removeKey(entry.getKey());\n } catch (IOException ex) {\n this.removeKey(entry.getKey());\n }\n }\n printAct(\"==>Checked all my Entries if alive \");\n }",
"public void findFile(Packet packet) {\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tchar reqFile;\r\n\t\t// If packet has circled network\r\n\t\tif(peerNode.peerClientID == packet.packetSenderID) {\r\n\t\t\t// If peer has file in its own DHT\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tjava.util.Date hasFileDate = new java.util.Date();\r\n\t\t\t\tSystem.out.print(hasFileDate + \": File is in my Distributed Hash Table at \" );\r\n\t\t\t\tfor(int i = 0; i < peerNode.distributedHashTable.get(packet.fileName).size(); i++) {\t\r\n\t\t\t\t\tSystem.out.println(peerNode.distributedHashTable.get(packet.fileName).get(i) + \" \");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tArrayList<InetSocketAddress> fileLocations = new ArrayList<InetSocketAddress>();\r\n\t\t\t\tfor(int i = 0; i < peerNode.distributedHashTable.get(packet.fileName).size(); i++) {\r\n\t\t\t\t\tfileLocations.add(peerNode.distributedHashTable.get(packet.fileName).get(i));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Propmpt user if they want to transfer file\r\n\t\t\t\tjava.util.Date inDate = new java.util.Date();\r\n\t\t\t\tSystem.out.println(inDate + \": Request the file? Yes: 'y' | No: 'n'\");\r\n\t\t\t\treqFile = input.next().charAt(0);\r\n\t\t\t\t// input validation\r\n\t\t\t\twhile(reqFile == 0 && (reqFile != 'y' || reqFile != 'n')) {\r\n\t\t\t\t\tjava.util.Date errDate = new java.util.Date();\r\n\t\t\t\t\tSystem.out.println(errDate + \": You did not enter a valid command. Try Again. Request the file? Yes: 'y' | No: 'n'\");\r\n\t\t\t\t\treqFile = input.next().charAt(0);\r\n\t\t\t\t}\r\n\t\t\t\t// if yes to transfer\r\n\t\t\t\tif(reqFile == 'y') {\r\n\t\t\t\t\tif(fileLocations.size() == 1) {\r\n\t\t\t\t\t\tif(fileLocations.get(0).getPort() == peerNode.peerClientListenPort) {\r\n\t\t\t\t\t\t\tjava.util.Date haveFile = new java.util.Date();\r\n\t\t\t\t\t\t\tSystem.out.println(haveFile + \": I already have this file\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tjava.util.Date reqDate = new java.util.Date();\r\n\t\t\t\t\t\t\tSystem.out.println(reqDate + \": Requesting the file named \" + packet.fileName + \" from Peer at IP\" + fileLocations.get(0).getAddress() + \":\" + fileLocations.get(0).getPort());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tPacket reqFilePckt = new Packet();\r\n\t\t\t\t\t\t\treqFilePckt.eventCode = 5;\r\n\t\t\t\t\t\t\treqFilePckt.packetSenderID = peerNode.peerClientID;\r\n\t\t\t\t\t\t\treqFilePckt.peerClientIP = peerNode.peerClientIP;\r\n\t\t\t\t\t\t\treqFilePckt.peerClientListenPort = peerNode.peerClientListenPort;\r\n\t\t\t\t\t\t\treqFilePckt.fileName = packet.fileName;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t// req file\r\n\t\t\t\t\t\t\t\tpeerNode.peer2Peer = new Socket(fileLocations.get(0).getAddress(), fileLocations.get(0).getPort());\r\n\t\t\t\t\t\t\t\tpeerNode.peer2PeerOutStream = new ObjectOutputStream(peerNode.peer2Peer.getOutputStream());\r\n\t\t\t\t\t\t\t\tpeerNode.peer2PeerInStream = new ObjectInputStream(peerNode.peer2Peer.getInputStream());\r\n\t\t\t\t\t\t\t\tpeerNode.peer2PeerOutStream.writeObject(reqFilePckt);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// Close socket/connection\r\n\t\t\t\t\t\t\t\tcloseConnection();\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\tcatch (IOException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch blo\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tint index = (int) (Math.random() * (fileLocations.size()+1));\r\n\t\t\t\t\t\twhile( fileLocations.get(index).getPort() == peerNode.peerClientListenPort) {\r\n\t\t\t\t\t\t\tindex = (int) (Math.random() * (fileLocations.size()+1));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tjava.util.Date reqDate = new java.util.Date();\r\n\t\t\t\t\t\tSystem.out.println(reqDate + \": Requesting the file named \" + packet.fileName + \" from Peer at IP\" + packet.fileLocations.get(index).getAddress() + \":\" + packet.fileLocations.get(index).getPort());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tPacket reqFilePckt = new Packet();\r\n\t\t\t\t\t\treqFilePckt.eventCode = 5;\r\n\t\t\t\t\t\treqFilePckt.packetSenderID = peerNode.peerClientID;\r\n\t\t\t\t\t\treqFilePckt.peerClientIP = peerNode.peerClientIP;\r\n\t\t\t\t\t\treqFilePckt.peerClientListenPort = peerNode.peerClientListenPort;\r\n\t\t\t\t\t\treqFilePckt.fileName = packet.fileName;\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// req file\r\n\t\t\t\t\t\t\tpeerNode.peer2Peer = new Socket(packet.fileLocations.get(index).getAddress(), packet.fileLocations.get(index).getPort());\r\n\t\t\t\t\t\t\tpeerNode.peer2PeerOutStream = new ObjectOutputStream(peerNode.peer2Peer.getOutputStream());\r\n\t\t\t\t\t\t\tpeerNode.peer2PeerInStream = new ObjectInputStream(peerNode.peer2Peer.getInputStream());\r\n\t\t\t\t\t\t\tpeerNode.peer2PeerOutStream.writeObject(reqFilePckt);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Close socket/connection\r\n\t\t\t\t\t\t\tcloseConnection();\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tcatch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch blo\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}\r\n\t\t\t\telse if(reqFile == 'n') {\r\n\t\t\t\t\tjava.util.Date noReqDate = new java.util.Date();\r\n\t\t\t\t\tSystem.out.println(noReqDate + \": File transfer is not requested\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tjava.util.Date notFndDate = new java.util.Date();\r\n\t\t\t\tSystem.out.println(notFndDate + \": File was not found in the network. Please try again later\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Check if peer DHT has file and if so, send response\r\n\t\telse if(peerNode.peerClientID != packet.packetSenderID && peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\tjava.util.Date fileFoundDate = new java.util.Date();\r\n\t\t\tSystem.out.println(fileFoundDate + \": I have the file in my Distributed Hash Table\");\r\n\t\t\tPacket fileLocationPacket = new Packet();\r\n\t\t\tfileLocationPacket.eventCode = 4;\r\n\t\t\tfileLocationPacket.fileName = packet.fileName;\r\n\t\t\tfileLocationPacket.packetSenderID = peerNode.peerClientID;\r\n\t\t\tfileLocationPacket.packetRecipientID = packet.packetSenderID;\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < peerNode.distributedHashTable.get(packet.fileName).size(); i++) {\r\n\t\t\t\tfileLocationPacket.fileLocations.add(peerNode.distributedHashTable.get(packet.fileName).get(i));\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tjava.util.Date fileLocSentDate = new java.util.Date();\r\n\t\t\t\tSystem.out.println(fileLocSentDate + \": Sending file location to Peer Node \" + packet.packetSenderID);\r\n\t\t\t\tpeerNode.peer2Peer = new Socket(packet.peerClientIP, packet.peerClientListenPort);\r\n\t\t\t\tpeerNode.peer2PeerOutStream = new ObjectOutputStream(peerNode.peer2Peer.getOutputStream());\r\n\t\t\t\tpeerNode.peer2PeerInStream = new ObjectInputStream(peerNode.peer2Peer.getInputStream());\r\n\t\t\t\tpeerNode.peer2PeerOutStream.writeObject(fileLocationPacket);\r\n\t\t\t\t\r\n\t\t\t\t// Close socket/connection\r\n\t\t\t\tcloseConnection();\r\n\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Forward packet to Successor Peer Nodes until Peer with file in their Distributed Hash Table is found\r\n\t\telse {\r\n\t\t\tPacket p = packet;\r\n\t\t\ttry {\r\n\t\t\t\tpeerNode.peer2Peer = new Socket(peerNode.succPeerIP, peerNode.succPeerPort);\r\n\t\t\t\tpeerNode.peer2PeerOutStream = new ObjectOutputStream(peerNode.peer2Peer.getOutputStream());\r\n\t\t\t\tpeerNode.peer2PeerInStream = new ObjectInputStream(peerNode.peer2Peer.getInputStream());\r\n\t\t\t\tpeerNode.peer2PeerOutStream.writeObject(p);\r\n\t\t\t\t\r\n\t\t\t\t// Close socket/connection\r\n\t\t\t\tcloseConnection();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcloseConnection();\r\n\t}",
"public boolean getMappedFile();",
"boolean hasPakringFree();",
"boolean hasPakringFree();",
"boolean hasFileLoc();",
"public int inodeTablePointer(int groupDescriptorNo) throws IOException\n {\n \tByteBuffer buf_groupDescriptor = ByteBuffer.allocate(1024);\n \tbuf_groupDescriptor.order(ByteOrder.LITTLE_ENDIAN);\n \tbyte[] bytes = new byte[1024];\n f.seek(2048);\n \tf.read(bytes);\n \n \tbuf_groupDescriptor.put(bytes);\n inodeTablePointer = buf_groupDescriptor.getInt((groupDescriptorNo*32)+8);\n //System.out.println(\"inodeTablePointer \"+groupDescriptorNo +\" : \"+ inodeTablePointer);\n return inodeTablePointer;\n }",
"public synchronized boolean has(byte[] key) throws IOException {\n if ((kelondroAbstractRecords.debugmode) && (RAMIndex != true)) serverLog.logWarning(\"kelondroFlexTable\", \"RAM index warning in file \" + super.tablename);\r\n assert this.size() == index.size() : \"content.size() = \" + this.size() + \", index.size() = \" + index.size();\r\n return index.geti(key) >= 0;\r\n }",
"public FileTableEntry open(String filename, String mode)\n\t{\n\t\tFileTableEntry ftEnt = filetable.falloc(filename, mode);\n\n\t\t//checking mode for writing\n\t\tif (ftEnt != null) {\n\t\t\tif (mode.equals(\"w\")) {\n\t\t\t\tif(!deallocAllBlocks(ftEnt)) {\n\t\t\t\t\tftEnt = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (mode.equals(\"a\")) {\n\t\t\t\tftEnt.seekPtr = ftEnt.inode.length;\n\t\t\t}\n\t\t}\n\t\treturn ftEnt;\n\t}",
"boolean hasDelete();",
"boolean hasDelete();",
"void deleteFile(FileReference fileReferece);",
"void prepareEntryMemTableFlush();",
"boolean hasInodeLastModificationTime();",
"public void IsInUse() {\n\t\tSystem.out.println(\"Table being cleaned, cannot be used.\");\n\t}",
"boolean hasDriveFile();",
"public boolean delFileServer(String serverid) {\n\t\tboolean flag=false;\r\n\t\ttry {\r\n\t\t\tObject fileserver=getHibernateTemplate().load(FileServer.class,serverid);\r\n\t\t\tgetHibernateTemplate().delete(fileserver);\r\n\t\t\tflag=true;\r\n\t\t\t\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}",
"boolean isUsedForWriting();",
"public static boolean delFromTemp(String fid) {\r\n\t\tboolean status = false;\r\n\t\tint i = 0;\r\n\r\n\t\ttry {\r\n\t\t\tDBconn cn = new DBconn();\r\n\t\t\tConnection con = cn.getConn();\r\n\t\t\tPreparedStatement ps2 = null;\r\n\t\t\tps2 = con.prepareStatement(\" delete from custemp717 where custcode=?\");\r\n\t\t\tint k = Integer.parseInt(fid);\r\n\t\t\tps2.setInt(1, k);\r\n\t\t\ti = ps2.executeUpdate();\r\n\r\n\t\t\tcon.commit();\r\n\t\t\tps2.close();\r\n\t\t\tcon.close();\r\n\r\n\t\t\tif (i > 0) {\r\n\t\t\t\tstatus = true;\r\n\t\t\t}\r\n\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"Dele from temp table done from bClass\" + status);\r\n\t\treturn status;\r\n\t}",
"public boolean contains(T anEntry) {\n return binarySearch(0, length - 1, anEntry);\n }",
"public boolean removeEntry(Entry entry) {\n\t\t return entries.removeElement(entry);\n\t\t\n\t}",
"public boolean deleteFile(String inKey) throws NuxeoException;",
"boolean containsKeyLocalOffHeap(Object key);",
"public void insertFile(Packet packet) {\r\n\t\t\r\n\t\t// Use hashCode function to get a hash of the file name in the range 0 - 2^n - 1\r\n\t\tint fileHash = (int) (packet.fileName.hashCode() % (Math.pow(2, 4) - 1));\r\n\t\t\r\n\t\t// If hash is a negative number, multiply by -1 to get a positive hash value\r\n\t\tif(fileHash < 0) {\r\n\t\t\tfileHash = fileHash * -1;\r\n\t\t}\r\n\t\t\r\n\t\t// Create InetSocketAddress ArrayList, add InetSocketAddress\r\n\t\tArrayList<InetSocketAddress> fileLocationList = new ArrayList<InetSocketAddress>();\r\n\t\tInetSocketAddress fileLocation = new InetSocketAddress(packet.peerClientIP, packet.peerClientListenPort);\r\n\t\t\r\n\t\t// Check if fileHash is equal to Peer Node ID, check if file is in the DHT - if so, just add inet address else add file name and location to the DHT\r\n\t\tif(fileHash == peerNode.peerClientID) {\r\n\t\t\tjava.util.Date date = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if fileHash < Peer Node ID and Peer Node ID < Peer Node Predecessor Peer ID - if so, add file\r\n\t\telse if(fileHash < peerNode.peerClientID && peerNode.peerClientID < peerNode.predPeerID) {\r\n\t\t\tjava.util.Date date2 = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date2 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date2 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if fileHash < Peer Node ID and fileHash > Peer Node Predecessor Peer ID - if so, add file\r\n\t\telse if(fileHash < peerNode.peerClientID && fileHash > peerNode.predPeerID) {\r\n\t\t\tjava.util.Date date3 = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date3 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date3 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Check if fileHash > Peer Node ID and Peer Node Successor Peer ID < Peer Node ID - if so, add file\r\n\t\telse if(fileHash > peerNode.peerClientID && peerNode.succPeerID < peerNode.peerClientID) {\r\n\t\t\tjava.util.Date date4 = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date4 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date4 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Otherwise, forward packet on\r\n\t\telse {\r\n\t\t\tPacket p = packet;\r\n\t\t\ttry {\r\n\t\t\t\tpeerNode.peer2Peer = new Socket(peerNode.succPeerIP, peerNode.succPeerPort);\r\n\t\t\t\tpeerNode.peer2PeerOutStream = new ObjectOutputStream(peerNode.peer2Peer.getOutputStream());\r\n\t\t\t\tpeerNode.peer2PeerInStream = new ObjectInputStream(peerNode.peer2Peer.getInputStream());\r\n\t\t\t\tpeerNode.peer2PeerOutStream.writeObject(p);\r\n\t\t\t\t\r\n\t\t\t\t// Close connection/socket\r\n\t\t\t\tcloseConnection();\r\n\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"boolean hasRef();",
"private boolean filterTable(Map.Entry<CorfuStoreMetadata.TableName,\n CorfuRecord<CorfuStoreMetadata.TableDescriptors, CorfuStoreMetadata.TableMetadata>> table) {\n return (namespace == null || table.getKey().getNamespace().equals(namespace)) &&\n (!taggedTables || table.getValue().getMetadata().getTableOptions().getRequiresBackupSupport());\n }",
"public boolean removeEntry(String removeMe)\n {\n //if the word is in the database\n if (this.hasWord(removeMe))\n {\n //current position int the linked list\n int index = 0;\n //current entry in the linked list\n Entry current;\n\n while (index < entryList.size())\n {\n current = entryList.get(index);\n if (current.getWord().equalsIgnoreCase(removeMe))\n {\n //when I find it, remove it\n entryList.remove(index);\n return true;\n }\n index++;\n }\n }\n return false;\n }",
"public synchronized boolean fempty() {\n\t\treturn table.isEmpty();//if the file table is empty, return to call the starting format\n\t}",
"public static Boolean exist(String rfc, String table) {\n\t\t/***** USED FOR VERIFY IF \"RFC\" EXISTS IN \"TABLE\" *****/\n\t\tboolean result = false;\n\t\ttry\n\t\t{\n\t\t\tstmt = conn.createStatement();\n\t\t\tquery = \"SELECT * FROM CREDIT.\" + table + \" WHERE RFC = \\'\" + rfc + \"\\'\";\n\t\t\trs = stmt.executeQuery(query);\n\t\t\tresult = rs.next();\n\t\t\t\n\t\t\tSystem.out.println(getMethodName(1) + \"\\t\" + result);\n\t\t\t\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public synchronized int deleteEntry(String fileName)\n {\n int iNumber = -1;\n\n // Return an error if the filename is too long\n if (fileName.length() > maxChars)\n {\n return -1;\n }\n\n // Search the vector for the filename\n for (int i = 0; i < files.size(); i++)\n {\n if (files.get(i).equals(fileName))\n {\n // Remove it from the vector\n iNumber = i;\n files.add(iNumber, new String(\"\"));\n files.removeElementAt(iNumber + 1);\n flush();\n break;\n }\n }\n\n return iNumber;\n }",
"void allocate(ApexFile parent_file, int link_factor){\n assert this.used == false;\n\n //delete the block from parent file\n\n // CHECK THAT IF THE PARENT FILE IS NULL THEN DO NOT DO THE DELETE BLOCK STEP\n if(this.parentFile != null){\n this.parentFile.deleteBlock(this);\n }\n\n this.parentFile = parent_file;\n this.used = true;\n this.hf = 1;//reset\n this.uf = 1;//reset\n this.lf = link_factor;//binaries or non binaries\n }",
"boolean hasForceDelete();",
"public int closeFile() {\n int test=0;\n try{\n _file=null;\n rows.clear();\n _fis.close();\n _bis.close();\n _dis.close();\n test=1;\n }catch( IOException ioe){\n test=0;\n }\n return test;\n }",
"boolean isFree(Position position);",
"public boolean isFree(int row, int col, int dir) {\n\t\tif ((input[row][col] & dir) == 0) return true;\n\t\treturn false;\n\t\t\n\t}",
"private void searchAndRemoveFileFromShared(final String fileID, final String userID) {\n String path = String.format(\"users/%s/shared\", userID);\n DatabaseReference df = database.getReference(path);\n df.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot ds: dataSnapshot.getChildren()) {\n SharedFile sf = ds.getValue(SharedFile.class);\n String id = sf.getNoteID();\n if (id.equals(fileID)) {\n String path = String.format(\"users/%s/shared/%s\", userID, ds.getKey());\n DatabaseReference df = database.getReference(path);\n df.removeValue();\n break;\n }\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"private boolean addOIDataFileRef(final OIDataFile dataFile) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"addOIDataFileRef: {}\", dataFile);\n }\n return Identifiable.addIdentifiable(dataFile, getOIDataFileList());\n }",
"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 public boolean contains(BankAccount anEntry) {\n for(int i=0; i<getSize(); i++){\n if(bankArrays[i].compare(anEntry) == 0){\n return true;\n }\n }\n return false;\n }",
"public boolean removeFile(String filename) {\n\n\t\tif (m_db == null)\n\t\t\treturn false;\n\t\t\n\t\ttry {\n\t\t\tlong pending_affected = 0;\n\t\t\tlong file_cache_affected = 0;\n\n\t\t\t//\n\t\t\t// remove all file references\n\t\t\t//\n\t\t\tremoveFileReferences(filename);\n\n\t\t\t//\n\t\t\t// remove file from tag store\n\t\t\t//\n\t\t\tfile_cache_affected = m_db.delete(FILE_TABLE_NAME, FILE_FIELD_PATH\n\t\t\t\t\t+ \"=?\", new String[] { filename });\n\n\t\t\t//\n\t\t\t// informal debug message\n\t\t\t//\n\t\t\tLogger.i(\"DBManager::removeFile> Pending file: \" + pending_affected\n\t\t\t\t\t+ \" TagStore Cache: \" + file_cache_affected);\n\n\t\t\t//\n\t\t\t// done\n\t\t\t//\n\t\t\treturn true;\n\t\t} catch (SQLException exc) {\n\t\t\tLogger.e(\"DBManager::removeFile> exception occured\");\n\t\t\texc.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\r\n\t\tpublic void onSurfaceDertory() {\n\t\t\tif (mTheLastPath != null) { //add here 20160805 WJ\r\n\t\t\t\tLog.d(TAG,\"come to bookmark ===\");\r\n\t\t\t\tdoBookMarkAction();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tLog.d(TAG, \"onSurfaceDertory end\");\r\n\t\t}",
"boolean hasInodeDirectory();",
"public Boolean isFree()\n\t{\n\t\treturn free;\n\t}",
"private boolean rehash() {\n if (tombstones + size < maximumLoad) {\n return false;\n }\n\n int capacity = table.length >> 1;\n\n // Default to the same capacity. This will create a table of the\n // same size and move over the live entries, analogous to a\n // garbage collection. This should only happen if you churn a\n // bunch of thread local garbage (removing and reinserting\n // the same thread locals over and over will overwrite tombstones\n // and not fill up the table).\n int newCapacity = capacity;\n\n if (size > (capacity >> 1)) {\n // More than 1/2 filled w/ live entries.\n // Double size.\n newCapacity = capacity << 1;\n }\n\n Object[] oldTable = this.table;\n\n // Allocate new table.\n initializeTable(newCapacity);\n\n // We won't have any tombstones after this.\n this.tombstones = 0;\n\n // If we have no live entries, we can quit here.\n if (size == 0) {\n return true;\n }\n\n // Move over entries.\n for (int i = oldTable.length - 2; i >= 0; i -= 2) {\n Object k = oldTable[i];\n if (k == null || k == TOMBSTONE) {\n // Skip this entry.\n continue;\n }\n\n // The table can only contain null, tombstones and references.\n @SuppressWarnings(\"unchecked\")\n Reference<ThreadLocal<?>> reference\n = (Reference<ThreadLocal<?>>) k;\n ThreadLocal<?> key = reference.get();\n if (key != null) {\n // Entry is still live. Move it over.\n add(key, oldTable[i + 1]);\n } else {\n // The key was reclaimed.\n size--;\n }\n }\n\n return true;\n }",
"int updateByPrimaryKey(DiaryFile record);",
"alluxio.proto.journal.File.DeleteFileEntry getDeleteFile();",
"public boolean putNewBatch(String key) {\n if (currentFileSize<maxFileSize) {\n currentFileSize++;\n fileIndex.put(key, currentFileId);\n String file = \"idx-\"+mySerial+\"-\"+currentFileId;\n }\n else {\n currentFileId++;\n currentFileSize=0;\n fileIndex.put(key, currentFileId);\n String file = \"idx-\"+mySerial+\"-\"+currentFileId;\n }\n return false;\n }",
"public boolean remove(T anEntry);",
"public boolean hasFullPriceTableRef() {\n return fieldSetFlags()[7];\n }",
"private boolean existsRec(Node<T> nodo, T key) {\r\n\t\tif (nodo.getData().equals(key)) {// Si existe el nodo en el arbol\r\n\t\t\treturn true;\r\n\t\t} else if (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Los hijos\r\n\t\t\tboolean comprobacion = false;\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcomprobacion = existsRec(lista.get(i), key);// Recursividad\r\n\t\t\t\tif (comprobacion == true) // Se encontro\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false; // No se encontro\r\n\t}",
"public boolean breakHardLinksIfNeeded() throws IOException {\n final File file = getBlockFile();\n final FileIoProvider fileIoProvider = getFileIoProvider();\n if (file == null || getVolume() == null) {\n throw new IOException(\"detachBlock:Block not found. \" + this);\n }\n File meta = getMetaFile();\n\n int linkCount = fileIoProvider.getHardLinkCount(getVolume(), file);\n if (linkCount > 1) {\n DataNode.LOG.info(\"Breaking hardlink for \" + linkCount + \"x-linked \" +\n \"block \" + this);\n breakHardlinks(file, this);\n }\n if (fileIoProvider.getHardLinkCount(getVolume(), meta) > 1) {\n breakHardlinks(meta, this);\n }\n return true;\n }",
"public int folderShare(int ffid,String isShared) {\n\t FileFolderMapper mapper = sqlSession.getMapper(FileFolderMapper.class);\r\n\t HashMap<String, Object> map = new HashMap<>();\r\n\t map.put(\"ffid\", ffid);\r\n\t map.put(\"isShared\", isShared);\r\n\t return mapper.bookmarkUpdate(map);\r\n\t }",
"public int modifyChkStorageForDeleteInBill(TicketStorageInBill vo);",
"@Override\n public synchronized boolean isLockFree(int id) {\n if (locks[id] != null) {\n return false;\n }\n\n // check if another process has the lock\n File lockFile = toFile(id);\n try (final FileChannel channel = FileChannel.open(lockFile.toPath(), READ)) {\n // if we can acquire a shared lock, nobody has an exclusive lock\n try (final FileLock fileLock = channel.tryLock(0, Long.MAX_VALUE, true)) {\n if (fileLock != null && fileLock.isValid()) {\n if (!lockFile.delete()) { // try and clean up the orphaned lock file\n LOGGER.debug(\"Couldn't delete orphaned lock file \" + lockFile);\n }\n return true;\n } else {\n // another process has an exclusive lock\n return false;\n }\n } catch (OverlappingFileLockException e) {\n // someone else (in the same JVM) has an exclusive lock\n /*\n * This shouldn't happen under normal circumstances, we have the singleton\n * {@link #locks} array to prevent overlapping locks from the same JVM, but\n * it can occur when there are multiple classloaders in the JVM\n */\n return false;\n }\n } catch (NoSuchFileException e) {\n // no lock file exists, nobody has the lock\n return true;\n } catch (IOException e) {\n LOGGER.warn(\"An unexpected error occurred checking if the lock was free, assuming it's not\", e);\n return false;\n }\n }",
"private boolean continueFile(Descriptor d, BitMask b) {\r\n\t\tthis.file = new File(d, b, path, name);\r\n\r\n\t\tif (!this.file.isAllocated()) {\r\n\t\t\tif (this.file.reallocate()) {\r\n\t\t\t\tcurrentState = State.CHASING_CHUNKS;\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tthis.file = null;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcurrentState = State.CHASING_CHUNKS;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public boolean containCache(Integer cacheKey)\n {\n // Check if the cacheKey is in the reference\n if (mLinkedHashMap.containsKey(cacheKey))\n {\n return true;\n }\n\n // Now check if the actual file is exists\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFilePath = createFilePath(cacheDirectory, cacheKeyStr);\n Boolean isFileExists = new File(existingFilePath).exists();\n if (isFileExists)\n {\n // If the file is found, we have to update the Reference HashMap.\n referenceAdd(cacheKey, existingFilePath);\n\n return true;\n }\n\n return false;\n }",
"int insert(DiaryFile record);",
"boolean isUsedForReading();",
"private void removeFileReferences(String file_name) {\n\n\t\t//\n\t\t// first get file id\n\t\t//\n\t\tlong fid = getFileId(file_name);\n\n\t\t//\n\t\t// convert to string\n\t\t//\n\t\tString file_id = Long.toString(fid);\n\n\t\t//\n\t\t// first get all associated tags\n\t\t//\n\t\tCursor cursor = m_db.query(MAP_TABLE_NAME,\n\t\t\t\tnew String[] { MAP_FIELD_TAG }, MAP_FIELD_FILE + \"=?\",\n\t\t\t\tnew String[] { file_id }, null, null, null);\n\n\t\tif (cursor.moveToFirst() == false) {\n\t\t\t//\n\t\t\t// no entries\n\t\t\t//\n\t\t\tLogger.d(\"DBManager::removeFileReferences> file \" + file_name\n\t\t\t\t\t+ \" has no references\");\n\t\t\tcursor.close();\n\t\t\treturn;\n\t\t}\n\n\t\tdo {\n\t\t\t//\n\t\t\t// get current tag\n\t\t\t//\n\t\t\tString current_tag = cursor.getString(0);\n\n\t\t\t//\n\t\t\t// get current tag id and reference count\n\t\t\t//\n\t\t\tCursor tag_cursor = m_db.query(TAG_TABLE_NAME, new String[] {\n\t\t\t\t\tTAG_FIELD_NAME, TAG_FIELD_USAGE }, TAG_FIELD_ID + \"=?\",\n\t\t\t\t\tnew String[] { current_tag }, null, null, null);\n\t\t\tif (tag_cursor.moveToFirst() == false) {\n\t\t\t\t//\n\t\t\t\t// no entries\n\t\t\t\t//\n\t\t\t\tLogger.e(\"DBManager::removeFileReferences file \"\n\t\t\t\t\t\t+ \" references non existant \" + current_tag);\n\t\t\t\ttag_cursor.close();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\t//\n\t\t\t\t// there should be actually only one result, but don't expect a\n\t\t\t\t// database to be in good state\n\t\t\t\t//\n\t\t\t\tint reference_count = tag_cursor.getInt(1) - 1;\n\t\t\t\tString tag_name = tag_cursor.getString(0);\n\n\t\t\t\tif (reference_count > 0) {\n\t\t\t\t\t//\n\t\t\t\t\t// update tag reference\n\t\t\t\t\t//\n\t\t\t\t\tsetTagReference(tag_name, reference_count);\n\t\t\t\t} else {\n\t\t\t\t\t//\n\t\t\t\t\t// delete tag\n\t\t\t\t\t//\n\t\t\t\t\tlong affected = m_db.delete(TAG_TABLE_NAME, TAG_FIELD_ID\n\t\t\t\t\t\t\t+ \"=?\", new String[] { current_tag });\n\t\t\t\t\tLogger.d(\"Deleted tag \" + tag_name + \" deleted: \"\n\t\t\t\t\t\t\t+ affected);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} while (tag_cursor.moveToNext());\n\n\t\t\t//\n\t\t\t// close tag cursor\n\t\t\t//\n\t\t\ttag_cursor.close();\n\n\t\t} while (cursor.moveToNext());\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// now remove all entries from the mapping table\n\t\t//\n\t\tm_db.delete(MAP_TABLE_NAME, MAP_FIELD_FILE + \"=?\",\n\t\t\t\tnew String[] { Long.toString(fid) });\n\t}",
"public boolean occupyTable(Context ctx, boolean notify) {\n status = BUSY_STATUS;\n isStatusChanged = true;\n\n if (notify)\n updateServerTableStatus(ctx); //Send the new status to iDempiere\n\n return updateTable(ctx);\n }",
"boolean hasDeleteBackUp();",
"boolean fileEnd();",
"public static boolean addFile(TranslationFile bf) {\n System.out.println(\"File added to database.\");\n DatabaseOperations.addOrUpdateFileName(bf.getFileID(), bf.getFileName());\n String sql = \"INSERT OR REPLACE INTO corpus1(id, fileID, fileName, thai, english, committed, removed, rank) VALUES(?,?,?,?,?,?,?,?)\";\n\n try (Connection conn = DatabaseOperations.connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n\n conn.setAutoCommit(false);\n\n // this makes sure that the segments in the file, when retrieved from the db, can be ordered in the proper order.\n // simply increments by 1 on each segment. \n int rank = 0;\n // keeps count of the number of segs added so that the SQL can run a batch transaction (which is much more efficient than individual transactions).\n // when i=1000, or at the last segment, the SQL is then run as one batch transaction.\n int i = 0;\n\n for (Segment seg : bf.getActiveSegs()) {\n\n pstmt.setDouble(1, seg.getID());\n pstmt.setDouble(2, seg.getFileID());\n pstmt.setString(3, seg.getFileName());\n pstmt.setString(4, seg.getThai());\n pstmt.setString(5, seg.getEnglish());\n // committed/removed booleans are stored as binary (0 = false, 1 = true)\n pstmt.setInt(6, seg.isCommitted() ? 1 : 0);\n // removed is set to \"false\"\n pstmt.setInt(7, 0);\n pstmt.setInt(8, rank);\n pstmt.addBatch();\n rank++;\n i++;\n\n if (i % 1000 == 0 || i == bf.getActiveSegs().size()) {\n pstmt.executeBatch(); //Execute every 1000 segments.\n }\n }\n\n // resetting counters\n i = 0;\n rank = 0;\n for (Segment seg : bf.getHiddenSegs()) {\n\n pstmt.setDouble(1, seg.getID());\n pstmt.setDouble(2, seg.getFileID());\n pstmt.setString(3, seg.getFileName());\n pstmt.setString(4, seg.getThai());\n pstmt.setString(5, seg.getEnglish());\n // committed/removed booleans are stored as binary (0 = false, 1 = true)\n pstmt.setInt(6, seg.isCommitted() ? 1 : 0);\n // removed is set to \"true\"\n pstmt.setInt(7, 1);\n pstmt.setInt(8, rank);\n pstmt.addBatch();\n rank++;\n i++;\n\n if (i % 1000 == 0 || i == bf.getHiddenSegs().size()) {\n pstmt.executeBatch(); //Execute every 1000 segments.\n }\n }\n conn.commit();\n return true;\n\n } catch (SQLException e) {\n System.out.println(\"AddFileAsBatch: \" + e.getMessage());\n return false;\n }\n }"
] |
[
"0.81548893",
"0.79867923",
"0.77234733",
"0.6464103",
"0.59019226",
"0.5840855",
"0.57541823",
"0.57195604",
"0.55509895",
"0.5326646",
"0.5323786",
"0.5312824",
"0.53082764",
"0.526155",
"0.52170813",
"0.51740175",
"0.516526",
"0.5152707",
"0.51386946",
"0.5099432",
"0.50703645",
"0.5064823",
"0.5063911",
"0.5033881",
"0.49930057",
"0.49795917",
"0.49568886",
"0.49532583",
"0.48757398",
"0.48652014",
"0.48651752",
"0.4844124",
"0.48404816",
"0.48300588",
"0.4809339",
"0.48080635",
"0.479357",
"0.4792062",
"0.47912204",
"0.47829595",
"0.4773787",
"0.4773787",
"0.47706136",
"0.4765565",
"0.4759876",
"0.47568852",
"0.47547343",
"0.47547343",
"0.47522062",
"0.47409979",
"0.47407794",
"0.47323632",
"0.47294325",
"0.472036",
"0.47131002",
"0.47001728",
"0.46894512",
"0.46871567",
"0.46734905",
"0.4667858",
"0.46664116",
"0.46581897",
"0.46547636",
"0.464649",
"0.46445206",
"0.4642112",
"0.46401522",
"0.462423",
"0.46232247",
"0.46228337",
"0.46183276",
"0.46154633",
"0.46095932",
"0.46070915",
"0.45980456",
"0.45954737",
"0.4586341",
"0.4580938",
"0.45700848",
"0.45677933",
"0.45645252",
"0.456323",
"0.45595846",
"0.45519966",
"0.4550506",
"0.45500416",
"0.45498258",
"0.45463032",
"0.45415732",
"0.45369342",
"0.45338246",
"0.45323214",
"0.45322183",
"0.45294872",
"0.45228323",
"0.4517967",
"0.45123863",
"0.4506625",
"0.45021188",
"0.4498569"
] |
0.7064114
|
3
|
copied from assignment description
|
public synchronized boolean fempty() {
return table.isEmpty( ); // return if table is empty
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void assignment() {\n\n\t\t\t}",
"public void getAssignment() {\n \n }",
"assign_op getAssign_op();",
"Assignment createAssignment();",
"Assignment createAssignment();",
"private void processAssignment(String line) {\n\t\t//TODO: fill\n\t}",
"VarAssignment createVarAssignment();",
"public interface AssignmentNode extends StackOperationNode {\n\n TemporaryVariableName getValueName();\n\n}",
"abstract void assignOne();",
"public abstract void createAssignment(int p);",
"@Override\n public Operator visitAssign(Assign operator)\n {\n throw new AssertionError();\n }",
"public interface AttributeAssignmentExpression extends EObject {\r\n\r\n\tObject toProlog(String type, String variableName, String entityName);\r\n\r\n\tString toPrologExecution();\r\n}",
"@Override\n public void visit(VariableAssignNode variableAssignNode) {\n }",
"public boolean isAssignment() {\n\t\treturn true;\n\t}",
"@Test\n\tpublic void testAddAssignment() {\n\t}",
"@Override\n public String getDescription() {\n return \"Alias assignment\";\n }",
"public KSMemberBaseAssignment assignment() {\n return assignment;\n }",
"@Override\n public ExprType analyzeAssign(AnalyzeInfo info, ExprGenerator value)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n objGen.analyze(info);\n\n value.analyze(info);\n\n // php/3a6e, php/39o3\n // objGen.analyzeSetReference(info);\n objGen.analyzeSetModified(info);\n\n return ExprType.VALUE;\n }",
"protected Expr visitSettableAssign(SettableAssign n) throws SemanticException {\n Position pos = n.position();\n MethodInstance mi = n.methodInstance();\n List<Expr> args = new ArrayList<Expr>(n.index());\n if (n.operator() == Assign.ASSIGN) {\n // FIXME: this changes the order of evaluation, (a,i,v) -> (a,v,i)!\n args.add(0, n.right());\n return xnf.Call(pos, n.array(), xnf.Id(pos, mi.name()),\n args).methodInstance(mi).type(mi.returnType());\n }\n X10Binary_c.Operator op = n.operator().binaryOperator();\n X10Call left = (X10Call) n.left();\n MethodInstance ami = left.methodInstance();\n List<Formal> parms = new ArrayList<Formal>();\n Name xn = Name.make(\"x\");\n LocalDef xDef = xts.localDef(pos, xts.Final(), Types.ref(mi.container()), xn);\n Formal x = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, mi.container()), xnf.Id(pos, xn)).localDef(xDef);\n parms.add(x);\n List<Expr> idx1 = new ArrayList<Expr>();\n int i = 0;\n for (Type t : ami.formalTypes()) {\n Name yn = Name.make(\"y\"+i);\n LocalDef yDef = xts.localDef(pos, xts.Final(), Types.ref(t), yn);\n Formal y = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, t), xnf.Id(pos, yn)).localDef(yDef);\n parms.add(y);\n idx1.add(xnf.Local(pos, xnf.Id(pos, yn)).localInstance(yDef.asInstance()).type(t));\n i++;\n }\n Name zn = Name.make(\"z\");\n Type T = mi.formalTypes().get(0);\n assert (xts.isSubtype(ami.returnType(), T, context()));\n LocalDef zDef = xts.localDef(pos, xts.Final(), Types.ref(T), zn);\n Formal z = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, T), xnf.Id(pos, zn)).localDef(zDef);\n parms.add(z);\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos,\n xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T),\n op, xnf.Local(pos, xnf.Id(pos, zn)).localInstance(zDef.asInstance()).type(T)).type(T));\n List<Expr> args1 = new ArrayList<Expr>(idx1);\n args1.add(0, val);\n Type ret = mi.returnType();\n Expr res = xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, mi.name()), args1).methodInstance(mi).type(ret);\n // Have to create the appropriate node in case someone defines a set():void\n Block block = ret.isVoid() ?\n xnf.Block(pos, xnf.Eval(pos, res), xnf.Return(pos, xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T))) :\n xnf.Block(pos, xnf.Return(pos, res));\n Closure c = synth.makeClosure(pos, T, parms, block, context());\n X10MethodInstance ci = c.closureDef().asType().applyMethod();\n args.add(0, n.array());\n args.add(n.right());\n return xnf.ClosureCall(pos, c, args).closureInstance(ci).type(ret);\n }",
"protected Assign assign(Position pos, Expr e, Assign.Operator asgn, Expr val) throws SemanticException {\n Assign a = (Assign) xnf.Assign(pos, e, asgn, val).type(e.type());\n if (a instanceof FieldAssign) {\n assert (e instanceof Field);\n assert ((Field) e).fieldInstance() != null;\n a = ((FieldAssign) a).fieldInstance(((Field)e).fieldInstance());\n } else if (a instanceof SettableAssign) {\n assert (e instanceof X10Call);\n X10Call call = (X10Call) e;\n List<Expr> args = CollectionUtil.append(Collections.singletonList(val), call.arguments());\n X10Call n = xnf.X10Call(pos, call.target(), nf.Id(pos, SettableAssign.SET), call.typeArguments(), args);\n n = (X10Call) n.del().disambiguate(this).typeCheck(this).checkConstants(this);\n X10MethodInstance smi = n.methodInstance();\n X10MethodInstance ami = call.methodInstance();\n // List<Type> aTypes = new ArrayList<Type>(ami.formalTypes());\n // aTypes.add(0, ami.returnType()); // rhs goes before index\n // MethodInstance smi = xts.findMethod(ami.container(),\n // xts.MethodMatcher(ami.container(), SET, aTypes, context));\n a = ((SettableAssign) a).methodInstance(smi);\n a = ((SettableAssign) a).applyMethodInstance(ami);\n }\n return a;\n }",
"AssignmentRule createAssignmentRule();",
"@Override\n public void visitAssignment(AssignmentExpression assignmentExpression) {\n assignmentExpression.interpret(context);\n }",
"@Override\n public String visit(AssignExpr n, Object arg) {\n return null;\n }",
"abstract void assign(int i);",
"Assign createAssign();",
"public String getDirectAssignmentString() {\r\n return this.directAssignmentString;\r\n }",
"@Override\n\tpublic String visitAssignst(AssignstContext ctx) {\n\t\tParseTree cur = ctx.getChild(0);\n\t\tString left = null;\n\t\tString right = null;\n\t\tif(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\tleft = id.getReturnType();\n\t\t}\n\t\telse {left = visit(cur);}\n\t\tright = visit(ctx.getChild(2));\n\t\tif(right.equals(left)){\t\t\t\n\t\t\treturn right;\t\t\t\n\t\t}\n\t\telse throw new RuntimeException(\"Not the same type in left and right of Assign\");\n\t}",
"public void visit (AssignmentStatement aStmt)\n {\n // Bind memory in the hash table\n fMemory.put (aStmt.getVariableName (), aStmt.getVariableValue ());\n }",
"private static AssignExpr retrieveAssignExpression(Expression expression) {\n return expression.asAssignExpr();\n }",
"@Override\n\tpublic void visit(AssignNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\t/**\n\t\t * Verificam fiii si construim perechea Variabila, Valoare pentru a fi\n\t\t * inserata in HahMap-ul din Evaluator\n\t\t */\n\t\tVariable x = null;\n\t\tValue i = null;\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(1).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(0).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(0).getName());\n\t\t}\n\t\tEvaluator.variables.put(x.getName(), i.getName());\n\t\tnode.setName(i.getName());\n\t}",
"@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }",
"public AssignStatement(Element element) {\n super(element);\n }",
"private void assignIntoGrade() {\n }",
"Syntax.Node ParseAssignment(Token t, Syntax.NodeVar left) throws Exception{\n while (true){\n if(t.type==TokenType.ASSIGNMENT_OPERATOR){\n var right = ParseExpression();\n return new Syntax.AssignmentNode(\":=\", left, right);\n }\n else {\n lexer.putBack(t);\n break;\n //throw new Exception(\"Error in ParseAssignment!!! can't assign it \");\n }\n }\n throw new Exception(\"Error in ParseAssignment!!! \");\n\n }",
"@FunctionalInterface\n\tpublic interface Assignment<V> {\n\t\tV set(Program p,V v);\n\t}",
"public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }",
"private IAssignmentElement createAssignment() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\tfinal IEvent event = createEvent(mch, \"event\");\n\t\treturn event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t}",
"public Code visitAssignmentNode(StatementNode.AssignmentNode node) {\n beginGen(\"Assignment\");\n /* Generate code to evaluate the expression */\n Code code = new Code();\n /* Generate the code to load the address of the variable */\n for(int i= 0; i < node.getExps().size(); i++) {\n \tExpNode exp = node.getExps().get(i);\n \tcode.append(exp.genCode(this));\n }\n for(int i = node.getLValues().size() - 1; i >= 0; i--) {\n \tExpNode lValue = node.getLValues().get(i);\n \tcode.append(lValue.genCode(this));\n \tcode.genStore(lValue.getType());\n }\n endGen(\"Assignment\");\n return code;\n }",
"CDAssignStatement(CDExpression destination, CDExpression source) {\n _destination = destination;\n _source = source;\n }",
"void fillAssignmentWithActivities(Assignment assignment);",
"public String visit(AssignmentStatement n, LLVMRedux argu) throws Exception {\n String Identifier = n.f0.accept(this, argu);\n String storeArg1 = u.decodeIdentifier(Identifier);\n String type = u.getIdentifierType(Identifier);\n String storeArg2 = n.f2.accept(this, argu);\n u.println(\"store \"+u.javaTypeToLLVMType(type)+\" \"+storeArg2+\", \"+u.pointer(u.javaTypeToLLVMType(type))+\" \"+storeArg1);\n return storeArg1;\n }",
"@Override\n\tpublic Object visit(ASTAssign node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" := \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}",
"@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ctx.ID().getText(); // id is left-hand side of '='\n int value = visit(ctx.expr()); // compute value of expression on right\n memory.put(id, value); // store it in memory\n return value;\n }",
"protected abstract Set method_1559();",
"@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}",
"public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }",
"public IncrementableAssignment() {\n super(false);\n }",
"public LlvmValue visit(Assign n){\n\t\t\n\t\tSystem.out.format(\"assign********\\n\");\n\t\t\n\t\tLlvmValue rhs = n.exp.accept(this);\n\t\tLlvmRegister returns;\n\t\t//Nesta parte, para retornarmos o tipo certo, tivemos que converter todos os parametros do tipo\n\t\t//[ A x iB] para ponteiros. o Assembly reclamava quando tinha algum store ou algo do genero com tipos\n\t\t// diferentes\n\t\tif(rhs.type.toString().contains(\"x i\")){\n\t\t\t//System.out.format(\"expressao de rhs envolve arrays. fazendo casting...\\n\");\n\t\t\t\n\t\t\t//Fazer bitcast\n\t\t\tif(rhs.type.toString().contains(\" x i32\")){\n\t\t\t\treturns = new LlvmRegister(LlvmPrimitiveType.I32PTR);\n\t\t\t}else if(rhs.type.toString().contains(\" x i8\")){\n\t\t\t\treturns = new LlvmRegister(new LlvmPointer(LlvmPrimitiveType.I8));\n\t\t\t//Esse else eh meio inutil, mas pelo fato de eu querer usar elseif, deixei ele aqui mesmo.\n\t\t\t}else{\n\t\t\t\treturns = new LlvmRegister(rhs.type);\n\t\t\t}\n\t\t\t\n\t\t\tassembler.add(new LlvmBitcast(returns, rhs, returns.type));\n\t\t\tassembler.add(new LlvmStore(returns, n.var.accept(this)));\n\t\t}else{\n\t\t\t//Caso o tipo ja esteja ok, soh damos store com o rhs mesmo.\n\t\t\tassembler.add(new LlvmStore(rhs, n.var.accept(this)));\n\t\t}\n\t\treturn null;\n\t}",
"public Assignment getOperatorAssignment_2() { return cOperatorAssignment_2; }",
"TIAssignment createTIAssignment();",
"private Expr expression() {\n return assignment();\n }",
"@Override\r\n\tpublic Object visit(YoyooAssignmentOperator node, Object data) {\r\n\t\tassignOptMark = new OperatorMark(node.first_token.image);\r\n\t\treturn null;\r\n\t}",
"private void assign(DefinitionStmt stmt) {\n \n soot.Value rightOp = stmt.getRightOp();\n Value result;\n \n if (rightOp instanceof Immediate) {\n Immediate immediate = (Immediate) rightOp;\n result = immediate(stmt, immediate);\n } else if (rightOp instanceof ThisRef) {\n result = function.getParameterRef(1);\n } else if (rightOp instanceof ParameterRef) {\n ParameterRef ref = (ParameterRef) rightOp;\n int index = (sootMethod.isStatic() ? 1 : 2) + ref.getIndex();\n Value p = new VariableRef(\"p\" + index, getType(ref.getType()));\n result = widenToI32Value(p, isUnsigned(ref.getType()));\n } else if (rightOp instanceof CaughtExceptionRef) {\n result = call(BC_EXCEPTION_CLEAR, env);\n } else if (rightOp instanceof ArrayRef) {\n ArrayRef ref = (ArrayRef) rightOp;\n VariableRef base = (VariableRef) immediate(stmt, (Immediate) ref.getBase());\n if (ref.getType() instanceof NullType) {\n // The base value is always null. Do a null check which will\n // always throw NPE.\n checkNull(stmt, base);\n return;\n } else {\n Value index = immediate(stmt, (Immediate) ref.getIndex());\n checkNull(stmt, base);\n checkBounds(stmt, base, index);\n result = call(getArrayLoad(ref.getType()), base, index);\n result = widenToI32Value(result, isUnsigned(ref.getType()));\n }\n } else if (rightOp instanceof InstanceFieldRef) {\n InstanceFieldRef ref = (InstanceFieldRef) rightOp;\n Value base = immediate(stmt, (Immediate) ref.getBase());\n checkNull(stmt, base);\n FunctionRef fn = null;\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_getter\", \n new FunctionType(getType(ref.getType()), ENV_PTR, OBJECT_PTR));\n } else {\n soot.Type runtimeType = ref.getBase().getType();\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n String runtimeClassName = runtimeType == NullType.v() ? targetClassName : getInternalName(runtimeType);\n Trampoline trampoline = new GetField(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()), runtimeClassName);\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n result = call(fn, env, base);\n result = widenToI32Value(result, isUnsigned(ref.getType()));\n } else if (rightOp instanceof StaticFieldRef) {\n StaticFieldRef ref = (StaticFieldRef) rightOp;\n FunctionRef fn = Intrinsics.getIntrinsic(sootMethod, stmt);\n if (fn == null) {\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_getter\", \n new FunctionType(getType(ref.getType()), ENV_PTR));\n } else {\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n Trampoline trampoline = new GetStatic(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()));\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n }\n result = call(fn, env);\n result = widenToI32Value(result, isUnsigned(ref.getType()));\n } else if (rightOp instanceof Expr) {\n if (rightOp instanceof BinopExpr) {\n BinopExpr expr = (BinopExpr) rightOp;\n Type rightType = getLocalType(expr.getType());\n Variable resultVar = function.newVariable(rightType);\n result = resultVar.ref();\n Value op1 = immediate(stmt, (Immediate) expr.getOp1());\n Value op2 = immediate(stmt, (Immediate) expr.getOp2());\n if (rightOp instanceof AddExpr) {\n if (rightType instanceof IntegerType) {\n function.add(new Add(resultVar, op1, op2));\n } else {\n function.add(new Fadd(resultVar, op1, op2));\n }\n } else if (rightOp instanceof AndExpr) {\n function.add(new And(resultVar, op1, op2));\n } else if (rightOp instanceof CmpExpr) {\n Variable t1 = function.newVariable(I1);\n Variable t2 = function.newVariable(I1);\n Variable t3 = function.newVariable(resultVar.getType());\n Variable t4 = function.newVariable(resultVar.getType());\n function.add(new Icmp(t1, Condition.slt, op1, op2));\n function.add(new Icmp(t2, Condition.sgt, op1, op2));\n function.add(new Zext(t3, new VariableRef(t1), resultVar.getType()));\n function.add(new Zext(t4, new VariableRef(t2), resultVar.getType()));\n function.add(new Sub(resultVar, new VariableRef(t4), new VariableRef(t3)));\n } else if (rightOp instanceof DivExpr) {\n if (rightType instanceof IntegerType) {\n FunctionRef f = rightType == I64 ? LDIV : IDIV;\n result = call(f, env, op1, op2);\n } else {\n // float or double\n function.add(new Fdiv(resultVar, op1, op2));\n }\n } else if (rightOp instanceof MulExpr) {\n if (rightType instanceof IntegerType) {\n function.add(new Mul(resultVar, op1, op2));\n } else {\n function.add(new Fmul(resultVar, op1, op2));\n }\n } else if (rightOp instanceof OrExpr) {\n function.add(new Or(resultVar, op1, op2));\n } else if (rightOp instanceof RemExpr) {\n if (rightType instanceof IntegerType) {\n FunctionRef f = rightType == I64 ? LREM : IREM;\n result = call(f, env, op1, op2);\n } else {\n FunctionRef f = rightType == DOUBLE ? DREM : FREM;\n result = call(f, env, op1, op2);\n }\n } else if (rightOp instanceof ShlExpr || rightOp instanceof ShrExpr || rightOp instanceof UshrExpr) {\n IntegerType type = (IntegerType) op1.getType();\n int bits = type.getBits();\n Variable t = function.newVariable(op2.getType());\n function.add(new And(t, op2, new IntegerConstant(bits - 1, (IntegerType) op2.getType())));\n Value shift = t.ref();\n if (((IntegerType) shift.getType()).getBits() < bits) {\n Variable tmp = function.newVariable(type);\n function.add(new Zext(tmp, shift, type));\n shift = tmp.ref();\n }\n if (rightOp instanceof ShlExpr) {\n function.add(new Shl(resultVar, op1, shift));\n } else if (rightOp instanceof ShrExpr) {\n function.add(new Ashr(resultVar, op1, shift));\n } else {\n function.add(new Lshr(resultVar, op1, shift));\n }\n } else if (rightOp instanceof SubExpr) {\n if (rightType instanceof IntegerType) {\n function.add(new Sub(resultVar, op1, op2));\n } else {\n function.add(new Fsub(resultVar, op1, op2));\n }\n } else if (rightOp instanceof XorExpr) {\n function.add(new Xor(resultVar, op1, op2));\n } else if (rightOp instanceof XorExpr) {\n function.add(new Xor(resultVar, op1, op2));\n } else if (rightOp instanceof CmplExpr) {\n FunctionRef f = op1.getType() == FLOAT ? FCMPL : DCMPL;\n function.add(new Call(resultVar, f, op1, op2));\n } else if (rightOp instanceof CmpgExpr) {\n FunctionRef f = op1.getType() == FLOAT ? FCMPG : DCMPG;\n function.add(new Call(resultVar, f, op1, op2));\n } else {\n throw new IllegalArgumentException(\"Unknown type for rightOp: \" + rightOp.getClass());\n }\n } else if (rightOp instanceof CastExpr) {\n Value op = immediate(stmt, (Immediate) ((CastExpr) rightOp).getOp());\n soot.Type sootTargetType = ((CastExpr) rightOp).getCastType();\n soot.Type sootSourceType = ((CastExpr) rightOp).getOp().getType();\n if (sootTargetType instanceof PrimType) {\n Type targetType = getType(sootTargetType);\n Type sourceType = getType(sootSourceType);\n if (targetType instanceof IntegerType && sourceType instanceof IntegerType) {\n // op is at least I32 and has already been widened if source type had fewer bits then I32\n IntegerType toType = (IntegerType) targetType;\n IntegerType fromType = (IntegerType) op.getType();\n Variable v = function.newVariable(toType);\n if (fromType.getBits() < toType.getBits()) {\n // Widening\n if (isUnsigned(sootSourceType)) {\n function.add(new Zext(v, op, toType));\n } else {\n function.add(new Sext(v, op, toType));\n }\n } else if (fromType.getBits() == toType.getBits()) {\n function.add(new Bitcast(v, op, toType));\n } else {\n // Narrow\n function.add(new Trunc(v, op, toType));\n }\n result = widenToI32Value(v.ref(), isUnsigned(sootTargetType));\n } else if (targetType instanceof FloatingPointType && sourceType instanceof IntegerType) {\n // we always to a signed conversion since if op is char it has already been zero extended to I32\n Variable v = function.newVariable(targetType);\n function.add(new Sitofp(v, op, targetType));\n result = v.ref();\n } else if (targetType instanceof FloatingPointType && sourceType instanceof FloatingPointType) {\n Variable v = function.newVariable(targetType);\n if (targetType == FLOAT && sourceType == DOUBLE) {\n function.add(new Fptrunc(v, op, targetType));\n } else if (targetType == DOUBLE && sourceType == FLOAT) {\n function.add(new Fpext(v, op, targetType));\n } else {\n function.add(new Bitcast(v, op, targetType));\n }\n result = v.ref();\n } else {\n // F2I, F2L, D2I, D2L\n FunctionRef f = null;\n if (targetType == I32 && sourceType == FLOAT) {\n f = F2I;\n } else if (targetType == I64 && sourceType == FLOAT) {\n f = F2L;\n } else if (targetType == I32 && sourceType == DOUBLE) {\n f = D2I;\n } else if (targetType == I64 && sourceType == DOUBLE) {\n f = D2L;\n } else {\n throw new IllegalArgumentException();\n }\n Variable v = function.newVariable(targetType);\n function.add(new Call(v, f, op));\n result = v.ref();\n }\n } else {\n if (sootTargetType instanceof soot.ArrayType \n && ((soot.ArrayType) sootTargetType).getElementType() instanceof PrimType) {\n soot.Type primType = ((soot.ArrayType) sootTargetType).getElementType();\n GlobalRef arrayClassPtr = new GlobalRef(\"array_\" + getDescriptor(primType), CLASS_PTR);\n Variable arrayClass = function.newVariable(CLASS_PTR);\n function.add(new Load(arrayClass, arrayClassPtr));\n result = call(CHECKCAST_PRIM_ARRAY, env, arrayClass.ref(), op);\n } else {\n String targetClassName = getInternalName(sootTargetType);\n Trampoline trampoline = new Checkcast(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, op);\n }\n }\n } else if (rightOp instanceof InstanceOfExpr) {\n Value op = immediate(stmt, (Immediate) ((InstanceOfExpr) rightOp).getOp());\n soot.Type checkType = ((InstanceOfExpr) rightOp).getCheckType();\n if (checkType instanceof soot.ArrayType \n && ((soot.ArrayType) checkType).getElementType() instanceof PrimType) {\n soot.Type primType = ((soot.ArrayType) checkType).getElementType();\n GlobalRef arrayClassPtr = new GlobalRef(\"array_\" + getDescriptor(primType), CLASS_PTR);\n Variable arrayClass = function.newVariable(CLASS_PTR);\n function.add(new Load(arrayClass, arrayClassPtr));\n result = call(INSTANCEOF_PRIM_ARRAY, env, arrayClass.ref(), op);\n } else {\n String targetClassName = getInternalName(checkType);\n Trampoline trampoline = new Instanceof(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, op);\n }\n } else if (rightOp instanceof NewExpr) {\n String targetClassName = getInternalName(((NewExpr) rightOp).getBaseType());\n FunctionRef fn = null;\n if (targetClassName.equals(this.className)) {\n fn = FunctionBuilder.allocator(sootMethod.getDeclaringClass()).ref();\n } else {\n Trampoline trampoline = new New(this.className, targetClassName);\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n result = call(fn, env);\n } else if (rightOp instanceof NewArrayExpr) {\n NewArrayExpr expr = (NewArrayExpr) rightOp;\n Value size = immediate(stmt, (Immediate) expr.getSize());\n if (expr.getBaseType() instanceof PrimType) {\n result = call(getNewArray(expr.getBaseType()), env, size);\n } else {\n String targetClassName = getInternalName(expr.getType());\n Trampoline trampoline = new Anewarray(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, size);\n }\n } else if (rightOp instanceof NewMultiArrayExpr) {\n NewMultiArrayExpr expr = (NewMultiArrayExpr) rightOp;\n if (expr.getBaseType().numDimensions == 1 && expr.getBaseType().getElementType() instanceof PrimType) {\n Value size = immediate(stmt, (Immediate) expr.getSize(0));\n result = call(getNewArray(expr.getBaseType().getElementType()), env, size);\n } else {\n for (int i = 0; i < expr.getSizeCount(); i++) {\n Value size = immediate(stmt, (Immediate) expr.getSize(i));\n Variable ptr = function.newVariable(new PointerType(I32));\n function.add(new Getelementptr(ptr, dims.ref(), 0, i));\n function.add(new Store(size, ptr.ref()));\n }\n Variable dimsI32 = function.newVariable(new PointerType(I32));\n function.add(new Bitcast(dimsI32, dims.ref(), dimsI32.getType()));\n String targetClassName = getInternalName(expr.getType());\n Trampoline trampoline = new Multianewarray(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, new IntegerConstant(expr.getSizeCount()), dimsI32.ref());\n }\n } else if (rightOp instanceof InvokeExpr) {\n result = invokeExpr(stmt, (InvokeExpr) rightOp);\n } else if (rightOp instanceof LengthExpr) {\n Value op = immediate(stmt, (Immediate) ((LengthExpr) rightOp).getOp());\n checkNull(stmt, op);\n Variable v = function.newVariable(I32);\n function.add(new Call(v, ARRAY_LENGTH, op));\n result = v.ref();\n } else if (rightOp instanceof NegExpr) {\n NegExpr expr = (NegExpr) rightOp;\n Value op = immediate(stmt, (Immediate) expr.getOp());\n Type rightType = op.getType();\n Variable v = function.newVariable(op.getType());\n if (rightType instanceof IntegerType) {\n function.add(new Sub(v, new IntegerConstant(0, (IntegerType) rightType), op));\n } else {\n function.add(new Fmul(v, new FloatingPointConstant(-1.0, (FloatingPointType) rightType), op));\n }\n result = v.ref();\n } else {\n throw new IllegalArgumentException(\"Unknown type for rightOp: \" + rightOp.getClass());\n }\n } else {\n throw new IllegalArgumentException(\"Unknown type for rightOp: \" + rightOp.getClass());\n }\n \n soot.Value leftOp = stmt.getLeftOp();\n \n if (leftOp instanceof Local) {\n Local local = (Local) leftOp;\n VariableRef v = new VariableRef(local.getName(), new PointerType(getLocalType(leftOp.getType())));\n function.add(new Store(result, v, !sootMethod.getActiveBody().getTraps().isEmpty()));\n } else {\n Type leftType = getType(leftOp.getType());\n Value narrowedResult = narrowFromI32Value(leftType, result);\n if (leftOp instanceof ArrayRef) {\n ArrayRef ref = (ArrayRef) leftOp;\n VariableRef base = (VariableRef) immediate(stmt, (Immediate) ref.getBase());\n Value index = immediate(stmt, (Immediate) ref.getIndex());\n checkNull(stmt, base);\n checkBounds(stmt, base, index);\n if (leftOp.getType() instanceof RefLikeType) {\n call(BC_SET_OBJECT_ARRAY_ELEMENT, env, base, index, narrowedResult);\n } else {\n call(getArrayStore(leftOp.getType()), base, index, narrowedResult);\n }\n } else if (leftOp instanceof InstanceFieldRef) {\n InstanceFieldRef ref = (InstanceFieldRef) leftOp;\n Value base = immediate(stmt, (Immediate) ref.getBase());\n checkNull(stmt, base);\n FunctionRef fn = null;\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_setter\", \n new FunctionType(VOID, ENV_PTR, OBJECT_PTR, getType(ref.getType())));\n } else {\n soot.Type runtimeType = ref.getBase().getType();\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n String runtimeClassName = runtimeType == NullType.v() ? targetClassName : getInternalName(runtimeType);\n Trampoline trampoline = new PutField(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()), runtimeClassName);\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n call(fn, env, base, narrowedResult);\n } else if (leftOp instanceof StaticFieldRef) {\n StaticFieldRef ref = (StaticFieldRef) leftOp;\n FunctionRef fn = null;\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_setter\", \n new FunctionType(VOID, ENV_PTR, getType(ref.getType())));\n } else {\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n Trampoline trampoline = new PutStatic(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()));\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n call(fn, env, narrowedResult);\n } else {\n throw new IllegalArgumentException(\"Unknown type for leftOp: \" + leftOp.getClass());\n }\n }\n }",
"@Override\n\tpublic String visitAssignment(AssignmentContext ctx) {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\treturn \"LOAD \"+ ctx.getChild(0)+\" \"+ visitExpr(ctx.expr());\n\t\t\n\t\t\t\n\t\t\n\t}",
"protected void sequence_AssignmentStatement(ISerializationContext context, AssignmentStatement semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE));\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getAssigneeFieldIDTerminalRuleCall_0_0_1(), semanticObject.eGet(EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE, false));\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getExprExpressionParserRuleCall_2_0(), semanticObject.getExpr());\n\t\tfeeder.finish();\n\t}",
"public void setDirectAssignmentString(String directAssignmentString1) {\r\n this.directAssignmentString = directAssignmentString1;\r\n }",
"private Term parseAssign(final boolean required) throws ParseException {\n Term t1 = parseConditional(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '=') {\n Term t2 = parseAssign(true);\n if (t1 instanceof Term.Ref && ((Term.Ref) t1).getVariable() != null) {\n t1 = new Term.Assign(t1, t2);\n } else {\n reportError(\"Variable expected on the left side of assignment '='.\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }",
"public AssignAST(String name, AST right) {\n\t\tthis.left = new SymbolAST(name);\n\t\tthis.right = right;\n\t}",
"@Override //function was implemented as abstract in super class\n public void Set(Instruction toCopy){\n Extra temp = (Extra) toCopy; //downcast for valid assignment\n this.Price = temp.Price;\n this.Allergens = temp.Allergens;\n this.Notes = new String(temp.Notes);\n this.Density = temp.Density;\n this.Topping = new String(temp.Topping);\n this.Vegetarian = temp.Vegetarian;\n }",
"public final void assignment() throws RecognitionException {\n CommonTree IDENT14=null;\n Object e =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:315:3: ( ^( '=' IDENT e= expression ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:315:5: ^( '=' IDENT e= expression )\n {\n match(input,38,FOLLOW_38_in_assignment524); \n\n match(input, Token.DOWN, null); \n IDENT14=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_assignment526); \n\n pushFollow(FOLLOW_expression_in_assignment530);\n e=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n \n localScope.set((IDENT14!=null?IDENT14.getText():null), e); \n lastAssignmentResult = e;\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }",
"public String getAssignmentName() {\n return this.assignmentName;\n }",
"public Snippet visit(ArrayAssignment n, Snippet argu) {\n\t Snippet _ret=new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifierList.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t Snippet f6 = n.identifier1.accept(this, argu);\n\t n.nodeToken4.accept(this, argu);\n\t n.nodeToken5.accept(this, argu);\n\t String arrayIDToSetValue = f0.returnTemp;\n\t\t\tString valueToChangeToo = f6.returnTemp;\n\t\t\tString place = \"\";\n\t\t\tSymbol sym = getIdentifier(f0.returnTemp, currentBlock, currentClassName);\n\t\t\tX10ReferenceArray arr = (X10ReferenceArray)sym.symbolType;\n\t\t\t\n\t\t\tString temp = generateTabs(blockDepth)+f0.returnTemp+\"[\"+f2.returnTemp+\"] = \"+f6.returnTemp+\";\";//programClassName+\".\"+ arr.arrayElementType.typeName.toUpperCase() +\"SetValue\"+\"(\"+arrayIDToSetValue+\",\"+ identifierList.get(0)+\",\"+valueToChangeToo+\");\";\n\t\t\t_ret.returnTemp = temp;\n\t\t\ttPlasmaCode+=_ret.returnTemp+\"\\n\";\n\t return _ret;\n\t }",
"public Assign createAssign(Position pos, Expr target, Operator op, Expr source) {\n return (Assign) xnf.Assign(pos, target, op, source).type(target.type());\n }",
"public Object VisitAssignmentStatement(ASTAssignmentStatement assignstatement) {\n TypeClass lhstc = (TypeClass) assignstatement.variable().Accept(this);\n TypeClass rhstc = (TypeClass) assignstatement.value().Accept(this);\n Type lhs = lhstc.type();\n Type rhs = rhstc.type();\n \n if (lhs != rhs) {\n CompError.message(assignstatement.line(), \"Lefthand side and righthand \"\n + \"side of an assignment statement must match.\");\n //////System.out.println(\"lhs: \" + lhs + \" rhs: \" + rhs);\n }\n return bt.assignmentStatement(lhstc.value(), rhstc.value());\n }",
"void visit(final Assignment assignment);",
"public void assignValueToVariable(HashMap<String, String> assignment) throws\r\n\t\t\tIllegalOperationException,TypeNotSupportedException, IncompatibleTypeException{\r\n\t\tMap.Entry<String, String> data = assignment.entrySet().iterator().next();\r\n\t\tString variableName = data.getKey();\r\n\t\tString valueName = data.getValue();\r\n\t\tVariable lastAppearanceOfVar = findVariable(variableName);//we'll search a variable named variableName\r\n\t\tif(lastAppearanceOfVar==null||lastAppearanceOfVar.isFinal()){//did'nt find variableName\\ found final\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}else {\r\n\t\t\t//if we did find a declared variable named variableName:\r\n\t\t\tif (lastAppearanceOfVar.compatibleWith(valueName)) {//if value's type's illegal -> exception\r\n\t\t\t\t//if we're trying, in a scope other than globalScope, to declare a variable by assigning it\r\n\t\t\t\t// with an uninitialised global variable:\r\n\t\t\t\tif((lastAppearanceOfVar.isGlobal()&&!lastAppearanceOfVar.isInitialized())&&!scopeType\r\n\t\t\t\t\t\t.equals(\"global\")){\r\n\t\t\t\t\t//we'll check if lastAppearanceOfVar was initialised in this scope (else it's illegal):\r\n\t\t\t\t\tassignUninitialisedGlobalVar(lastAppearanceOfVar, valueName);\r\n\t\t\t\t}else{ //else, the assignment's legal and we'll mark lastAppearanceOfVar as initialised:\r\n\t\t\t\t\tlastAppearanceOfVar.initialize();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tassignWithReference(valueName, lastAppearanceOfVar);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public AssignStmt assign_stmt() {\n AssignExpr ae = assign_expr();\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Semicolon expected after assignment\");\n }\n lexer.nextToken();\n\n return new AssignStmt(ae);\n }",
"protected Expr visitFieldAssign(FieldAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Field left = (Field) n.left();\n Expr right = n.right();\n Type R = left.type();\n if (left.flags().isStatic()) {\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\n }\n Expr e = (Expr) left.target();\n Type E = e.type();\n List<Formal> parms = new ArrayList<Formal>();\n Name xn = Name.make(\"x\");\n LocalDef xDef = xts.localDef(pos, xts.Final(), Types.ref(E), xn);\n Formal x = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, E), xnf.Id(pos, xn)).localDef(xDef);\n parms.add(x);\n Name yn = Name.make(\"y\");\n Type T = right.type();\n LocalDef yDef = xts.localDef(pos, xts.Final(), Types.ref(T), yn);\n Formal y = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, T), xnf.Id(pos, yn)).localDef(yDef);\n parms.add(y);\n Expr lhs = xnf.Field(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(E),\n xnf.Id(pos, left.name().id())).fieldInstance(left.fieldInstance()).type(R);\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos,\n lhs, op, xnf.Local(pos, xnf.Id(pos, yn)).localInstance(yDef.asInstance()).type(T)).type(R));\n Expr res = assign(pos, lhs, Assign.ASSIGN, val);\n Block body = xnf.Block(pos, xnf.Return(pos, res));\n Closure c = synth.makeClosure(pos, R, parms, body, context());\n X10MethodInstance ci = c.closureDef().asType().applyMethod();\n List<Expr> args = new ArrayList<Expr>();\n args.add(0, e);\n args.add(right);\n return xnf.ClosureCall(pos, c, args).closureInstance(ci).type(R);\n }",
"@Override\r\n\tpublic Object visitAssignmentStatement(\r\n\t\t\tAssignmentStatement assignmentStatement, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tString lvType = (String) assignmentStatement.lvalue.visit(this, arg);\r\n\t\tString exprType = (String) assignmentStatement.expression.visit(this, arg);\r\n\t\tif(lvType.equals(intType) || lvType.equals(booleanType) || lvType.equals(stringType)) {\r\n\t\t\tcheck(lvType.equals(exprType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t} else if (lvType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/List\")) {\r\n\t\t\tif (exprType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/List\")) {\r\n\t\t\t\tcheck(exprType.equals(lvType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t\t} else if (!exprType.equals(emptyList)) {\r\n\t\t\t\tString elementType = lvType.substring(lvType.indexOf(\"<\") + 1, lvType.lastIndexOf(\">\"));\r\n\t\t\t\tString listType = \"Ljava/util/ArrayList<\" + elementType + \">;\";\r\n\t\t\t\tcheck(exprType.equals(listType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t\t}\r\n\t\t} else {//if (lvType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/Map$Entry\")){\r\n\t\t\tthrow new UnsupportedOperationException(\"Map is not support yet\");\r\n\t\t}\t\t\r\n\t\treturn null;\t\t\r\n\t}",
"protected Element evalAssurance(Assurance ass){\n\t\tRecord r1 = ass.getLeftRecord();\n\t\tRecord r2 = ass.getRightRecord();\n\t\tOperator op = ass.getOperator();\n\t\tElement an = el(\"bpws:assign\");\n\t\tif (r1.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r1.getFormular(), \"nswomoxsd:leftValue\"));\n\t\tif (r2.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r2.getFormular(), \"nswomoxsd:rightValue\"));\n\t\tan.appendChild(\n\t\t\tsetExpr(\n\t\t\t\tgetMyVarPath(\"/nswomoxsd:leftValue\") + \n\t\t\t\top.value() +\n\t\t\t\tgetMyVarPath(\"nswomoxsd:rightValue\"),\n\t\t\t\t\"nswomoxsd:value\"\n\t\t\t)\n\t\t);\n\t\treturn an;\n\t}",
"public String getAssignmentName() {\n\t\treturn assignmentName;\n\t}",
"public void assignment(Node n_parent) {\r\n System.out.println(\":: assignment:\"+n_parent.getData());\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: assignment::if::1\");\r\n String identifier=\"\";\r\n System.out.println(\":: assignment::if::2\");\r\n identifier = token.get(lookAheadPossition).substring(6, token.get(lookAheadPossition).length() - 1);\r\n System.out.println(\":: assignment::if -id \"+identifier);\r\n String type=\"\";\r\n type = (String) symbolTable.get(identifier);\r\n type = type.toLowerCase();\r\n System.out.println(\":: assignment::if -type \"+type);\r\n\r\n n_parent.setChildren(identifier+\":\"+type);\r\n this.CheckError(token.get(lookAheadPossition));\r\n this.CheckError(\"ASGN\");\r\n this.restAssignment(n_parent);\r\n }\r\n }",
"private BDDState handleAssignment(CAssignment assignment, CFANode successor, CFAEdge edge)\n throws UnsupportedCodeException {\n CExpression lhs = assignment.getLeftHandSide();\n\n final String varName;\n if (lhs instanceof CIdExpression) {\n varName = ((CIdExpression) lhs).getDeclaration().getQualifiedName();\n } else {\n varName = functionName + \"::\" + lhs;\n }\n\n final CType targetType = lhs.getExpressionType();\n\n // next line is a shortcut, not necessary\n if (!precision.isTracking(MemoryLocation.fromQualifiedName(varName), targetType, successor)) {\n return state;\n }\n\n BDDState newState = state;\n CRightHandSide rhs = assignment.getRightHandSide();\n if (rhs instanceof CExpression exp) {\n final Partition partition = varClass.getPartitionForEdge(edge);\n\n if (isUsedInExpression(varName, exp)) {\n // make tmp for assignment,\n // this is done to handle assignments like \"a = !a;\" as \"tmp = !a; a = tmp;\"\n String tmpVarName = predmgr.getTmpVariableForPartition(partition);\n final Region[] tmp =\n predmgr.createPredicateWithoutPrecisionCheck(\n tmpVarName, bvComputer.getBitsize(partition, targetType));\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(partition, exp, targetType, location, precision);\n newState = newState.addAssignment(tmp, regRHS);\n\n // delete var, make tmp equal to (new) var, then delete tmp\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n newState = newState.addAssignment(var, tmp);\n newState = newState.forget(tmp);\n\n } else {\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(\n partition, (CExpression) rhs, targetType, location, precision);\n newState = newState.addAssignment(var, regRHS);\n }\n return newState;\n\n } else if (rhs instanceof CFunctionCallExpression) {\n // handle params of functionCall, maybe there is a sideeffect\n newState =\n handleExternalFunctionCall(\n newState, successor, ((CFunctionCallExpression) rhs).getParameterExpressions());\n\n // call of external function: we know nothing, so we delete the value of the var\n // TODO can we assume, that malloc returns something !=0?\n // are there some \"save functions\"?\n\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bitsize,\n precision); // is default bitsize enough?\n newState = newState.forget(var);\n\n return newState;\n\n } else {\n throw new AssertionError(\"unhandled assignment: \" + edge.getRawStatement());\n }\n }",
"public String visit(AssignmentStatement n, String s) {\n n.f0.accept(this, null);\n n.f2.accept(this, null);\n return null;\n }",
"private Expr visitLocalAssign(LocalAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Local left = (Local) n.left();\n Expr right = n.right();\n Type R = left.type();\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\n }",
"protected void sequence_Assignment(ISerializationContext context, Assignment semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}",
"public void setAssignmentName(String assignmentName) {\n this.assignmentName = assignmentName;\n }",
"@Override\n\tpublic Object visitStatement_Assign(Statement_Assign statement_Assign, Object arg) throws Exception {\n\t\tif(statement_Assign.lhs.getTypeName().isType(Type.INTEGER) ||statement_Assign.lhs.getTypeName().isType(Type.BOOLEAN) ){\n\t\t\tstatement_Assign.e.visit(this, arg);\t\t\n\t\t\tstatement_Assign.lhs.visit(this, arg);\n\t\t}\n\t\telse if(statement_Assign.lhs.getTypeName().isType(Type.IMAGE)){\n\t\t\t//if(statement_Assign.lhs.isCartesian){\n\t\t\t\tmv.visitFieldInsn(GETSTATIC, className, statement_Assign.lhs.name, ImageSupport.ImageDesc);\n\t\t\t\tmv.visitInsn(DUP);\n\t\t\t\tmv.visitMethodInsn(INVOKESTATIC, ImageSupport.className, \"getX\", ImageSupport.getXSig, false);\n\t\t\t\tmv.visitIntInsn(ISTORE, 3);\n\t\t\t\tmv.visitMethodInsn(INVOKESTATIC, ImageSupport.className, \"getY\", ImageSupport.getYSig, false);\n\t\t\t\tmv.visitIntInsn(ISTORE, 4);\t\t\t\t\n\t\t\t//}\n\t\t\t\n\t\t\tmv.visitInsn(ICONST_0);\n\t\t\tmv.visitVarInsn(ISTORE, 1);\n\t\t\tLabel l1 = new Label();\n\t\t\tmv.visitLabel(l1);\n\t\t\tLabel l2 = new Label();\n\t\t\tmv.visitJumpInsn(GOTO, l2);\n\t\t\tLabel l3 = new Label();\n\t\t\tmv.visitLabel(l3);\n\t\t\tmv.visitLineNumber(11, l3);\n\t\t\tmv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n\t\t\tmv.visitInsn(ICONST_0);\n\t\t\tmv.visitVarInsn(ISTORE, 2);\n\t\t\tLabel l4 = new Label();\n\t\t\tmv.visitLabel(l4);\n\t\t\tLabel l5 = new Label();\n\t\t\tmv.visitJumpInsn(GOTO, l5);\n\t\t\tLabel l6 = new Label();\n\t\t\tmv.visitLabel(l6);\n\t\t\tmv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n\t\t\t\n\t\t\tstatement_Assign.e.visit(this, arg);\n\t\t\tstatement_Assign.lhs.visit(this, arg);\n\t\t\t\n\t\t\tmv.visitIincInsn(2, 1);\n\t\t\tmv.visitLabel(l5);\n\t\t\tmv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n\t\t\tmv.visitVarInsn(ILOAD, 2);\n\t\t\tmv.visitIntInsn(ILOAD, 4); // Y MAX VALUE\n\t\t\tmv.visitJumpInsn(IF_ICMPLT, l6);\n\t\t\tLabel l7 = new Label();\n\t\t\tmv.visitLabel(l7);\n\t\t\tmv.visitIincInsn(1, 1);\n\t\t\tmv.visitLabel(l2);\n\t\t\tmv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n\t\t\tmv.visitVarInsn(ILOAD, 1);\n\t\t\tmv.visitIntInsn(ILOAD, 3); // X MAX VALUE\n\t\t\tmv.visitJumpInsn(IF_ICMPLT, l3);\n\t\t}\n\t\treturn null;\n\t}",
"public T caseAssignStatement(AssignStatement object) {\n\t\treturn null;\n\t}",
"public Stmt createAssignment(Position pos, Expr target, Operator op, Expr source) {\n return createAssignment(createAssign(pos, target, op, source));\n }",
"public HashMap<Symbol, Boolean> getAss(){\n\t\treturn this.assignments;\n\t}",
"public JCExpressionStatement makeAssignment(Tag tag, String varname, JCExpression exp1, JCExpression exp2) {\n return treeMaker.Exec(treeMaker.Assign(treeMaker.Ident(getNameFromString(varname)), treeMaker.Binary(tag, exp1, exp2)));\n }",
"public interface AssignmentStrategy {\n\tpublic Map<Integer, Integer> assign(DoubleMatrix matrix);\n}",
"public void mo1327d(ac acVar) {\n }",
"public double[] getAssignmentValues() {\n\t\treturn assignmentValues;\n\t}",
"public void visit(Assign n) \n\t{\n\t\tn.i.accept(this);\n\t\tn.e.accept(this);\n\t}",
"public Assignment getRepeatAssignment_4() { return cRepeatAssignment_4; }",
"public void setAssignments(List<Assignment> assignments) {\n this.assignments = assignments;\n }",
"protected FitnessAssignmentProcess() {\r\n super();\r\n }",
"@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }",
"@Override\n\tpublic Void visit(Assign assign) {\n\t\tprintIndent(\"<-\");\n\t\tindent++;\n\t\tassign.id.accept(this);\n\t\tassign.expr.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}",
"private Assignment cursorToAssignment(Cursor cursor) {\n\t\tAssignment assignment = new Assignment();\n\t\tassignment.setId(cursor.getLong(0));\n\t\tassignment.setTitle(cursor.getString(1));\n\t\tassignment.setSubjects_id(cursor.getLong(2));\n\t\tassignment.setDescription(cursor.getString(3));\n\t\tassignment.setDueDate(cursor.getString(4));\n\t\tassignment.setDueTime(cursor.getString(5));\n\t\tassignment.setAlarm(cursor.getString(6));\n\t\tassignment.setAcademic_id(cursor.getLong(7));\n\t\treturn assignment;\n\t}",
"public abstract void assign(Object value) throws IllegalStateException, InterruptedException;",
"public interface AssignmentConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int AND = 1;\n /** RegularExpression Id. */\n int OR = 2;\n /** RegularExpression Id. */\n int IMPLIES = 3;\n /** RegularExpression Id. */\n int EQUIVALENT = 4;\n /** RegularExpression Id. */\n int PREDICATE = 5;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<AND>\",\n \"<OR>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<PREDICATE>\",\n };\n\n}",
"public JCExpressionStatement makeAssignment(JCExpression lhs, JCExpression rhs) {\n return treeMaker.Exec(treeMaker.Assign(lhs, rhs));\n }",
"private Decoded assign(Decoded target, Decoded source){\n if(source.type != null){\n target.type = source.type;\n }\n if(source.error != null){\n target.error = source.error;\n }\n if(source.barcode != null){\n target.barcode = source.barcode;\n }\n if(source.labelerId != null){\n target.labelerId = source.labelerId;\n }\n if(source.check != null){\n target.check = source.check;\n }\n if(source.link != null){\n target.link = source.link;\n }\n if(source.property != null){\n target.property = source.property;\n if(source.propertyValue != null){\n target.propertyValue = source.propertyValue;\n }\n }\n if(source.date != null){\n target.date = source.date;\n }\n if(source.uom != null){\n target.uom = source.uom;\n }\n if(source.quantity != null){\n target.quantity = source.quantity;\n }\n if(source.product != null){\n target.product = source.product;\n }\n\n return target;\n }",
"public Arginfo visit(AssignmentStatement n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n \n String classname=argu.classname;\n String methodname=argu.methodname;\n String strtofind=n.f0.f0.tokenImage;\n if(globalmap.containsKey(strtofind)){\n \t System.out.print(\"\\tMOVE TEMP \"+globalmap.get(strtofind)+\" \");\n }\n else{\n \t System.out.print(\"\\tHSTORE TEMP 0 \"+classpos(strtofind,classname)+\" \");\n }\n \n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n n.f3.accept(this, argu);\n return _ret;\n }",
"public Integer visitAssign(ExprParser.AssignContext ctx) {\n String id = ctx.ID().getText();\n int value = visit(ctx.expr());\n memory.put(id, value);\n return value;\n }",
"public static boolean assignment(FileInputStream f) {\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n \n CToken t = new CToken();\n t = getUsePeek(f);\n\n if (!t.token.equals(\"let\")) {\n return false;\n }\n CScanner.needToUsePeekedToken = false;\n\n if (!descriptor(f)) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n t = getUsePeek(f);\n\n if (!t.token.equals(\"=\")) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n\n CScanner.needToUsePeekedToken = false;\n \n if (!expression(f)) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n if (CScanner.needToUsePeekedToken) {\n t = CScanner.peekedToken;\n } //we peeked before this call, so use it\n else {\n t = CScanner.getNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n } //get token\n\n if (!t.token.equals(\";\")) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", false);\n }\n return true;\n }",
"public final JavaliParser.assignmentTail_return assignmentTail(Object lhs) throws RecognitionException {\n\t\tJavaliParser.assignmentTail_return retval = new JavaliParser.assignmentTail_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken eq=null;\n\t\tParserRuleReturnScope rightExpr =null;\n\n\t\tObject eq_tree=null;\n\t\tRewriteRuleTokenStream stream_80=new RewriteRuleTokenStream(adaptor,\"token 80\");\n\t\tRewriteRuleSubtreeStream stream_assignmentRHS=new RewriteRuleSubtreeStream(adaptor,\"rule assignmentRHS\");\n\n\t\ttry {\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:343:2: (eq= '=' rightExpr= assignmentRHS -> ^( Assign[$eq, \\\"Assign\\\"] assignmentRHS ) )\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:343:4: eq= '=' rightExpr= assignmentRHS\n\t\t\t{\n\t\t\teq=(Token)match(input,80,FOLLOW_80_in_assignmentTail929); \n\t\t\tstream_80.add(eq);\n\n\t\t\tpushFollow(FOLLOW_assignmentRHS_in_assignmentTail933);\n\t\t\trightExpr=assignmentRHS();\n\t\t\tstate._fsp--;\n\n\t\t\tstream_assignmentRHS.add(rightExpr.getTree());\n\t\t\t// AST REWRITE\n\t\t\t// elements: assignmentRHS\n\t\t\t// token labels: \n\t\t\t// rule labels: retval\n\t\t\t// token list labels: \n\t\t\t// rule list labels: \n\t\t\t// wildcard labels: \n\t\t\tretval.tree = root_0;\n\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\troot_0 = (Object)adaptor.nil();\n\t\t\t// 344:3: -> ^( Assign[$eq, \\\"Assign\\\"] assignmentRHS )\n\t\t\t{\n\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:344:6: ^( Assign[$eq, \\\"Assign\\\"] assignmentRHS )\n\t\t\t\t{\n\t\t\t\tObject root_1 = (Object)adaptor.nil();\n\t\t\t\troot_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(Assign, eq, \"Assign\"), root_1);\n\t\t\t\tadaptor.addChild(root_1, lhs );\n\t\t\t\tadaptor.addChild(root_1, stream_assignmentRHS.nextTree());\n\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tretval.tree = root_0;\n\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tretval.tree = (Object)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n\t\t}\n\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\tthrow re;\n\t\t}\n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}",
"public VariType visit(AssignmentStatement n, Table argu) {\n\t VariType _ret=null;\n\t n.f0.accept(this, argu);\n\t MethodTable methodtable = (MethodTable)argu;\n\t Vari vari = methodtable.getvari(n.f0.f0.tokenImage);\n\t if(vari == null) {\n\t \t ClassTable classtable = methodtable.classtable;\n\t \t vari = classtable.getvari(n.f0.f0.tokenImage);\n\t \t if(vari == null) {\n\t \t\t PrintError.errorexist = true;\n\t\t \t String emsg = \"undefined variable \\\"\"+n.f0.f0.tokenImage+\"\\\"\";\n\t \t\t PrintError.print(emsg, n.f0.f0.beginLine, n.f0.f0.beginColumn, 1);\n\t \t\t return _ret;\n\t \t }\n\t }\n\t n.f1.accept(this, argu);\n\t VariType t2 = n.f2.accept(this, argu);\n\t if(VariType.isTheSameType(methodtable.toptable, vari.vari_type, t2) == false) {\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"assignstatement does not have matched types, one has type \"+vari.vari_type.type+\" , the other one has type \"+t2.type;\n\t \t PrintError.print(emsg, n.f1.beginLine, n.f1.beginColumn, 1);\n\t \t return _ret;\n\t }\n\t if(t2.type == \"Array\"){\n\t \t vari.init = true;\n\t \t if(t2.ifintegerliteral == true) {\n\t \t\t vari.alen = t2.integerliteral;\n\t \t }\n\t }\n\t n.f3.accept(this, argu);\n\t return _ret;\n\t }"
] |
[
"0.79252124",
"0.7136139",
"0.68191004",
"0.65520716",
"0.65520716",
"0.6419094",
"0.6407437",
"0.6398055",
"0.63079405",
"0.6277124",
"0.6209967",
"0.6182541",
"0.61797273",
"0.61609894",
"0.61395305",
"0.61274934",
"0.6126531",
"0.61262566",
"0.6121327",
"0.611859",
"0.6095447",
"0.6079127",
"0.6052451",
"0.60424525",
"0.60399604",
"0.6037734",
"0.60293674",
"0.60227704",
"0.601113",
"0.60035074",
"0.5998246",
"0.5974228",
"0.59535575",
"0.5945695",
"0.5922305",
"0.5915846",
"0.5897978",
"0.58882993",
"0.5879918",
"0.58752847",
"0.5865362",
"0.5860748",
"0.5856622",
"0.5835728",
"0.5833724",
"0.5829486",
"0.5818796",
"0.5806985",
"0.5801925",
"0.579269",
"0.57786417",
"0.5758707",
"0.5758193",
"0.5756171",
"0.5752667",
"0.5690472",
"0.56872463",
"0.5684735",
"0.56684047",
"0.5655504",
"0.56516117",
"0.56508756",
"0.56454587",
"0.5624752",
"0.5622648",
"0.56047857",
"0.5600616",
"0.5597894",
"0.5568337",
"0.55592185",
"0.55558425",
"0.5547764",
"0.5533603",
"0.5529102",
"0.5523755",
"0.5516981",
"0.551578",
"0.5506445",
"0.5505534",
"0.55034125",
"0.5495462",
"0.54860175",
"0.5485043",
"0.54673827",
"0.54661196",
"0.5462281",
"0.5455211",
"0.54513264",
"0.5449802",
"0.54402465",
"0.54387724",
"0.5438414",
"0.5435257",
"0.54346675",
"0.54174894",
"0.541379",
"0.5413346",
"0.540925",
"0.5395919",
"0.53895175",
"0.5382583"
] |
0.0
|
-1
|
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
|
public static TypeOeuvre createEntity(EntityManager em) {
TypeOeuvre typeOeuvre = new TypeOeuvre()
.intitule(DEFAULT_INTITULE);
return typeOeuvre;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Entity createEntity();",
"T createEntity();",
"protected abstract ENTITY createEntity();",
"void create(E entity);",
"void create(T entity);",
"E create(E entity);",
"E create(E entity);",
"TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }",
"protected abstract EntityBase createEntity() throws Exception;",
"public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }",
"void create(T entity) throws Exception;",
"@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }",
"protected T createSimulatedExistingEntity() {\n final T entity = createNewEntity();\n entity.setId(IDUtil.randomPositiveLong());\n\n when(getDAO().findOne(entity.getId())).thenReturn(entity);\n return entity;\n }",
"public Entity newEntity() { return newMyEntity(); }",
"public Entity newEntity() { return newMyEntity(); }",
"public static TranshipTube createEntity(EntityManager em) {\n TranshipTube transhipTube = new TranshipTube()\n .status(DEFAULT_STATUS)\n .memo(DEFAULT_MEMO)\n .columnsInTube(DEFAULT_COLUMNS_IN_TUBE)\n .rowsInTube(DEFAULT_ROWS_IN_TUBE);\n // Add required entity\n TranshipBox transhipBox = TranshipBoxResourceIntTest.createEntity(em);\n em.persist(transhipBox);\n em.flush();\n transhipTube.setTranshipBox(transhipBox);\n // Add required entity\n FrozenTube frozenTube = FrozenTubeResourceIntTest.createEntity(em);\n em.persist(frozenTube);\n em.flush();\n transhipTube.setFrozenTube(frozenTube);\n return transhipTube;\n }",
"public static Student createEntity(EntityManager em) {\n Student student = new Student()\n .firstName(DEFAULT_FIRST_NAME)\n .middleName(DEFAULT_MIDDLE_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .studentRegNumber(DEFAULT_STUDENT_REG_NUMBER)\n .dateOfBirth(DEFAULT_DATE_OF_BIRTH)\n .regDocType(DEFAULT_REG_DOC_TYPE)\n .registrationDocumentNumber(DEFAULT_REGISTRATION_DOCUMENT_NUMBER)\n .gender(DEFAULT_GENDER)\n .nationality(DEFAULT_NATIONALITY)\n .dateJoined(DEFAULT_DATE_JOINED)\n .deleted(DEFAULT_DELETED)\n .wxtJwtPq55wd(DEFAULT_WXT_JWT_PQ_55_WD);\n // Add required entity\n NextOfKin nextOfKin;\n if (TestUtil.findAll(em, NextOfKin.class).isEmpty()) {\n nextOfKin = NextOfKinResourceIT.createEntity(em);\n em.persist(nextOfKin);\n em.flush();\n } else {\n nextOfKin = TestUtil.findAll(em, NextOfKin.class).get(0);\n }\n student.getRelatives().add(nextOfKin);\n return student;\n }",
"@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }",
"public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT)\n .dateRetour(DEFAULT_DATE_RETOUR);\n // Add required entity\n Usager usager = UsagerResourceIntTest.createEntity(em);\n em.persist(usager);\n em.flush();\n emprunt.setUsager(usager);\n // Add required entity\n Exemplaire exemplaire = ExemplaireResourceIntTest.createEntity(em);\n em.persist(exemplaire);\n em.flush();\n emprunt.setExemplaire(exemplaire);\n return emprunt;\n }",
"@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }",
"public ClientEntity newEntity() {\r\n if (entityType == null) {\r\n entityType = getEntityType(entitySet);\r\n }\r\n return odataClient.getObjectFactory().newEntity(new FullQualifiedName(NAMESPAVE, entityType));\r\n }",
"ID create(T entity);",
"public static MotherBed createEntity(EntityManager em) {\n MotherBed motherBed = new MotherBed()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n // Add required entity\n Nursery nursery = NurseryResourceIntTest.createEntity(em);\n em.persist(nursery);\n em.flush();\n motherBed.setNursery(nursery);\n return motherBed;\n }",
"private FailingEntity createFailingEntity() {\n FailingEntity entity = app.createAndManageChild(EntitySpec.create(FailingEntity.class)\n .configure(FailingEntity.FAIL_ON_START, true));\n return entity;\n }",
"@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }",
"public <T extends Entity> T createEntity(EntitySpec<T> spec) {\n Map<String,Entity> entitiesByEntityId = MutableMap.of();\n Map<String,EntitySpec<?>> specsByEntityId = MutableMap.of();\n \n T entity = createEntityAndDescendantsUninitialized(spec, entitiesByEntityId, specsByEntityId);\n initEntityAndDescendants(entity.getId(), entitiesByEntityId, specsByEntityId);\n return entity;\n }",
"public static Prestamo createEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(DEFAULT_OBSERVACIONES).fechaFin(DEFAULT_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }",
"default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }",
"public static Rentee createEntity(EntityManager em) {\n Rentee rentee = new Rentee();\n rentee = new Rentee()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .password(DEFAULT_PASSWORD);\n return rentee;\n }",
"public static Pocket createEntity(EntityManager em) {\n Pocket pocket = new Pocket()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .startDateTime(DEFAULT_START_DATE_TIME)\n .endDateTime(DEFAULT_END_DATE_TIME)\n .amount(DEFAULT_AMOUNT)\n .reserved(DEFAULT_RESERVED);\n // Add required entity\n Balance balance = BalanceResourceIntTest.createEntity(em);\n em.persist(balance);\n em.flush();\n pocket.setBalance(balance);\n return pocket;\n }",
"public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }",
"E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;",
"public static A createEntity(EntityManager em) {\n A a = new A();\n return a;\n }",
"public static Edge createEntity(EntityManager em) {\n Edge edge = new Edge()\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Stone from = StoneResourceIntTest.createEntity(em);\n em.persist(from);\n em.flush();\n edge.setFrom(from);\n // Add required entity\n Stone to = StoneResourceIntTest.createEntity(em);\n em.persist(to);\n em.flush();\n edge.setTo(to);\n return edge;\n }",
"public static QuizQuestion createEntity(EntityManager em) {\n QuizQuestion quizQuestion = new QuizQuestion()\n .text(DEFAULT_TEXT)\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Quiz quiz;\n if (TestUtil.findAll(em, Quiz.class).isEmpty()) {\n quiz = QuizResourceIT.createEntity(em);\n em.persist(quiz);\n em.flush();\n } else {\n quiz = TestUtil.findAll(em, Quiz.class).get(0);\n }\n quizQuestion.setQuiz(quiz);\n return quizQuestion;\n }",
"public static Partida createEntity(EntityManager em) {\n Partida partida = new Partida()\n .dataPartida(DEFAULT_DATA_PARTIDA);\n return partida;\n }",
"public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }",
"public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT);\n return emprunt;\n }",
"public static SitAndGo createEntity(EntityManager em) {\n SitAndGo sitAndGo = new SitAndGo()\n .format(DEFAULT_FORMAT)\n .buyIn(DEFAULT_BUY_IN)\n .ranking(DEFAULT_RANKING)\n .profit(DEFAULT_PROFIT)\n .bounty(DEFAULT_BOUNTY);\n return sitAndGo;\n }",
"public static Exercise createEntity(EntityManager em) {\n Exercise exercise = new Exercise()\n .minutes(DEFAULT_MINUTES);\n return exercise;\n }",
"@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}",
"public static House createEntity(EntityManager em) {\n House house = new House()\n .houseName(DEFAULT_HOUSE_NAME)\n .houseNo(DEFAULT_HOUSE_NO)\n .address(DEFAULT_ADDRESS)\n .houseToFloorNo(DEFAULT_HOUSE_TO_FLOOR_NO)\n .ownToFloorNo(DEFAULT_OWN_TO_FLOOR_NO)\n .lat(DEFAULT_LAT)\n .lon(DEFAULT_LON)\n .createdate(DEFAULT_CREATEDATE)\n .createBy(DEFAULT_CREATE_BY)\n .updateDate(DEFAULT_UPDATE_DATE)\n .updateBy(DEFAULT_UPDATE_BY)\n .image(DEFAULT_IMAGE)\n .imageContentType(DEFAULT_IMAGE_CONTENT_TYPE);\n // Add required entity\n Country country = CountryResourceIntTest.createEntity(em);\n em.persist(country);\n em.flush();\n house.setCountry(country);\n // Add required entity\n State state = StateResourceIntTest.createEntity(em);\n em.persist(state);\n em.flush();\n house.setState(state);\n // Add required entity\n City city = CityResourceIntTest.createEntity(em);\n em.persist(city);\n em.flush();\n house.setCity(city);\n // Add required entity\n Profile profile = ProfileResourceIntTest.createEntity(em);\n em.persist(profile);\n em.flush();\n house.setProfile(profile);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n house.setUser(user);\n return house;\n }",
"public static CourtType createEntity(EntityManager em) {\n CourtType courtType = new CourtType()\n .type(DEFAULT_TYPE);\n return courtType;\n }",
"@Override\r\n public void createNewEntity(String entityName) {\n\r\n }",
"public static Ailment createEntity(EntityManager em) {\n Ailment ailment = new Ailment()\n .name(DEFAULT_NAME)\n .symptoms(DEFAULT_SYMPTOMS)\n .treatments(DEFAULT_TREATMENTS);\n return ailment;\n }",
"public static Articulo createEntity(EntityManager em) {\n Articulo articulo = new Articulo()\n .titulo(DEFAULT_TITULO)\n .contenido(DEFAULT_CONTENIDO)\n .fechaCreacion(DEFAULT_FECHA_CREACION);\n return articulo;\n }",
"void create(Student entity);",
"public static TipoLocal createEntity(EntityManager em) {\n TipoLocal tipoLocal = new TipoLocal()\n .tipo(DEFAULT_TIPO);\n return tipoLocal;\n }",
"public static Testtable2 createEntity(EntityManager em) {\n Testtable2 testtable2 = new Testtable2();\n testtable2.setColumn2(DEFAULT_COLUMN_2);\n return testtable2;\n }",
"@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}",
"public static OrderItem createEntity(EntityManager em) {\n OrderItem orderItem = new OrderItem().quantity(DEFAULT_QUANTITY).totalPrice(DEFAULT_TOTAL_PRICE).status(DEFAULT_STATUS);\n return orderItem;\n }",
"public static Arrete createEntity(EntityManager em) {\n Arrete arrete = new Arrete()\n .intituleArrete(DEFAULT_INTITULE_ARRETE)\n .numeroArrete(DEFAULT_NUMERO_ARRETE)\n .dateSignature(DEFAULT_DATE_SIGNATURE)\n .nombreAgrement(DEFAULT_NOMBRE_AGREMENT);\n return arrete;\n }",
"public static Tenant createEntity() {\n return new Tenant();\n }",
"public static MyOrders createEntity(EntityManager em) {\n MyOrders myOrders = new MyOrders();\n return myOrders;\n }",
"public static Enseigner createEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(DEFAULT_DATE_DEBUT).dateFin(DEFAULT_DATE_FIN);\n return enseigner;\n }",
"@Test\n public void eventEntityConstructionTest() {\n\n Event event = new EventEntity();\n\n assertThat(event).isNotNull();\n\n }",
"public static EnteteVente createEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(DEFAULT_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(DEFAULT_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(DEFAULT_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(DEFAULT_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }",
"public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}",
"public static Organizer createEntity(EntityManager em) {\n Organizer organizer = new Organizer()\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .facebook(DEFAULT_FACEBOOK)\n .twitter(DEFAULT_TWITTER);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n organizer.setUser(user);\n return organizer;\n }",
"public static Note createEntity(EntityManager em) {\n Note note = new Note().content(DEFAULT_CONTENT).title(DEFAULT_TITLE).xpos(DEFAULT_XPOS).ypos(DEFAULT_YPOS);\n return note;\n }",
"public static FillingGapsTestItem createEntity(EntityManager em) {\n FillingGapsTestItem fillingGapsTestItem = new FillingGapsTestItem()\n .question(DEFAULT_QUESTION);\n return fillingGapsTestItem;\n }",
"public Entity build();",
"@Test\n public void createQuejaEntityTest() {\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n QuejaEntity result = quejaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n QuejaEntity entity = em.find(QuejaEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getName(), entity.getName());\n}",
"public abstract boolean create(T entity) throws ServiceException;",
"public static Acheteur createEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(DEFAULT_TYPE_CLIENT)\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .tel(DEFAULT_TEL)\n .cnib(DEFAULT_CNIB)\n .email(DEFAULT_EMAIL)\n .adresse(DEFAULT_ADRESSE)\n .numroBanquaire(DEFAULT_NUMRO_BANQUAIRE)\n .deleted(DEFAULT_DELETED);\n return acheteur;\n }",
"public static RoomGenericProduct createEntity(EntityManager em) {\n RoomGenericProduct roomGenericProduct = new RoomGenericProduct()\n .quantity(DEFAULT_QUANTITY)\n .quantityUnit(DEFAULT_QUANTITY_UNIT);\n return roomGenericProduct;\n }",
"public static Reservation createEntity(EntityManager em) {\n Reservation reservation = ReservationTest.buildReservationTest(1L);\n //reservation.setUser(User.builder().email(\"adfad\").name(\"\").build());\n return reservation;\n }",
"@Test\n public void testNewEntity() throws Exception {\n\n }",
"public static Model createEntity(EntityManager em) {\n\t\tModel model = new Model().name(DEFAULT_NAME).type(DEFAULT_TYPE).algorithm(DEFAULT_ALGORITHM)\n\t\t\t\t.status(DEFAULT_STATUS).owner(DEFAULT_OWNER).performanceMetrics(DEFAULT_PERFORMANCE_METRICS)\n\t\t\t\t.modelLocation(DEFAULT_MODEL_LOCATION).featureSignificance(DEFAULT_FEATURE_SIGNIFICANCE)\n\t\t\t\t.builderConfig(DEFAULT_BUILDER_CONFIG).createdDate(DEFAULT_CREATED_DATE)\n\t\t\t\t.deployedDate(DEFAULT_DEPLOYED_DATE).trainingDataset(DEFAULT_TRAINING_DATASET)\n .library(DEFAULT_LIBRARY).project(DEFAULT_PROJECT).version(DEFAULT_VERSION);\n\t\treturn model;\n\t}",
"public static ProcessExecution createEntity(EntityManager em) {\n ProcessExecution processExecution = new ProcessExecution()\n .execution(DEFAULT_EXECUTION);\n return processExecution;\n }",
"public static Paiement createEntity(EntityManager em) {\n Paiement paiement = new Paiement()\n .dateTransation(DEFAULT_DATE_TRANSATION)\n .montantTTC(DEFAULT_MONTANT_TTC);\n return paiement;\n }",
"public static Article createEntity(EntityManager em) {\n Article article = new Article()\n .name(DEFAULT_NAME)\n .content(DEFAULT_CONTENT)\n .creationDate(DEFAULT_CREATION_DATE)\n .modificationDate(DEFAULT_MODIFICATION_DATE);\n return article;\n }",
"T makePersistent(T entity);",
"void buildFromEntity(E entity);",
"public static XepLoai createEntity(EntityManager em) {\n XepLoai xepLoai = new XepLoai()\n .tenXepLoai(DEFAULT_TEN_XEP_LOAI);\n return xepLoai;\n }",
"public static Lot createEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(DEFAULT_CREATED_AT)\n .updatedAt(DEFAULT_UPDATED_AT)\n .qte(DEFAULT_QTE)\n .qtUg(DEFAULT_QT_UG)\n .num(DEFAULT_NUM)\n .dateFabrication(DEFAULT_DATE_FABRICATION)\n .peremption(DEFAULT_PEREMPTION)\n .peremptionstatus(DEFAULT_PEREMPTIONSTATUS);\n return lot;\n }",
"private MetaEntityImpl createMetaEntity(Class<?> entityType) {\n String className = entityType.getSimpleName();\n MetaEntityImpl managedEntity = new MetaEntityImpl();\n managedEntity.setEntityType(entityType);\n managedEntity.setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setKeySpace(environment.getConfiguration().getKeySpace());\n return managedEntity;\n }",
"public TransporteTerrestreEntity createTransporte(TransporteTerrestreEntity transporteEntity) throws BusinessLogicException {\n LOGGER.log(Level.INFO, \"Inicia proceso de creación del transporte\");\n super.createTransporte(transporteEntity);\n\n \n persistence.create(transporteEntity);\n LOGGER.log(Level.INFO, \"Termina proceso de creación del transporte\");\n return transporteEntity;\n }",
"public static EmployeeCars createEntity(EntityManager em) {\n EmployeeCars employeeCars = new EmployeeCars()\n .previousReading(DEFAULT_PREVIOUS_READING)\n .currentReading(DEFAULT_CURRENT_READING)\n .workingDays(DEFAULT_WORKING_DAYS)\n .updateDate(DEFAULT_UPDATE_DATE);\n // Add required entity\n Employee employee = EmployeeResourceIT.createEntity(em);\n em.persist(employee);\n em.flush();\n employeeCars.setEmployee(employee);\n // Add required entity\n Car car = CarResourceIT.createEntity(em);\n em.persist(car);\n em.flush();\n employeeCars.setCar(car);\n return employeeCars;\n }",
"public static TaskComment createEntity(EntityManager em) {\n TaskComment taskComment = new TaskComment()\n .value(DEFAULT_VALUE);\n // Add required entity\n Task newTask = TaskResourceIT.createEntity(em);\n Task task = TestUtil.findAll(em, Task.class).stream()\n .filter(x -> x.getId().equals(newTask.getId()))\n .findAny().orElse(null);\n if (task == null) {\n task = newTask;\n em.persist(task);\n em.flush();\n }\n taskComment.setTask(task);\n return taskComment;\n }",
"public static Personel createEntity(EntityManager em) {\n Personel personel = new Personel()\n .fistname(DEFAULT_FISTNAME)\n .lastname(DEFAULT_LASTNAME)\n .sexe(DEFAULT_SEXE);\n return personel;\n }",
"public static Ordre createEntity(EntityManager em) {\n Ordre ordre = new Ordre()\n .name(DEFAULT_NAME)\n .status(DEFAULT_STATUS)\n .price(DEFAULT_PRICE)\n .creationDate(DEFAULT_CREATION_DATE);\n return ordre;\n }",
"public static Territorio createEntity(EntityManager em) {\n Territorio territorio = new Territorio().nome(DEFAULT_NOME);\n return territorio;\n }",
"@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }",
"public static Poen createEntity(EntityManager em) {\n Poen poen = new Poen()\n .tip(DEFAULT_TIP);\n return poen;\n }",
"public static Expediente createEntity(EntityManager em) {\n Expediente expediente = new Expediente()\n .horarioEntrada(DEFAULT_HORARIO_ENTRADA)\n .horarioSaida(DEFAULT_HORARIO_SAIDA)\n .diaSemana(DEFAULT_DIA_SEMANA);\n return expediente;\n }",
"public static Unidade createEntity(EntityManager em) {\n Unidade unidade = new Unidade()\n .descricao(DEFAULT_DESCRICAO)\n .sigla(DEFAULT_SIGLA)\n .situacao(DEFAULT_SITUACAO)\n .controleDeEstoque(DEFAULT_CONTROLE_DE_ESTOQUE)\n .idAlmoxarifado(DEFAULT_ID_ALMOXARIFADO)\n .andar(DEFAULT_ANDAR)\n .capacidade(DEFAULT_CAPACIDADE)\n .horarioInicio(DEFAULT_HORARIO_INICIO)\n .horarioFim(DEFAULT_HORARIO_FIM)\n .localExame(DEFAULT_LOCAL_EXAME)\n .rotinaDeFuncionamento(DEFAULT_ROTINA_DE_FUNCIONAMENTO)\n .anexoDocumento(DEFAULT_ANEXO_DOCUMENTO)\n .setor(DEFAULT_SETOR)\n .idCentroDeAtividade(DEFAULT_ID_CENTRO_DE_ATIVIDADE)\n .idChefia(DEFAULT_ID_CHEFIA);\n // Add required entity\n TipoUnidade tipoUnidade;\n if (TestUtil.findAll(em, TipoUnidade.class).isEmpty()) {\n tipoUnidade = TipoUnidadeResourceIT.createEntity(em);\n em.persist(tipoUnidade);\n em.flush();\n } else {\n tipoUnidade = TestUtil.findAll(em, TipoUnidade.class).get(0);\n }\n unidade.setTipoUnidade(tipoUnidade);\n return unidade;\n }",
"public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }",
"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 }",
"private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }",
"@Test\n public void testNewEntity_0args() {\n // newEntity() is not implemented!\n }",
"public static NoteMaster createEntity(EntityManager em) {\n NoteMaster noteMaster = new NoteMaster()\n .semestre(DEFAULT_SEMESTRE)\n .noteCC1(DEFAULT_NOTE_CC_1)\n .noteCC2(DEFAULT_NOTE_CC_2)\n .noteFinal(DEFAULT_NOTE_FINAL)\n .date(DEFAULT_DATE);\n return noteMaster;\n }",
"public Camp newEntity() { return new Camp(); }",
"T create() throws PersistException;",
"private EntityDef createEntityDef(Class<?> entityClass)\n {\n\t\tif (entityClass.isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass.SingleTableSuperclass(entityClass);\n } else if (entityClass.getSuperclass().isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass(entityClass);\n } else {\n return new EntityDef(entityClass);\n }\n\t}",
"public static Restaurant createEntity(EntityManager em) {\n Restaurant restaurant = new Restaurant()\n .restaurantName(DEFAULT_RESTAURANT_NAME)\n .deliveryPrice(DEFAULT_DELIVERY_PRICE)\n .restaurantAddress(DEFAULT_RESTAURANT_ADDRESS)\n .restaurantCity(DEFAULT_RESTAURANT_CITY);\n return restaurant;\n }",
"@Override\n\tpublic EmploieType creer(EmploieType entity) throws InvalideTogetException {\n\t\treturn emploieTypeRepository.save(entity);\n\t}",
"public static Team createEntity(EntityManager em) {\n Team team = new Team().name(DEFAULT_NAME).description(DEFAULT_DESCRIPTION)\n .level(DEFAULT_LEVEL).totalMember(DEFAULT_TOTAL_MEMBER)\n .extraGroupName(DEFAULT_EXTRA_GROUP_NAME)\n .extraGroupDescription(DEFAULT_EXTRA_GROUP_DESCRIPTION)\n .extraGroupTotalMember(DEFAULT_EXTRA_GROUP_TOTAL_MEMBER);\n return team;\n }",
"public static Produit createEntity(EntityManager em) {\n Produit produit = new Produit()\n .designation(DEFAULT_DESIGNATION)\n .soldeInit(DEFAULT_SOLDE_INIT)\n .prixAchat(DEFAULT_PRIX_ACHAT)\n .prixVente(DEFAULT_PRIX_VENTE)\n .quantiteDispo(DEFAULT_QUANTITE_DISPO)\n .quantiteInit(DEFAULT_QUANTITE_INIT)\n .seuilReaprov(DEFAULT_SEUIL_REAPROV)\n .reference(DEFAULT_REFERENCE);\n return produit;\n }",
"public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }"
] |
[
"0.772318",
"0.75051135",
"0.74880123",
"0.7361846",
"0.7314592",
"0.71563506",
"0.71563506",
"0.715137",
"0.7150589",
"0.70789564",
"0.70169926",
"0.68033403",
"0.6752896",
"0.67390555",
"0.67390555",
"0.6711267",
"0.6681522",
"0.66659015",
"0.6640632",
"0.6624671",
"0.66241235",
"0.660707",
"0.6588162",
"0.65749156",
"0.65735453",
"0.65672445",
"0.65517855",
"0.6531176",
"0.65298533",
"0.6481203",
"0.6420074",
"0.6386873",
"0.6375683",
"0.63685805",
"0.6313742",
"0.62975",
"0.62931967",
"0.6258937",
"0.6246413",
"0.6243042",
"0.6239616",
"0.6219346",
"0.62086976",
"0.61818856",
"0.61813194",
"0.6175258",
"0.6169793",
"0.616349",
"0.6161015",
"0.6158743",
"0.61553633",
"0.6151116",
"0.6143154",
"0.61364424",
"0.6135293",
"0.613029",
"0.61249316",
"0.6120976",
"0.6107435",
"0.6106537",
"0.6103076",
"0.6092443",
"0.6091817",
"0.60818857",
"0.6074391",
"0.6069269",
"0.6066263",
"0.60642225",
"0.60592705",
"0.6051608",
"0.6041023",
"0.6038719",
"0.60327667",
"0.6027415",
"0.6022737",
"0.60212785",
"0.6020072",
"0.60150903",
"0.6014459",
"0.6012988",
"0.6002627",
"0.6002492",
"0.6001874",
"0.600094",
"0.5995588",
"0.5994923",
"0.5982309",
"0.5976847",
"0.59743917",
"0.5973828",
"0.5967244",
"0.5962846",
"0.5961535",
"0.5953362",
"0.59457004",
"0.59443223",
"0.59418887",
"0.5938013",
"0.59302163",
"0.5929977"
] |
0.6067396
|
66
|
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
|
public static TypeOeuvre createUpdatedEntity(EntityManager em) {
TypeOeuvre typeOeuvre = new TypeOeuvre()
.intitule(UPDATED_INTITULE);
return typeOeuvre;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static Student createUpdatedEntity(EntityManager em) {\n Student student = new Student()\n .firstName(UPDATED_FIRST_NAME)\n .middleName(UPDATED_MIDDLE_NAME)\n .lastName(UPDATED_LAST_NAME)\n .studentRegNumber(UPDATED_STUDENT_REG_NUMBER)\n .dateOfBirth(UPDATED_DATE_OF_BIRTH)\n .regDocType(UPDATED_REG_DOC_TYPE)\n .registrationDocumentNumber(UPDATED_REGISTRATION_DOCUMENT_NUMBER)\n .gender(UPDATED_GENDER)\n .nationality(UPDATED_NATIONALITY)\n .dateJoined(UPDATED_DATE_JOINED)\n .deleted(UPDATED_DELETED)\n .wxtJwtPq55wd(UPDATED_WXT_JWT_PQ_55_WD);\n // Add required entity\n NextOfKin nextOfKin;\n if (TestUtil.findAll(em, NextOfKin.class).isEmpty()) {\n nextOfKin = NextOfKinResourceIT.createUpdatedEntity(em);\n em.persist(nextOfKin);\n em.flush();\n } else {\n nextOfKin = TestUtil.findAll(em, NextOfKin.class).get(0);\n }\n student.getRelatives().add(nextOfKin);\n return student;\n }",
"protected T createSimulatedExistingEntity() {\n final T entity = createNewEntity();\n entity.setId(IDUtil.randomPositiveLong());\n\n when(getDAO().findOne(entity.getId())).thenReturn(entity);\n return entity;\n }",
"public static Prestamo createUpdatedEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(UPDATED_OBSERVACIONES).fechaFin(UPDATED_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createUpdatedEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createUpdatedEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }",
"public static SitAndGo createUpdatedEntity(EntityManager em) {\n SitAndGo sitAndGo = new SitAndGo()\n .format(UPDATED_FORMAT)\n .buyIn(UPDATED_BUY_IN)\n .ranking(UPDATED_RANKING)\n .profit(UPDATED_PROFIT)\n .bounty(UPDATED_BOUNTY);\n return sitAndGo;\n }",
"public static ItemSubstitution createUpdatedEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(UPDATED_TIMESTAMP)\n .type(UPDATED_TYPE)\n .substituteType(UPDATED_SUBSTITUTE_TYPE)\n .substituteNo(UPDATED_SUBSTITUTE_NO)\n .description(UPDATED_DESCRIPTION)\n .isInterchangeable(UPDATED_IS_INTERCHANGEABLE)\n .relationsLevel(UPDATED_RELATIONS_LEVEL)\n .isCheckedToOriginal(UPDATED_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(UPDATED_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createUpdatedEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }",
"Entity createEntity();",
"@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }",
"public static A createUpdatedEntity(EntityManager em) {\n A a = new A();\n return a;\n }",
"public static Testtable2 createUpdatedEntity(EntityManager em) {\n Testtable2 testtable2 = new Testtable2();\n testtable2.setColumn2(UPDATED_COLUMN_2);\n return testtable2;\n }",
"public static XepLoai createUpdatedEntity(EntityManager em) {\n XepLoai xepLoai = new XepLoai()\n .tenXepLoai(UPDATED_TEN_XEP_LOAI);\n return xepLoai;\n }",
"public static QuizQuestion createUpdatedEntity(EntityManager em) {\n QuizQuestion quizQuestion = new QuizQuestion()\n .text(UPDATED_TEXT)\n .description(UPDATED_DESCRIPTION);\n // Add required entity\n Quiz quiz;\n if (TestUtil.findAll(em, Quiz.class).isEmpty()) {\n quiz = QuizResourceIT.createUpdatedEntity(em);\n em.persist(quiz);\n em.flush();\n } else {\n quiz = TestUtil.findAll(em, Quiz.class).get(0);\n }\n quizQuestion.setQuiz(quiz);\n return quizQuestion;\n }",
"public static OrderItem createUpdatedEntity(EntityManager em) {\n OrderItem orderItem = new OrderItem().quantity(UPDATED_QUANTITY).totalPrice(UPDATED_TOTAL_PRICE).status(UPDATED_STATUS);\n return orderItem;\n }",
"public static Arrete createUpdatedEntity(EntityManager em) {\n Arrete arrete = new Arrete()\n .intituleArrete(UPDATED_INTITULE_ARRETE)\n .numeroArrete(UPDATED_NUMERO_ARRETE)\n .dateSignature(UPDATED_DATE_SIGNATURE)\n .nombreAgrement(UPDATED_NOMBRE_AGREMENT);\n return arrete;\n }",
"public static Unidade createUpdatedEntity(EntityManager em) {\n Unidade unidade = new Unidade()\n .descricao(UPDATED_DESCRICAO)\n .sigla(UPDATED_SIGLA)\n .situacao(UPDATED_SITUACAO)\n .controleDeEstoque(UPDATED_CONTROLE_DE_ESTOQUE)\n .idAlmoxarifado(UPDATED_ID_ALMOXARIFADO)\n .andar(UPDATED_ANDAR)\n .capacidade(UPDATED_CAPACIDADE)\n .horarioInicio(UPDATED_HORARIO_INICIO)\n .horarioFim(UPDATED_HORARIO_FIM)\n .localExame(UPDATED_LOCAL_EXAME)\n .rotinaDeFuncionamento(UPDATED_ROTINA_DE_FUNCIONAMENTO)\n .anexoDocumento(UPDATED_ANEXO_DOCUMENTO)\n .setor(UPDATED_SETOR)\n .idCentroDeAtividade(UPDATED_ID_CENTRO_DE_ATIVIDADE)\n .idChefia(UPDATED_ID_CHEFIA);\n // Add required entity\n TipoUnidade tipoUnidade;\n if (TestUtil.findAll(em, TipoUnidade.class).isEmpty()) {\n tipoUnidade = TipoUnidadeResourceIT.createUpdatedEntity(em);\n em.persist(tipoUnidade);\n em.flush();\n } else {\n tipoUnidade = TestUtil.findAll(em, TipoUnidade.class).get(0);\n }\n unidade.setTipoUnidade(tipoUnidade);\n return unidade;\n }",
"public static Note createUpdatedEntity(EntityManager em) {\n Note note = new Note().content(UPDATED_CONTENT).title(UPDATED_TITLE).xpos(UPDATED_XPOS).ypos(UPDATED_YPOS);\n return note;\n }",
"@Test\r\n public void testUpdate() throws Exception {\r\n MonitoriaEntity entity = data.get(0);\r\n PodamFactory pf = new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity = pf.manufacturePojo(MonitoriaEntity.class);\r\n nuevaEntity.setId(entity.getId());\r\n persistence.update(nuevaEntity);\r\n// Assert.assertEquals(nuevaEntity.getName(), resp.getName());\r\n }",
"@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }",
"public static Restaurant createUpdatedEntity(EntityManager em) {\n Restaurant restaurant = new Restaurant()\n .restaurantName(UPDATED_RESTAURANT_NAME)\n .deliveryPrice(UPDATED_DELIVERY_PRICE)\n .restaurantAddress(UPDATED_RESTAURANT_ADDRESS)\n .restaurantCity(UPDATED_RESTAURANT_CITY);\n return restaurant;\n }",
"public static Enseigner createUpdatedEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(UPDATED_DATE_DEBUT).dateFin(UPDATED_DATE_FIN);\n return enseigner;\n }",
"public static Lot createUpdatedEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(UPDATED_CREATED_AT)\n .updatedAt(UPDATED_UPDATED_AT)\n .qte(UPDATED_QTE)\n .qtUg(UPDATED_QT_UG)\n .num(UPDATED_NUM)\n .dateFabrication(UPDATED_DATE_FABRICATION)\n .peremption(UPDATED_PEREMPTION)\n .peremptionstatus(UPDATED_PEREMPTIONSTATUS);\n return lot;\n }",
"void createOrUpdate(T entity);",
"public static EnteteVente createUpdatedEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(UPDATED_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(UPDATED_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(UPDATED_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(UPDATED_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }",
"public static TaskComment createUpdatedEntity(EntityManager em) {\n TaskComment taskComment = new TaskComment()\n .value(UPDATED_VALUE);\n // Add required entity\n Task newTask = TaskResourceIT.createUpdatedEntity(em);\n Task task = TestUtil.findAll(em, Task.class).stream()\n .filter(x -> x.getId().equals(newTask.getId()))\n .findAny().orElse(null);\n if (task == null) {\n task = newTask;\n em.persist(task);\n em.flush();\n }\n taskComment.setTask(task);\n return taskComment;\n }",
"protected abstract ENTITY createEntity();",
"public static Bounty createUpdatedEntity() {\n Bounty bounty = new Bounty()\n// .status(UPDATED_STATUS)\n// .issueUrl(UPDATED_URL)\n .amount(UPDATED_AMOUNT)\n// .experience(UPDATED_EXPERIENCE)\n// .commitment(UPDATED_COMMITMENT)\n// .type(UPDATED_TYPE)\n// .category(UPDATED_CATEGORY)\n// .keywords(UPDATED_KEYWORDS)\n .permission(UPDATED_PERMISSION)\n .expiryDate(UPDATED_EXPIRES);\n return bounty;\n }",
"public static Articulo createUpdatedEntity(EntityManager em) {\n Articulo articulo = new Articulo()\n .titulo(UPDATED_TITULO)\n .contenido(UPDATED_CONTENIDO)\n .fechaCreacion(UPDATED_FECHA_CREACION);\n return articulo;\n }",
"TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }",
"public static GoodsReceiptDetails createUpdatedEntity(EntityManager em) {\n GoodsReceiptDetails goodsReceiptDetails = new GoodsReceiptDetails()\n .grnQty(UPDATED_GRN_QTY);\n return goodsReceiptDetails;\n }",
"public static Emprunt createUpdatedEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(UPDATED_DATE_EMPRUNT);\n return emprunt;\n }",
"public static AnnotationType createUpdatedEntity() {\n return new AnnotationType()\n .name(UPDATED_NAME)\n .label(UPDATED_LABEL)\n .description(UPDATED_DESCRIPTION)\n .emotional(UPDATED_EMOTIONAL)\n .weight(UPDATED_WEIGHT)\n .color(UPDATED_COLOR)\n .projectId(DEFAULT_PROJECT_ID);\n }",
"public static Invoice createUpdatedEntity(EntityManager em) {\n Invoice invoice = new Invoice()\n .companyName(UPDATED_COMPANY_NAME)\n .userName(UPDATED_USER_NAME)\n .userLastName(UPDATED_USER_LAST_NAME)\n .userEmail(UPDATED_USER_EMAIL)\n .dateCreated(UPDATED_DATE_CREATED)\n .total(UPDATED_TOTAL)\n .subTotal(UPDATED_SUB_TOTAL)\n .tax(UPDATED_TAX)\n .purchaseDescription(UPDATED_PURCHASE_DESCRIPTION)\n .itemQuantity(UPDATED_ITEM_QUANTITY)\n .itemPrice(UPDATED_ITEM_PRICE);\n return invoice;\n }",
"public static Demand createUpdatedEntity(EntityManager em) {\n Demand demand = new Demand()\n .name(UPDATED_NAME)\n .value(UPDATED_VALUE);\n return demand;\n }",
"public static Acheteur createUpdatedEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(UPDATED_TYPE_CLIENT)\n .nom(UPDATED_NOM)\n .prenom(UPDATED_PRENOM)\n .tel(UPDATED_TEL)\n .cnib(UPDATED_CNIB)\n .email(UPDATED_EMAIL)\n .adresse(UPDATED_ADRESSE)\n .numroBanquaire(UPDATED_NUMRO_BANQUAIRE)\n .deleted(UPDATED_DELETED);\n return acheteur;\n }",
"T createEntity();",
"public static MGachaRendition createUpdatedEntity(EntityManager em) {\n MGachaRendition mGachaRendition = new MGachaRendition()\n .mainPrefabName(UPDATED_MAIN_PREFAB_NAME)\n .resultExpectedUpPrefabName(UPDATED_RESULT_EXPECTED_UP_PREFAB_NAME)\n .resultQuestionPrefabName(UPDATED_RESULT_QUESTION_PREFAB_NAME)\n .soundSwitchEventName(UPDATED_SOUND_SWITCH_EVENT_NAME);\n return mGachaRendition;\n }",
"public static BII createUpdatedEntity() {\n BII bII = new BII()\n .name(UPDATED_NAME)\n .type(UPDATED_TYPE)\n .biiId(UPDATED_BII_ID)\n .detectionTimestamp(UPDATED_DETECTION_TIMESTAMP)\n .sourceId(UPDATED_SOURCE_ID)\n .detectionSystemName(UPDATED_DETECTION_SYSTEM_NAME)\n .detectedValue(UPDATED_DETECTED_VALUE)\n .detectionContext(UPDATED_DETECTION_CONTEXT)\n .etc(UPDATED_ETC)\n .etcetc(UPDATED_ETCETC);\n return bII;\n }",
"E create(E entity);",
"E create(E entity);",
"public static EnrollmentDate createUpdatedEntity(EntityManager em) {\n EnrollmentDate enrollmentDate = new EnrollmentDate()\n .name(UPDATED_NAME)\n .isPreEnrollment(UPDATED_IS_PRE_ENROLLMENT)\n .startDate(UPDATED_START_DATE)\n .endDate(UPDATED_END_DATE);\n // Add required entity\n Semester semester;\n if (TestUtil.findAll(em, Semester.class).isEmpty()) {\n semester = SemesterResourceIT.createUpdatedEntity(em);\n em.persist(semester);\n em.flush();\n } else {\n semester = TestUtil.findAll(em, Semester.class).get(0);\n }\n enrollmentDate.setSemester(semester);\n return enrollmentDate;\n }",
"public static Posicion createUpdatedEntity(EntityManager em) {\n Posicion posicion = new Posicion()\n .titulo(UPDATED_TITULO)\n .descripcion(UPDATED_DESCRIPCION)\n .numeroPuestos(UPDATED_NUMERO_PUESTOS)\n .salarioMinimo(UPDATED_SALARIO_MINIMO)\n .salarioMaximo(UPDATED_SALARIO_MAXIMO)\n .fechaAlta(UPDATED_FECHA_ALTA)\n .fechaNecesidad(UPDATED_FECHA_NECESIDAD);\n return posicion;\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 }",
"public static Poen createUpdatedEntity(EntityManager em) {\n Poen poen = new Poen()\n .tip(UPDATED_TIP);\n return poen;\n }",
"public static OrderDetailInfo createUpdatedEntity(EntityManager em) {\n OrderDetailInfo orderDetailInfo = new OrderDetailInfo()\n .productName(UPDATED_PRODUCT_NAME)\n .priceProduct(UPDATED_PRICE_PRODUCT)\n .quantityOrder(UPDATED_QUANTITY_ORDER)\n .amount(UPDATED_AMOUNT)\n .orderDate(UPDATED_ORDER_DATE);\n return orderDetailInfo;\n }",
"public static ProcessExecution createUpdatedEntity(EntityManager em) {\n ProcessExecution processExecution = new ProcessExecution()\n .execution(UPDATED_EXECUTION);\n return processExecution;\n }",
"public static Incident createUpdatedEntity(EntityManager em) {\n Incident incident = new Incident()\n .title(UPDATED_TITLE)\n .risk(UPDATED_RISK)\n .notes(UPDATED_NOTES);\n return incident;\n }",
"public static Territorio createUpdatedEntity(EntityManager em) {\n Territorio territorio = new Territorio().nome(UPDATED_NOME);\n return territorio;\n }",
"public static Invite createUpdatedEntity(EntityManager em) {\n Invite invite = new Invite()\n .nom(UPDATED_NOM)\n .prenom(UPDATED_PRENOM)\n .mail(UPDATED_MAIL)\n .mdp(UPDATED_MDP)\n .login(UPDATED_LOGIN)\n .points(UPDATED_POINTS);\n return invite;\n }",
"public static DataModel createUpdatedEntity(EntityManager em) {\n DataModel dataModel = new DataModel()\n .key(UPDATED_KEY)\n .label(UPDATED_LABEL)\n .dataFormat(UPDATED_DATA_FORMAT)\n .maxLength(UPDATED_MAX_LENGTH)\n .precision(UPDATED_PRECISION)\n .modelValues(UPDATED_MODEL_VALUES);\n return dataModel;\n }",
"void create(T entity);",
"public static Horaire createUpdatedEntity(EntityManager em) {\n Horaire horaire = new Horaire()\n .heureDepart(UPDATED_HEURE_DEPART)\n .heureFin(UPDATED_HEURE_FIN)\n .dateJour(UPDATED_DATE_JOUR);\n return horaire;\n }",
"public static Empleado createUpdatedEntity(EntityManager em) {\n Empleado empleado = new Empleado()\n .nombre(UPDATED_NOMBRE)\n .primerApellido(UPDATED_PRIMER_APELLIDO)\n .segundoApellido(UPDATED_SEGUNDO_APELLIDO)\n .sexo(UPDATED_SEXO)\n .fechaNacimiento(UPDATED_FECHA_NACIMIENTO)\n .fechaIngreso(UPDATED_FECHA_INGRESO)\n .salario(UPDATED_SALARIO)\n .puesto(UPDATED_PUESTO)\n .estado(UPDATED_ESTADO);\n return empleado;\n }",
"public static Allegato createUpdatedEntity(EntityManager em) {\n Allegato allegato = new Allegato()\n .nomeAttachment(UPDATED_NOME_ATTACHMENT)\n .algoritmoCompressione(UPDATED_ALGORITMO_COMPRESSIONE)\n .formatoAttachment(UPDATED_FORMATO_ATTACHMENT)\n .descrizioneAttachment(UPDATED_DESCRIZIONE_ATTACHMENT)\n .attachment(UPDATED_ATTACHMENT);\n return allegato;\n }",
"public static NoteMaster createUpdatedEntity(EntityManager em) {\n NoteMaster noteMaster = new NoteMaster()\n .semestre(UPDATED_SEMESTRE)\n .noteCC1(UPDATED_NOTE_CC_1)\n .noteCC2(UPDATED_NOTE_CC_2)\n .noteFinal(UPDATED_NOTE_FINAL)\n .date(UPDATED_DATE);\n return noteMaster;\n }",
"public static TaskExecution createUpdatedEntity(EntityManager em) {\n TaskExecution taskExecution = new TaskExecution()\n .jobOrderTimestamp(UPDATED_JOB_ORDER_TIMESTAMP)\n .taskExecutionStatus(UPDATED_TASK_EXECUTION_STATUS)\n .taskExecutionStartTimestamp(UPDATED_TASK_EXECUTION_START_TIMESTAMP)\n .taskExecutionEndTimestamp(UPDATED_TASK_EXECUTION_END_TIMESTAMP);\n return taskExecution;\n }",
"void create(E entity);",
"public static WorkPlace createUpdatedEntity(EntityManager em) {\n WorkPlace workPlace = new WorkPlace()\n .doctorIdpCode(UPDATED_DOCTOR_IDP_CODE)\n .name(UPDATED_NAME)\n .locationName(UPDATED_LOCATION_NAME)\n .location(UPDATED_LOCATION);\n return workPlace;\n }",
"public static EventAttendance createUpdatedEntity(EntityManager em) {\n EventAttendance eventAttendance = new EventAttendance()\n .attendanceDate(UPDATED_ATTENDANCE_DATE);\n return eventAttendance;\n }",
"public static Fornecedor createUpdatedEntity(EntityManager em) {\n Fornecedor fornecedor = new Fornecedor()\n .tipo(UPDATED_TIPO)\n .cpf(UPDATED_CPF)\n .cnpj(UPDATED_CNPJ)\n .primeiroNome(UPDATED_PRIMEIRO_NOME)\n .nomeMeio(UPDATED_NOME_MEIO)\n .sobreNome(UPDATED_SOBRE_NOME)\n .saudacao(UPDATED_SAUDACAO)\n .titulo(UPDATED_TITULO)\n .cep(UPDATED_CEP)\n .tipoLogradouro(UPDATED_TIPO_LOGRADOURO)\n .nomeLogradouro(UPDATED_NOME_LOGRADOURO)\n .complemento(UPDATED_COMPLEMENTO);\n return fornecedor;\n }",
"public Entity newEntity() { return newMyEntity(); }",
"public Entity newEntity() { return newMyEntity(); }",
"public static Transaction createUpdatedEntity(EntityManager em) {\n Transaction transaction = new Transaction()\n .date(UPDATED_DATE);\n return transaction;\n }",
"public static Author createUpdatedEntity(EntityManager em) {\n Author author = new Author()\n .firstName(UPDATED_FIRST_NAME)\n .lastName(UPDATED_LAST_NAME);\n return author;\n }",
"public void updateEntity();",
"public static IndActivation createUpdatedEntity(EntityManager em) {\n IndActivation indActivation = new IndActivation()\n .name(UPDATED_NAME)\n .activity(UPDATED_ACTIVITY)\n .customerId(UPDATED_CUSTOMER_ID)\n .individualId(UPDATED_INDIVIDUAL_ID);\n return indActivation;\n }",
"public EntityType initUpdateEntity(DtoType dto) throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException;",
"public static MQuestSpecialReward createUpdatedEntity(EntityManager em) {\n MQuestSpecialReward mQuestSpecialReward = new MQuestSpecialReward()\n .groupId(UPDATED_GROUP_ID)\n .weight(UPDATED_WEIGHT)\n .rank(UPDATED_RANK)\n .contentType(UPDATED_CONTENT_TYPE)\n .contentId(UPDATED_CONTENT_ID)\n .contentAmount(UPDATED_CONTENT_AMOUNT);\n return mQuestSpecialReward;\n }",
"public static Sectie createUpdatedEntity(EntityManager em) {\n Sectie sectie = new Sectie()\n .sectieId(UPDATED_SECTIE_ID)\n .nume(UPDATED_NUME)\n .sefId(UPDATED_SEF_ID)\n .tag(UPDATED_TAG)\n .nrPaturi(UPDATED_NR_PATURI);\n return sectie;\n }",
"protected abstract EntityBase createEntity() throws Exception;",
"public static RolEmpleado createUpdatedEntity(EntityManager em) {\n RolEmpleado rolEmpleado = new RolEmpleado();\n return rolEmpleado;\n }",
"public static ExUser createUpdatedEntity(EntityManager em) {\n ExUser exUser = new ExUser()\n .userKey(UPDATED_USER_KEY);\n return exUser;\n }",
"public static ConceptDataType createUpdatedEntity(EntityManager em) {\n ConceptDataType conceptDataType = new ConceptDataType()\n .uuid(UPDATED_UUID)\n .name(UPDATED_NAME)\n .hl7Abbreviation(UPDATED_HL_7_ABBREVIATION)\n .description(UPDATED_DESCRIPTION);\n return conceptDataType;\n }",
"public static Info createUpdatedEntity(EntityManager em) {\n Info info = new Info()\n .nom(UPDATED_NOM)\n .prenom(UPDATED_PRENOM)\n .etablissement(UPDATED_ETABLISSEMENT);\n return info;\n }",
"public static Dishestype createUpdatedEntity(EntityManager em) {\n Dishestype dishestype = new Dishestype()\n .name(UPDATED_NAME)\n .state(UPDATED_STATE)\n .creator(UPDATED_CREATOR)\n .createdate(UPDATED_CREATEDATE)\n .modifier(UPDATED_MODIFIER)\n .modifierdate(UPDATED_MODIFIERDATE)\n .modifiernum(UPDATED_MODIFIERNUM)\n .logicdelete(UPDATED_LOGICDELETE)\n .other(UPDATED_OTHER);\n return dishestype;\n }",
"public static UserDetails createUpdatedEntity(EntityManager em) {\n UserDetails userDetails = new UserDetails()\n .studentCardNumber(UPDATED_STUDENT_CARD_NUMBER)\n .name(UPDATED_NAME)\n .surname(UPDATED_SURNAME)\n .telephoneNumber(UPDATED_TELEPHONE_NUMBER)\n .studyYear(UPDATED_STUDY_YEAR)\n .faculty(UPDATED_FACULTY)\n .fieldOfStudy(UPDATED_FIELD_OF_STUDY);\n return userDetails;\n }",
"public static QueryData createUpdatedEntity(EntityManager em) {\n QueryData queryData = new QueryData()\n .dataValue(UPDATED_DATA_VALUE);\n return queryData;\n }",
"E update(E entity);",
"E update(E entity);",
"public static Pessoa createUpdatedEntity(EntityManager em) {\n Pessoa pessoa = new Pessoa()\n .nome(UPDATED_NOME)\n .email(UPDATED_EMAIL)\n .telefone(UPDATED_TELEFONE)\n .dataNascimento(UPDATED_DATA_NASCIMENTO)\n .cadastro(UPDATED_CADASTRO);\n return pessoa;\n }",
"public static Source createUpdatedEntity(EntityManager em) {\n Source source = new Source()\n .idGloden(UPDATED_ID_GLODEN)\n .name(UPDATED_NAME)\n .description(UPDATED_DESCRIPTION)\n .updateDate(UPDATED_UPDATE_DATE)\n .creationDate(UPDATED_CREATION_DATE);\n return source;\n }",
"public static InventoryProvider createUpdatedEntity(EntityManager em) {\n InventoryProvider inventoryProvider = new InventoryProvider()\n .idInventoryProvider(UPDATED_ID_INVENTORY_PROVIDER)\n .code(UPDATED_CODE)\n .name(UPDATED_NAME)\n .price(UPDATED_PRICE)\n .cuantity(UPDATED_CUANTITY);\n return inventoryProvider;\n }",
"public static Userextra createUpdatedEntity(EntityManager em) {\n Userextra userextra = new Userextra().accountype(UPDATED_ACCOUNTYPE);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n userextra.setUser(user);\n return userextra;\n }",
"void create(T entity) throws Exception;",
"public static ListWrkStatus createUpdatedEntity(EntityManager em) {\n ListWrkStatus listWrkStatus = new ListWrkStatus()\n .code(UPDATED_CODE)\n .name(UPDATED_NAME)\n .fullName(UPDATED_FULL_NAME)\n .isCurrentFlag(UPDATED_IS_CURRENT_FLAG)\n .description(UPDATED_DESCRIPTION)\n .dateCreate(UPDATED_DATE_CREATE)\n .dateEdit(UPDATED_DATE_EDIT)\n .creator(UPDATED_CREATOR)\n .editor(UPDATED_EDITOR);\n // Add required entity\n ListWrkKind listWrkKind;\n if (TestUtil.findAll(em, ListWrkKind.class).isEmpty()) {\n listWrkKind = ListWrkKindResourceIT.createUpdatedEntity(em);\n em.persist(listWrkKind);\n em.flush();\n } else {\n listWrkKind = TestUtil.findAll(em, ListWrkKind.class).get(0);\n }\n listWrkStatus.setIdWrkKind(listWrkKind);\n return listWrkStatus;\n }",
"public static DoctorAssistant createUpdatedEntity(EntityManager em) {\n DoctorAssistant doctorAssistant = new DoctorAssistant()\n .canPrescribe(UPDATED_CAN_PRESCRIBE);\n return doctorAssistant;\n }",
"public static Kpi createUpdatedEntity(EntityManager em) {\n Kpi kpi = new Kpi()\n .title(UPDATED_TITLE)\n .reward(UPDATED_REWARD)\n .rewardDistribution(UPDATED_REWARD_DISTRIBUTION)\n .gradingProcess(UPDATED_GRADING_PROCESS)\n .active(UPDATED_ACTIVE)\n .purpose(UPDATED_PURPOSE)\n .scopeOfWork(UPDATED_SCOPE_OF_WORK)\n .rewardDistributionInfo(UPDATED_REWARD_DISTRIBUTION_INFO)\n .reporting(UPDATED_REPORTING)\n .fiatPoolFactor(UPDATED_FIAT_POOL_FACTOR)\n .grading(UPDATED_GRADING);\n return kpi;\n }",
"private FailingEntity createFailingEntity() {\n FailingEntity entity = app.createAndManageChild(EntitySpec.create(FailingEntity.class)\n .configure(FailingEntity.FAIL_ON_START, true));\n return entity;\n }",
"public static Location createUpdatedEntity(EntityManager em) {\n Location location = new Location()\n .name(UPDATED_NAME)\n .latitude(UPDATED_LATITUDE)\n .longitude(UPDATED_LONGITUDE)\n .details(UPDATED_DETAILS)\n .activated(UPDATED_ACTIVATED);\n return location;\n }",
"public static Favorite createUpdatedEntity(EntityManager em) {\n Favorite favorite = new Favorite();\n return favorite;\n }",
"public static ModePassation createUpdatedEntity(EntityManager em) {\n ModePassation modePassation = new ModePassation()\n .libelle(UPDATED_LIBELLE)\n .code(UPDATED_CODE)\n .description(UPDATED_DESCRIPTION);\n return modePassation;\n }",
"public static TipoObra createUpdatedEntity(EntityManager em) {\n TipoObra tipoObra = new TipoObra().descripcion(UPDATED_DESCRIPCION);\n return tipoObra;\n }",
"public static LifeConstantUnit createUpdatedEntity(EntityManager em) {\n LifeConstantUnit lifeConstantUnit = new LifeConstantUnit()\n .name(UPDATED_NAME)\n .description(UPDATED_DESCRIPTION);\n return lifeConstantUnit;\n }",
"public static Timbre createUpdatedEntity(EntityManager em) {\n Timbre timbre = new Timbre().timbre(UPDATED_TIMBRE);\n return timbre;\n }",
"public static UserExtra createUpdatedEntity(EntityManager em) {\n UserExtra userExtra = new UserExtra().currentParkingSpot(UPDATED_CURRENT_PARKING_SPOT).timeOfParking(UPDATED_TIME_OF_PARKING);\n return userExtra;\n }",
"public static MChallengeQuestWorld createUpdatedEntity(EntityManager em) {\n MChallengeQuestWorld mChallengeQuestWorld = new MChallengeQuestWorld()\n .setId(UPDATED_SET_ID)\n .number(UPDATED_NUMBER)\n .name(UPDATED_NAME)\n .imagePath(UPDATED_IMAGE_PATH)\n .backgroundImagePath(UPDATED_BACKGROUND_IMAGE_PATH)\n .description(UPDATED_DESCRIPTION)\n .stageUnlockPattern(UPDATED_STAGE_UNLOCK_PATTERN)\n .arousalBanner(UPDATED_AROUSAL_BANNER)\n .specialRewardContentType(UPDATED_SPECIAL_REWARD_CONTENT_TYPE)\n .specialRewardContentId(UPDATED_SPECIAL_REWARD_CONTENT_ID)\n .isEnableCoop(UPDATED_IS_ENABLE_COOP);\n return mChallengeQuestWorld;\n }",
"public static TypeIntervention createUpdatedEntity(EntityManager em) {\n TypeIntervention typeIntervention = new TypeIntervention()\n .libelle(UPDATED_LIBELLE);\n return typeIntervention;\n }",
"public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }",
"public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}",
"public static Category createUpdatedEntity(EntityManager em) {\n Category category = new Category()\n .label(UPDATED_LABEL)\n .primaryColor(UPDATED_PRIMARY_COLOR)\n .secondaryColor(UPDATED_SECONDARY_COLOR);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n category.setOwner(user);\n return category;\n }",
"public static Course createUpdatedEntity(EntityManager em) {\n Course course = new Course()\n .title(UPDATED_TITLE)\n .description(UPDATED_DESCRIPTION)\n .courseStartDate(UPDATED_COURSE_START_DATE)\n .courseEndDate(UPDATED_COURSE_END_DATE)\n .registerStartDate(UPDATED_REGISTER_START_DATE)\n .registerEndDate(UPDATED_REGISTER_END_DATE)\n .duration(UPDATED_DURATION)\n .maximumNumberOfParticipants(UPDATED_MAXIMUM_NUMBER_OF_PARTICIPANTS)\n .minimalNumberOfParticipants(UPDATED_MINIMAL_NUMBER_OF_PARTICIPANTS)\n .lecturerName(UPDATED_LECTURER_NAME)\n .lecturerSurname(UPDATED_LECTURER_SURNAME)\n .pointPerCourse(UPDATED_POINT_PER_COURSE)\n .isVisibleInApp(UPDATED_IS_VISIBLE_IN_APP);\n return course;\n }",
"public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }"
] |
[
"0.69449216",
"0.67896795",
"0.67879814",
"0.67179096",
"0.6694456",
"0.66922057",
"0.66643107",
"0.66368437",
"0.6620929",
"0.6514777",
"0.6509406",
"0.6446852",
"0.6423282",
"0.6420849",
"0.6420615",
"0.64165777",
"0.6411613",
"0.6408787",
"0.6403848",
"0.63932365",
"0.6390863",
"0.6388326",
"0.6380422",
"0.6361089",
"0.63423973",
"0.63418686",
"0.6329452",
"0.6323348",
"0.6318211",
"0.63123614",
"0.6299472",
"0.6270781",
"0.62695867",
"0.62638015",
"0.6261922",
"0.6255796",
"0.6255084",
"0.6255084",
"0.6237627",
"0.6226772",
"0.6184292",
"0.6177546",
"0.61727744",
"0.61661196",
"0.61631334",
"0.6156456",
"0.6135606",
"0.61344534",
"0.61281127",
"0.6125203",
"0.61175996",
"0.6116743",
"0.6116217",
"0.61150575",
"0.61132586",
"0.61018944",
"0.6100467",
"0.609074",
"0.60858434",
"0.60858434",
"0.6073558",
"0.60682845",
"0.60639805",
"0.6063356",
"0.60548437",
"0.60496",
"0.6046307",
"0.60458905",
"0.6031787",
"0.6029104",
"0.60257006",
"0.60237676",
"0.6014721",
"0.6010872",
"0.6006849",
"0.6005116",
"0.6005116",
"0.59957474",
"0.59879327",
"0.5980898",
"0.59776896",
"0.59688896",
"0.5966096",
"0.59658957",
"0.5962093",
"0.59518",
"0.5947376",
"0.59444624",
"0.59443027",
"0.59423697",
"0.5938813",
"0.59374046",
"0.5935005",
"0.5933881",
"0.5924878",
"0.59195006",
"0.59129685",
"0.59102505",
"0.5909693",
"0.5908487"
] |
0.6275718
|
31
|
Creates a new instance.
|
public ModelInstanceImpl(String name, String type, String uid) {
super(name, uid);
String splitName = CommonUtilities.splitCases(name);
names = Lists.mutable.with(splitName.split(" "));
if (names.size() > 1) {
names.add(name);
}
String splitType = CommonUtilities.splitCases(type);
types = Lists.mutable.with(splitType.split(" "));
if (types.size() > 1) {
types.add(type);
}
this.uid = uid;
fullName = name;
fullType = type;
}
|
{
"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 the longest name of the instance.
|
@Override
public String getFullName() {
return fullName;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String getLongName();",
"public static int LongestName () {\n int result = 0;\r\n\r\n // LOOP THROUGH THE PLAYERS\r\n for (int i = 0; i < player_count; i++) {\r\n // DID WE FIND A LONGER NAME?\r\n if (player[i].GetName().length() > result)\r\n result = player[i].GetName().length();\r\n }\r\n\r\n // RETURN THE RESULT\r\n return result;\r\n }",
"@Override\n public String longestWord() {\n return \"\";\n }",
"public java.lang.String getLastName() {\n\t\t\tjava.lang.Object ref = lastName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tlastName_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}",
"com.google.protobuf.ByteString getLastNameBytes();",
"public java.lang.String getLastName();",
"public java.lang.String getLastName() {\n\t\t\t\tjava.lang.Object ref = lastName_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\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\tlastName_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}",
"public static String mostName(String name) {\n int lastDot = name.lastIndexOf('.');\n return lastDot == -1 ? \"\" : name.substring(0, lastDot);\n }",
"public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }",
"java.lang.String getLastName();",
"java.lang.String getLastName();",
"public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getNameLast() {\n\t\t\treturn nameLast;\n\t\t}",
"public String getLastName() {\n \treturn lName;\n }",
"@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }",
"public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }",
"public String getLongName() {\n return (String) getAttributeInternal(LONGNAME);\n }",
"@Override\n public String longestWord() {\n if (this.word.length() > this.restOfSentence.longestWord().length()) {\n return this.word;\n }\n return this.restOfSentence.longestWord();\n }",
"com.google.protobuf.ByteString\n getLastNameBytes();",
"public String getLastName()\n\t{\n\t\treturn getLastName( getSession().getSessionContext() );\n\t}",
"public String getLastName()\n\t{\n\t\treturn getLastName( getSession().getSessionContext() );\n\t}",
"public com.google.protobuf.ByteString getLastNameBytes() {\n\t\t\tjava.lang.Object ref = lastName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n\t\t\t\tlastName_ = b;\n\t\t\t\treturn b;\n\t\t\t} else {\n\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t}\n\t\t}",
"@Override\n\tpublic java.lang.String getLastName() {\n\t\treturn _candidate.getLastName();\n\t}",
"public java.lang.CharSequence getLastName() {\n return lastName;\n }",
"public com.google.protobuf.ByteString getLastNameBytes() {\n\t\t\t\tjava.lang.Object ref = lastName_;\n\t\t\t\tif (ref instanceof String) {\n\t\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\n\t\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\n\t\t\t\t\tlastName_ = b;\n\t\t\t\t\treturn b;\n\t\t\t\t} else {\n\t\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t\t}\n\t\t\t}",
"public String getLastNameFieldName() {\n return getStringProperty(LAST_NAME_FIELD_NAME_KEY);\n }",
"public static void printLongestNamedPeople(){\n ArrayList<Person> longests = query.getLongestNamed();\n if (longests.size() == 1) {\n System.out.println(\"The person with the longest name is: \");\n } else {\n System.out.println(\"The people with the longest names are: \");\n }\n for (Person p : longests) {\n System.out.println(p);\n }\n }",
"public java.lang.CharSequence getLastName() {\n return lastName;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\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 lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\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 lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getLastName()\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Return the last name.\n\t\treturn lastName;\n\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\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 lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getLastName();",
"String getLastName();",
"public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getLastName()\r\n\t{\r\n\t\treturn lastName.getModelObjectAsString();\r\n\t}",
"public int maxSuffixLength() {\r\n return mMaxSuffixLength;\r\n }",
"public java.lang.CharSequence getLastName() {\n return last_name;\n }",
"@AutoEscape\n\tpublic String getLastName();",
"public String makeName() {\r\n String result = makeNameKOL();\r\n if(previousNames == null || previousNames.size() == maxNames) {\r\n return result;\r\n }\r\n \r\n while(previousNames.contains(result)) {\r\n result = makeNameKOL();\r\n }\r\n \r\n return result;\r\n }",
"public String newName(int maxLength) {\n return newName(maxLength / 2, maxLength);\n }",
"java.lang.String getInstanceName();",
"public final String getLastName() {\n\t\treturn lastName;\n\t}",
"public String getLastName() {\n\t\treturn this.lastName;\n\t}",
"public int longestRod ();",
"public java.lang.CharSequence getLastName() {\n return last_name;\n }",
"public final String getLastName() {\r\n\t\treturn lastName;\r\n\t}",
"public String getMax() {\n return max;\n }",
"public String getLastName();",
"public String getLastName() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_LAST_NAME);\r\n }",
"Name getName();",
"public String getLastName() {\r\n // Bouml preserved body begin 00040B82\r\n\t System.out.println(lastName);\r\n\t return lastName;\r\n\r\n // Bouml preserved body end 00040B82\r\n }",
"public java.lang.String getLastName() {\n return lastName;\n }",
"public String getLongestEncoding() {\n EncodeData longest = encodings[0]; //Set longest to the first encoding\n for (int i = 1; i < encodings.length; i++) { //Loop through the encodings\n //If the encoding at index is longer than the longest encoding's length\n if(longest.encode.length() < encodings[i].encode.length()) {\n //Set longest to the new encoding\n longest = encodings[i];\n }\n }\n //Return the longest's symbol and encoding\n return longest.symbol + \" = \" + longest.encode;\n }",
"public java.lang.String getLastName() {\r\n return lastName;\r\n }",
"public String getLastName() {\n\t\tthis.setLastName(this.lastName);\n\t\treturn this.lastName;\n\t}",
"public int getMaxLength();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();"
] |
[
"0.6664392",
"0.6560489",
"0.6556341",
"0.6531818",
"0.65237164",
"0.65199894",
"0.64980274",
"0.6464121",
"0.6439512",
"0.6439512",
"0.6434203",
"0.64217144",
"0.64217144",
"0.6420784",
"0.6409567",
"0.6407535",
"0.6391122",
"0.6391122",
"0.63305146",
"0.6328148",
"0.621718",
"0.6207952",
"0.6188939",
"0.6188939",
"0.617867",
"0.61702335",
"0.61698693",
"0.61550856",
"0.61447054",
"0.61372644",
"0.6116395",
"0.6109763",
"0.6109763",
"0.6097246",
"0.6096441",
"0.6096431",
"0.60858375",
"0.60858375",
"0.60828394",
"0.60828394",
"0.6082424",
"0.608114",
"0.6061927",
"0.60519516",
"0.6040934",
"0.6037869",
"0.60201895",
"0.5998602",
"0.5992277",
"0.5991301",
"0.59892625",
"0.59840477",
"0.5983517",
"0.59835064",
"0.5965102",
"0.5960074",
"0.5956963",
"0.595162",
"0.5946566",
"0.59339356",
"0.593107",
"0.59228724",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212",
"0.5919212"
] |
0.0
|
-1
|
Returns the longest type of the instance.
|
@Override
public String getFullType() {
return fullType;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Class getType() {\n\t if ( type != null )\n\t return type;\n\t return long.class;\n\t }",
"public MaximumLabelType getMaximumLabelType() {\n return this.maximumLabelType;\n }",
"public MaxInstancesTypeElements getMaxInstancesTypeAccess() {\n\t\treturn pMaxInstancesType;\n\t}",
"public int longestRod ();",
"type getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"public Class getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"public String getLtype() {\n return (String) get(2);\n }",
"public Class getType();",
"public IntegerDt getMaxLengthElement() { \n\t\tif (myMaxLength == null) {\n\t\t\tmyMaxLength = new IntegerDt();\n\t\t}\n\t\treturn myMaxLength;\n\t}",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType() {\n\tif (num_comp == 0)\n\t return(UNCLASSIFIED);\n\treturn(type[num_comp-1]);\n }",
"MachineType getType();",
"public long getType() {\r\n return type;\r\n }",
"public int getMaxLength();",
"final int getSmallestType() {\n return LEAST_TYPE_CODE;\n }",
"public String getLongestEncoding() {\n EncodeData longest = encodings[0]; //Set longest to the first encoding\n for (int i = 1; i < encodings.length; i++) { //Loop through the encodings\n //If the encoding at index is longer than the longest encoding's length\n if(longest.encode.length() < encodings[i].encode.length()) {\n //Set longest to the new encoding\n longest = encodings[i];\n }\n }\n //Return the longest's symbol and encoding\n return longest.symbol + \" = \" + longest.encode;\n }",
"public int getType() {\n validify();\n return Client.INSTANCE.pieceGetType(ptr);\n }",
"public Type getType();",
"@Override\n public String longestWord() {\n return \"\";\n }",
"public Type getType() {\n @SuppressWarnings(\"deprecation\")\n Type result = Type.valueOf(type_);\n return result == null ? Type.UNRECOGNIZED : result;\n }"
] |
[
"0.60414433",
"0.603462",
"0.5968782",
"0.59248793",
"0.59077966",
"0.58757013",
"0.58757013",
"0.58757013",
"0.58757013",
"0.58757013",
"0.58757013",
"0.58757013",
"0.58757013",
"0.5841502",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.5794731",
"0.57773525",
"0.57773525",
"0.57773525",
"0.57773525",
"0.57773525",
"0.57773525",
"0.57773525",
"0.57773525",
"0.57773525",
"0.57773525",
"0.57773525",
"0.57681334",
"0.5757571",
"0.57527673",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5735868",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.5718525",
"0.56741375",
"0.56741375",
"0.56741375",
"0.56741375",
"0.56741375",
"0.5670805",
"0.5617794",
"0.56138676",
"0.5612279",
"0.5609925",
"0.5600816",
"0.55791724",
"0.5574441",
"0.5563195",
"0.5553368"
] |
0.0
|
-1
|
Returns all name parts of the instance.
|
@Override
public ImmutableList<String> getNameParts() {
return names.toImmutable();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String[] getNameParts() {\n return field.getName().split(\"_\");\n }",
"EList<String> getQualifiedNameParts();",
"Collection<String> names();",
"@Override\n\tpublic String getName() {\n\t\treturn name + instanceName;\n\t}",
"@Override\n public String toString() {\n String name = this.name().substring(0,1);\n if (this.name().length() > 1) {\n for (int i = 1; i < this.name().length(); i++) {\n String charAt = this.name().substring(i, i + 1);\n if (charAt.equals(\"_\"))\n charAt = \" \";\n name += charAt.toLowerCase();\n }\n }\n return name;\n }",
"String[] getParts();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"String getName() ;",
"public java.lang.String getName();",
"private String getSplitNames(String className){\n String nameSplited = \"\";\n\n for (String character : className.split(\"(?<!(^|[A-Z]))(?=[A-Z])|(?<!^)(?=[A-Z][a-z])\")){\n nameSplited = nameSplited + character + \" \";\n }\n\n return nameSplited;\n }",
"public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }",
"public String[] getNames(){\n \t\tString[] outStrings = new String[otherNames.length+1];\n \t\toutStrings[0] = this.name;\n\t\tfor(int i=1;i<otherNames.length;i++)\n \t\t\toutStrings[i] = this.otherNames[i-1];\n \t\treturn outStrings;\n \t}",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();",
"public String getName();"
] |
[
"0.7629371",
"0.7016057",
"0.64321303",
"0.63949746",
"0.63635653",
"0.62413764",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6176603",
"0.6137513",
"0.61293656",
"0.6106614",
"0.61056733",
"0.6081228",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357",
"0.60713357"
] |
0.7259431
|
1
|
Returns all type parts of the instance.
|
@Override
public ImmutableList<String> getTypeParts() {
return types.toImmutable();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List getTypeSpecifiers() {\n return member.getTypeSpecifiers();\n }",
"public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }",
"UsedTypes getTypes();",
"public List<Type> getAll();",
"public String[] getTypes() {\n return impl.getTypes();\n }",
"public List<? extends IType> getSubtypes()\n {\n if( _subtypes == null )\n {\n _subtypes = new ArrayList<IGosuClassInternal>();\n Set<? extends CharSequence> typeNames = getTypeLoader().getAllTypeNames();\n for( CharSequence typeName : typeNames )\n {\n IType type = TypeSystem.getByFullNameIfValid(typeName.toString());\n if (type instanceof IGosuClassInternal) {\n IGosuClassInternal gosuClass = (IGosuClassInternal) type;\n if( getOrCreateTypeReference() != gosuClass && isAssignableFrom( gosuClass ) )\n {\n _subtypes.add( gosuClass );\n }\n }\n }\n }\n\n return _subtypes;\n }",
"default List<TypeInfo> allTypes() {\n List<TypeInfo> allTypes = new LinkedList<>();\n allTypes.add(this);\n allTypes.addAll(Arrays.asList(interfaces()));\n allTypes.addAll(superClass().stream().flatMap(s -> s.allTypes().stream()).collect(Collectors.toList()));\n return allTypes;\n }",
"public Type[] types();",
"public java.util.List<String> getInstanceTypes() {\n if (instanceTypes == null) {\n instanceTypes = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return instanceTypes;\n }",
"public String[] getTypes() {\n/* 388 */ return getStringArray(\"type\");\n/* */ }",
"public List<TypeInfo> getTypes() {\r\n return types;\r\n }",
"List<ITypeDescriptor> getSubTypes(String type) throws StoreException;",
"public List<SecTyp> getAllTypes();",
"public List<TypeMetadata> getTypeMetadata() {\n return types;\n }",
"@Override\n public List<Type> getProperlySubsumedTypes(Type type) {\n return ((TypeImpl) type).getAllSubtypes().collect(Collectors.toList());\n }",
"public TypeElement<?>[] getTypeElements() {\n\t\t\treturn (this.TypeElements.size() == 0)\n\t\t\t\t\t?EmptyTypeElements\n\t\t\t\t\t:this.TypeElements.values().toArray(EmptyTypeElements);\n\t\t}",
"@Override\n public Vector<Type> getDirectlySubsumedTypes(Type type) {\n return new Vector<>(getDirectSubtypes(type));\n }",
"@Override\r\n\tpublic List<Type> getTypes() {\n\t\treturn (List<Type>)BaseDao.select(\"select * from type\", Type.class);\r\n\t}",
"@Override\n\tpublic List<Type> listType() {\n\t\treturn goodsDao.listType();\n\t}",
"java.util.List<org.mojolang.mojo.lang.NominalType> \n getInheritsList();",
"List<Type> getAllTypeList();",
"public List<TypeObjet> getTypesObjets() {\n\t\treturn null;\n\t}",
"static private PowerlessArray<String>\n types(final Class<?> actual) {\n final Class<?> end =\n Struct.class.isAssignableFrom(actual) ? Struct.class : Object.class;\n final PowerlessArray.Builder<String> r = PowerlessArray.builder(4);\n for (Class<?> i=actual; end!=i; i=i.getSuperclass()) { ifaces(i, r); }\n return r.snapshot();\n }",
"private Collection<TypeDeclaration> getAllTypes() {\n if (allTypes != null) {\n return allTypes;\n }\n allTypes = new ArrayList<TypeDeclaration>();\n for (Symbol s : getMembers(false)) {\n allTypes.add(env.declMaker.getTypeDeclaration((ClassSymbol) s));\n }\n return allTypes;\n }",
"public java.util.List<Type> getType() { \n\t\tif (myType == null) {\n\t\t\tmyType = new java.util.ArrayList<Type>();\n\t\t}\n\t\treturn myType;\n\t}",
"public String getPartString() { return \"Type\"; }",
"public ArrayList<String> getTypes(){\n return this.types;\n }",
"public List<InstanceType> listInstanceTypes() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(InstanceType.class);\n\t}",
"public List<Type> getTypeList() {\n\t\treturn sm.selectList(\"com.lanzhou.entity.Longpay.getTypeList\");\n\t}",
"public List<? extends TypeMirror> getTypeMirrors() {\n/* 83 */ return this.types;\n/* */ }",
"public List<CWLType> getTypes() {\n return types;\n }",
"public Set<TypeDescriptor> getAllRelatedTypes() {\n final var types = getTypeParameters().stream()\n .flatMap(type -> type.getAllRelatedTypes().stream())\n .collect(Collectors.toCollection(HashSet::new));\n\n types.add(this);\n return types;\n }",
"public Iterator getTypes() {\r\n\t\treturn types == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(types.values());\r\n\t}",
"@Override\n\tpublic List<FoodType> FindAllType() {\n\t\treturn ftb.FindAllType();\n\t}",
"@Override\r\n\tpublic Vector<Integer> getTypes() {\n\t\treturn this.types;\r\n\t}",
"public org.semanticwb.model.GenericIterator<org.semanticwb.model.ResourceSubType> listSubTypes()\r\n {\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.ResourceSubType>(getSemanticObject().listObjectProperties(swb_hasPTSubType));\r\n }",
"@Override\r\n\tpublic List<Type> selectType() {\n\t\treturn gd.selectType();\r\n\t}",
"ISourceType[] getMemberTypes();",
"public Iterator<IEventType<T>> getDeepSuperTypes();",
"public String[] getDataTypes(T2 ob) {\n\t\tString[] s = null;\t\t\r\n\t\tjava.lang.reflect.Field[] f1=ob.getClass().getDeclaredFields(); \r\n\t\ts=new String[f1.length];\r\n\t\tfor(int i=1;i<f1.length;i++)\r\n\t\t{\r\n\t\tSystem.out.println(f1[i].getType().toString());\t\r\n\t\ts[i]=f1[i].getType().toString();\t\t\r\n\t\t}\t\r\n\t\treturn s;\r\n\t}",
"List<Type> getTypeList(String type);",
"Set<String> getBaseTypes();",
"private static <T> Collection<Class<?>> getClassHierarchy(T instance) {\n Collection<Class<?>> hierarchy = new LinkedList<>();\n Class<?> clazz = (Class<?>) instance;\n while (clazz != null) {\n hierarchy.add(clazz);\n clazz = clazz.getSuperclass();\n }\n return hierarchy;\n }",
"List<? extends HasListBox> getAllDataTypes();",
"public Collection getAllAuxClasss();",
"public List<TypeArgument> getTypeArguments() {\n return typeArguments;\n }",
"@Override\n public String getFullType() {\n return fullType;\n }",
"public List<TypeArg> typeArgs()\n {\n return typeArgs;\n }",
"@Override\r\n\tpublic List<HouseType> queryAllHtype() {\n\t\treturn adi.queryAllHtype();\r\n\t}",
"List<Type> getTypeParameters();",
"@Override\r\n\tpublic List<IPrintable> getStructureParts() {\n\t\treturn null;\r\n\t}",
"public List<Installation> serchInstPlaceType() {\r\n List<Installation> list = new ArrayList<Installation>();\r\n try {\r\n init();\r\n\r\n // Start UOC\r\n InstPlaceTypeDao dao = new InstPlaceTypeDao(conn);\r\n list = dao.getTypeList();\r\n // End UOC\r\n\r\n } catch (Exception e) {\r\n handleException(e);\r\n } finally {\r\n finish();\r\n }\r\n return list;\r\n }",
"private static Stream<Class<?>> superTypes(Class<?> type) {\n Class<?>[] interfaces = type.getInterfaces();\n return Stream.concat(\n Arrays.stream(interfaces).flatMap(SqlObjectFactory::superTypes),\n Arrays.stream(interfaces));\n }",
"public Set<Type> getSubTypes() {\r\n\t\tfinal Set<Type> subTypes = this.createSubTypes();\r\n\r\n\t\tfinal Set<Type> merged = new HashSet<Type>();\r\n\t\tmerged.addAll(subTypes);\r\n\t\tmerged.addAll(this.getNewSubTypes());\r\n\r\n\t\treturn Collections.unmodifiableSet(merged);\r\n\t}",
"public List<Optype> getOptypeList() throws Exception {\n\t\treturn mapper.getOptypeList();\n\t}",
"public List<Ref<? extends Type>> typeVariables();",
"@Override\r\n\tpublic List<PartyType> findAll() {\n\t\treturn null;\r\n\t}",
"@Pure\n\tprotected TypeReferences getTypeReferences() {\n\t\treturn this.typeReferences;\n\t}",
"Collection<StructuralFeature> getTypedFeatures();",
"public List<ResourceBase> listTypes() throws ResourceException;",
"public Map<String, SkylarkModuleDoc> getTypes() {\n return types;\n }",
"TypeInfo[] typeParams();",
"public Set<AlfClass> getSpecializations()\r\n\t{\treturn Collections.unmodifiableSet(this.specializations);\t}",
"public List<ComponentType> getComponentsType() {\r\n\t\treturn ctDao.findAll();\r\n\t}",
"@Override\n\tpublic List<TypeDocument> findAll() {\n\t\treturn typeDocumentRepository.findAll();\n\t}",
"public List<ModelType> findAllModelTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?modelType WHERE {?modelType rdfs:subClassOf onto:ModelType.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllModelTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<ModelType> list = new ArrayList<ModelType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tModelType modelType = new ModelType();\r\n\t\t\t\tif (jsonObject.has(\"modelType\")) {\r\n\t\t\t\t\tmodelType.setModelTypeName(jsonObject.getJSONObject(\"modelType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(modelType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private ScriptActivityTypeProperties innerTypeProperties() {\n return this.innerTypeProperties;\n }",
"Collection<FieldType> getFieldTypes() throws TypeException, InterruptedException;",
"@SuppressWarnings(\"unchecked\")\n\t// caused by instanceof simulation\n\tprivate <T extends EObject> List<T> allSubobjectsOfKind(EObject rootObject,\n\t\t\tClass<T> type) {\n\t\tList<T> result = new LinkedList<T>();\n\t\tTreeIterator<EObject> iterator = rootObject.eAllContents();\n\t\twhile (iterator.hasNext()) {\n\t\t\tEObject eObj = iterator.next();\n\t\t\tif (eObj.getClass() == type) { // simulates instanceof\n\t\t\t\tresult.add((T) eObj);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public Collection getSpecialisation()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{\n \t\tCollection col = new ArrayList();\n \t\tcol = instance.getSpecialization(this.refMofId());\n \t\t\n \t\treturn col; \t\t\n \t}\n \n \treturn ((Uml15Package)this.refOutermostPackage()).getCore().getAParentSpecialization().getSpecialization(this);\n }",
"java.util.List<? extends org.mojolang.mojo.lang.NominalTypeOrBuilder> \n getInheritsOrBuilderList();",
"@GET\n @Path(\"/typesByPlugin\")\n public Map<Long, List<PluginType>> getTypesByPlugin() {\n return definitionsService.getTypesByPlugin();\n }",
"@Override\n public Class<?> getObjectType() {\n return this.type;\n }",
"@GET\n @Path(\"allTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAllTypes() {\n return typesJSONResponse(_types.getAllTypes());\n }",
"public Set<Class<?>> getTypes() {\n\t\treturn dataTypes;\n\t}",
"public Set<Class<?>> getTypes() {\n\t\treturn dataTypes;\n\t}",
"public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}",
"public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}",
"public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}",
"public Set<JavaType.ClassJavaType> superTypes() {\n ImmutableSet.Builder<JavaType.ClassJavaType> types = ImmutableSet.builder();\n JavaType.ClassJavaType superClassType = (JavaType.ClassJavaType) this.superClass();\n types.addAll(this.interfacesOfType());\n while (superClassType != null) {\n types.add(superClassType);\n TypeJavaSymbol superClassSymbol = superClassType.getSymbol();\n types.addAll(superClassSymbol.interfacesOfType());\n superClassType = (JavaType.ClassJavaType) superClassSymbol.superClass();\n }\n return types.build();\n }",
"public List<Access> getTypeBounds() {\n return getTypeBoundList();\n }",
"private RoomType[] getRoomTypeStrings()\r\n\t{\r\n\t\treturn bCtrl.getAllRoomTypes().stream().toArray(RoomType[]::new);\r\n\t}",
"public List<Class<?>> getEntities(){\n\t\tList<Class<?>> result = new ArrayList<Class<?>>();\n\t\t\n//\t\tresult.add(Equipo.class);\n\t\tresult.add(Formacion.class);\n\t\tresult.add(FormacionStrategy.class);\n\t\tresult.add(Habilidad.class);\n\t\tresult.add(Jugador.class);\n\t\tresult.add(Tecnico.class);\n\t\tresult.add(Titular.class);\n//\t\tresult.add(PartidoSimple.class);\n//\t\tresult.add(PartidoDeCopa.class);\n\t\t\n\t\treturn result;\n\t}",
"@Override\n public String toString() {\n return metaObject.getType().toString();\n }",
"public ResultFormat[] getTypes() {\n\n if (types == null) {\n types = loadFormats();\n }\n return types.clone();\n }",
"public List<ResolvedType> typeParametersValues() {\n return this.typeParametersMap.isEmpty() ? Collections.emptyList() : typeDeclaration.getTypeParameters().stream().map(tp -> typeParametersMap.getValue(tp)).collect(Collectors.toList());\n }",
"List<PropertyType<?>> getPropertyTypes();",
"List<SpawnType> getSpawnTypes();",
"public abstract Class<?>[] getFormRegions();",
"public List<Set<String>> getParts() {\n\t\treturn super.getParts();\n\t}",
"@Override\n public List<BaiseeClazz> findAllClazzInfo() {\n return claMapper.findAllClazzInfo();\n }",
"@Override\n public Set<String> validTypes() {\n return factory.validTypes();\n }",
"public default List<Type> getProperDirectSuperTypes() throws LookupException {\n\t\tList<Type> result = Lists.create();\n\t\tfor(InheritanceRelation element:inheritanceRelations()) {\n\t\t\tType type = element.superType();\n\t\t\tif (type!=null) {\n\t\t\t\tresult.add(type);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"ExtensionsType getExtensions();",
"public List<BottomType> getBottomTypeList() {\n\t\treturn bottomTypeRepository.findAll();\r\n\t}",
"public ReactorResult<java.lang.String> getAllContentType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), CONTENTTYPE, java.lang.String.class);\r\n\t}",
"@GetMapping(\"/types\")\n\t@Timed\n\tpublic List<TypesDTO> getAllTypes() {\n\t\tthis.log.debug(\"REST request to get all Types\");\n\t\treturn this.typesService.findAll();\n\t}",
"public void showProperties(Class type);",
"public Set<String> getAvailableTypes() {\n return ApiSpecificationFactory.getTypes();\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<TypeRia> touslesTypeRIA() {\n\t\tList<TypeRia> T = em.createQuery(\"from TypeRia t\").getResultList();\n\t\treturn T;\n\t}"
] |
[
"0.64748585",
"0.6460436",
"0.6333992",
"0.62716866",
"0.620837",
"0.6200934",
"0.61635464",
"0.61515963",
"0.61079",
"0.60887986",
"0.60566324",
"0.6052871",
"0.6029943",
"0.60271066",
"0.596985",
"0.59597844",
"0.5948913",
"0.59261286",
"0.5877908",
"0.5876592",
"0.5872179",
"0.58547163",
"0.5851347",
"0.58040637",
"0.5796153",
"0.57898444",
"0.57838607",
"0.5764112",
"0.57274324",
"0.5725573",
"0.5702831",
"0.5677626",
"0.567249",
"0.5645807",
"0.5645712",
"0.56374574",
"0.56295526",
"0.5567087",
"0.55667377",
"0.556585",
"0.5561193",
"0.55582386",
"0.55419433",
"0.5512241",
"0.54960155",
"0.5492494",
"0.54750794",
"0.5471694",
"0.5467149",
"0.5465987",
"0.5458402",
"0.54237384",
"0.541773",
"0.5416488",
"0.5412238",
"0.540904",
"0.54089224",
"0.54081315",
"0.54062885",
"0.5402218",
"0.53941786",
"0.53776205",
"0.53704226",
"0.5367776",
"0.53578836",
"0.5353919",
"0.53387535",
"0.5335435",
"0.5329415",
"0.5320417",
"0.53164953",
"0.5297855",
"0.52967477",
"0.5287006",
"0.52798396",
"0.52798396",
"0.5271266",
"0.5271266",
"0.5271266",
"0.5270359",
"0.5268263",
"0.52653974",
"0.52633977",
"0.5261394",
"0.52565444",
"0.52473223",
"0.52458733",
"0.52457124",
"0.52442706",
"0.52420694",
"0.5238923",
"0.5232056",
"0.523047",
"0.52271485",
"0.522429",
"0.5223845",
"0.522135",
"0.5203493",
"0.5198661",
"0.51984745"
] |
0.71395767
|
0
|
Returns the unique identifier of the instance.
|
@Override
public String getUid() {
return uid;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String getInstanceID();",
"public String getInstanceIdentifier();",
"long getInstanceID();",
"public java.lang.String getInstanceGuid() {\r\n return instanceGuid;\r\n }",
"public String createUniqueScriptInstanceIdentifier() {\n\n\t\tLOGGER.debug(\"Creating a unique script instance identifier\");\n\n\t\t// generate a random name for the connection\n\t\tCalendar myCalendar = Calendar.getInstance();\n\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyyMMddHHmmssS\");\n\t\tString scriptIdentifier = \"scriptInstance\"\n\t\t\t\t+ dateFormatter.format(myCalendar.getTime())\n\t\t\t\t+ randomNameSequence;\n\t\trandomNameSequence = randomNameSequence + 1;\n\n\t\tLOGGER.info(\"Generated unique script instance identifier [\"\n\t\t\t\t+ scriptIdentifier + \"]\");\n\n\t\treturn scriptIdentifier;\n\t}",
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }",
"String getUniqueId();",
"public String getUniqueID();",
"public static String getUniqueIdentifier() {\r\n UUID uuid = UUID.randomUUID();\r\n return uuid.toString();\r\n }",
"String getUniqueID();",
"public int getId() {\n return instance.getId();\n }",
"public static String generateInstanceId() {\n\t\t// TODO Use a complex hashing algorithm and generate 16-character\n\t\t// string;\n\n\t\treturn Calendar.getInstance().getTime().toString().replaceAll(\" \", \"\");\n\t}",
"UUID id();",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"UUID getUniqueId();",
"public String getUniqueID ( ) { return _uniqueID; }",
"int getIdInstance();",
"public String getUniqueID() {\n return this.uniqueID;\n }",
"public UUID instanceId() {\n return this.instanceId;\n }",
"public String getUniqueId() {\n\t\treturn m_serverName + \" - \" + m_userId + \" - \" + m_timestampMillisecs;\n\t}",
"public String getUniqueID()\r\n {\r\n return (m_uniqueID);\r\n }",
"public String getUniqueId() {\n return getCurrentInstance().getViewRoot().createUniqueId();\n }",
"public String getIdentifier() {\n try {\n return keyAlias + \"-\" + toHexString(\n MessageDigest.getInstance(\"SHA1\").digest(keyStoreManager.getIdentifierKey(keyAlias).getEncoded()));\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public static String uniqueId() {\r\n return UUID.randomUUID().toString();\r\n }",
"public byte[] getInstanceId() {\n if (byteInstanceID == null) {\n final Device device = Device.getInstance();\n final byte[] deviceid = device.getWDeviceId();\n byteInstanceID = Encryption.SHA1(deviceid);\n }\n return byteInstanceID;\n }",
"String uniqueId();",
"public static String uniqueId() {\n return UUID.randomUUID().toString();\n }",
"UUID getId();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"public String uniqueId() {\n return this.uniqueId;\n }",
"public String getUniqueId() {\n return _uniqueId;\n }",
"protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}",
"public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}",
"public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}",
"public static String id()\n {\n return _id;\n }",
"public String getId(){\n\t\treturn uuid;\n\t}",
"public String getInstanceNumber()\n {\n return m_instanceNumber;\n }",
"public int getInstanceID()\n {\n return super.getPersistenceID();\n }",
"public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }",
"public java.lang.String getIdentifier()\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(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"@Override\n\tpublic UUID getUniqueId() {\n\t\treturn uid;\n\t}",
"public String getUuid() {\n\t\t// lazy init of UUID\n\t\tif (uuid == null) {\n\t\t\tuuid = UUID.randomUUID().toString();\n\t\t}\n\t\treturn uuid;\n\t}",
"@Schema(required = true, description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getId() {\n return id;\n }",
"@NonNull\n public final synchronized String getId() {\n if (id == null) {\n id = UUID.randomUUID().toString();\n }\n return id;\n }",
"public String getUniqueIdValue() {\n return uniqueIdValue;\n }",
"public static String aUniqueIdentifier() {\n return \"MONEXT\" + new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n }",
"public UUID getUniqueId ( ) {\n\t\treturn extract ( handle -> handle.getUniqueId ( ) );\n\t}",
"Identifier getId();",
"String getUuid();",
"private UniqueIdentifier(){\n\t\t\n\t}",
"java.lang.String getInstanceId();",
"java.lang.String getInstanceId();",
"java.lang.String getInstanceId();",
"java.lang.String getInstanceId();",
"public String getInstanceId() {\r\n\t\treturn instanceId;\r\n\t}",
"@Override\n public String getIdentifier() {\n return myIdentity.getIdentifier();\n }",
"private String generateUniqueIdString() {\r\n return TimeBasedUUID.getUUIDAsString();\r\n }",
"public String getInstanceId() {\n return this.InstanceId;\n }",
"public String getInstanceId() {\n return this.InstanceId;\n }",
"public String getInstanceId() {\n return this.InstanceId;\n }",
"public String getInstanceId() {\n return this.instanceId;\n }",
"public String getInstanceId() {\n return this.instanceId;\n }",
"public int numericName()\n {\n return Factory.getID(this);\n }",
"public String ID();",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n identifier_ = s;\n }\n return s;\n }\n }",
"String generateUID();",
"public int getUniqueID() { \n return -1;\n }",
"private String creatUniqueID(){\n long ID = System.currentTimeMillis();\n return Long.toString(ID).substring(9,13);\n }",
"@Nullable\n abstract String getInstanceId();",
"public int getInstanceId(){\n\t\treturn this._instanceId;\n\t}",
"public String RtoosGetID() \n\t{\n\t\treturn UUIDs.random().toString();\n\t}"
] |
[
"0.7974227",
"0.7918756",
"0.77689433",
"0.7642001",
"0.7590915",
"0.7580161",
"0.75744563",
"0.75338167",
"0.7510794",
"0.75075775",
"0.746668",
"0.7418938",
"0.73841023",
"0.73687804",
"0.7368192",
"0.7368192",
"0.7368192",
"0.7368192",
"0.7368192",
"0.7368192",
"0.7368192",
"0.7360744",
"0.7344399",
"0.73311496",
"0.7320874",
"0.7309727",
"0.73013085",
"0.7287497",
"0.7285148",
"0.72721106",
"0.7269803",
"0.72634774",
"0.72454137",
"0.72311896",
"0.72205377",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.7151196",
"0.71407056",
"0.7140494",
"0.7081421",
"0.70796037",
"0.7074487",
"0.70694155",
"0.70244616",
"0.6994859",
"0.69867676",
"0.69208443",
"0.69168454",
"0.6911056",
"0.69006896",
"0.68806106",
"0.68800163",
"0.6878734",
"0.6862277",
"0.68463564",
"0.6845935",
"0.68302304",
"0.6826831",
"0.68260205",
"0.68260205",
"0.68260205",
"0.68260205",
"0.6821509",
"0.68161774",
"0.68159366",
"0.68062603",
"0.68062603",
"0.68062603",
"0.6796599",
"0.6796599",
"0.6788121",
"0.67774546",
"0.67708147",
"0.6765211",
"0.67649186",
"0.6762959",
"0.6758944",
"0.6756291",
"0.6752298"
] |
0.0
|
-1
|
this is a number guessing game that have 5 trials, the more trials left the more points the player can get
|
private static int guessing() {
System.out.println("Guess a number between 1 and 100, you have 5 trials: ");
int trials = 5;
Scanner input = new Scanner(System.in);
//set a random number as the number to be guessed
int num = (int)(100 * Math.random()) + 1;
int points = 0;
//use a flag to check if player guess the correct number or not
boolean flag = false;
while ( trials > 0) {
int guess = input.nextInt();
trials--;
if ( guess == num ) {
points = trials == 0? 20 : trials * 20;
//System.out.println("You guess the number with"+trials+"trials left, congratulation! +"+ (points = trials == 0? 20 : trials * 20)+" points");
flag = true;
break;
}else if ( guess < num ) {
System.out.println("The guess is too small, please try again, you have "+trials+" trials left.");
}else {
System.out.println("The guess is too large, please try again, you have "+trials+" trials left.");
}
}
if ( !flag ) System.out.println("Trials used up, + 0 points");
return points;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Main()\n {\n \n Random rand = new Random();\n int n = rand.nextInt(10);\n n+=1;\n \n Scanner sc = new Scanner(System.in);\n int i = 0;\n do {\n \n i = sc.nextInt();\n\n //System.out.println(i);\n if(i<n){\n System.out.println(\"too small\");\n if (previousNum!=i){\n count += 1;\n }\n }\n else if(i>n){\n System.out.println(\"too big\");\n if (previousNum!=i){\n count +=1;\n }\n }\n else {\n System.out.println(\"correct guess\");\n \n count +=1;\n \n }\n \n previousNum = i;\n }while (i!=n);\n System.out.println(\"it took you \"+count+\" guesses!\");\n \n }",
"public int play(NumberGame game){\n\n System.out.println( game.toString() );\n System.out.println();\n int min = 1;\n int max = game.getUpperBound();\n int guess = min + (max - min)/2;\n while(true){\n if(game.guess(guess)){\n break;\n }else {\n\n if(game.getMessage().contains(\"small\")){\n min = guess + 1;\n }else {\n max = guess - 1;\n }\n\n guess = min + (max - min)/2;\n\n }\n\n }\n\n return guess;\n }",
"public void countPoints() {\n points = 0;\n checkAnswerOne();\n checkAnswerTwo();\n checkAnswerThree();\n checkAnswerFour();\n checkAnswerFive();\n checkAnswerSix();\n checkAnswerSeven();\n checkAnswerEight();\n checkAnswerNine();\n checkAnswerTen();\n }",
"public int play(NumberGame game) {\n\t\tboolean correct = false ; \n\t\tint guess = 0 ;\n\t\tint min = 1 ;\n\t\tint max = game.getUpperBound() ;\n\t\tdo {\n\t\tSystem.out.print(\"Your answer? \");\n\t\tguess = min+((max-min)/2); \n\t\tcorrect = game.guess(guess);\n\t\tSystem.out.println(guess);\n\t\tif(game.getMessage().equals(\"The number is too small\")) {\n\t\t\tmin = guess+1 ; \n\t\t}else if(game.getMessage().equals(\"The number is too large\")) {\n\t\t\tmax = guess-1 ;\n\t\t}\n\n\t\tSystem.out.println( game.getMessage() );\n\t\t}while(!correct);\n\t\treturn guess ;\n\t}",
"public int run() {\n\t\t// start game\n\t\t// dealers shuffle cards\n\t\tview.displayIntro();\n\t\tview.printLine();\n\t\t\n\t\tdealer.shuffleCards();\n\t\tview.printLine();\n\t\t\n\t\tint numOfCards = 0;\n\t\tint numOfRounds = 1;\n\t\t\n\t\twhile(numOfRounds < 5){\n\t\t\t// Dealer dealing cards to players\n\t\t\tview.displayRound(numOfRounds);\n\t\t\tview.printLine();\n\t\t\tnumOfRounds++;\n\t\t\t// First round --> face down for each player\n\t\t\tif(numOfCards == 0){\n\t\t\t\tfor (GamePlayerInterface player : players) {\n\t\t\t\t\t// take out card from dealer and give it to player\n\t\t\t\t\tCard card = dealer.dealCard();\n\t\t\t\t\tplayer.addCard(card);\n\t\t\t\t\tnumOfCards++;\n\t\t\t\t\t// NEED to add total and both players for current record\n\t\t\t\t\tview.updateTable(players,player);\n\t\t\t\t\tview.printLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint currentPDvalue[] = new int[2];\n\t\t\tString currentPDname[] = new String[2];\n\t\t\tString currentPDsuit[] = new String[2];\n\t\t\tint x = 0;\n\t\t\t// Second card onwards\n\t\t\t\tfor (GamePlayerInterface player : players) {\n\t\t\t\t\t// take out card from dealer and give it to player\n\t\t\t\t\tCard card = dealer.dealCard();\n\t\t\t\t\tplayer.addCard(card);\n\t\t\t\t\t\n\t\t\t\t\tcurrentPDvalue[x] = card.getValue();\n\t\t\t\t\tcurrentPDname[x] = card.getName();\n\t\t\t\t\tcurrentPDsuit[x] = card.getSuit();\n\t\t\t\t\tx++;\n\t\t\t\t\t\n\t\t\t\t\tnumOfCards++;\n\t\t\t\t\t\n\t\t\t\t\tview.updateTable(players,player);\n\t\t\t\t\tview.printLine();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check which card is higher\n\t\t\t\t\n\t\t\t\tint PDbig = 0;\n\t\t\t\tPDbig = compareBigger(currentPDvalue[0], currentPDvalue[1], currentPDsuit[0], \n\t\t\t\t\t\t\t\t\t\tcurrentPDsuit[1], currentPDname[0],currentPDname[1]);\n\t\t\t\t\n\t\t\t\t// Do any betting by either Player or Dealer\n\t\t\t\tboolean ifContinue = true;\n\t\t\t\tifContinue = displayBet(PDbig, players);\n\t\t\t\tif(!ifContinue){\n\t\t\t\t\tresult = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tview.printLine();\n\t\t}\n\t\t\n\t\t//show all player's cards (include hidden cards\n\t\tview.updateTableShowAllCards(players);\n\t\t//assume human player is always the first in the arraylist\n\t\tGamePlayerInterface player = players.get(0);\n\t\t\n\t\t//determine if human player has win\n\t\tview.printLine();\n\t\tview.print(\"Determine winning\");\n\t\t\n\t\tresult = determineWinning(player, dealer);\n\t\tint totalChips = players.get(0).getChips();\n\t\t\n\t\tswitch(result){\n\t\tcase 0: totalChips = (players.get(0).getChips()) + (betOnTable/2);\n\t\t\t\tplayers.get(0).setChips(totalChips);\n\t\t\t\treturn totalChips;\n\t\tcase 1: break;\n\t\tcase 2:\ttotalChips = (players.get(0).getChips()) + betOnTable;\n\t\t\t\tplayers.get(0).setChips(totalChips);\n\t\t\t\treturn totalChips;\n\t\tdefault: view.print(\"Only 3 possibilities. Contact admin for assistance!\");\n\t\t}\n\t\tview.printChips(totalChips);\n\t\tview.print(\"End of Game\");\n\t\t//end of one game\n\t\t\n\t\t// Remove cards from previous arrays and re-add to original deck\n\t\tfor(GamePlayerInterface p : players){\n\t\t\trecreateDeck(p);\n\t\t}\n\t\t\n\t\t// initially, return result\n\t\treturn totalChips;\n\t}",
"public static int greedy(int[] dice){\n int[] count = new int[5];\n // so inversely the variable for each score => count[score-1]\n // I handled the count process with a foreach loop\n // it iterates the values of the given array, checks scores and assigns count using a switch case\n for (int score: dice) {\n switch (score){\n case 1 -> count[0]++;\n case 2 -> count[1]++;\n case 3 -> count[2]++;\n case 4 -> count[3]++;\n case 5 -> count[4]++;\n case 6 -> count[5]++;\n }\n } \n\n // > CHECKING IF THERE'S A COUNT OF 3 AND ASSIGNING POINTS\n // A variable to hold the points is needed\n int points = 0;\n //check if there is a count of 3 in the count array, using a fori loop to keep track of the score value being iterated\n for (int i = 0, score = i+1 ; i < count.length; i++) {\n //if found\n if(count[i] > 2){\n // assign points\n // * points system for 3 occurrences\n // Three 1's => 1000 points\n // Three 6's => 600 points\n // Three 5's => 500 points\n // Three 4's => 400 points\n // Three 3's => 300 points\n // - score 1's point is a special case\n // - for the rest, points awarded = score*100\n if(score == 1){\n points += 1000;\n count[i] -= 3;\n }else{\n points += (score *100);\n count[i] -= 3;\n }\n }\n }\n\n // > CHECKING IF THE SCORE 1 AND 5 HAVE OCCURRENCES > 0 AND ASSIGNING POINTS IF TRUE\n //if true\n if(count[0] > 0)\n points += (100* count[0]);\n if(count[4] > 0)\n points += (50 * count[4]);\n return points;\n }",
"public static void startGame(Scanner console){\r\n // 1. generate new game ans the random number\r\n GuessFourDigits guess = new GuessFourDigits(4);\r\n \r\n System.out.println(\"Welcome to GuessDigits\"); \r\n System.out.println(\"-----------------------------------------\");\r\n System.out.println(\"guess the right sequence of digits in \"+guess.NUMBER_LENGTH+ \"digits number.\");\r\n System.out.println(\"with each try there will be tipp about result\");\r\n System.out.println(\"-----------------------------------------\");\r\n \r\n // declaring and initialization of loop flag\r\n boolean tipp = false;\r\n \r\n //counter of tries\r\n int counterTry = 0;\r\n \r\n do{\r\n // 2. asking User to guess\r\n System.out.println(\"Your guess: \");\r\n String usersNumber = UserInput.askUserToInsert(console);\r\n \r\n // 2a. check validity of inserted number\r\n if(!guess.validityCheckOfNumber(usersNumber)){\r\n System.out.println(\" inserted number is not valid+\\n\"\r\n + \" a 4 digit positive number, no digit repeated.\");\r\n continue;\r\n }\r\n \r\n // if inserted nummer valid, tipp counter goes up\r\n counterTry++;\r\n \r\n // 3. comparing numbers\r\n int[] comparingNum = guess.compareTheNumbers(usersNumber);\r\n \r\n // 4. giving tipps and congratulating user\r\n if(comparingNum[0] == guess.NUMBER_LENGTH){\r\n //user wins\r\n System.out.println(\"Congrats, you reach \"+usersNumber+\" in \"\r\n + counterTry+ \" tries.\\n\");\r\n tipp = true;\r\n }else{\r\n // tipp to user\r\n System.out.println(\"right number at right position: \"\r\n +comparingNum[0]+ \" right number at wrong position: \"\r\n + comparingNum[1]+ \"\\n\");\r\n }\r\n \r\n \r\n \r\n }while(!tipp);\r\n \r\n }",
"public static void main(String[] args) {\n\t\tint computerNum = (int)(Math.random()*100) + 1; \r\n\t\t//Code generates a decimal -> multiple by 100 to make it a whole number ->\r\n\t\t//use int to convert to integer to cut off decimal\r\n\t\tint userGuess = -100;\r\n\t\tint guessCount = 0;\r\n\t\twhile (userGuess != computerNum && userGuess != -1) {\r\n\t\t\tString input = JOptionPane.showInputDialog(null, \"This is a number guessing game. \"\r\n\t\t\t\t\t+ \"\\nPlease guess a whole number between 1 and 100.\");\r\n\t\t\tuserGuess = Integer.parseInt(input);\r\n\t\t\t//JOptionPane.showMessageDialog(null, \"Your guess was \" + userGuess + \".\");\r\n\t\t\tif (userGuess == -1){\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You have chosen to leave the program.\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\telse if (userGuess < 0 || userGuess > 100){\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Your number is invalid.\"\r\n\t\t\t\t\t\t+ \" Please enter a number between 1 and 100.\");\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if (userGuess > computerNum){\r\n\t\t\t\tif (userGuess - 10 <= computerNum) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess a little too high, \"\r\n\t\t\t\t\t\t\t+ \" but within 10 of the number! Guess a little lower.\");\r\n\t\t\t\t\t//guessCount ++; \r\n\t\t\t\t\t//return guessCount;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess was too high! \"\r\n\t\t\t\t\t\t\t+ \"Make a lower guess.\");\r\n\t\t\t\t\t//guessCount ++;\r\n\t\t\t\t}\r\n\t\t\t\tguessCount ++;\r\n\t\t\t}\r\n\t\t\telse if (userGuess < computerNum) {\r\n\t\t\t\tif (userGuess + 10 >= computerNum) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your guess was a little too low, \"\r\n\t\t\t\t\t\t\t+ \"but within 10 of the number! Guess a little higher.\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tJOptionPane.showConfirmDialog(null, \"Your guess was too low!\"\r\n\t\t\t\t\t\t\t+ \" Make a higher guess.\");\t\r\n\t\t\t\t}\r\n\t\t\t\tguessCount ++;\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Yay! You guessed correctly!\");\r\n\t\t\t}\r\n\t\t\t//JOptionPane.showMessageDialog(null, \"# = \" + computerNum +\r\n\t\t\t\t\t//\"# of guesses = \" + guessCount);\r\n\t\t}\r\n\t\tJOptionPane.showMessageDialog(null, \"The random number was: \" + computerNum +\r\n\t\t\t\t\"\\nIt took you \" + guessCount + \" guesses.\");\r\n\r\n\t}",
"public static void main(String[] args){\n \n //\"Declaring\" local variables for use later in the method.\n String firstName, lastName;\n int goalNumber, userGuess, countGuesses, ranNum;\n int triangleHeight;\n Scanner keyboardReader = new Scanner(System.in);\n \n //Get the user's name.\n System.out.print(\"Enter your first and last name: \");\n firstName = keyboardReader.next();\n lastName = keyboardReader.next();\n \n //Display a marquee with a personalized greeting.\n drawBorder(40, '*');\n printWelcome(firstName, lastName);\n drawBorder(40, '*');\n \n //Explain the game.\n printGameIntro(firstName);\n \n //Set up the game.\n goalNumber = (int)(1 + 20 * Math.random());\n countGuesses = 1;\n \n //Get the first guess.\n drawBorder(40, '*');\n System.out.print(\"Enter guess #\" + countGuesses + \": \");\n userGuess = keyboardReader.nextInt();\n \n //Loop until the user correctly guesses.\n while(userGuess != goalNumber){\n \n //Give advice to the user.\n if(userGuess < goalNumber){\n System.out.println(\"Too low. Guess higher.\");\n }\n else{\n System.out.println(\"Too high. Guess lower.\");\n }\n \n countGuesses = countGuesses + 1;\n \n System.out.print(\"Enter guess #\" + countGuesses + \": \");\n userGuess = keyboardReader.nextInt();\n \n } //end of while loop.\n \n //User wins if it takes fewer than 5 guesses.\n if(countGuesses < 5){\n System.out.print(\"Congratulations \" + firstName + \", \");\n System.out.println(\"you got it in \" + countGuesses + \" tries.\");\n System.out.println(\"You are a good guesser.\");\n }\n else{\n System.out.print(\"OK \" + firstName + \", \");\n System.out.println(\"you got it, but took 5 or more tries.\");\n }\n \n //Some artwork:\n drawBorder(40, '*');\n System.out.println(\"And now, we bring you a triangle of money!\");\n ranNum = (int)(1 + 10 * Math.random());\n triangleHeight = ranNum;\n \n //Display the triangle:\n for(int rowCount = 1; rowCount <= triangleHeight; rowCount++){\n drawBorder(rowCount, '$');\n }\n \n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Welcome to the very generic game of...Guess the Number!\");\r\n\t\t\r\n\t\tScanner difficultyChoice = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Select parameters below. 1 = 1-15, 2 = 1-25, and 3 = 1-50\");\r\n\t\t\r\n\t\tString choice = difficultyChoice.nextLine();\r\n\t\t\r\n\t\tint selection = 0;\r\n\t\t\r\n\t\tdo {\r\n\t\t\tif(choice.equals(\"1\")){\r\n\t\t\t\tselection = 1;\r\n\r\n\t\t\t} else if(choice.equals(\"2\")) {\r\n\t\t\t\tselection = 2;\r\n\r\n\t\t\t} else if(choice.equals(\"3\")) {\r\n\t\t\t\tselection = 3;\r\n\t\t\t}\r\n\t\t\tif(selection == 0) {\r\n\t\t\t\tSystem.out.println(\"Invalid entry. Please try again. Remember* 1 for 1-25, 2 for 1-50, and 3 for 1-100\");\r\n\t\t\t\tchoice = difficultyChoice.nextLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t} while(selection ==0);\r\n\t\t\r\n\t\tRandom computerNumber = new Random();\r\n\r\n\t\tint randomNum = 0;\r\n\r\n\t\tif(selection == 1){\r\n\r\n\t\t\tfor(int counter=1; counter<=1; counter++) {\r\n\t\t\t\trandomNum = 1+computerNumber.nextInt(15);\r\n\t\t\t\tSystem.out.println(\"The computer has chosen a number 1-15. You have 3 guesses. If your third guess is incorrect, you lose.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif(selection == 2){\r\n\r\n\t\t\tfor(int counter=1; counter<=1; counter++) {\r\n\t\t\t\trandomNum = 1+computerNumber.nextInt(25);\r\n\t\t\t\tSystem.out.println(\"The computer has chosen a number 1-25. You have 3 guesses. If your third guess is incorrect, you lose.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif(selection == 3){\r\n\r\n\t\t\tfor(int counter=1; counter<=1; counter++) {\r\n\t\t\t\trandomNum = 1+computerNumber.nextInt(50);\r\n\t\t\t\tSystem.out.println(\"The computer has chosen a number 1-50. You have 3 guesses. If your third guess is incorrect, you lose.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint guessTotal = 0;\r\n\r\n\t\tRandom RandomNum = computerNumber; \r\n\r\n\t\tScanner playerGuess1 = new Scanner(System.in);\r\n\r\n\t\tSystem.out.println(\"Please enter your first guess on the line below: \");\r\n\r\n\t\tint guess1 = playerGuess1.nextInt();\r\n\r\n\t\tif(guess1 == randomNum) {\r\n\t\t\tSystem.out.println(\"Correct, you guessed the right number on your first try!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tif(guess1 != randomNum) {\r\n\t\t\tguessTotal = 1;\r\n\t\t\tSystem.out.println(\"The number you guessed is incorrect (guesses remaining = 2)\");\r\n\t\t\tif(guess1 > randomNum) {\r\n\t\t\t\tSystem.out.println(\"The number you guessed was greater than the computer's number\");\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tif(guess1 < randomNum) {\r\n\t\t\t\t\tSystem.out.println(\"The number you guessed was less than the computer's number\");\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tScanner playerGuess2 = new Scanner(System.in);\r\n\t\tSystem.out.println(\"\t\t\t\t\t\t\t\t\t\t\t\t\");\r\n\r\n\t\tSystem.out.println(\"Please enter your second guess on the line below: \");\r\n\r\n\t\tint guess2 = playerGuess2.nextInt();\r\n\r\n\t\tif(guess2 == randomNum) {\r\n\t\t\tSystem.out.println(\"Correct, you guessed the right number on your second try!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\tif(guess2 != randomNum) {\r\n\t\t\tguessTotal = 2;\r\n\t\t\tSystem.out.println(\"The number you guessed is incorrect (guesses remaining = 1)\");\r\n\t\t\tif(guess2 > randomNum) {\r\n\t\t\t\tSystem.out.println(\"The number you guessed was greater than the computer's number\");\r\n\t\t\t} else {\r\n\t\t\t\tif(guess2 < randomNum) {\r\n\t\t\t\t\tSystem.out.println(\"The number you guessed was less than the computer's number\");\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tScanner playerGuess3 = new Scanner(System.in);\r\n\t\tSystem.out.println(\"\t\t\t\t\t\t\t\t\t\t\t\t\");\r\n\r\n\t\tSystem.out.println(\"Please enter your third guess on the line below: \");\r\n\r\n\t\tint guess3 = playerGuess3.nextInt();\r\n\r\n\t\tif(guess3 == randomNum) {\r\n\t\t\tSystem.out.println(\"Correct, you guessed the right number on your third try!\");\r\n\t\t}\r\n\r\n\t\tif(guess3 != randomNum) {\r\n\t\t\tguessTotal = 3;\r\n\t\t\tSystem.out.println(\"The number you guessed is incorrect (guesses remaining = 0) Game over!\");\r\n\t\t\t/*if(guess3 > randomNum) {\r\n\t\t\t\tSystem.out.println(\"The number you guessed was greater than the computer's number\");\r\n\t\t\t} else {\r\n\t\t\t\tif(guess3 < randomNum) {\r\n\t\t\t\t\tSystem.out.println(\"The number you guessed was less than the computer's number\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\t*/\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\t\t\t\t\t\t\t\t\t\");\r\n\t\t\tSystem.out.println(\"The correct number was \" + randomNum);\r\n\t\t}",
"public static void main(String[] args){\n Scanner keyboard = new Scanner(System.in);\n //declare variables for the answer, user's guess, and number fo guesses\n int answer;\n int guess;\n int numOfGuess = 0;\n \n boolean done = false;\n answer = (int)(100*Math.random())+1;\n \n //print an introduction that tells the user how to play this game\n System.out.println(\"Hello user! I will generate a number between 1-100 inclusive and you will try to guess it! I will tell you if your answer is too low or too high after each incorrect guess!\");\n do \n {\n System.out.print(\"Please enter your guess:\");\n guess = keyboard.nextInt();\n if (guess > answer){\n System.out.println(\"Too high!\");\n }\n else if( guess < answer){\n System.out.println(\"Too low!\");\n }\n else{\n done = true;\n }\n numOfGuess += 1;\n } while (done == false);\n \n System.out.println(\"Congratulations! You're score is \" + numOfGuess);\n if (numOfGuess >= 20){\n System.out.println(\"Rating: You are terrible at this game!\");\n }\n else if (numOfGuess >= 10 && numOfGuess <=19){\n System.out.println(\"Rating: You need more practice!\");\n }\n else if (numOfGuess >= 5 && numOfGuess <= 9){\n System.out.println(\"Rating: Not too bad, But can you get it in fewer than 5 guesses?\");\n }\n else if (numOfGuess >= 2 && numOfGuess <= 4){\n System.out.println(\"Rating: AWESOME. You win a trip to Hawaii!\");\n }\n else{\n System.out.println(\"Rating: That was pure LUCK and you know it!\");\n }\n \n }",
"public int play(NumberGame game) {\n\t\tint max = game.getUpperBound();\n\t\tint min = 0;\n\t\tint ans;\n\t\tboolean check = false;\n\t\tdo {\n\t\t\tans = (max + min) / 2;\n\t\t\tcheck = game.guess(ans);\n\t\t\tif (game.getMessage().contains(\"small\")) min = ans;\n\t\t\telse if (game.getMessage().contains(\"large\")) max = ans;\n\t\t} while (!check);\n\t\treturn ans;\n\t}",
"public static void main(String[] args) {\n //Calculate the optimal number of guesses\n int OPTIMALGUESSCNT = getlog(UPPERBOUND,10);\n\n //Begin game\n System.out.println(\"This is the High Low Game. You WILL have fun.\");\n\n //Print Name\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter your name or be annihilated: \");\n\n String name = validateInputStr();\n if (name.isEmpty()) {\n System.out.println(\"You didn't enter a name. You must be Nobody. Glad I'm not a cyclops, haha jk, unless...\\nHello Player 1.\");\n }\n System.out.printf(\"Hello %s\\n\", name);\n\n boolean playAgain = false;\n int total_guesses = 0;\n short num_games = 0;\n do { //setup each game\n int game_guesses = 0;\n int secretNum = getSecretNum(Integer.parseInt(\"BEEF\",16));\n int guess = -1;\n int prev_guess = -1;\n while (guess != secretNum) { //A single game seshion\n Scanner scanGuess = new Scanner(System.in);\n System.out.println(\"Guess a number between 0 and 100: \");\n guess = validateInput();\n ++game_guesses;\n if (guess > UPPERBOUND || guess <= 0) {\n System.out.println(\"Your guess wasn't even in the range given!\");\n }\n if (guess > secretNum) {\n if (prev_guess != -1 && guess >= prev_guess && prev_guess >= secretNum) {\n System.out.println(\"You incorrectly guessed even higher this time! Lower your angle of attack!\");\n }\n System.out.println(\"You guessed too high.\");\n prev_guess = guess;\n }\n else if (guess < secretNum) {\n if (prev_guess != -1 && guess <= prev_guess && prev_guess <= secretNum) {\n System.out.println(\"You incorrectly guessed even lower this time! Aim high airman!\");\n }\n System.out.println(\"You guessed too low.\");\n prev_guess = guess;\n }\n else {\n //The game has effectively ended -> List Win Possibilities\n selectWinOption(game_guesses, OPTIMALGUESSCNT);\n //Check whether to play again\n boolean goodInput = false;\n while (!goodInput) {\n System.out.println(\"Would you like to play again? Enter yes (y) or no (n): \");\n Scanner clearBuff = new Scanner(System.in);\n String raw_playAgain = \"\";\n raw_playAgain = validateInputStr();\n //check input (I didn't feel like using Patterns\n if (raw_playAgain.equalsIgnoreCase(\"yes\") || raw_playAgain.equalsIgnoreCase(\"y\")) {\n playAgain = true;\n goodInput = true;\n }\n else if (raw_playAgain.equalsIgnoreCase(\"no\") || raw_playAgain.equalsIgnoreCase(\"n\")) {\n playAgain = false;\n goodInput = true;\n }\n else {\n System.out.println(\"Enter valid input! Ahhhh.\");\n }\n } //end check play again input\n }\n }\n System.out.println(\"You had \" + game_guesses + \" guesses during this game.\\n\\n\");\n total_guesses += game_guesses;\n ++num_games;\n }while(playAgain);\n\n printEndDialogue(total_guesses, num_games, OPTIMALGUESSCNT);\n }",
"public static void main(String[] args) {\n\t\tint randNum,num;\n\t\tGuessGame player=new GuessGame();\n\t\twhile(true) {\n\t\t\t//生成随机数\n\t\t\trandNum=player.RandomNum();\t\n\t\t\tSystem.out.println(\"请输入你猜的数字(你只有3次机会)\");\n\t\t\tfor(int i=3;i>0;i--) {\n\t\t\t\tnum=player.inputNum();\n\t\t\t\tif(player.isTrue(randNum, num)) {\n\t\t\t\t\tSystem.out.println(\"你猜对了,你的得分是:\"+player.counter);\n\t\t\t\t\tbreak;\n\t\t\t\t}else {\n\t\t\t\t\tif(i-1!=0)\n\t\t\t\t\t\tSystem.out.println(\"你猜错了,你还有\"+(i-1)+\"次机会\");\n\t\t\t\t\t\t\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"你猜错了,已经没有机会了。\");\n\t\t\t\t\t\tSystem.out.println(\"最终得分:\"+player.counter);\n\t\t\t\t\t\tSystem.out.println(\"随机数为:\"+randNum);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"游戏结束,按“1”,重玩,按“0”退出\");\n\t\t\tif(player.inputNum()==0)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tplayer.counter=0;//重置分数为0\t\t\t\n\t\t}\t\t\n\t}",
"public void testAltScoring() throws Exception {\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20\n \"2,1,A,3,Yes\", // 3 (Minute points for 1st Yes count)\n \"3,1,A,5,No\", // 20 (a No on a solved problem)\n \"4,1,A,7,Yes\", // zero (only \"No's\" count)\n \"5,1,A,9,No\", // 20 (another No on the solved problem)\n \n \"6,1,B,11,No\", // zero (problem has not been solved)\n \"7,1,B,13,No\", // zero (problem has not been solved)\n \n \"8,2,A,30,Yes\", // 30 (Minute points for 1st Yes)\n \n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n\n // Rank TeamId Solved Penalty\n \n // alt1: 0 0 200\n \n String[] alt1rankData = {\n \"1,team1,1,200\",\n \"2,team2,1,200\", // tie-breaker causes rank 2\n };\n \n scoreboardTest (2, runsData, alt1rankData, alt1);\n // alt2: 30 5 0\n String[] alt2rankData = {\n \"1,team1,1,45\", // 1 no@30 each + 3 min * 5\n \"2,team2,1,150\", // 5*30\n };\n \n scoreboardTest (2, runsData, alt2rankData, alt2);\n \n // alt3: 0 10 0\n String[] alt3rankData = {\n \"1,team1,1,30\", // 3 min * 10\n \"2,team2,1,300\", // 30 min * 10\n };\n \n scoreboardTest (2, runsData, alt3rankData, alt3);\n \n // alt4: 5 0 20\n String[] alt4rankData = {\n \"1,team2,1,20\", // base yes\n \"2,team1,1,25\", // base yes + 1 no\n };\n \n scoreboardTest (2, runsData, alt4rankData, alt4);\n\n }",
"public int trickWinner(){\n Card.NUMBER one = player1Play.getValue();\n Card.NUMBER two = player2Play.getValue();\n Card.NUMBER three = player3Play.getValue();\n Card.NUMBER four = player4Play.getValue();\n Card.SUIT oneSuit = player1Play.getSuit();\n Card.SUIT twoSuit = player2Play.getSuit();\n Card.SUIT threeSuit = player3Play.getSuit();\n Card.SUIT fourSuit = player4Play.getSuit();\n int[] value = new int[4];\n value[0] = Card.getValsVal(one, oneSuit, currentTrumpSuit);\n value[1] = Card.getValsVal(two, twoSuit, currentTrumpSuit);\n value[2] = Card.getValsVal(three, threeSuit, currentTrumpSuit);\n value[3] = Card.getValsVal(four, fourSuit, currentTrumpSuit);\n if(player1Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[0] += 10;\n }\n if(player2Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[1] += 10;\n }\n if(player3Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[2] += 10;\n }\n if(player4Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[3] += 10;\n }\n if(player1Play.getSuit() == currentTrumpSuit || value[0] == 7){\n value[0] += 20;\n }\n if(player2Play.getSuit() == currentTrumpSuit || value[1] == 7){\n value[1] += 20;\n }\n if(player3Play.getSuit() == currentTrumpSuit || value[2] == 7){\n value[2] += 20;\n }\n if(player4Play.getSuit() == currentTrumpSuit || value[3] == 7){\n value[3] += 20;\n }\n int winner = 0;\n int winVal = 0;\n for(int i = 0; i < 4; i++){\n if(value[i] > winVal){\n winVal = value[i];\n winner = i;\n }\n }\n return winner;\n }",
"public void game(int set1hometeampoints, int set2hometeampoints,\n int set3hometeampoints, int set4hometeampoints, int set5hometeampoints,\n int set1awayteampoints, int set2awayteampoints, int set3awayteampoints, \n int set4awayteampoints, int set5awayteampoints)\n { \n if (set1hometeampoints == 21){\n setsWonHT ++;\n } else if(set1awayteampoints == 21){\n setsWonAT ++; \n } \n if (set2hometeampoints == 21){\n setsWonHT ++;\n } else if(set2awayteampoints == 21){\n setsWonAT ++; \n } \n if (set3hometeampoints == 21){\n setsWonHT ++;\n } else if(set3awayteampoints == 21){\n setsWonAT ++; \n }\n if (set4hometeampoints == 21){\n setsWonHT ++;\n } else if(set4awayteampoints == 21){\n setsWonAT ++; \n } \n if (set5hometeampoints == 15){\n setsWonHT ++;\n } else if(set5awayteampoints == 15){\n setsWonAT ++; \n }\n }",
"public void gamblerGame(int stake,int trials,int goal){\r\n\t\tint bets=0;\r\n\t\tint wins=0,loose=0;\r\n\t\tint cashPrice = stake;\r\n\t\tfor(int i=0;i<trials;i++)\r\n\t\t{\r\n\t\t\tif ((cashPrice > 0) && (cashPrice < goal)) {\t\r\n\t\t\t\tbets++;\r\n\t\t\t\tif (Math.random() > 0.5){\r\n\t\t\t\t\tcashPrice++;\r\n\t\t\t\t wins++;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcashPrice--;\r\n\t\t\t\t loose++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tSystem.out.println(wins+\"wins of trials:\"+trials);\r\n\t\tSystem.out.println(loose+\"loose of trials\"+trials);\r\n\t\tSystem.out.println(\"% of wins:-\"+(wins*100)/trials);\r\n\t\tSystem.out.println(\"% of loose:-\"+(loose*100)/trials);\r\n\t\t}",
"public static void main(String[] args) {\n int randomValue = (int) (100 * Math.random() + 1);\n /*Inicializamos una variable de tipo entero con un valor de 5 que\n * representará los intentos que tiene el usuario para adivinar el número*/\n int lives = 5;\n\n /*Pedimos por consola que el usuario escriba un número (primer intento)*/\n Scanner input = new Scanner(System.in);\n System.out.println(\"You have \" + lives + \" lives. Good luck!\");\n System.out.println(\"Try to guess the number:\");\n int inputNumber = input.nextInt();\n\n /*A partir del segundo intento se irá pidiendo al usuario que añada un número cada vez que no acierte,\n * mostrando algunos mensajes sobre las vidas que le quedan y si el número añadido es más grande o más\n * pequeño que el número que debe adivinar*/\n while (lives > 0) {\n lives--;\n if (lives == 0) {\n System.out.println(\"You died.\");\n break;\n }\n if (inputNumber > randomValue) {\n System.out.println(inputNumber + \" Your number is too big:\");\n System.out.println(\"Remaining lives: \" + lives);\n System.out.println(\"Try to guess the number:\");\n inputNumber = input.nextInt();\n }\n if (inputNumber < randomValue) {\n System.out.println(inputNumber + \" Your number is too small:\");\n System.out.println(\"Remaining lives: \" + lives);\n System.out.println(\"Try to guess the number:\");\n inputNumber = input.nextInt();\n }\n if (inputNumber == randomValue) {\n System.out.println(\"Good job! You are right!\");\n System.out.println(\"You wrote \" + inputNumber + \" and the number is \" + randomValue);\n System.out.println(\"Remaining lives: \" + lives);\n break;\n }\n }\n }",
"int getTries();",
"public int tripsTest()\n\t{\n\t\tboolean trips = false;\n\t\tint index = 0, confirm = -1;\n\t\t\n\t\twhile (index<(hand.length-2) && (!trips))\n\t\t{\n\t\t\tif ((intRep[index] == intRep[index+1]) &&\n\t\t\t\t(intRep[index+1] == intRep[index+2]) &&\n\t\t\t\t(intRep[index] == intRep[index+2]) )\n\t\t\t{\n\t\t\t\thandScore = 30000;\n\t\t\t\thandScore += 3 * (100 * intRep[index]);\n\t\t\t\ttrips = true;\n\t\t\t\tconfirm = index;\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\tif (trips)\n\t\t{\n\t\t\tswitch(index)\n\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\thandScore += (intRep[3] + intRep[4]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\thandScore += (intRep[0] + intRep[4]);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\thandScore += (intRep[0] + intRep[1]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn confirm;\n\t}",
"public static boolean processScoring() {\r\n\t\tboolean done = true;\r\n\t\tint player1Tricks = 0;\r\n\t\tint player2Tricks = 0;\r\n\t\tint player3Tricks = 0;\r\n\t\tint player4Tricks = 0;\r\n\t\t\r\n\t\t//Gets the data for three players.\r\n\t\tplayer1Tricks = FrameUtils.player1TricksTaken.getSelectedIndex();\r\n\t\tplayer2Tricks = FrameUtils.player2TricksTaken.getSelectedIndex();\r\n\t\tplayer3Tricks = FrameUtils.player3TricksTaken.getSelectedIndex();\r\n\r\n\t\t//Gets the tricks taken if playing with four players.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tplayer4Tricks = FrameUtils.player4TricksTaken.getSelectedIndex();\r\n\t\t}\r\n\r\n\t\t//Check if all the choice boxes have been selected.\r\n\t\tif (player1Tricks == -1 || player1Tricks == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\tif (player2Tricks == -1 || player2Tricks == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\tif (player3Tricks == -1 || player3Tricks == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\t\r\n\t\t//Don't check fourth player if playing three handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (player4Tricks == -1 || player4Tricks == 0) {\r\n\t\t\t\tdone = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Get the value of three players tricks taken.\r\n\t\tplayer1Tricks = stringToInt(FrameUtils.player1TricksTaken.getSelectedItem());\r\n\t\tplayer2Tricks = stringToInt(FrameUtils.player2TricksTaken.getSelectedItem());\r\n\t\tplayer3Tricks = stringToInt(FrameUtils.player3TricksTaken.getSelectedItem());\r\n\t\t\r\n\t\t//Get the value of the fourth player in a four handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tplayer4Tricks = stringToInt(FrameUtils.player4TricksTaken.getSelectedItem());\r\n\t\t}\r\n\t\t\r\n\t\t//Check if tricks taken in a three handed game equals 17.\r\n\t\tif (Main.isThreeHanded) {\r\n\t\t\tif (player1Tricks + player2Tricks + player3Tricks != 17) {\r\n\t\t\t\tdone = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Check if tricks taken in a non-three-handed game equals 13.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (player1Tricks + player2Tricks + player3Tricks + player4Tricks != 13) {\r\n\t\t\t\tdone = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!done) FrameUtils.showDialogBox(\"Tricks taken was entered wrong.\");\r\n\t\t\t\r\n\t\t//Save tricks taken data.\r\n\t\tsaveTricksTakenData();\r\n\t\t\r\n\t\treturn done;\r\n\t}",
"private void computeTrickPoints(int leadPlayer, int numAlive) {\n trickPoints = new ArrayList<Integer>();\n for (int i = 0; i < numAlive; i++) {\n trickPoints.add(0);\n }\n \n List<Integer> cardsPlayed = trickInfo.getCardsPlayed();\n for (int i = 0; i < numAlive; i++) {\n int turn = (i + leadPlayer) % numAlive;\n if (turn == trickInfo.getHighestPlayPlayer()) {\n // Winner gets points equal to their card\n trickPoints.set(turn, trickInfo.getHighestPlay());\n \n } else if (cardsPlayed.get(turn) == trickInfo.getHighestPlay()) {\n // Deduct points from players who played same rank as winner\n trickPoints.set(turn, -trickInfo.getHighestPlay());\n }\n }\n }",
"private void tryGuess(int guess) {\n int guessAssert = guesser.assertGuess(guess);\n switch (guessAssert) {\n case 0:\n guesser.madeGuess();\n System.out.println(\"Too low. Guess again: \");\n break;\n case 1:\n guesser.madeGuess();\n System.out.println(\"Too high. Guess again: \");\n break;\n case 2:\n guesser.madeGuess();\n System.out.println(\"You got it in \"+guesser.getGuess()+\" guesses!\");\n break;\n default:\n guesser.madeGuess();\n System.out.println(\"Invalid numeric value has been entered.\");\n break;\n }\n\n }",
"public static void userGuess() {\n\t\tSystem.out.println(\"It's time for you to guess. \");\n\t\tSystem.out.print(\"The computer will pick 4 numbers, each from 1 to 6: (\");\n\n\t\t// prints out all color options\n\t\tprintColor();\n\t\tSystem.out.println(\"You will try to guess what that exact sequence is in 12 tries, good luck!\");\n\t\tSystem.out.println(\"If you want to give up, enter 'quit' or 'exit'\");\n\t\tSystem.out.println(\"If you need a hint, enter 'hint'\");\n\t\tSystem.out.println(\"If you want some statistics, enter 'stats'\");\n\n\t\t// have computer pick random sequence\n\t\tRandom random = new Random();\n\t\tfor (int i = 0; i < NUM_COLOR_ROUND; i++) {\n\t\t\tcomputerCode[i] = random.nextInt(colors.length) + 1;\n\t\t}\n\n\t\t// scanner to input user data\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\t// allows the user to input 12 guesses\n\t\t\twhile (totalGuess < MAX_GUESS) {\n\t\t\t\t// if you haven't entered 12 guesses allow more\n\t\t\t\tSystem.out.print(\"Please enter 4 numbers, each from 1 to 6: (\");\n\t\t\t\tprintColor();\n\n\t\t\t\t// reads the line into an array\n\t\t\t\tint[] user_guesses = new int[NUM_COLOR_ROUND];\n\t\t\t\tint index = 0;\n\t\t\t\twhile (index < NUM_COLOR_ROUND) {\n\t\t\t\t\t// reads the entire user input into a line\n\t\t\t\t\tString guess = scanner.nextLine();\n\n\t\t\t\t\t// check if user wants hint\n\t\t\t\t\tif (Objects.equals(\"hint\", guess)) {\n\t\t\t\t\t\thint();\n\t\t\t\t\t}\n\n\t\t\t\t\t// checks if user wants to quit\n\t\t\t\t\tif (Objects.equals(\"quit\", guess.toLowerCase()) || Objects.equals(\"exit\", guess.toLowerCase())) {\n\t\t\t\t\t\tSystem.out.println(\"You quit, better luck next time! \");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\n\t\t\t\t\t// checks if user wants stats\n\t\t\t\t\tif (Objects.equals(\"stats\", guess.toLowerCase())) {\n\t\t\t\t\t\tdisplayStats();\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (char ch : guess.toCharArray()) {\n\t\t\t\t\t\tif (index == NUM_COLOR_ROUND) {\n\t\t\t\t\t\t\t// if more than 4 digits are used, only the first 4 are entered into array\n\t\t\t\t\t\t\tSystem.out.println(\"Warning: only the first four digits are taken as your guess.\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ch > '0' && ch < '7') {\n\t\t\t\t\t\t\tuser_guesses[index++] = ch - '0';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tint digitLeft = NUM_COLOR_ROUND - index;\n\t\t\t\t\tif (digitLeft > 0) {\n\t\t\t\t\t\t// if <4 digits are entered, then the program asks the user to enter the\n\t\t\t\t\t\t// remaining to make 4\n\t\t\t\t\t\tSystem.out.println(String.format(\"Please enter %d more digits (1 to 6 only)\", digitLeft));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// total number of guesses so far\n\t\t\t\ttotalGuess++;\n\n\t\t\t\t// prints out total number of guesses so far\n\t\t\t\tSystem.out.println(\"Total number of guesses: \" + totalGuess);\n\t\t\t\t// prints out your guess\n\t\t\t\tSystem.out.println(\"Your guess is: \" + Arrays.toString(user_guesses));\n\n\t\t\t\t// checks if user wins, if not, gives feedback on their guess\n\t\t\t\tint[] result = compareGuess(computerCode, user_guesses);\n\t\t\t\tint numRightPos = result[0];\n\t\t\t\tint numWrongPos = result[1];\n\t\t\t\tif (numRightPos == NUM_COLOR_ROUND) {\n\t\t\t\t\tSystem.out.println(\"You win!\");\n\t\t\t\t\tstoreStats(totalGuess, fileName);\n\t\t\t\t\tdisplayStats();\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(String.format(\n\t\t\t\t\t\t\t\"Correct position and color (BLACK): %d; Wrong position but correct color (WHITE): %d\",\n\t\t\t\t\t\t\tnumRightPos, numWrongPos));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (totalGuess >= MAX_GUESS) {\n\t\t\t// if user has done 12 guesses, game is over\n\t\t\tSystem.out.println(\"You lose!\");\n\t\t\tSystem.out.println(\"Here is what computer generated: \" + Arrays.toString(computerCode));\n\t\t\tstoreStats(0, fileName);\n\t\t\tdisplayStats();\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\n\t\t// Introduction and random number selection between 1-10\n\t\tSystem.out.println(\"Hey you!\" + \"\\n\\n\"\n\t\t\t\t+ \"Word on the street says you're a pretty good number guesser. I beg to differ, nobody has ever guessed my number correctly in the entire history of number guessing!\"\n\t\t\t\t+ \"\\n\\n\"\n\t\t\t\t+ \"See if you can guess my number hotshot! I'm thinking of a number between 1 and 10, and no mindreading, because thats cheating!\\n\");\n\t\tint secretNum = new Random().nextInt(11 + 1);\n\t\tSystem.out.println(secretNum);\n\t\t// MainGame functionality\n\t\ttry {\n\n\t\t\tint guess = input.nextInt();\n\t\t\tint count = 0;\n\t\t\twhile (guess < 1 || guess > 10) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Hey, that's not a number between 1 and 10. You can't count let alone guess my number! Try again, but for real this time...\");\n\t\t\t\tguess = input.nextInt();\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif(guess == secretNum){\n\t\t\t\tSystem.out.println(\"So it is true what everybody says. You truly are the master number guesser. You have my respects sir, I am sorry I ever doubted you. Please take my money.\");\n\t\t\t\tSystem.exit(0); \n\t\t\t}\n\t\t\twhile (guess > 1 && guess < 10 && guess != secretNum) {\n\t\t\t\tcount++;\n\t\t\t\tif (count == 1) {\n\t\t\t\t\tSystem.out.println(\"That's your first guess? HAH!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 2) {\n\t\t\t\t\tSystem.out.println(\"Oh come on, are you even trying???\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 3) {\n\t\t\t\t\tSystem.out.println(\"Actually you're getting quite close... NOT!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 4) {\n\t\t\t\t\tSystem.out.println(\"My grandmother is a better guesser than you!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 5) {\n\t\t\t\t\tSystem.out.println(\"Okay, now this is getting embarressing.\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 6) {\n\t\t\t\t\tSystem.out.println(\"You are a fake! A sham!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 7) {\n\t\t\t\t\tSystem.out.println(\"This is pathetic. Forget I even asked!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 8) {\n\t\t\t\t\tSystem.out.println(\"Wow... Honestly i'm speechless.\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\t\t\t\tif (count == 9) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"I didn't even think it was possible to guess this many times and STILL not get the answer. You should be ashamed. I am reporting you to the number guessing authorities and you are going pay for wasting my time. HORRENDOUS!\");\n\t\t\t\t\tguess = input.nextInt();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InputMismatchException ex) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"You don't even know the difference between a number and a letter. Pathetic. You are no master number guesser.\");\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello! Welcome to the game!\");\n\t int attempts = 0; //1a\n\t int green = 0;\n\t int red = 0;\n\t\tScanner myObj = new Scanner(System.in);\n\t Answer answer = new Answer();\n\t Guess userGuess = new Guess();\n //answer.printAnswer(); (this was included for your convenience if you want to see what the answer is when you run the program)\n\t while ((attempts < 10) && (green != 3)){\n\t userGuess.printGuessList();\n\t String stringGuess = getUserInput(myObj); //1d\n\t userGuess.set(stringGuess);\n\t int[] guess = userGuess.getGuess();\n\t green = answer.numGreenBall(guess);\n\t System.out.print(\"Green Balls: \" + green);\n\t red = answer.numRedBall(guess);\n\t System.out.println(\" Red Balls: \" + red);\n\t System.out.println();\n\t userGuess.sortAllGuesses();\n\t attempts = userGuess.getNumOfGuess();\n\t }\n\t //10\n if (green == 3){\n\t System.out.println(\"You won!\");\n\t }\n\t if (attempts == 10){\n\t System.out.println(\"You lose! You couldn't guess the number in ten tries.\");\n\t }\n\t\tmyObj.close();\n\t }",
"public void checkGuess() {\n\t\tString guessText = txtInput.getText();\r\n\t\tString message = \"\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// check the guess for too high/too low\r\n\t\t\tint guess = Integer.parseInt(guessText);\r\n\t\t\t//too high\r\n\t\t\tif (guess > theNumber) {\r\n\t\t\t\tmessage = guess + \" was too high. Try again.\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnumberOfPlayerGuesses += 1;\r\n\t\t\t} else if (guess < theNumber) {\r\n\t\t\t\tmessage = guess + \" was too low. Try again.\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnumberOfPlayerGuesses += 1;\r\n\t\t\t} else {\r\n\t\t\t\tmessage = guess + \" was right! You used \" + numberOfPlayerGuesses + \" guesses. Let's play again!\";\r\n\t\t\t\tlblDirections2Result.setText(message);\r\n\t\t\t\tnewGame();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tlblDirections2Result.setText(\"Enter a whole number between 1 and 100.\");\r\n\t\t}\r\n\t\t\r\n\t\ttxtInput.requestFocus();\r\n\t\ttxtInput.selectAll();\r\n\t\t\r\n\t\t\r\n\t}",
"private static void playGame()\n {\n initializeGame();\n System.out.println(textColor(\"white\",\"I have thought of a number, can you guess it?\"));\n Scanner guess = new Scanner(in);\n while(isPlaying)\n {\n // Give play information on how many guesses they have left\n System.out.print(textColor(\"blue\", \"Guesses left: \"));\n System.out.println(textColor(\"blue\", Integer.toString(guessesLeft)));\n if(showDebugInfo)\n {\n System.out.println(textColor(\"white\", String.format(\" %d (%d)\",bestGuess,secretNumber)));\n }\n // Ask for user input / guess\n System.out.println(textColor(\"cyan\", \"Enter your guess: \"));\n playerGuess = guess.nextInt();\n if (playerGuess > maxSecret)\n {\n // Cap player guess to max possible value\n System.out.print(textColor(\"yellow\",\"Guess is higher than possible maximum.\\nGuess is set to: \"));\n System.out.println(textColor(\"cyan\",Integer.toString(maxSecret)));\n }\n else if(playerGuess < minSecret)\n {\n // Cap player guess to min possible value\n System.out.print(textColor(\"yellow\",\"Guess is smaller than possible maximum.\\nGuess is set to: \"));\n System.out.println(textColor(\"cyan\",Integer.toString(minSecret)));\n }\n if (playerGuess == secretNumber)\n {\n // Player won\n System.out.print(textColor(\"white\",\"Congratulations! you have found my number: \"));\n System.out.println(textColor(\"cyan\",Integer.toString(secretNumber)));\n exitGame();\n }\n else if (secretNumber < playerGuess)\n {\n // Secret number is smaller than Player's guess\n System.out.printf(\"My number is %s\\n\",textColor(\"red\",\"LOWER\"));\n\n if(playerGuess - secretNumber < bestGuess)\n {\n bestGuess = playerGuess - secretNumber;\n }\n }\n else if (secretNumber > playerGuess)\n {\n // Secret number is larger than Player's guess\n System.out.printf(\"My number is %s\\n\",textColor(\"yellow\",\"HIGHER\"));\n if (secretNumber - playerGuess < bestGuess)\n {\n bestGuess = secretNumber - playerGuess;\n }\n }\n if (isPlaying)\n {\n switch(guessesLeft)\n {\n case 1:\n if(dangerZone(bestGuess))\n {\n // Player got close to finding the Secret Number, but still failed\n System.out.println(textColor(\"white\",\"You almost got me! My number was \"));\n System.out.println(textColor(\"yellow\",Integer.toString(secretNumber)));\n isPlaying = false;\n\n }\n else\n {\n if (safeLineUsed)\n {\n // Player could not find solution even after bonus guesses awarded\n System.out.print(textColor(\"white\",\"Sorry, the number I thought was \"));\n System.out.println(textColor(\"yellow\",Integer.toString(secretNumber)));\n isPlaying = false;\n }\n else\n {\n // Bonus Guesses award is triggered\n System.out.print(textColor(\"white\",\"Don't give up, here is \"));\n System.out.print(textColor(\"cyan\",Integer.toString(extraGuesses)));\n System.out.println(textColor(\"white\",\" extra guesses\"));\n safeLineUsed = true;\n guessesLeft += extraGuesses-1;\n }\n }\n break;\n\n default:\n // Keep reducing Guesses Left number\n guessesLeft--;\n break;\n }\n\n }\n }\n\n }",
"abstract int nextTry(String guess);",
"public int labyrinth (int points, int difficulty, int life)\n {\n\tint mines = (4 * difficulty);\n\n\tfor (int i = 0 ; i < 5 ; i++)\n\t{\n\t for (int j = 0 ; j < 5 ; j++)\n\t\tminefield [i] [j] = 's';\n\t}\n\n\n\tfor (int s = 0 ; s < mines ; s++)\n\t{\n\t int k = (int) (Math.random () * 5);\n\t int t = (int) (Math.random () * 5);\n\t while (minefield [k] [t] == 'm')\n\t {\n\t\tk = (int) (Math.random () * 5);\n\t\tt = (int) (Math.random () * 5);\n\t }\n\t minefield [k] [t] = 'm';\n\t}\n\n\n\tint minenum = 0;\n\tint safenum = 0;\n\tint square;\n\twhile (safenum < 5 && minenum != 3)\n\t{\n\t grid ();\n\t do\n\t {\n\t\tSystem.out.println (\" The Trapped Room\");\n\t\tsquare = IBIO.inputInt (\"\\nEnter the square you want to pick: \");\n\t }\n\t while (square >= 25);\n\t int x = (square / 5);\n\t int y = (square % 5);\n\t if (minefield [x] [y] == 'm')\n\t {\n\t\tminenum++;\n\t\tpoints += 5;\n\t\tprintSlow (\"Ouch, you hit a jinx! Be careful, you only have \" + (3 - minenum) + \" before you perish!\\n\");\n\t\tminefield [x] [y] = 'b';\n\t }\n\t else if (minefield [x] [y] == 'b' || minefield [x] [y] == 'v')\n\t {\n\t\tprintSlow (\"Nice try Harry, but you can't pick the same square twice!\");\n\t }\n\t else\n\t {\n\t\tsafenum++;\n\t\tminefield [x] [y] = 'v';\n\t\tprintSlow (\"Good job, only \" + (5 - safenum) + \" until you're safe!\\n\");\n\t }\n\t if (minenum == 3)\n\t\treturn 3;\n\n\n\t}\n\n\tprintSlow (\"Good job, you defeated Voldemort and his graveyard puzzle!\");\n\n\n\treturn 1;\n }",
"public static void main(String[] args) {\n\t\t\n\t\t// create an array of 5th powers\n\t\tint[] fifthPowers = new int[10];\n\t\tfor (int i=0; i<10; i++) {\n\t\t\tfifthPowers[i] = i*i*i*i*i;\n\t\t}\n\t\t\n\t\tArrayList<Integer> winners = new ArrayList<Integer>();\n\t\tint sumOfPowers, number, total = 0;\n\t\t\n\t\tfor (int i=0; i<10; i++) {\n\t\t\tfor (int j=0; j<10; j++) {\n\t\t\t\tfor (int k=0; k<10; k++) {\n\t\t\t\t\tfor (int l=0; l<10; l++) {\n\t\t\t\t\t\tfor (int m=0; m<10; m++) {\n\t\t\t\t\t\t\tfor (int n=0; n<10; n++) {\n\t\t\t\t\t\t\t\tsumOfPowers = fifthPowers[i] + fifthPowers[j] + fifthPowers[k] + fifthPowers[l] + fifthPowers[m] + fifthPowers[n];\n\t\t\t\t\t\t\t\tnumber = (100000*i) + (10000*j) + (1000*k) + (100*l) + (10*m) + n;\n\t\t\t\t\t\t\t\tif (sumOfPowers == number) {\n\t\t\t\t\t\t\t\t\tif ((number != 0) && (number != 1)) {\n\t\t\t\t\t\t\t\t\t\twinners.add(number);\n\t\t\t\t\t\t\t\t\t\ttotal += number;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Integer i : winners)\n\t\t\tSystem.out.println(i);\n\t\t\n\t\tSystem.out.println(\"The total is \" + total);\n\t}",
"public static void main(String[] args) {\n \tSystem.out.println(\"----- MASTERMIND -----\" + \"\\n\" + \"Guess the 4 digit number!\");\n \tScanner in = new Scanner(System.in);\n \tRandom num = new Random();\n \t//the while loop will continue as long as the keepPlaying boolean is set to true meaning that the user still wants to play\n \tboolean keepPlaying = true;\n \twhile (keepPlaying) {\n \t\t//Here the random number is being generated randomly from 0 to 9 and then multiplied accordingly to represent the thousandths place, hundredths, tenths, and single.\n \t\tint firstDigit = num.nextInt(10);\n \tint secondDigit = num.nextInt(10);\n \tint thirdDigit = num.nextInt(10);\n \tint fourthDigit = num.nextInt(10);\n \tint answer = (firstDigit * 1000) + (secondDigit * 100) + (thirdDigit * 10) + fourthDigit; // Building the answer which will be the number that the user is trying to guess\n \tint userGuess = 0; //This variable will hold the number that the user guesses\n \tint i = 0; //initializing variables to represent the number of guesses the user has had\n \twhile (answer != userGuess) { //This while look will continue as long as the user has not guessed the answer that matches the one that was generated\n \t\ti++;\n \t\tSystem.out.println(\"Guess \" + i + \": \"); //Printing out the amount of guesses the user has made\n \t\tuserGuess = in.nextInt(); //Scanning in the guess\n \t\tint firstGuessDigit = userGuess/1000; //First guess digit is divided by 1000 so reach the single digit in the thousandths place\n \t\tint secondGuessDigit = (userGuess- (firstGuessDigit * 1000)) /100; //Second guess digit is subtracted by the first digit *1000 to make sure it is only the hundredths place and then divided by 100 to get the single digit that is in the hundredths place\n \t\tint thirdGuessDigit = ((userGuess - (firstGuessDigit * 1000) - (secondGuessDigit * 100)) /10); //Third guess digit is reached by subtracted the thousandths and hundreths place to make sure it's only the tenths and then divided by 10 to get the single digit that is in the tenths place.\n \t\tint fourthGuessDigit = (userGuess) - (thirdGuessDigit * 10) - (secondGuessDigit *100) - (firstGuessDigit * 1000); //the fourth guess digit is reached by subtracting the thousandths, hundredths, and tenths place to get the final digit in the rightmost place.\n \t\tint correctDigits = 0; //initialize variable to represent how many digits the user has gotten correct\n \t\tif (firstDigit == firstGuessDigit) { //if the first digit of the randomly generated number matches the corresponding place in the user guess the number of correct digits increments up 1.\n \t\t\tcorrectDigits++;\n \t\t\t\n \t\t}\n \t\tif (secondDigit == secondGuessDigit) { //if the second digit of the randomly generated number matches the corresponding place in the user guess the number of correct digits increments up 1.\n \t\t\tcorrectDigits++;\n \t\t\t\n \t\t}\n \t\tif (thirdDigit == thirdGuessDigit) {//if the third digit of the randomly generated number matches the corresponding place in the user guess the number of correct digits increments up 1.\n \t\t\tcorrectDigits++;\n \t\t\t\n \t\t}\n \t\tif (fourthDigit == fourthGuessDigit) {//if the fourth digit of the randomly generated number matches the corresponding place in the user guess the number of correct digits increments up 1.\n \t\t\tcorrectDigits++;\n \t\t\t\n \t\t}\n \t\tSystem.out.println(\"You matched \" + correctDigits); //Prints out the amount of correct digits are in the guess\n \t\t\n \t}\n \t//Once the user gets the number right they are congratulated and told how many guesses it took.\n \tSystem.out.println(\"Congratulations! You guessed the right number in \" + i + \" guesses.\"); \n \t//Now they are asked if they want to play again and their input is scanned in\n \tSystem.out.println(\"Would you like to play again (yes/no)?\");\n \tin.nextLine();\n \t//if their input is not equal to yes then the keep playing variable is changed to false making the program end, if they do say yes then the loop will start over restarting everything.\n \tString restart = in.nextLine();\n \tif (!restart.equals(\"yes\")) {\n \t\tkeepPlaying = false;\n \t\n \t}\n \t}\n }",
"public void tossUpForTeamB(View v) {\n\n if (questionNumber <= 19) {\n scoreTeamB = scoreTeamB + 10;\n questionNumber = questionNumber + 1;\n displayQuestionNumber(questionNumber);\n displayForTeamB(scoreTeamB);\n }\n\n if (questionNumber == 20) {\n Toast.makeText(getApplicationContext(), \"Game Over!\", Toast.LENGTH_SHORT).show();\n\n }\n\n }",
"public static int fullHouseYahtzee(int... result) {\n\n int score = nSame(3, 6, result);\n int firstPairVal = score/3;\n\n result = IntStream.of(result).filter(val -> val != firstPairVal).toArray();\n score = nSame(2, 6, result);\n int secondPairVal = score/2;\n\n if (firstPairVal*secondPairVal > 0) {\n score = 25;\n } else {\n score = 0;\n }\n\n return score;\n }",
"public void isRoundOver(){\n if (redTrickScore == 5) {\n redScore += 2;\n } else if (redTrickScore > 2 && whoCalled == 1) {\n redScore += 2;\n } else if (redTrickScore > 2 && whoCalled == 0) {\n redScore += 1;\n } else if (blueTrickScore == 5) {\n blueScore += 2;\n } else if (blueTrickScore > 2 && whoCalled == 0) {\n blueScore += 2;\n } else if (blueTrickScore > 2 && whoCalled == 1) {\n blueScore += 1;\n }\n\n // reset the trick scores\n int trickSum = blueTrickScore + redTrickScore;\n if(trickSum == 5) {\n blueTrickScore = 0;\n redTrickScore = 0;\n }\n }",
"private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n int wrong = getWrongGuesses();\n GameDifficulty difficulty = Hangman.getGameDifficulty();\n\n // Calculate points\n switch (difficulty) {\n case EASY : total = score; break;\n case NORMAL : total = (2 * score) + correct - wrong; break;\n case HARD : total = (3 * score) + (2 * correct) - (2 * wrong); break;\n default : total = score;\n }\n\n return total;\n }",
"public static int tower(int... result) {\n\n int score = nSame(4, 6, result);\n int firstMatch = score/4;\n\n result = IntStream.of(result).filter(val -> val != firstMatch).toArray();\n score = nSame(2, 6, result);\n int secondMatch = score/2;\n\n if (firstMatch*secondMatch > 0) {\n score = 4*firstMatch + 2*secondMatch;\n } else {\n score = 0;\n }\n\n return score;\n }",
"public static int game(Scanner console) {\r\n Random rand = new Random();\r\n int number = rand.nextInt(MAX) + 1;\r\n System.out.println(\"I'm thinking of a number between 1 and \" + MAX + \"...\");\r\n System.out.print(\"Your guess? \");\r\n int guess = console.nextInt();\r\n int numGuesses = 1; \r\n while (guess != number) {\r\n hints(number, guess);\r\n System.out.print(\"Your guess? \");\r\n guess = console.nextInt();\r\n numGuesses++;\r\n }\r\n if (numGuesses != 1) {\r\n System.out.println(\"You got it right in \" + numGuesses + \" guesses\");\r\n } else { // numGuesses == 1\r\n System.out.println(\"You got it right in \" + numGuesses + \" guess\");\r\n }\r\n return numGuesses;\r\n }",
"private void giveScords(){\n \t//bingo 題數, seconds花費秒數\n \tint totalSec = (int)seconds;\n \t\n \tif(correct){\n \t\tif(totalSec<=5){\n \t\t\tuserPoints = userPoints + 150;\n \t\t}else if(totalSec<=10){\n \t\t\tuserPoints = userPoints + 125;\n \t\t}else if(totalSec<=15){\n \t\t\tuserPoints = userPoints + 100;\n \t\t}else if(totalSec<=20){\n \t\t\tuserPoints = userPoints + 80;\n \t\t}\n \t}\n }",
"public static void main(String[] args) {\n\t\tdouble guess;\r\n\t\t\r\n\t\tScanner bob = new Scanner(System.in);\r\n\t\tint answer = (int)(10.0 * Math.random());\r\n\t\tSystem.out.println(answer);\r\n\t\t\r\n\t\tfor(int i =0; i < 3; i++){\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Please guess a number between 1 and 10 : \");\r\n\t\t\tguess = bob.nextDouble();\r\n\t\t\t\r\n\t\t\twhile (guess>10)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"This number is out of range please guess between 1 and 10\");\r\n\t\t\t\tSystem.out.println(\"Please guess a number between 1 and 10 : \");\r\n\t\t\t\tguess = bob.nextDouble();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t if (guess == answer) {\r\n\t\t\t System.out.println(\"RIGHT!\");\r\n\t\t\t i=4;\r\n\t } \r\n\t\t\telse if ((answer == guess + 1) || (answer == guess - 1)) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t System.out.println(\"hot, please try again\");\r\n\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t\telse if ((answer == guess + 2) || (answer == guess - 2)){\r\n\t\t\t\t System.out.println(\"warm!, please try again\");\r\n\t\t\t }\r\n\t\t\t\t else if ((answer == guess + 3) || (answer == guess - 3)){\r\n\t\t\t\t\t System.out.println(\"cold!, please try again\"); \r\n\t\t\t\t \t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t else if (i == 2){\r\n\t\t\t\t\t System.out.println(\"You loose \"); \r\n\t\t\t\t\t \r\n\t\t\t\t }else {\r\n\t\t\t\t\t System.out.println(\"cold!, please try again\"); \r\n\t\t\t \t\t\t \r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t}\r\n\t\tSystem.out.println(\"The answer is :\"+answer);\r\n\t\t\r\n\t\t\r\n}",
"public void launchBall() {\n\n\t\tint contBlue = 0, contRed = 0, red = 0, blue = 0, maxScore = 0;\n\t\t// You can modify this value to play more matches (Important: Odd/Uneven value)\n\t\tint bestOf = 5;\n\n\t\tfor (int i = 0; i < bestOf; i++) {\n\n\t\t\tSystem.out.println(\"Red team launch\");\n\t\t\tred = (int) (Math.random() * (200 - 0));\n\t\t\tSystem.out.println(red);\n\t\t\tmaxScore = (red > maxScore) ? red : maxScore;\n\n\t\t\tSystem.out.println(\"Blue team launch\");\n\t\t\tblue = (int) (Math.random() * (200 - 0));\n\t\t\tSystem.out.println(blue);\n\t\t\t// Find the highest score between bluePoints and redPoints\n\t\t\tmaxScore = (blue > maxScore) ? blue : maxScore;\n\t\t\t// Count which team has more score than the other one\n\t\t\tif (red > blue)\n\n\t\t\t\tcontRed++;\n\n\t\t\telse\n\n\t\t\t\tcontBlue++;\n\n\t\t}\n\t\tint option;\n\t\t// Try: Throw error if you introduce a String or Char instead Integer\n\t\ttry {\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"What ratio was the highest score? (1.0-50/2.50-100/3.100-150/4.150-200)\");\n\t\t\t\toption = scanner.nextInt();\n\t\t\t\t// Minigame to hit the ratio of highest score\n\t\t\t\tswitch (option) {\n\n\t\t\t\tcase 1: {\n\n\t\t\t\t\tif (maxScore >= 0 && maxScore < 50)\n\t\t\t\t\t\tSystem.out.println(\"You win, the highest score is: \" + maxScore);\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Sorry, that's not the highest score\");\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tcase 2: {\n\t\t\t\t\tif (maxScore >= 50 && maxScore < 100)\n\t\t\t\t\t\tSystem.out.println(\"You win, the highest score is: \" + maxScore);\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Sorry, that's not the highest score\");\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t\tcase 3: {\n\t\t\t\t\tif (maxScore >= 100 && maxScore < 150)\n\t\t\t\t\t\tSystem.out.println(\"You win, the highest score is: \" + maxScore);\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Sorry, that's not the highest score\");\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t\tcase 4: {\n\t\t\t\t\tif (maxScore >= 150 && maxScore <= 200)\n\t\t\t\t\t\tSystem.out.println(\"You win, the highest score is: \" + maxScore);\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Sorry, that's not the highest score\");\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t\tdefault:\n\n\t\t\t\t\tSystem.err.println(\"Insert valid value\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} while (option > 4 || option < 1);\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Please, insert an Intenger value\");\n\t\t\tscanner.next();\n\t\t}\n\t\tSystem.out.println(\"The highest score was \" + maxScore);\n\n\t\tSystem.out.println(\"The match is over Blue: \" + contBlue + \" wins, y Red: \" + contRed + \" wins\");\n\t\t// Show which team won\n\t\tif (contRed > contBlue) {\n\n\t\t\tSystem.out.println(\"Red wins\");\n\t\t\tthis.redWins = contRed;\n\n\t\t} else {\n\n\t\t\tSystem.out.println(\"Blue wins\");\n\t\t\tthis.blueWins = contBlue;\n\n\t\t}\n\t}",
"public static void numberManiaGame(Scanner input, byte difficulty){\n Random rand=new Random();\n int numberLimit=0,operation,number1,number2,total=0,userNumber;\n boolean isTheNumber=false;\n System.out.println(\"How many numbers would you like to guess? Maximum amount of questions allowed in this version are 128\");\n byte amountOfQuestions=input.nextByte();\n switch (difficulty){\n case 1:\n numberLimit=1000;\n break;\n case 2: \n numberLimit=5000;\n break;\n case 3:\n numberLimit=10000;\n break;\n }\n System.out.println(\"Great, let's start our game.\");\n for(int i=0;i<amountOfQuestions;i++){\n operation=rand.nextInt(2)-0;\n switch(operation){\n case 0:\n number1=rand.nextInt((numberLimit/2));\n number2=rand.nextInt((numberLimit/2));\n total=(number1+number2);\n System.out.println(\"Which number + \" + number1 + \" gives you \" + total);\n userNumber=input.nextInt();\n do{ \n if (userNumber==number2){\n System.out.println(\"Congratulations, that is the number.\");\n isTheNumber=true;\n }else{\n System.out.println(\"That is not the number. Please write another number\");\n userNumber=input.nextInt();\n }\n }while (isTheNumber==false);\n isTheNumber=false;\n break;\n case 1:\n number1=rand.nextInt((numberLimit/2));\n number2=rand.nextInt((numberLimit/2));\n total=(number1-number2);\n System.out.println(\"Which number - \" + number1 + \" gives you \" + total);\n userNumber=input.nextInt();\n do{ \n if (userNumber==number2){\n System.out.println(\"Congratulations, that is the number.\");\n isTheNumber=true;\n }else{\n System.out.println(\"That is not the number. Please write another number\");\n userNumber=input.nextInt();\n }\n }while (isTheNumber==false);\n isTheNumber=false;\n break;\n }\n }\n\n System.out.println(\"Thanks for playing! Returning to main menu...\");\n \n }",
"private void calculatePickMeScore(Node n) {\n\t\t// Force a simulation count of 1 if this node has never been simulated\n\t\tint numSims = (n.sims == 0 ? 1 : n.sims);\n\t\tint winCount = (player == WHITE ? n.whiteWin : n.blackWin);\n\t\tn.value = (float)(winCount/numSims + 1.4*Math.sqrt(Math.log(simulations)/numSims));\n\t}",
"public static long kRounding(){\n\t\tScanner kbd = new Scanner(System.in); //see fairgame\n\t\tint input = kbd.nextInt();\n\t\tint Nput = input;\n\t\tint rounding = kbd.nextInt();\n\n\t\tint div2 = 0;\n\t\tint div5 = 0;\n\n\t\twhile (input % 2 == 0){\n\t\t\tdiv2++;\n\t\t\tinput = input/2;\n\t\t}\n\t\twhile (input % 5 == 0){\n\t\t\tdiv5++;\n\t\t\tinput = input/5;\n\t\t}\n\n\t\tint multiplierTwo = 1;\n\t\tint multiplierFive = 1;\n\t\tif(rounding - div2 > 0){\n\t\t\tmultiplierTwo = (int) Math.pow(2, rounding - div2);\n\t\t}\n\t\tif(rounding - div5 > 0){\n\t\t\tmultiplierFive = (int) Math.pow(5, rounding - div5)\n\t\t}\n\n\t\treturn multiplierTwo*(long)multiplierFive*(long)Nput;\n\t}",
"public static void AdditonGameMethod() {\n\t\t\t\t\n\t\t\t\tint hardness = 5;\n\t\t\t\tint hardnessStep = 2;\n\t\t\t\tint score = 0;\n\t\t\t\t\n\t\t\t\t// Set up my for loop to go through the number of rounds\n\t\t\t\tint numberOfRounds = 3;\n\t\t\t\tfor(int roundNumber = 1; \n\t\t\t\troundNumber <= numberOfRounds; \n\t\t\t\troundNumber = roundNumber + 1){\n\t\t\t\t\t//System.out.println(\"Inside the for loop. Round: \" + roundNumber);\n\t\t\t\t\tSystem.out.print(\"Round \" + roundNumber + \" of \" + numberOfRounds + \". \");\n\t\t\t\t\tboolean isAnswerCorrect = getAndCheckStudentAnswer(hardness);\n\t\t\t\t\tif(isAnswerCorrect){\n\t\t\t\t\t\tSystem.out.print(\"Your score was \" + score + \" and is now \");\n\t\t\t\t\t\tscore = score + hardness;\n\t\t\t\t\t\tSystem.out.print(score + \". \");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(roundNumber<numberOfRounds){\n\t\t\t\t\t\t\tSystem.out.print(\"Your hardness was \" + hardness + \" and is now \");\n\t\t\t\t\t\t\thardness = hardness * hardnessStep;\n\t\t\t\t\t\t\tSystem.out.println(hardness + \".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"Your score is \" + score + \". \");\n\t\t\t\t\t\tif(roundNumber<numberOfRounds){\n\t\t\t\t\t\t\tSystem.out.print(\"Your hardness was \" + hardness + \" and is now \");\n\t\t\t\t\t\t\tif(hardness>5){\n\t\t\t\t\t\t\t\thardness = hardness / hardnessStep;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(hardness + \".\");\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}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\nThe game is complete. \");\n\t\t\t\tSystem.out.println(\"Your final score was \" + score );\n\t\t\t}",
"public static void main(String [] args){\n int intChoice1,intChoice2,intChoice3,intChoice4;\r\n int intNumRight = 0;\r\n \r\n //Create scanner\r\n Scanner sc = new Scanner(System.in);\r\n \r\n //clear the screen\r\n CLS();\r\n \r\n // Get user input \r\n System.out.println(\"\\n\\n Pick 4 lotter numbers between 0 and 9\\n\");\r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice1 = sc.nextInt(); \r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice2 = sc.nextInt(); \r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice3 = sc.nextInt(); \r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice4 = sc.nextInt(); \r\n \r\n //clear the screen\r\n CLS();\r\n \r\n //array to hold lottery numbers\r\n int [] intLotteryNumbers = new int[4]; \r\n \r\n //fill lottery number array\r\n Random rand = new Random();\r\n for(int x = 0; x < intLotteryNumbers.length; x++){\r\n intLotteryNumbers[x] = rand.nextInt(9);\r\n for (int y = 0; y < x; y++){\r\n if(intLotteryNumbers[x] == intLotteryNumbers[y]){\r\n x--;\r\n break;\r\n } \r\n }//if statement checks if duplicate value and resets the outer loop \r\n \r\n }\r\n System.out.println(\"\\n\\n The winning Numbers are >\\n\");\r\n for(int z = 0;z < intLotteryNumbers.length;z++ ){\r\n System.out.println(\"\\t\" + intLotteryNumbers[z]);\r\n }\r\n \r\n for(int a = 0;a < intLotteryNumbers.length;a++ ){\r\n if(intChoice1 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n else if(intChoice2 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n else if(intChoice3 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n else if(intChoice4 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n }\r\n System.out.println(\"\\n\\n The numbers you chose are \" + intChoice1 + \", \" + intChoice2 + \", \" + intChoice3 + \", \" + intChoice4 + \"\\n\");\r\n \r\n switch(intNumRight){\r\n case 0: //No matches\t0 points\r\n System.out.println(\" Sorry you didn't get any numbers right 0 points\");\r\n break;\r\n case 1://Any one digit matching\t5 points\r\n System.out.println(\" You got 1 number right and earned 5 points\");\r\n break;\r\n case 2://Any two digits matching\t100 points\r\n System.out.println(\" You got 2 number right and earned 100 points\");\r\n break;\r\n case 3://Any three digits matching\t2,000 points\r\n System.out.println(\" You got 3 number right and earned 2,000 points\");\r\n break;\r\n case 4://All four digits matching\t1,000,000 points\r\n System.out.println(\" You got all numbers right and earned 1,000,000 points\");\r\n break;\r\n }\r\n \r\n }",
"public static int numberOfRounds() {\n System.out.print(\"Entrez le nombre de rounds de cette partie : \");\n while (true) {\n try {\n int rounds = new Scanner(System.in).nextInt();\n if (rounds > 0) return rounds;\n } catch (Exception ignored) {\n }\n System.out.println(\"Entrez un entier supérieur à 0 : \");\n }\n }",
"private void nextRound() {\n\t\n\t\t\n\t\tcfight++;\n\t\tif(cfight>=maxround)\n\t\t{\n\t\tcfight=0;\n\t\t\n\t\tround++;\n\t\t\tmaxround/=2;\n\t\t}\n\t\t\n\tif(round<4)\n\t{\n\tcontrollPCRound();\n\t}\n\telse\n\t{\n\t\tint sp=0;\n\t\tint round=0;\n\t\tfor(int i=0; i<fighter.length; i++)\n\t\t{\n\t\t\tif(spieler[i]>0)\n\t\t\t{\n\t\t\t\tsp++;\n\t\t\t\tif(fround[i]>round)\n\t\t\t\t{\n\t\t\t\tround=fround[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\tif(geld==false)\n\t{\n\t\tgeld=true;\n\t\tif(sp==1)\n\t\t{\n\t\tZeniScreen.addZenis(round*3500);\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint w=round*4000-500*sp;\n\t\t\tif(w<1)\n\t\t\t{\n\t\t\t\tw=100;\n\t\t\t}\n\t\t\tZeniScreen.addZenis(w);\t\n\t\t}\n\t}\n\t}\n\t\n\t\n\t}",
"public abstract void nextGuessResult(ResultPegs resultPegs);",
"public static void main(String[] args) {\n System.out.println(winningScoreForMarbleGame(9, 25));\n System.out.println(winningScoreForMarbleGame(10, 1618));\n System.out.println(winningScoreForMarbleGame(13, 7999));\n System.out.println(winningScoreForMarbleGame(17, 1104));\n System.out.println(winningScoreForMarbleGame(21, 6111));\n System.out.println(winningScoreForMarbleGame(30, 5807));\n\n// 424 players; last marble is worth 71482 points: high score is 408679\n System.out.println(winningScoreForMarbleGame(424, 71482));\n\n// 424 players; last marble is worth 71482 * 100 points: high score is 3443939356\n System.out.println(winningScoreForMarbleGame(424, 71482 * 100));\n }",
"public static void main(String[] args) {\n\t\tint lottery=(int)(100+Math.random()*900);\r\n\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tScanner input=new Scanner(System.in);\r\n\r\n\t\tSystem.out.print(\"Enter your lottery pick(three digits):\");\r\n int guess=input.nextInt(); \r\n\r\n int lotteryDigit1=lottery/100;\r\n int lotteryDigit2=(lottery/10)%10;\r\n int lotteryDigit3=lottery%10; \r\n\r\n int guessDigit1=guess/100;\r\n int guessDigit2=(guess/10)%10;\r\n int guessDigit3=guess%10;\r\n \r\n System.out.println(\"The lottery number is \"+lottery);\r\n\r\n if(guess==lottery)\r\n \tSystem.out.println(\"Exact match: you win $10,000\");\r\n else if ((lotteryDigit1 == guessDigit1 && lotteryDigit2 == guessDigit3 && lotteryDigit3 == guessDigit2)\r\n || (lotteryDigit1 == guessDigit3 && lotteryDigit2 == guessDigit2 && lotteryDigit3 == guessDigit1)\r\n || (lotteryDigit1 == guessDigit2 && lotteryDigit2 == guessDigit3 && lotteryDigit3 == guessDigit1)\r\n || (lotteryDigit1 == guessDigit3 && lotteryDigit2 == guessDigit1 && lotteryDigit3 == guessDigit3)\r\n || (lotteryDigit1 == guessDigit2 && lotteryDigit2 == guessDigit1 && lotteryDigit3 == guessDigit2))\r\n System.out.println(\"Match all digits: you win $3,000\");\r\n else if (guessDigit1 == lotteryDigit1\r\n || guessDigit1 == lotteryDigit2\r\n || guessDigit1 == lotteryDigit3\r\n || guessDigit2 == lotteryDigit1\r\n || guessDigit2 == lotteryDigit2\r\n || guessDigit2 == lotteryDigit3\r\n || guessDigit3 == lotteryDigit1\r\n || guessDigit3 == lotteryDigit2\r\n || guessDigit3 == lotteryDigit3)\r\n System.out.println(\"Match one digit: you win $1,000\");\r\n else\r\n System.out.println(\"Sorry,no match\");\r\n\t}",
"private List<Player> calculatePoints()\n\t{\n\t\tthis.systemDataInput.printMessage(\"Calculating points...\");\n\t\t\n\t\tArrayList<Player> winningPlayers = new ArrayList<Player>();\n\t\tint maxPoints = 0;\n\t\tint maxBuilding = 0;\n\t\t\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\tint points = 0;\n\t\t\tint bestBuilding = 0;\n\t\t\t\n\t\t\tfor(Area area : board.getAreaList())\n\t\t\t{\n\t\t\t\tif (!area.hasDemon())\n\t\t\t\t{\n\t\t\t\t\tif (area.hasBuilding(player))\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints += area.getCost();\n\t\t\t\t\t\tif (area.getCost() > bestBuilding)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbestBuilding = area.getCost();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpoints += 5 * area.getMinionList(player).size();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint playerMoney = player.getMoneyAmount();\n\t\t\tpoints += playerMoney;\n\t\t\t\n\t\t\tfor(Card card : player.getInFrontOfHimDeck())\n\t\t\t{\n\t\t\t\tfor(Action action : card.getActions(BorrowMoneyFromTheBank.class))\n\t\t\t\t{\n\t\t\t\t\tint moneyToPayBack = ((BorrowMoneyFromTheBank)action).getMoneyToPayBack();\n\t\t\t\t\tif (playerMoney >= moneyToPayBack)\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= moneyToPayBack;\n\t\t\t\t\t\tplayerMoney -= moneyToPayBack;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= ((BorrowMoneyFromTheBank)action).getPointsToLose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tplayer.addPoints(points);\n\t\t\tplayer.getDataInput().printMessage(points + \" points\");\n\t\t\t\n\t\t\tif (points > maxPoints || (points == maxPoints && bestBuilding > maxBuilding))\n\t\t\t{\n\t\t\t\tmaxPoints = points;\n\t\t\t\tmaxBuilding = bestBuilding;\n\t\t\t\twinningPlayers.clear();\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t\telse if (points == maxPoints && bestBuilding == maxBuilding)\n\t\t\t{\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn winningPlayers;\n\t}",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tRandom rand = new Random();\n\t\tint number = rand.nextInt(100), guesses = 0;\n\t\tSystem.out.print(\"Can you guess the number? (1-100)\");\n\t\tfor(int userGuess = 0 ; userGuess != number; guesses++) {\n\t\t\tSystem.out.print(\"Guess: \");\n\t\t\tuserGuess = scan.nextInt();\n\t\t\tif(userGuess < number) {\n\t\t\t\tSystem.out.println(\"Up\");\n\t\t\t} else if(userGuess > number) {\n\t\t\t\tSystem.out.println(\"Down\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Congratulations! That is the number!\");\n\t\tSystem.out.println(\"It took you \" + guesses+1 + \" guesses!\");\n\t\tscan.close();\n\t\t\n}",
"public void testScoreboardCaseFour () throws Exception {\n \n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n\n \"1,1,A,1,No\", //20\n \"2,1,A,3,Yes\", //3 (first yes counts Minutes only)\n \"3,1,A,5,No\", //20\n \"4,1,A,7,Yes\", //20 \n \"5,1,A,9,No\", //20\n \n \"6,1,B,11,No\", //20 (all runs count)\n \"7,1,B,13,No\", //20 (all runs count)\n \n \"8,2,A,30,Yes\", //30\n \n \"9,2,B,35,No\", //20 (all runs count)\n \"10,2,B,40,No\", //20 (all runs count)\n \"11,2,B,45,No\", //20 (all runs count)\n \"12,2,B,50,No\", //20 (all runs count)\n \"13,2,B,55,No\", //20 (all runs count)\n\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n // TODO when SA supports count all runs, replace rankData\n \n /**\n * Case 4 tests when all runs are counted, the current SA\n * does not support this scoring method. The commented\n * rankData is the proper results\n */\n \n// Team 1 -- 123 <-- Team 1 is winning again\n// Team 2 -- 130\n \n// String [] rankData = {\n// \"1,team1,1,123\",\n// \"2,team2,1,130\"\n// };\n \n scoreboardTest (2, runsData, rankData);\n }",
"public void Enter() {\n\t\tEndTimer();\n\t\tif (Question >= 10) {\n\n\t\t\tSystem.out.println(\"This is Game\" + Score);\n\t\t\tIntent TheScore = new Intent(this, Score.class).putExtra(\"Score\",\n\t\t\t\t\tInteger.toString(Score));\n\t\t\tEndTimer();\n\t\t\tstartActivity(TheScore);\n\t\t\tfinish();\n\t\t} else {\n\n\t\t\tEditText editText22 = (EditText) findViewById(R.id.editText1);\n\t\t\tInteger Guess = 0;\n\t\t\ttry {\n\t\t\t\tGuess = Integer.parseInt(editText22.getText().toString());\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t}\n\n\t\t\tTextView CorrectOrNot = (TextView) findViewById(R.id.textView1);\n\t\t\t/*\n\t\t\t * If the Hints is on it will allow the user to try each question 4\n\t\t\t * times. Below checks if the Hints is on or off.\n\t\t\t */\n\t\t\tif (Prefs.getHints(this)) {\n\t\t\t\tif (Answer == Guess) {\n\t\t\t\t\tCorrectOrNot.setTextColor(Color.GREEN);\n\t\t\t\t\tCorrectOrNot.setText(\"Correct\");\n\t\t\t\t\tCorrect++;\n\t\t\t\t\t/*\n\t\t\t\t\t * The score is worked out by 100 divided by 10 take away\n\t\t\t\t\t * from how much time was left.\n\t\t\t\t\t */\n\t\t\t\t\tScore = Score + 100 / (10 - TimeLeft);\n\t\t\t\t\tQuestion++;\n\t\t\t\t\treset();\n\t\t\t\t\t/*\n\t\t\t\t\t * Should the user enter the wrong answer it will allow them\n\t\t\t\t\t * to retry as well as tell them if the answer they entered\n\t\t\t\t\t * is greater or less then the actual answer.\n\t\t\t\t\t */\n\t\t\t\t} else if (Tries < 4) {\n\t\t\t\t\tif (Guess > Answer) {\n\t\t\t\t\t\tCorrectOrNot.setTextColor(Color.MAGENTA);\n\t\t\t\t\t\tCorrectOrNot.setText(\"Greater\");\n\t\t\t\t\t\tTries = Tries + 1;\n\t\t\t\t\t\tEndTimer();\n\t\t\t\t\t\tStartTimer();\n\n\t\t\t\t\t}\n\t\t\t\t\tif (Guess < Answer) {\n\t\t\t\t\t\tCorrectOrNot.setTextColor(Color.MAGENTA);\n\t\t\t\t\t\tCorrectOrNot.setText(\"less\");\n\t\t\t\t\t\tTries = Tries + 1;\n\t\t\t\t\t\tEndTimer();\n\t\t\t\t\t\tStartTimer();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * Once the 4 tries is over, it will check if the last answer is\n\t\t\t\t * correct or not and act accordingly\n\t\t\t\t */\n\t\t\t\tif (Tries >= 4) {\n\t\t\t\t\tif (Answer == Guess) {\n\t\t\t\t\t\tCorrectOrNot.setTextColor(Color.GREEN);\n\t\t\t\t\t\tCorrectOrNot.setText(\"Correct\");\n\t\t\t\t\t\tCorrect++;\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * The score is worked out by 100 divided by 10 take\n\t\t\t\t\t\t * away from how much time was left.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tScore = Score + 100 / (10 - TimeLeft);\n\t\t\t\t\t\tQuestion++;\n\t\t\t\t\t\treset();\n\t\t\t\t\t} else if (Answer != Guess) {\n\t\t\t\t\t\tQuestion++;\n\t\t\t\t\t\tCorrectOrNot.setTextColor(Color.RED);\n\t\t\t\t\t\tCorrectOrNot.setText(\"Incorrect\");\n\t\t\t\t\t\tTries = 0;\n\t\t\t\t\t\treset();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tif (Answer == Guess) {\n\t\t\t\t\tCorrectOrNot.setTextColor(Color.GREEN);\n\t\t\t\t\tCorrectOrNot.setText(\"Correct\");\n\t\t\t\t\tCorrect++;\n\t\t\t\t\t/*\n\t\t\t\t\t * The score is worked out by 100 divided by 10 take away\n\t\t\t\t\t * from how much time was left.\n\t\t\t\t\t */\n\t\t\t\t\tScore = Score + 100 / (10 - TimeLeft);\n\t\t\t\t\tSystem.out.println(Score);\n\t\t\t\t\tQuestion++;\n\t\t\t\t\tSystem.out.println(\"Correct \" + Correct);\n\t\t\t\t\treset();\n\t\t\t\t} else {\n\t\t\t\t\tQuestion++;\n\t\t\t\t\tCorrectOrNot.setTextColor(Color.RED);\n\t\t\t\t\tCorrectOrNot.setText(\"Incorrect\");\n\t\t\t\t\treset();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"private static int evalState(GameState state){\n Move m = state.getMove();\n int counter = 0;\n\n // return directly if we encouter win or loss\n if(m.isXWin()){\n return 10000;\n }\n else if(m.isOWin()){\n return -1;\n }\n\n Vector<Integer> points = new Vector<Integer>();\n points.setSize(state.BOARD_SIZE*2+2);\n int player;\n Collections.fill(points, 1);\n int scaling = 4;\n int value = 0;\n\n for(int row = 0; row < state.BOARD_SIZE; row ++){\n for(int col = 0; col < state.BOARD_SIZE; col ++){\n player = state.at(row, col);\n\n // add points to the vector, increase by a factor for every new entry\n if(player == 1){\n points.set(row, points.get(row)*scaling);\n points.add(state.BOARD_SIZE + col, points.get(state.BOARD_SIZE - 1 + col)*scaling);\n\n // if it's in the first diagonal\n if(counter%state.BOARD_SIZE+1 == 0){\n points.add(state.BOARD_SIZE*2, points.get(state.BOARD_SIZE*2)*scaling);\n }\n\n // checking other diagonal\n if(counter%state.BOARD_SIZE-1 == 0 && row+col != 0){\n points.add(state.BOARD_SIZE*2 + 1, points.get(state.BOARD_SIZE*2)*scaling);\n }\n }\n // if an enemy player is encoutered null the value of the row/col\n else if(player == 2){\n points.set(row, 0);\n points.set(state.BOARD_SIZE + col, 0);\n if(counter%state.BOARD_SIZE+1 == 0){\n points.add(state.BOARD_SIZE*2, 0);\n }\n if(counter%state.BOARD_SIZE-1 == 0){\n points.add(state.BOARD_SIZE*2 + 1, 0);\n }\n }\n counter++;\n }\n }\n\n // if we have nulled the point we don't count it for the value of the state\n for(Integer i: points){\n if(i > 1){\n value += i;\n }\n }\n //System.err.println(\"Value: \" + value);\n return value;\n }",
"public static void main(String[] args) {\n\r\n\t\tboolean gameOver = true;\r\n\r\n\t\t// Do-while loop controls the entire game -- if this loop cannot run, the game will not run.\r\n\t\tdo {\r\n\t\t\tint players = 999;\r\n\t\t\tboolean numberError = true;\r\n\t\t\tString answer = \"\";\r\n\t\t\tint number = 0;\r\n\r\n\r\n\t\t\tint[] randomNumbers = new int[players];\r\n\t\t\tint[] numberOfGuesses = new int[players];\r\n\t\t\tint[][] numberArray = new int[players][205];\r\n\r\n\r\n\t\t\tScanner keyboard = new Scanner(System.in);\r\n\t\t\tboolean playAgain = false;\r\n\t\t\tSystem.out.println(\"Welcome to the Multi-Player Random Number Game\\nHow many players do we have?\");\r\n\r\n\t\t\tdo {\r\n\t\t\t\tif (players <= 0) {\r\n\t\t\t\t\tSystem.out.println(\"Please select at least one player.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Validates the number of players\r\n\t\t\t\ttry {\r\n\t\t\t\t\tplayers = parsePlayerInput();\r\n\r\n\t\t\t\t\tif (players > 0) {\r\n\t\t\t\t\t\tnumberError = false;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Creates the game\r\n\t\t\t\t\t\tfor (int i = 0; i < players; i++) {\r\n\t\t\t\t\t\t\t randomNumbers[i] = RNG();\r\n\t\t\t\t\t\t\t// *Remove the two slashes to the left and everything within these stars to see random number values per player* System.out.println(randomNumbers[i]);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < players; i++) {\r\n\t\t\t\t\t\t\tnumberOfGuesses[i] = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\tSystem.out.println(\"Your input was not an integer; try again\");\r\n\t\t\t\t\tnumberError = true;\r\n\t\t\t\t}\r\n\t\t\t} while (numberError == true);\r\n\t\t\tSystem.out.println(\"Okay, let's get started\\n\\nEach player has been assigned a random number.\\nTo win, correctly guess your random number before the other players do the same.\\nThe numbers are between 1 and 10.\");\r\n\t\t\r\n\t\t\t//Game condition set by While loop\r\n\t\t\twhile (playersFinished(players, randomNumbers, numberOfGuesses, numberArray ) == false) {\r\n\r\n\t\t\t\tfor (int i = 0; i < players; i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tint guessedNumber = numberOfGuesses[i];\r\n\t\t\t\t\t\tif (guessedNumber == 0 || numberArray[i][guessedNumber - 1] != randomNumbers[i]) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"\\nPlease enter a number Player \" + (i + 1));\r\n\t\t\t\t\t\t\tnumber = parseUserInput();\r\n\t\t\t\t\t\t\tguessComparator(number, randomNumbers[i]);\r\n\t\t\t\t\t\t\tnumberArray[i][guessedNumber] = number;\r\n\t\t\t\t\t\t\tnumberOfGuesses[i] = guessedNumber + 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tSystem.out.println(\"Your input was not an integer OR it was out of range; try again\");\r\n\t\t\t\t\t\ti = i - 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\tprintValues(players, numberOfGuesses, numberArray);\r\n\t\t\trankingGenerator(players, numberOfGuesses);\r\n\r\n\t\t\tSystem.out.println(\"\\nWould you like to play again?: yes? or no?\\ntype 1 for yes \\nor \\ntype 2 for no\");\r\n\t\t\tanswer = keyboard.next();\r\n\t\t\twhile (playAgain == false){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (Integer.parseInt(answer.trim()) == 1){\r\n\t\t\t\t\t\tSystem.out.print(\"\\n\\n\\n\");\r\n\t\t\t\t\t\tplayAgain = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (Integer.parseInt(answer.trim()) == 2) {\r\n\t\t\t\t\t\tgameOver = false;\r\n\t\t\t\t\t\tplayAgain = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Thanks for playing. Ciao!\"); \r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.print(\"\\nPlease input 1 or 2 to make a descision:\\n\");\r\n\t\t\t\t\t\tanswer = keyboard.next();\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e){\r\n\t\t\t\t\tSystem.out.print(\"Your input was not an integer\\nPlease input 1 or 2 to make a descision:\\n\");\r\n\t\t\t\t\tanswer = keyboard.next();\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\t//Game End\r\n\t\t} while (gameOver);\r\n\t}",
"public static void main(String[] args) {\r\n int grade = 0;\r\n \r\n initializeBoard();\r\n \r\n System.out.println(game);\r\n//getValueIn is a simple getter method the returns value at given array index \r\n if (game.getValueIn(1, 1) == 5)\r\n grade += 5;\r\n else\r\n System.out.println(\"getValueIn(r,c) test failed\");\r\n//confirms that to string was done correctly \r\n if (testToString()) \r\n grade += 5;\r\n else\r\n System.out.println(\"toString() test failed\");\r\n//testAddGuess1() test tries to add a guess (value to array index) that depends on boolean flag states \r\n game.addGuess(2, 3, 5);\r\n if (testAddGuess1()) \r\n grade += 5;\r\n else\r\n System.out.println(\"addGuess(r,c,v) test 1 failed\"); \r\n//testAddGuess2() test tries to add a guess (value to array index) that depends on boolean flag states \r\n game.addGuess(2, 2, 5);\r\n if (testAddGuess2()) \r\n grade += 5;\r\n else\r\n System.out.println(\"addGuess(r,c,v) test 2 failed\"); \r\n//testAddGuess3() test tries to add a guess (value to array index) that depends on boolean flag states \r\n game.addGuess(2, 4, 1);\r\n if (testAddGuess3()) \r\n grade += 10;\r\n else\r\n System.out.println(\"addGuess(r,c,v) test 3 failed\"); \r\n //tests reset(), by re-running the first toString test above, after running game.reset() \r\n game.reset();\r\n if (testToString())\r\n grade += 10;\r\n else\r\n System.out.println(\"reset() test failed\");\r\n//tests the game.getAllowedValues method by passing the game object method call and hence it's results\r\n//to the testGetAllowedValues(), which appears to only apply to one cell/array index at a time\r\n//so if I am correct this is saying what values can be used at coordinates 8, 8.\r\n//the answer that it uses to compare is a visual/manual analysis of expected results for cell 8, 8. \r\n if (testGetAllowedValues(game.getAllowedValues(8, 8)))\r\n grade += 10;\r\n else\r\n System.out.println(\"getAllowedValues() test failed\");\r\n \r\n System.out.printf(\"Your grade is %d/50.\\n\", grade);\r\n }",
"private void checkResults() {\n\n if (Dealer.calcTotal() == p1.calcTotal()) {\n System.out.println(\"You and the dealer Tie, Here is your money back.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (p1.calcTotal() > Dealer.calcTotal() && !bust) {\n System.out.println(\"You win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.calcTotal() > 31) {\n System.out.println(\"Dealer busts. You Win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.getTotal() > p1.calcTotal() && Dealer.getTotal() < 32) {\n System.out.println(\"Dealer Wins.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n p1.subPointCount(betNum);\n }\n }",
"public static void main(String[] args) {\n\t\tString personPlay;// input person play\r\n\t String computerPlay=null; \r\n\t String message;\r\n\t int computerInt;\r\n\t int[] resultArry= new int[10];// 0: tie ; 1 : win ; 2 : lose\r\n\t \r\n\t JOptionPane.showMessageDialog(null, \"you have 10 times plays!\");\r\n\t\r\n\t for(int t=0;t<=9;t++)\r\n\t {\r\n\t personPlay=JOptionPane.showInputDialog(null,\"Welcome to a rock-paper-scissor game!\\nPlease enter your move :\\nRock=R,Paper=P, and Scissor=S\");\r\n \r\n // //radom computer's play (1,2,3)\r\n \r\n computerInt= 1+ (int)(Math.random()*3); \r\n if (computerInt ==1) \r\n computerPlay = \"R\"; \r\n else computerPlay=(computerInt==2)? \"P\": \"S\";\r\n \r\n message= String.format(\"Computer play is: %s\\n your Choice is: %s\\n \",computerPlay,personPlay);\r\n JOptionPane.showMessageDialog(null, message);\r\n \r\n //check who won. Use if:\r\n if (personPlay.equalsIgnoreCase(computerPlay))\r\n {\r\n \tJOptionPane.showMessageDialog(null, \"it is a tie!!!!!!\");\r\n \tresultArry[t]=0;\r\n }\r\n else if ((personPlay.equalsIgnoreCase(\"S\") && computerPlay.equalsIgnoreCase(\"R\"))||(personPlay.equalsIgnoreCase(\"R\") && computerPlay.equalsIgnoreCase(\"P\"))||(personPlay.equalsIgnoreCase(\"P\") && computerPlay.equalsIgnoreCase(\"S\"))) \r\n { \r\n \t\t\tJOptionPane.showMessageDialog(null, \"Computer Win !! You Lose!!\");\r\n \t\t\tresultArry[t]=2;\r\n }\t \r\n \t else\r\n \t {\r\n \t\t JOptionPane.showMessageDialog(null, \"You Win !! Computer Lose!!\");\r\n \t\t resultArry[t]=1;\r\n \t }\r\n\t }\r\n\t int countT=0;\r\n\t int countL=0;\r\n\t int countW=0;\r\n\t /// show result person Play\r\n\t for(int i=0;i<=9;i++)\r\n\t {\r\n\t \tif(resultArry[i]==0)\r\n\t \t\tcountT++;\r\n\t \telse \tif(resultArry[i]==1)\r\n\t \t\tcountT=countW++;\r\n\t \t\telse\r\n\t \t\t\tcountL++;\r\n\t }\r\n\t message= String.format(\"Result is : \\nTie : %d\\nWin : %d\\nLose : %d\\n\", countT,countW,countL);\r\n\t JOptionPane.showMessageDialog(null, message);\r\n\t \r\n\t}",
"public static void main(String[] args) {\n\n Scanner scn = new Scanner(System.in);\n\n int amount;\n int tries = 1; // max 3 attempts\n\n do {\n System.out.println(\"Give me 5 dollars!\");\n amount = scn.nextInt();\n tries++;\n } while (amount < 5 && tries < 4);\n\n// System.out.println(\"Give me 5 dollars!\");\n\n// amount = scn.nextInt();\n//\n// while (amount < 5 && tries <= 2) {\n// System.out.println(\"Give me 5 dollars!\");\n// tries++;\n// amount = scn.nextInt();\n// }\n//\n if (amount >= 5) {\n System.out.println(\"Thanks!\");\n } else {\n System.out.println(\"You failed!\");\n }\n\n\n }",
"private void yourturn() {\n if (whosturn != 3) {\n whosturn = 3;\n displayTable();\n }\n\n // TODO mega duplication\n int top = 0;\n // testing is player has a card they can play\n if (pile.notEmpty()) {\n boolean canplay = false;\n if (hand.getCard(0) == null) { // if player only has card on the table\n if (hand.isFaceUp()) // if player has faceup card on the table\n {\n for (int n = 0; n < 3; n++) {\n if (hand.getFaceUp(n) != null) {\n if (nine && pile.topValue() == 9) {\n top = 0;\n for (int i = 0; i < 52; i++) {\n if (pile.get(i) == null) {\n canplay = true;\n break;\n }\n if (pile.get(i).getValue() == 9) top++;\n else break;\n }\n }\n if (canplay) break;\n if (seven\n && pile.get(top).getValue() == 7\n && hand.getFaceUp(n).getValue() < 7) {\n canplay = true;\n break;\n } else if (hand.getFaceUp(n).getValue() == 2\n || hand.getFaceUp(n).getValue() == 10) {\n canplay = true;\n break;\n } else if (nine && hand.getFaceUp(n).getValue() == 9) {\n canplay = true;\n break;\n } else if (!seven || pile.get(top).getValue() != 7) {\n if (pile.get(top).getValue() <= hand.getFaceUp(n).getValue()) {\n canplay = true;\n break;\n }\n }\n }\n }\n } else // if player only has facedown cards\n canplay = true;\n } else {\n for (int n = 0; n < hand.length() - 1; n++) {\n if (hand.getCard(n) == null) break;\n if (nine && pile.topValue() == 9) {\n top = 0;\n for (int i = 0; i < 52; i++) {\n if (pile.get(i) == null) {\n canplay = true;\n break;\n }\n if (pile.get(i).getValue() == 9) top++;\n else break;\n }\n }\n if (canplay) break;\n if (hand.getCard(n).getValue() == 2 || hand.getCard(n).getValue() == 10) {\n canplay = true;\n break;\n }\n if (nine && hand.getCard(n).getValue() == 9) {\n canplay = true;\n break;\n }\n if (seven && pile.get(top).getValue() == 7 && hand.getCard(n).getValue() < 7) {\n canplay = true;\n break;\n } else if (seven != true || pile.get(top).getValue() != 7) {\n if (pile.get(top).getValue() <= hand.getCard(n).getValue()) {\n canplay = true;\n break;\n }\n }\n }\n }\n if (canplay) {\n // sh.addMsg(\"Its Your Turn\");\n sh.setmyTurn(true);\n } else { // cant play then must pick up the pile\n sh.addMsg(\n \"The card played was a \"\n + pile.top().getStringValue()\n + \" you had to pick up the pile. BLAOW\");\n pile.moveToHand(hand);\n sendCommand(\"turn:pickup:\");\n nextTurn();\n displayTable();\n }\n } else {\n // sh.addMsg(\"Its Your Turn\");\n sh.setmyTurn(true);\n }\n }",
"private void gameHelper(int ranNum){\n\t\tif(questionAnsweredCount>=25){\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"It is \" + teams[ranNum].getName() + \"'s turn to choose a question\");\n\t\t//find category\n\t\tSystem.out.println(\"Please choose a category you would like to answer: \");\n\t\tint categoryIdx = getCategory();\n\t\t//find points\n\t\tSystem.out.println(\"Please enter the dollar value of the question you wish to answer\");\n\t\tint pointIdx = getPointsIndex();\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t//now check if the question is answer knowing dollar and cat is valid\n\t\tboolean answered = board[categoryIdx][pointIdx].answeredYet();\n\t\tif(!answered){\n\t\t\tint point = points[pointIdx];\n\t\t\tSystem.out.println(board[categoryIdx][pointIdx].getQeustion());\n\t\t\tSystem.out.println(\"Enter your answer. Remember to pose it as a question.\");\n\t\t\tString ans = sc.nextLine();\n\t\t\treadExitCommand(ans); // check if the user wants to exit any point\n\t\t\treadReplayCommand(ans);\n\t\t\tboard[categoryIdx][pointIdx].answerQuestion(ans); //ask Q\n\t\t\tif(!board[categoryIdx][pointIdx].getRight()&&board[categoryIdx][pointIdx].getWarned()){\n\t\t\t\t//not in question format. give one more chance\n\t\t\t\tans = sc.nextLine();\n\t\t\t\treadExitCommand(ans);\n\t\t\t\treadReplayCommand(ans);\n\t\t\t\tboard[categoryIdx][pointIdx].answerQuestion(ans);\n\t\t\t}\n\t\t\tif(board[categoryIdx][pointIdx].getRight()){\n\t\t\t\tSystem.out.println(\"You answered it right! \" + point + \" will be added to your total\");\n\t\t\t\tquestionAnsweredCount+= 10;\n\t\t\t\tteams[ranNum].addDollars(point);\n\t\t\t\tprintDollars();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Wrong Answer!\");\n\t\t\t\tquestionAnsweredCount++; \n\t\t\t\tteams[ranNum].minusDollars(point);\n\t\t\t\tprintDollars();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Question already answered. Choose it again\");\n\t\t\tgameHelper(ranNum); //same team choose a question again\n\t\t}\n\t\tint nextIdx = (ranNum+1)%(teams.length);\n\t\tgameHelper(nextIdx);\n\t}",
"public static int make_guess(int hits, int strikes) {\n int myguess = 1000;\n\n /*\n * IMPLEMENT YOUR GUESS STRATEGY HERE\n */\n\n //First guess is always 1122, which is suggested by Donald Knuth in Mastermind(4,6)\n if (isFirstGuess){\n isFirstGuess = false;\n myguess = 1122; //Initial guess recommended by Donald Knuth\n SOLVER.setGuess(new Code(1122, true));\n } else {\n Response response = new Response(strikes, hits);\n SOLVER.processResponse(response);\n Code guess = SOLVER.guess();\n myguess = guess.getCode();\n }\n\n return myguess;\n }",
"public static void paintHangman() {\n if (count == 1) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"1 incorrect guess, 6 guesses left\");\n }\n if (count == 2) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" | |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"2 incorrect guesses, 5 guesses left\");\n }\n if (count == 3) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|\");\n System.out.println(\" | / |\");\n System.out.println(\" | / |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"3 incorrect guesses, 4 guesses left\");\n }\n if (count == 4) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"4 incorrect guesses, 3 guesses left\");\n }\n if (count == 5) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | /\");\n System.out.println(\" | /\");\n System.out.println(\" | _/\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"5 incorrect guesses, 2 guesses left\");\n }\n if (count == 6) {\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / 0 0 \\\\\");\n System.out.println(\" | | < ' |\");\n System.out.println(\" | | ~~ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | _/ \\\\_\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"6 incorrect guesses, only 1 guess left!\");\n }\n if (count == 7) {\n System.out.println(\"GAME OVER!\");\n System.out.println(\"7 incorrect guesses\");\n System.out.println(\"Wrong guess, try again\");\n System.out.println(\" ______________\");\n System.out.println(\" | _|_\");\n System.out.println(\" | / X X \\\\\");\n System.out.println(\" | | < |\");\n System.out.println(\" | | __ |\");\n System.out.println(\" | \\\\_____/\");\n System.out.println(\" | |\");\n System.out.println(\" | __|__\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / | \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | / \\\\\");\n System.out.println(\" | _/ \\\\_\");\n System.out.println(\" |\");\n System.out.println(\" |\");\n System.out.println(\"____|____\");\n System.out.println(\"RIP \" + UserName.getUserName());\n System.out.println(\"GAME OVER! The word was \" + CategorySelector.word);\n }\n }",
"@Override\n public String getGuess() throws TimeoutException {\n\n int count = 1;\n\n while (this.answers.size() - count >0){\n if(this.answers.get(answers.size()-count).equals(\"yes\")) {\n\n return excuteQuery(this.getQuery(\"Guess\", \"Question=\" + \"'\" + this.questions.get(questions.size() -count) + \"'\"))\n .replaceAll(\"</br>\", \"\\n\");\n }\n count++;\n }\n\n return \"no result found\\n\";\n\n\n }",
"static int waysToGiveACheck(char[][] board) {\n\t\tint[] pawnPos = new int[2];\n\t\tint[] bkPos = new int[2];\n\t\tint[] wkPos = new int[2];\n\t\tint[] forthPos = new int[2];\n\t\tchar fourth = 'x';\n\t\tint answerCount = 0;\n\t\tint hashCount = 0;\n\t\tfor(int board_i = 0; board_i < 8; board_i++){\n\t\t\tfor(int board_j = 0; board_j < 8; board_j++){\n\t\t\t\tswitch(board[board_i][board_j]){\n\t\t\t\tcase 35:\n\t\t\t\t\thashCount++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 80:\n\t\t\t\t\t{pawnPos[0] = board_i;\n\t\t\t\t\tpawnPos[1] = board_j;\n\t\t\t\t\tbreak;}\n\t\t\t\tcase 107:\n\t\t\t\t\t{bkPos[0] = board_i;\n\t\t\t\t\tbkPos[1] = board_j;\n\t\t\t\t\tbreak;}\n\t\t\t\tcase 75:\n\t\t\t\t\t{wkPos[0] = board_i;\n\t\t\t\t\twkPos[1] = board_j;\n\t\t\t\t\tbreak;}\n\t\t\t\tdefault:\n\t\t\t\t\t{forthPos[0] = board_i;\n\t\t\t\t\tforthPos[1] = board_j;\n\t\t\t\t\tfourth = board[board_i][board_j];\n\t\t\t\t\tbreak;}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint xdistPk = Math.abs(pawnPos[0] - bkPos[0]);\n\t\tint ydistPk = Math.abs(pawnPos[1] - bkPos[1]);\n\n\t\tif(xdistPk == ydistPk)\n\t\t\tanswerCount = answerCount+2;\n\t\tif(xdistPk==0)\n\t\t\tanswerCount++;\n\t\tif(ydistPk ==0)\n\t\t\tanswerCount++;\n\t\tif((xdistPk == 2 && ydistPk==1) || (xdistPk == 1 && ydistPk==2) )\n\t\t\tanswerCount++;\n\n\t\treturn answerCount;\n\n\t}",
"public void finishSubRound(){\n\n\t\t/* sorts the cards on in the table pool in a decsending order */\n List<PlayerCardArray> sortedTableHand =\n\t\t\t\tgameLogic.getTableHand().sortedTableHand(gameLogic.getTrumpCard().getSuit(),\n gameLogic.getLeadSuitCard().getSuit());\n\n System.out.println(sortedTableHand);\n\n PlayerCardArray winner = sortedTableHand.get(0);\n\n\t\t/* Display winner of the round */\n System.out.println(\"The winner of this round is player ID: \" + winner.getPlayerId());\n gameLogic.getScoreboard().addTricksWon(round, winner.getPlayerId());\n\n\t\t/* Get the winner name */\n\t\tif (winner.getPlayerId() == 0){\n\t\t\twinnerName = lblNameA.getText();\n\t\t} else if (winner.getPlayerId() == 1){\n\t\t\twinnerName = lblNameB.getText();\n\t\t}else if (winner.getPlayerId() == 2){\n\t\t\twinnerName = lblNameC.getText();\n\t\t}else if (winner.getPlayerId() == 3){\n\t\t\twinnerName = lblNameD.getText();\n\t\t}\n\n\t\t/* displays the message dialog box informing winner of the round */\n JOptionPane.showMessageDialog(null, \"Round: \" + round + \"\\nSubround: \" + (roundCounter+1) + \"\\nWinner is: \" + winnerName);\n\n\t\t/* set Winner for player */\n for (Player p : gameLogic.getArrayOfPlayers().getArrayOfPlayers()) {\n if ( p.getPlayerId() == winner.getPlayerId() ) {\n p.setTrickWinner(true);\n } else {\n p.setTrickWinner(false);\n }\n }\n\n\t\t/* updates the UI informing play how many tricks won so far */\n\t\tfor (Player p : gameLogic.getArrayOfPlayers().getArrayOfPlayers()) {\n\t\t\tif (winner.getPlayerId() == 0){\n\t\t\t\troundBidsWon += 1;\n\t\t\t\tbreak;\n\t\t\t} else if (winner.getPlayerId() == 1){\n\t\t\t\troundBidsWon1 += 1;\n\t\t\t\tbreak;\n\t\t\t} else if (winner.getPlayerId() == 2){\n\t\t\t\troundBidsWon2 += 1;\n\t\t\t\tbreak;\n\t\t\t} else if (winner.getPlayerId() == 3){\n\t\t\t\troundBidsWon3 += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t/* Set position for players */\n System.out.println(\"OLD PLAYER ORDER: \" + gameLogic.getArrayOfPlayers().getArrayOfPlayers());\n if (round != 11) {\n gameLogic.setPlayerOrder(round);\n currentPlayer = gameLogic.getArrayOfPlayers().getArrayOfPlayers().get(0).getPlayerId();\n if (currentPlayer == 0){\n \tSystem.out.println(\"YOU ARE NOW THE FIRST PERSON TO PLAY\");\n \twaitingUser = true;\n } else {\n \twaitingUser = false;\n }\n System.out.println(\"NEW PLAYER ORDER: \" + gameLogic.getArrayOfPlayers().getArrayOfPlayers());\n }\n\n\t\t/* Clear tableHand at end of subround */\n gameLogic.getTableHand().clearTableHand();\n\t}",
"public static void main(String[] args) {\n\n int tries = 1;\n while (tries < 5) {\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Enter first number: \");\n int first = scanner.nextInt();\n System.out.print(\"Enter second number: \");\n int second = scanner.nextInt();\n System.out.println(\"The smaller of these is: \" +\n Math.min(first, second));\n tries += 1;\n }\n\n /*\n\n // Strings\n String name = \"John Doe\";\n System.out.println(name.length());\n String age = \"40 years of age\";\n\n // Concatenation (combining strings)\n System.out.println(name + \" is \" + age);\n\n System.out.print(\"This is a new line \\n\");\n System.out.print(\"This is a tab \\t character \\n\");\n\n String greeting = \"Hello, world\";\n System.out.println(greeting.substring(7));\n System.out.println(greeting.substring(0, 5));\n\n System.out.println(\"A couple of words\".indexOf(\"words\"));\n\n String player1 = \"rock\", player2 = \"paper\";\n\n if (player1.compareTo(player2) == 0) {\n System.out.println(\"A tie\");\n }\n switch (player1) {\n case \"rock\":\n switch (player2) {\n case \"scissors\":\n\n break;\n case \"paper\":\n\n break;\n\n }\n break;\n case \"scissors\":\n switch (player2) {\n case \"rock\":\n\n break;\n case \"paper\":\n\n break;\n\n }\n break;\n case \"paper\":\n switch (player2) {\n case \"rock\":\n\n break;\n case \"scissors\":\n\n break;\n\n }\n break;\n }\n\n if (player1.compareTo(\"rock\") == 0) {\n if (player2.compareTo(\"rock\") == 0) {\n\n } else if (player2.compareTo(\"scissors\") == 0) {\n\n } else if (player2.compareTo(\"paper\") == 0) {\n\n }\n } else if (player1.compareTo(\"scissors\") == 0) {\n if (player2.compareTo(\"rock\") == 0) {\n\n } else if (player2.compareTo(\"scissors\") == 0) {\n\n } else if (player2.compareTo(\"paper\") == 0) {\n\n }\n } else if (player1.compareTo(\"paper\") == 0) {\n if (player2.compareTo(\"rock\") == 0) {\n\n } else if (player2.compareTo(\"scissors\") == 0) {\n\n } else if (player2.compareTo(\"paper\") == 0) {\n\n }\n }\n\n */\n }",
"private static int coinFlip() {\n\t\tint num = (Math.random() <= 0.5) ? 1 : 2; \n\t\tString answer;\n\t\tif ( num == 1) {\n\t\t\tanswer = \"h\";\n\t\t}else {\n\t\t\tanswer = \"t\";\n\t\t}\n\t\t\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\t\n System.out.print(\"Enter you guess (h = heads, t = tails):\");\n String guess = input.next();\n //change the guess to lower case to accept both capital or lower case answer\n guess.toLowerCase();\n \n //gain 50 points if win the toss\n if ( guess.equals(answer)) {\n \t//System.out.println(\"You won the toss, congratulation! +50 points\");\n \treturn 50;\n }else {\n \t //System.out.println(\"Wrong guess! 0 points\");\n \t return 0;\n }\n \n\t}",
"public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n System.out.print(\"금액 입력:\");\n int won=scan.nextInt();\n \n // 5만원권\n int a=won/50000;\n System.out.printf(\"5만원권:%d매\\n\",a);\n won=won-(50000*a);\n System.out.println(\"won=\"+won);\n // 1만원\n a=won/10000;\n System.out.printf(\"1만원권:%d매\\n\",a);\n won=won-(10000*a);\n System.out.println(\"won=\"+won);\n // 5천원\n a=won/5000;\n System.out.printf(\"5천원권:%d매\\n\",a);\n won=won-(5000*a);\n System.out.println(\"won=\"+won);\n \n // 1천원\n a=won/1000;\n System.out.printf(\"1천원권:%d매\\n\",a);\n won=won-(1000*a);\n System.out.println(\"won=\"+won);\n \n // 500원\n a=won/500;\n System.out.printf(\"500원:%d개\\n\",a);\n won=won-(500*a);\n System.out.println(\"won=\"+won);\n \n // 100원\n a=won/100;\n System.out.printf(\"100원:%d개\\n\",a);\n won=won-(100*a);\n System.out.println(\"won=\"+won);\n \n // 50원\n a=won/50;\n System.out.printf(\"50원:%d개\\n\",a);\n won=won-(50*a);\n System.out.println(\"won=\"+won);\n \n // 10원\n a=won/10;\n System.out.printf(\"10원:%d개\\n\",a);\n won=won-(10*a);\n System.out.println(\"won=\"+won);\n \n System.out.printf(\"1원:%d개\\n\",won);\n \n\t}",
"public static void main(String[] args) {\n Scanner myInt = new Scanner(System.in); // This line creates a scanner object\r\n System.out.print(\"Enter number between 1 and 5:\");\r\n \r\n int guess = myInt.nextInt(); // read user input\r\n if (guess >=1 && guess <=5){\r\n int result = guess%2; \r\n if (result == 0)\r\n {\r\n System.out.println(\"Lucky Guess\");\r\n }else{\r\n System.out.println(\"Better Luck Next Time\");\r\n } }else{\r\n System.out.print(\"Enter number between 1 and 5:\");\r\n guess = myInt.nextInt();\r\n } \r\n }",
"public void testScoreboardForBeingJudgedState () throws Exception {\n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20 (a No before first yes)\n \"2,1,A,3,Yes\", // 3 (first yes counts Minute points but never Run Penalty points)\n \"3,1,A,5,No\", // zero -- after Yes\n \"4,1,A,7,Yes\", // zero -- after Yes\n \"5,1,A,9,No\", // zero -- after Yes\n \"6,1,B,11,No\", // zero -- not solved\n \"7,1,B,13,No\", // zero -- not solved\n \"8,2,A,30,Yes\", // 30 (minute points; no Run points on first Yes)\n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n// startExplorer(getOutputDataDirectory());\n \n InternalContest contest = new InternalContest();\n \n int numTeams = 2;\n\n initData(contest, numTeams, 5);\n \n for (String runInfoLine : runsData) {\n SampleContest.addRunFromInfo(contest, runInfoLine);\n }\n\n Run [] runs = contest.getRuns();\n \n for (Run run : runs){\n run.setStatus(RunStates.BEING_JUDGED);\n }\n\n checkOutputXML(contest);\n\n confirmRanks(contest, rankData);\n }",
"void setMaxWrongGuesses(Integer max);",
"private Set<Integer> generateWinningNumbers()\r\n\t{\r\n\t\tSet<Integer> winningNumbers = new HashSet<Integer>();\r\n\t\t\r\n\t\tint i=0;\r\n\t\twhile(i<6)\r\n\t\t{\r\n\t\t\tboolean added = winningNumbers.add(random.nextInt(lotteryMax + 1));\r\n\t\t\tif(added) i++;\r\n\t\t}\r\n\t\treturn winningNumbers;\r\n\t}",
"public static boolean processScoringTeams() {\r\n\t\tboolean done = true;\r\n\t\tint player1Tricks = 0;\r\n\t\tint player2Tricks = 0;\r\n\t\tint player3Tricks = 0;\r\n\t\tint player4Tricks = 0;\r\n\t\t\r\n\t\t//Get the value of all the players tricks taken.\r\n\t\tplayer1Tricks = FrameUtils.player1TricksTaken.getSelectedIndex();\r\n\t\tplayer2Tricks = FrameUtils.player2TricksTaken.getSelectedIndex();\r\n\t\tplayer3Tricks = FrameUtils.player3TricksTaken.getSelectedIndex();\r\n\t\tplayer4Tricks = FrameUtils.player4TricksTaken.getSelectedIndex();\r\n\t\t\r\n\t\t//Check if all the choice boxes have been selected.\r\n\t\tif (player1Tricks == -1 || player1Tricks == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\tif (player2Tricks == -1 || player2Tricks == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\tif (player3Tricks == -1 || player3Tricks == 0) {\r\n\t\t\tdone = false;\r\n\t\t\t//Needed because the player bid was not a nil and the index for\r\n\t\t\t//the tricks taken is never read, by design. This only happens on\r\n\t\t\t//bids that are nils.\r\n\t\t\tif (FrameUtils.player3Bid.getSelectedItem() != \"nil\" ||\r\n\t\t\t\t\tFrameUtils.player3Bid.getSelectedItem() != \"dbl\") {\r\n\t\t\t\tdone = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (player4Tricks == -1 || player4Tricks == 0) {\r\n\t\t\tdone = false;\r\n\t\t\t//Needed because the player bid was not a nil and the index for\r\n\t\t\t//the tricks taken is never read, by design. This only happens on\r\n\t\t\t//bids that are nils.\r\n\t\t\tif (FrameUtils.player4Bid.getSelectedItem() != \"nil\" ||\r\n\t\t\t\t\tFrameUtils.player4Bid.getSelectedItem() != \"dbl\") {\r\n\t\t\t\tdone = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Get the value of all the players tricks taken.\r\n\t\tplayer1Tricks = stringToInt(FrameUtils.player1TricksTaken.getSelectedItem());\r\n\t\tplayer2Tricks = stringToInt(FrameUtils.player2TricksTaken.getSelectedItem());\r\n\t\tplayer3Tricks = stringToInt(FrameUtils.player3TricksTaken.getSelectedItem());\r\n\t\tplayer4Tricks = stringToInt(FrameUtils.player4TricksTaken.getSelectedItem());\r\n\t\t\r\n\t\t//Check if tricks taken in a game equals 13.\r\n\t\tif (player1Tricks + player2Tricks + player3Tricks + player4Tricks != 13) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!done) FrameUtils.showDialogBox(\"Tricks taken was entered wrong.\");\r\n\t\t\t\r\n\t\t//Save tricks taken data.\r\n\t\tsaveTricksTakenData();\r\n\t\t\r\n\t\treturn done;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc;\n\t\t\n\t\tint guesses = 10;\n\t\t\n\t\tRandom rand = new Random();\n\t\tint r = rand.nextInt(100)+1;\n\t\t\n\t\tSystem.out.println(\"I have randomly chosen a number between [1, 100]\\nTry to guess it.\\nYou have \"+guesses+\" guess(es) left: \");\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tsc = new Scanner(System.in);\n\t\t\tint mine = sc.nextInt();\n\t\t\tif(mine == r) {\n\t\t\t\tSystem.out.println(\"CORRECT ... YOU WIN!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(r < mine)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"It's smaller than \"+mine);\n\t\t\t\tSystem.out.println(\"You have \"+guesses+\" guess(es) left: \");\n\t\t\t}\n\t\t\telse if(r > mine)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"It's bigger than \"+mine);\n\t\t\t\tSystem.out.println(\"You have \"+guesses+\" guess(es) left: \");\n\t\t\t}\n\t\t\tguesses--;\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tint input = 0;\r\n\t\tint ai = 0;\r\n\t\tint win = 0;\r\n\t\tint defeat = 0;\r\n\t\tint draw = 0;\r\n\t\t\r\n\t\tString me = \"\";\r\n\t\tString com = \"\";\r\n\t\tSystem.out.println(\"★☆★☆★☆★☆가위바위보 게임입니다!★☆★☆★☆★☆\");\r\n\t\tfor(int i = 1 ; i < 4 ; i++) {\r\n\t\t\tSystem.out.println(\"\\t\\t\\t\\t\\t 최대횟수/남은횟수\");\r\n\t\t\tSystem.out.println(\"가위(1), 바위(2), 보(3) 중 하나를 입력하세요>>>\\t\\t3 / \" + i);\r\n\t\t\tinput = scan.nextInt();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tai = (int)(Math.random()*3) + 1;\r\n\t\t\t\r\n\t\t\tif (input == 1) me = \"가위\";\r\n\t\t\telse if (input == 2) me = \"바위\";\r\n\t\t\telse if (input == 3) me = \"보\";\r\n\t\t\telse System.out.println(\"잘못 입력하셨습니다\");\r\n\t\t\tif (ai == 1) com = \"가위\";\r\n\t\t\telse if (ai == 2) com = \"바위\";\r\n\t\t\telse if (ai == 3) com = \"보\";\r\n\t\t\t\r\n\t\t\tif(me != \"\") {\r\n\t\t\t\tSystem.out.println(\"컴퓨터도 선택 했습니다.\");\r\n\t\t\t\tSystem.out.println(\"당신은 \\\"\" + me + \"\\\" 상대는 \\\"\" + com + \"\\\" 을 선택했습니다\");\r\n\t\t\t\r\n\t\t\t\tswitch (input - ai) {\r\n\t\t\t\tcase -1 : case 2 : \r\n\t\t\t\t\tSystem.out.println(\"★☆저런~~ 졌네요★☆\\n\"); defeat += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase -2 : case 1 : \r\n\t\t\t\t\tSystem.out.println(\"★☆오~~ 이겼네요★☆\\n\"); win += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 0 : \r\n\t\t\t\t\tSystem.out.println(\"★☆이런! 비겼네요★☆\\n\"); draw += 1;\r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault : System.out.println(\"오류 입니다\"); \r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(win==defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 무승부 입니다\");\r\n\t\t} else if(win > defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 승리입니다\");\r\n\t\t} else if(win < defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 패배입니다\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"오류 입니다\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public void playRound(){\n this.gameState = GameController.createGameState(this.game);\n \n // Verifica se o \n if(this.gameState.isEnded()){\n var winner = this.gameState.getPlayerQttCards() == 0 ? this.game.getComputer() : this.game.getPlayer();\n\n this.gameState.setWinner(winner);\n }\n else{\n \n // Mostrando o vira, as manilhas, a quantidade de cartas dos jogadores e as cartas do jogador\n this.view.displayGame(this.gameState);\n\n var playerCardChose = this.getPlayerCardChose();\n var computerCardChose = Utils.generateRandomNumber(getGameState().getComputerQttCards());\n\n try{\n var playerCard = this.game.getPlayer().playCard(playerCardChose);\n var computerCard = this.game.getComputer().playCard(computerCardChose);\n\n var winnerCard = this.verifyBiggerCard(playerCard, computerCard);\n\n // Verificando qual `Player` ganhou e se um ganhou\n\n var hasPlayerWon = winnerCard.equals(playerCard);\n var hasComputerWon = winnerCard.equals(computerCard);\n\n var turnedCard = this.getGameState().getTurnedCard();\n\n // Aqui caso o player tenha ganhado ele recebe a carta do computador e senão ele perde a carta para o computador\n if(hasPlayerWon){\n this.game.getPlayer().earnCard(computerCard);\n this.game.getComputer().loseCard(computerCard);\n }\n else if(hasComputerWon){\n this.game.getComputer().earnCard(playerCard);\n this.game.getPlayer().loseCard(playerCard);\n }\n \n // Na hora de mostrar o vencedor eu verifico se um player venceu, se sim eu mostro vitória ou derrota para o Player\n // Se não eu mostro empate\n \n if(hasComputerWon || hasPlayerWon){\n this.view.displayRoundWinner(turnedCard, playerCard, computerCard, hasPlayerWon);\n }\n else {\n this.view.displayRoundWinner(turnedCard, playerCard, computerCard);\n }\n\n }\n catch(Exception excp){\n this.view.displayMessageError(excp.getMessage());\n\n this.playRound();\n }\n }\n \n }",
"public int getGuessesLeft() {\r\n return (guessesAllowed - numWrongGuesses);\r\n }",
"public void round(Player playerWhoseTurn, ArrayList<Player> players) {\n\n view.print(\"\");\n view.print(\"--Player \" + playerWhoseTurn.getPlayerId() + \"--\");\n view.print(\"\");\n\n // displaying decisive player's card\n view.printCard(playerWhoseTurn.showTopCard());\n view.print(\"\\n\\n\");\n\n // creating list of cards currently in game (table)\n ArrayList<Card> cardsOnTable = new ArrayList<Card>();\n\n // All players lay their cards on table\n for (Player player : players) {\n cardsOnTable.add(player.layCardOnTable());\n }\n\n // Actual round\n\n // Asking player for decision which feature to fight with\n int playerDecision;\n\n while (true) {\n\n // decisive player decides which feature to fight with\n playerDecision = view.decideWhichFeature();\n\n // possible decisions\n int[] possibleChoices = {1, 2, 3, 4};\n\n // check if player choose existing option\n if (!checkIfValueInArray(possibleChoices, playerDecision)) {\n view.print(\"No such choice! Try again!\");\n } else {\n break;\n }\n }\n\n // Dealer checks who won (there might be exequo winners!)\n ArrayList<Integer> winnersIds = dealer.getWinner(cardsOnTable, playerDecision);\n\n // if there are no exequo winners, so there is only one winner:\n if (winnersIds.size() == 1) {\n\n // display message who won\n view.print(\"\\nPlayer \" + winnersIds.get(0) + \" won the round!\");\n\n //add cards from cardsOnTable to winner's hand\n for (Card card : cardsOnTable) {\n for (Player player : players) {\n if (player.getPlayerId() == winnersIds.get(0)) {\n player.addCard(card);\n }\n }\n }\n // clear cardsOnTable\n cardsOnTable.clear();\n\n //add cards from tempCardStack (if ther are any) to winner's hand\n for (Card card : tempCardStack) {\n for (Player player : players) {\n if (player.getPlayerId() == winnersIds.get(0)) {\n player.addCard(card);\n }\n }\n }\n // clear tempCardStack\n tempCardStack.clear();\n }\n\n // when there are exequo winners:\n else if (winnersIds.size() > 1) {\n\n // Nobody gets the cards, instead cards go to temporary stack untill someone wins them\n // in the next round\n for (Card card : cardsOnTable) {\n tempCardStack.add(card);\n }\n // display who won (for example \"Players 1, 2, 3 exequo won the round\")\n view.printExequoWinners(winnersIds);\n }\n }",
"public String start() {\r\n\t\tint toss;\r\n\t\tint successes = 0;\r\n\t\tRandom rand = new Random();\r\n\t \t\r\n\t \t/* play game */\r\n\t \tfor (int i = 0; i < 3; i++) {\t//player gets three tries\r\n\t \t\ttoss = rand.nextInt(2);\r\n\t \t\tif (toss == 1) {\r\n\t \t\t\tsuccesses += 1;\t\t\t//a successful toss is equal to 1\r\n\t \t\t}\r\n\t \t}\r\n\t \t\r\n\t \t/* award prize */\r\n\t \tif (successes == 3) {\r\n numPrize1++;\r\n\t \t\treturn(firstPrize);\r\n\t \t} else {\r\n numPrizeC++;\r\n\t \t\treturn(consolationPrize);\r\n\t \t}\r\n\t}",
"public void collectWinnings() {\n\t\tif (hand.checkBlackjack()) {\n\t\t\tdouble win = bet * 1.5;\n\t\t\ttotalMoney += (win + bet);\n\t\t} else {\n\t\t\ttotalMoney += (bet + bet);\n\t\t}\n\t}",
"public void playGame()\n\t{\n\t\t// Playing a new round; increase round id\n\t\troundId += 1;\n\n\t\tint diceRoll = 1 + dice.nextInt(6);\n\t\t\n\t\tif(diceRoll <= 3)\n\t\t{\n\t\t\tbranchId = 0;\n\t\t\tresult = 0;\n\t\t\tSystem.out.println(\"Roll = \" + diceRoll + \", result = 0\");\n\t\t\tsendMessage(diceRoll, roundId, branchId, result);\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbranchId = 1;\n\t\t\tresult = 6;\n\t\t\tSystem.out.println(\"Roll = \" + diceRoll + \", result = 6\");\n\t\t\tsendMessage(diceRoll, roundId, branchId, result);\t\t\t\t\n\t\t}\n\t\t\n\t}",
"public static void attempts(Scanner s, int n) {\n\t\tint p = 1;\r\n\t\twhile (dif(n) > 5) {\r\n\t\t\tp++;\r\n\t\t\tSystem.out.println(\"The difference is greater than 5.\");\r\n\t\t\tSystem.out.println(\"Try it again!\");\r\n\t\t\tSystem.out.println(\"Enter the number:\");\r\n\t\t\tn = readNum(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nCongrats! You succeeded in \" + p + \" attempts!\");\r\n\t\tendProgram();\r\n\t}",
"public static void main(String [] args){\n int randomNumber = (int) (Math.random()*100);\r\n\r\n // creating a scanner object\r\n Scanner scanner = new Scanner(System.in);\r\n\r\n // instructions\r\n System.out.println(\"I will choose a Number randomly between 1 - 100\");\r\n System.out.println(\"Try to guess it.\");\r\n\r\n for(int i = 10; i > 0; i--){\r\n\r\n System.out.println(\"you Currently have \" + i + \" guess(es) left choose again:\");\r\n\r\n // taking user input\r\n int guess = scanner.nextInt();\r\n\r\n if (guess > randomNumber){\r\n System.out.println(\"It's smaller than: \" + guess + \" try again.\");\r\n }else if (guess < randomNumber){\r\n System.out.println(\"It's bigger than: \" + guess + \" try again.\");\r\n } else{\r\n System.out.println(\"You Win! \" + guess);\r\n break;\r\n }\r\n }\r\n }",
"public void checkGuess() {\n\t\tString guessText = txtGuess.getText();\n\t\tString message = \"\";\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\t//check users guess too high/too low\n\t\t\tint guess = Integer.parseInt(guessText);\n\t\t\t\n\t\t\tif ( guess < 0 || guess > 100) {\n\t\t\t\tthrow new Exception(\"User entry out of range\");\n\t\t\t}//if\n\n\t\t\t//too high\n\t\t\tif(guess > theNumber){\n\t\t\t\tmessage = guess + \" is to high guess again!\";\n\t\t\t\tlblOutput.setText(message);\n\t\t\t}//if\n\t\t\t//too low\n\t\t\telse if (guess < theNumber){\n\t\t\t\tmessage = guess + \" is to low guess again!\";\n\t\t\t\tlblOutput.setText(message);\n\t\t\t}else{//guessed correct\n\t\t\t\tmessage = guess + \" was right! You win! Let's play again!\";\n\t\t\t\tlblOutput.setText(message);\n\t\t\t\tnewGame();\n\t\t\t}//else\n\t\t}//try\n\t\tcatch(Exception e) {\n\t\t\tlblOutput.setText(\"Enter a whole number between 1-100\"); \n\t\t}//catch\n\t\tfinally {\n\t\t\t\n\t\t\ttxtGuess.requestFocus();\n\t\t\ttxtGuess.selectAll();\n\t\t\t\n\t\t}//finally\n\t}",
"public static void hints(int number, int guess) {\r\n int hint = 0;\r\n if (guess < number) {\r\n System.out.println(\"It's higher.\");\r\n } else { // guess > number\r\n System.out.println(\"It's lower.\");\r\n }\r\n }",
"public void bonusForTeamA(View v) {\n\n if (questionNumber <= 19) {\n\n scoreTeamA = scoreTeamA + 5;\n displayForTeamA(scoreTeamA);\n }\n\n\n if (questionNumber == 20) {\n endOfRound = \"true\";\n }\n }",
"public void p1TBPoint() {\n assert (!(p1TBPoints >= 7 && p1TBPoints > p2TBPoints + 1)) : \"Player 1 should have already won the tie break\";\n p1TBPoints +=1;\n }",
"public static void main(String args[])throws IOException\n {\n try\n {\n BufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n //1-dooley;2-bergin;3-duffy;4-donovan\n for (;i<=100;i++)\n {\n System.out.print(i+\") : \");\n String tmp=br.readLine();\n if (!error)\n {\n char ch=tmp.charAt(0);\n if (tmp.length()>0&&tmp.length()==1)\n {\n if (Character.isDigit(ch))\n {\n int n=ch-'0';\n if (n<=4&&n>0)\n rank[i]=n;\n if (n>4||n<=0)\n {\n System.out.println(\"Type the previous data again !\");\n System.out.println(n+\" does not belong to 1 - 4\");\n i--;\n }//if block\n }\n else if (ch=='*')\n {\n System.out.println(\"Returning to previous rank\"+(i-1));\n i-=2;\n }//else block\n else\n {\n System.out.println(\"Type the previous data again !\");\n System.out.println(ch+\" is wrong data\");\n i--;\n }//else block\n }//if block\n else\n {\n System.out.println(\"Type the previous data again !\");\n System.out.println(ch+\" is wrong data\");\n i--;\n }//else block\n }//if block\n }//for loop\n }//try block\n catch (Exception x)\n {\n System.out.println(\"Wrong Input Type the data again\");\n main(args);\n error=true;\n }//catch block\n if (!error)\n {\n // Point of first four :\n house(rank[1],25);\n house(rank[2],20);\n house(rank[3],15);\n house(rank[4],10);\n // Calculation of Points\n for (int j=5;j<=20;j++)\n house(rank[j],5);\n for (int j=21;j<=50;j++)\n house(rank[j],3);\n for (int j=51;j<=75;j++)\n house(rank[j],2);\n for (int j=76;j<=100;j++)\n house(rank[j],1);\n System.out.print('\\f');\n for (int j=1;j<args.length;j++)\n {\n System.out.println(j+\") \"+args[j]+\" : \"+(rank[j]==1?\"Dooley\":rank[j]==2?\"Bergin\":rank[j]==3?\"Duffy\":\"Donovan\"));\n }//for loop\n System.out.println(\"Dooley : \"+doo+\"\\nBergin : \"+berg+\"\\nDuffy : \"+duff+\"\\nDonovan : \"+don);\n }//if block\n }",
"private static double calWinRate5Cards(Card[] cards, int playerNum) {\n\t\tint winTimes = 0;\n\t\tPlayer[] oppsPlayers = new Player[playerNum - 1]; \n\t\tPlayer mePlayer = new Player();\n\t\tfor(int i = 0; i<50; i++){\n\t\t\t//生成playerNum-1个人,每个人2+3=5张\t\t\n\t\t\t\n\t\t}\n\t\treturn 0.6;\n\t}",
"public int getGuessesLeft() {\r\n return 0;\r\n }",
"public int askHowManyUsers() {\r\n\t\tint userAmount = 0;\r\n\t\tboolean correctInput = false;\r\n\r\n\t\twhile (correctInput == false) {\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"How many players would like to participate in the game?\\nPlease type 1,2,3 or 4. If you type 1 a virtual user will automatically be created. Otherwise have fun playing with your human friends!\");\r\n\t\t\ttry {\r\n\t\t\t\tuserAmount = input.nextInt();\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t\tif (userAmount == 1 || userAmount == 2 || userAmount == 3 || userAmount == 4 || userAmount == 5) {\r\n\t\t\t\t\tcorrectInput = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (userAmount > 5) {\r\n\t\t\t\t\t\tSystem.out.println(\"Five players is the maximum!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (userAmount == 0) {\r\n\t\t\t\t\t\tSystem.out.println(\"At least one person should play!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (InputMismatchException e) {\r\n\t\t\t\tSystem.out.println(\"Please type a number\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn userAmount;\r\n\t}",
"public Integer guess(Integer g)\n {\n if (chosenNum == g){\n return 0;\n } else if (chosenNum > g){\n return -1;\n } else if (chosenNum < g){\n return 1;\n }\n return chosenNum;\n }",
"public void NumberOfPlayers()\r\n {\r\n Input=JOptionPane.showInputDialog(\"Type the number of players\", JOptionPane.YES_NO_OPTION);\r\n \r\n SecondInput = JOptionPane.showInputDialog(\"How many of those \"+ Input +\" players will be AI ?\", JOptionPane.YES_NO_OPTION);\r\n \r\n while(Converter(SecondInput) >= Converter(Input))\r\n {\r\n if(Converter(SecondInput) >= Converter(Input))\r\n {\r\n JOptionPane.showMessageDialog(this,\"AI players can't be equal or more than the original number of players!\",\r\n \"ERROR\",\r\n JOptionPane.ERROR_MESSAGE);\r\n\r\n SecondInput = JOptionPane.showInputDialog(\"How many of those \"+ Input +\" players will be AI ?\", JOptionPane.YES_NO_OPTION);\r\n }\r\n \r\n }\r\n \r\n if(Input!=null)\r\n {\r\n int j = Converter(Input); \r\n \r\n Start();\r\n }\r\n \r\n }",
"public static void gambler(int stake,int trails,int goal,int bets,int win)\n\t{\n\t\tfor(int i=0;i<trails;i++)\n\t\t{\n\t\t\tint cash=stake;\n\t\t\twhile(cash>0 && cash<goal)\n\t\t\t{\n\t\t\t\tbets++;\n\t\t\t\tif(Math.random()>0.5)\n\t\t\t\t{\n\t\t\t\t\tcash++;\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tcash--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(cash==goal)\n\t\t\t{\n\t\t\t\twin++;\n\t\t\t}\n\t\t\tSystem.out.println(win+\" win of \"+trails);\n\t\t\tSystem.out.println(\"Percentage of game \"+100.0*win/trails);\n\t\t\tSystem.out.println(\"Average of bets \"+1.0*bets/trails);\n\t\t}\n\t}",
"private void updateRetries(int tries) {\n synchronized(this) {\n maxNum = maxNum < tries ? tries : maxNum;\n minNum = minNum < tries ? minNum : tries;\n }\n if (tries > 0 && Utils.VERBOSE) {\n System.err.println(\"Retries this round: \" + tries);\n }\n }",
"public String runPostSeason()\n {\n String westernChamp = \"\";\n\n int r = new Random().nextInt(1 + 1);\n\n\n\n //First Round\n\n for(int i = 0; i < 4; i++)\n {\n b.setFirstRoundWest(i,0,playoffs[i]);\n b.setFirstRoundWest(i,1,playoffs[7 - i]);\n }\n\n\n //Second Round\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 8; j++) {\n if (winningTeam(b.getFirstRoundWest()[i][0], b.getFirstRoundWest()[i][1]).equals(b.getFirstRoundWest()[i][0]))\n {\n firstRoundRecords[i][0] += 1;\n }\n else\n {\n firstRoundRecords[i][1] += 1;\n }\n\n if (firstRoundRecords[i][0] >= 4)\n {\n b.setSecondRoundWest(0, i, b.getFirstRoundWest()[i][0]);\n break;\n }\n else if (firstRoundRecords[i][1] >= 4)\n {\n b.setSecondRoundWest(0, i, b.getFirstRoundWest()[i][1]);\n break;\n }\n }\n\n for(int j = 0; j < 8; j++) {\n if (winningTeam(b.getFirstRoundWest()[i+2][0], b.getFirstRoundWest()[i+2][1]).equals(b.getFirstRoundWest()[i+2][0]))\n {\n firstRoundRecords[i+2][0] += 1;\n }\n else\n {\n firstRoundRecords[i+2][1] += 1;\n }\n\n if (firstRoundRecords[i+2][0] >= 4)\n {\n b.setSecondRoundWest(1, i, b.getFirstRoundWest()[i+2][0]);\n break;\n }\n else if (firstRoundRecords[i+2][1] >= 4)\n {\n b.setSecondRoundWest(1, i, b.getFirstRoundWest()[i+2][1]);\n break;\n }\n }\n }\n\n //Third Round\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 8; j++)\n {\n if (winningTeam(b.getSecondRoundWest()[i][0], b.getSecondRoundWest()[i][1]).equals(b.getSecondRoundWest()[i][0]))\n {\n secondRoundRecords[i][0] += 1;\n }\n else\n {\n secondRoundRecords[i][1] += 1;\n }\n\n\n if (secondRoundRecords[i][0] >= 4)\n {\n b.setThirdRoundWest(i, b.getSecondRoundWest()[i][0]);\n break;\n }\n else if (secondRoundRecords[i][1] >= 4)\n {\n b.setThirdRoundWest(i, b.getSecondRoundWest()[i][1]);\n break;\n }\n }\n\n }\n\n //Finals Western Team\n for(int i = 0; i < 8; i++)\n {\n if (winningTeam(b.getThirdRoundWest()[0],b.getThirdRoundWest()[1]).equals(b.getThirdRoundWest()[0]))\n {\n westFinalsRecord[0] += 1;\n }\n else\n {\n westFinalsRecord[1] += 1;\n }\n\n\n if (westFinalsRecord[0] >= 4)\n {\n westernChamp = b.getThirdRoundWest()[0];\n break;\n }\n else if (westFinalsRecord[1] >= 4)\n {\n westernChamp = b.getThirdRoundWest()[1];\n break;\n }\n\n }\n\n return westernChamp;\n }"
] |
[
"0.70052564",
"0.670886",
"0.66226816",
"0.65950763",
"0.659257",
"0.6542861",
"0.65351105",
"0.6480482",
"0.64619845",
"0.6415861",
"0.64106905",
"0.6374987",
"0.6364657",
"0.63344073",
"0.6307628",
"0.6295152",
"0.6291858",
"0.6277281",
"0.6270997",
"0.62640613",
"0.62483966",
"0.62076634",
"0.6200103",
"0.6158547",
"0.61557555",
"0.6142469",
"0.6141295",
"0.61390966",
"0.6138503",
"0.6133307",
"0.6125377",
"0.61016726",
"0.60833246",
"0.6068487",
"0.60660565",
"0.60531765",
"0.60448503",
"0.6041642",
"0.6001384",
"0.59942484",
"0.5993709",
"0.59889895",
"0.59767735",
"0.5971526",
"0.59658045",
"0.59632576",
"0.5954256",
"0.5946147",
"0.5943499",
"0.5921025",
"0.5918403",
"0.5903057",
"0.5900857",
"0.5882667",
"0.5877612",
"0.58752054",
"0.58714306",
"0.58642966",
"0.58637846",
"0.5858356",
"0.5853562",
"0.58531594",
"0.58459306",
"0.5844406",
"0.5839569",
"0.5839394",
"0.58369654",
"0.5830973",
"0.5827589",
"0.5822468",
"0.58135945",
"0.5812417",
"0.5811493",
"0.58112085",
"0.58091104",
"0.5805787",
"0.58052737",
"0.5802566",
"0.5802539",
"0.5801437",
"0.57956755",
"0.57888496",
"0.5788557",
"0.5783535",
"0.5783241",
"0.5778289",
"0.5777329",
"0.57766986",
"0.5771339",
"0.57700247",
"0.5766758",
"0.5766586",
"0.57555723",
"0.5754112",
"0.57500666",
"0.57499313",
"0.57469046",
"0.57460874",
"0.5745438",
"0.5744489"
] |
0.8421666
|
0
|
this is a coin flip game to guess if a coin is head or tail set a random number as the coin result, 1 for h, 2 for tail
|
private static int coinFlip() {
int num = (Math.random() <= 0.5) ? 1 : 2;
String answer;
if ( num == 1) {
answer = "h";
}else {
answer = "t";
}
Scanner input = new Scanner(System.in);
System.out.print("Enter you guess (h = heads, t = tails):");
String guess = input.next();
//change the guess to lower case to accept both capital or lower case answer
guess.toLowerCase();
//gain 50 points if win the toss
if ( guess.equals(answer)) {
//System.out.println("You won the toss, congratulation! +50 points");
return 50;
}else {
//System.out.println("Wrong guess! 0 points");
return 0;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void CoinFlip(int totalFlip) {\n\n //variables\n int count = 0;\n int head = 0;\n int tail = 0;\n\n //computation\n while (count != totalFlip) {\n double flip = Math.random();\n System.out.println(flip);\n\n if (flip < 0.5) {\n System.out.println(\"Print Head\");\n head++;\n\n } else {\n System.out.println(\"Print Tail\");\n tail++;\n }\n count++;\n }\n\n System.out.println(\"number of heads wins: \" + head);\n System.out.println(\"numberof tails wins:\" + tail);\n\n int perHaid = (head * 100 / totalFlip);\n int perTail = (tail * 100 / totalFlip);\n System.out.println(\"the percentage of head win:\" + perHaid);\n System.out.println(\"the percentage of tail win:\" + perTail);\n\n\n }",
"public void flipCoin() {\n\t\tfaceUp = (int) (Math.random() * ((1 - 0 + 1) + 0));\n\n\t}",
"public void toss()//method to flip a coin object\r\n {//opening code for the toss method\r\n Random coinflip = new Random();//creating a new object of the random class named coinflip\r\n int rng = coinflip.nextInt(2);//assigning an integer rng using the random, to get an int between of 0 or 1\r\n if (rng == 0)//if statement saying if that rng integer comes out as 0 do the following\r\n {//opening code for if statement\r\n sideUp = \"Heads\";//if the integer is 0 assign the sideUp to the string Heads\r\n }//closing code for if statement\r\n else //if the integer comes up as anything that isn't 0 (which can only be 1)\r\n {//opening code for else statement\r\n sideUp = \"Tails\";//assigning the sideUp variable to a string called Tails\r\n }//closing code for else statement\r\n \r\n }",
"public static void flipCoin(float headres,float tailres,float head,float tail,int num)\n\t{\n\t\tfor(int i=0;i<num;i++) \n\t\t{\n\t\t\tif(Math.random()>0.5)\n\t\t\t{\n\t\t\t\thead++;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\ttail++;\n\t\t\t}\n\t\t\n\t\t\n\t\theadres=(head/num)*100;\n\t\ttailres=(tail/num)*100;\n\t\t}\n\t\tSystem.out.println(\"Count head: \"+head);\n\t\tSystem.out.println(\"Percentage of head: \"+headres);\n\t\tSystem.out.println(\"Count tail: \"+tail);\n\t\tSystem.out.println(\"Percentage of tail: \"+tailres);\n\t}",
"public static char coinFlip() {\n\t\tint coin = 0;\n\n\t\tRandom rand = new Random();\n\n\t\tcoin = rand.nextInt(2);\n\n\t\tif (coin == 0) {\n\t\t\treturn 'T';\n\t\t} else {\n\t\t\treturn 'H';\n\t\t}\n\n\t}",
"public static boolean coinToss() {\n double flip = Math.random();\n if (flip < .50) // tails\n return false;\n else // heads\n return true; \n }",
"public void toss()\n {\n rand = new Random();//create an object\n num = rand.nextInt(2);//randomly generate two numbers\n if(num == 0)\n sideUp = \"heads\";\n else\n sideUp = \"tails\";//decide what up side is\n }",
"public static void main(String[] args) {\n\t\tint coinFlip = (Math.random() <= 0.5) ? 1 : 2;\n\t\t\n\t\t//Assigning 1 as Head and 2 as Tail\n\t\tif(coinFlip ==1) {\n\t\t\tSystem.out.println(\"Coin Flip Program\");\n\t\t\tSystem.out.println(\"The Coin Flip is : Head\");\n\t\t}\n\t\telse if(coinFlip ==2)\n\t\t{\n\t\t\tSystem.out.println(\"Coin Flip Program\");\n\t\t\tSystem.out.println(\"The Coin Flip is : Tail\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"invalid\");\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tint head=0,tail=0,counter=0;\r\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tSystem.out.println(\"How many times You Want Flip Coin??\");\r\n\t\tint n=sc.nextInt();\r\n\t\t/*if(n>0) {\r\n\t\t\tfor(int i=0;i<n;i++) {\r\n\t\t\t\tif(Math.random() < 0.5) {\r\n\t\t\t\t\ttail+=1;\r\n\t\t\t\t}. \r\n\t\t\t\telse {\r\n\t\t\t\t\thead+=1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(head);\r\n\t\t\tSystem.out.println(tail);\r\n\t\t\tSystem.out.println(\"Percentage of Head \"+(double)head/n*100);\r\n\t\t\tSystem.out.println(\"Percentage of Tail \"+(double)tail/n*100);\r\n\t\t}*/\r\n\t\tif(n>0) \r\n\t\t{\r\n\t\t\twhile(counter < n) \r\n\t\t\t{\r\n\t\t\t\tif(Math.random() < 0.5) {\r\n\t\t\t\t\ttail+=1;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\thead+=1;\r\n\t\t\t\t}\r\n\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(head);\r\n\t\t\tSystem.out.println(tail);\r\n\t\t\tSystem.out.println(\"Percentage of Head \"+(double)head/n*100);\r\n\t\t\tSystem.out.println(\"Percentage of Tail \"+(double)tail/n*100);\r\n\t\t}\r\n\t}",
"public static void flipNHeads(int neededNumberOfFlipsInARow){\n int headFlipsInARow = 0;\n int totalFlips = 0;\n while(neededNumberOfFlipsInARow != headFlipsInARow){\n boolean isLastFlipHead = false;\n double randomNumber = Math.random();\n if(randomNumber > .5 && isLastFlipHead) {\n System.out.println(\"Heads\" + randomNumber);\n headFlipsInARow++;\n } else if(randomNumber > .5){\n isLastFlipHead = true;\n headFlipsInARow++;\n System.out.println(\"Heads\" + randomNumber);\n } else {\n isLastFlipHead = false;\n headFlipsInARow = 0;\n System.out.println(\"Tails\");\n }\n totalFlips++;\n }\n if(totalFlips > 1 && neededNumberOfFlipsInARow == 1){\n System.out.println(\"It took \" + totalFlips + \" flips to get 1 head in a row.\");\n } else if(totalFlips == 1 && neededNumberOfFlipsInARow ==1){\n System.out.println(\"It took 1 flip to get 1 head in a row.\");\n } else {\n System.out.println(\"It took \" + totalFlips + \" flips to get \" + neededNumberOfFlipsInARow + \" heads in a row\");\n }\n }",
"public static void tossWhoIsFirst() \n\t{\n\t\t\n\t\tRandom randomHeadTail = new Random();\n\t\tint generatedHeadOrTail = randomHeadTail.nextInt(2);\n\t\tSystem.out.println(generatedHeadOrTail);\n\t\tSystem.out.println(\"Tossing a coin To decide who plays first.\\nEnter 1-for-Head or 0-for-Tail:\");\n\t\tscanner = new Scanner(System.in);\n\t\tint playerHeadOrTail = scanner.nextInt();\n\t\tif(playerHeadOrTail >= 0 && playerHeadOrTail <= 1)\n\t\t{\n\t\t\tif(playerHeadOrTail == generatedHeadOrTail)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Player won toss ! Make first move.\");\n\t\t\t\tbeforeMoveBoard();\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tSystem.out.println(\"Computer won toss ! Make's first move.\");\n\t\t\t\tcomputerMove();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Invalid Coin choice: Make choice again.\");\n\t\t\ttossWhoIsFirst();\n\t\t}\n\t}",
"public int simulateCoinFlip(RandomGenerator rgen) {\n\n\t\tint counter = 1;\n\t\twhile (true) {\n\t\t\tboolean flipCoin = rgen.nextBoolean();\n\t\t\tif (flipCoin)\n\t\t\t\tbreak;\n\t\t\tcounter++;\n\t\t}\n\t\treturn counter;\n\t}",
"public static void main(String[] args)//main method to actually use the previous methods\r\n {//opening main method code\r\n Coin coin = new Coin();//creating a new coin object of the Coin class\r\n System.out.println(\"The initial side of the coin is \" + coin.getSide());//using the getSide method to tell user coins initial facing\r\n int heads = 0;//setting counter for how many times the coin flips heads\r\n int tails = 0;//setting counter for how many times the coin flips tails\r\n \r\n for(int i=1;i<21;i++)//creating a for loop to run 20 times, to simulate the coin flipping 20 times\r\n {//opening for loop code\r\n coin.toss();//using the toss method on our coin object\r\n if (coin.getSide()==\"Heads\")//if statemtn for if the coin toss brings up heads do the following\r\n {//opening code for if \r\n heads++;//adds 1 count to the heads int because it has come up heads\r\n System.out.println(\"Coin toss \" + i + \" came up as \" + coin.getSide()); //tells user for this specific coin flip what the coin came up as\r\n }//closing code for if\r\n else//else statement if coin does not come up as heads\r\n {//opening code for else\r\n tails++;//adds 1 count to the tails int because it has come up tails\r\n System.out.println(\"Coin toss \" + i + \" came up as \" + coin.getSide());//tells user for this specific coin flip what the coin came up as\r\n }//closing code for else\r\n \r\n }//closing for loop code\r\n System.out.println(\"The total amount of times the coin came up as heads was \" + heads +//telling user how many total times each side came up\r\n \" times.\\nThe total amount of times the coin came up as tails was \" + tails + \" times.\");//when the coin was flipped\r\n }",
"private boolean isHead(int currentCoinNo) { //you must focus on access modifier and naming. Instead of reurning the string anf then \n\t\t//comparing later, i changed it to return boolean (hence the name isHead)\n\t\tint divisibleCount = 0; //Interger object was not required, rest all good in this method!\n\t\tSystem.out.print(\"currentCoinNo=\" + currentCoinNo + \"(\"); //so that logs are very clear\n\t\tfor (int i = 1; i <= currentCoinNo; i++) { //changed it to covers 1 to n so that its easy to explain on paper\n\t\t\tif (currentCoinNo % i == 0) { //changed to i instead of i-1 so that i looks simple\n\t\t\t\tSystem.out.print(i + \" \"); \n\t\t\t\tdivisibleCount += 1;\n\t\t\t}\n\t\t}\n\t\tif (divisibleCount % 2 == 0) {\n\t\t\tSystem.out.println(\") Tails\"); //so that logs are very clear\n\t\t\treturn false; \n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\") Heads\");\n\t\t\treturn true;\n\t\t}\n\t\t\t\n\t}",
"public static boolean coinToss(String call) {\n\t\tint called = -1;\n\t\tif (call.equals(\"H\") || call.equals(\"h\")) {\n\t\t\tcalled = 0;\n\t\t} else if (call.equals(\"T\") || call.equals(\"t\")) {\n\t\t\tcalled = 1;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"We could not understand you response. Please indicate (H)eads or (T)ails:\");\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\tString resp = scan.nextLine();\n\t\t\tcoinToss(resp);\n\t\t}\n\t\tjava.util.Random rand = new java.util.Random();\n\t\tint toss = rand.nextInt(2);\n\t\treturn (called == toss);\n\t}",
"int tournament() {\r\n \tint ch1,ch2;\r\n\t\tch1 = (int)Math.floor(Math.random()*SIZE);\r\n\t\tdo {\r\n\t\t\tch2 = (int)Math.floor(Math.random()*SIZE);\r\n\t\t} while (ch1==ch2);\r\n\t\tif (fit[ch1]<fit[ch2]) return ch1;\r\n\t\telse return ch2;\r\n }",
"public void checkPercOfHnT(int n){\r\n\t\tint h = 0;\r\n\t\tint t = 0;\r\n\t\tif (n > 0) {\r\n\t\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\t\tif (Math.random() > 0.5) {\r\n\t\t\t\t\th++;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tt++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"no of head\"+h);\r\n\t\t\tSystem.out.println(\"no of tail\"+t);\r\n\t\t\tSystem.out.println(\"precentage of head\" + (h * 100) / n);\r\n\t\t\tSystem.out.println(\"precentage of tail\" + (t * 100) / n);\r\n\t\t}\r\n\t\r\n\t}",
"private static void checkFirstPlayer()\n {\n int Head = 0;\n double toss = Math.floor(Math.random()*10) % 2;\n if ( toss == Head )\n {\n System.out.println(\"computer starts to play first\");\n }\n else\n {\n System.out.println(\"User starts to play first\");\n }\n }",
"public static void main(String[] args) {\n\t\tint[] tally = new int[2];\n\t\ttally[0]=0;\n\t\ttally[1]=0;\n\t\t\n\t\t//Iterating the randomNumGenerator for 1000 times \n\t\tfor (int i =0; i<1000;i++)\n\t\t{\n\t\t\t\n\t\t\tint randomNumGen = (Math.random() <= 0.5) ? 1 : 2;\n\t\t\t\n\t\t\t//Assigning the value to array index 0 and 1 \t\n\t\t\t\tif(randomNumGen==1)\n\t\t\t\t{\n\t\t\t\t\ttally[0]++;\n\t\t\t\t}\n\t\t\t\tif(randomNumGen==2)\n\t\t\t\t{\n\t\t\t\t\ttally[1]++;\n\t\t\t\t}\n\t\t}\n\n\t\t\n\t\t\n\t\tSystem.out.println(\"1000 Coin Flips\");\n\t\tSystem.out.println(\"Count of Head :\" +\" \" + tally[0]);\n\t\tSystem.out.println(\"Count of Tail :\" +\" \" + tally[1]);\n\n\n\t\t\n\t}",
"Boolean getRandomize();",
"public static void main(String[] args) \n\t{\n\t\tScanner input = new Scanner (System.in);\n\t\t\n\t\tint heads = 0; \n\t\tint tails = 0; \n\t\tint choice; \n\t\tboolean face;\n\t\t\n\t\tStatus gameStatus;\t\t//heads or tails\n\t\t\n\t\t\n\t\tflip object = new flip(); \n\t\t\n\tdo\n\t{\n\t\t\tSystem.out.println(\"Do you want to: \\n 1. Toss Coin\\n 2. Show Results\\n 3. Exit\\n\");\n\t\t\tSystem.out.println(\"Choice: \");\n\t\t\tchoice = input.nextInt(); \n\t\t\t\n\t\n\t\t\n\t\tif (choice == 1)\n\t\t{\n\t\t\tface = object.flip();\n\t\t\t\n\t\t\tif (face == true)\n\t\t\t{\n\t\t\t\theads++; \n\t\t\t\tgameStatus = Status.HEADS;\t\t//if heads, adds to heads results\n\t\t\t}\n\t\t\telse if (face == false)\n\t\t\t{\n\t\t\t\ttails++;\n\t\t\t\tgameStatus = Status.TAILS;\t\t//if tails adds to tails results\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println (\"You flipped a : \" + face + \"\\n\");\n\t\t}\n\t\telse if (choice == 2)\n\t\t{\n\t\t\tSystem.out.println (\"Heads: \" + heads);\n\t\t\tSystem.out.println (\"Tails: \" + tails + \"\\n\"); \t\t//prints results of flips\n\t\t}\n\t\t\n\t}while (choice !=3);\t\t//exits if user picks 3\n\t\n\t}",
"int lanzar(int n){\n int result = (int) (Math.random()* 6) + 1;\r\n if(result !=n ) result = (int) (Math.random()* 6) + 1;\r\n return result;\r\n \r\n /*\r\n * int result = (int) (Math.random()*9)+1;\r\n * if (result > 0 && result < 7) return result;\r\n * else if(result > 6 && result < 9) return n;\r\n * else return (int) (Math.random()*6)+1;\r\n *\r\n *\r\n */\r\n }",
"public FlipCoin(int seed){\n this.rander = new Random(seed);\n }",
"public void roll() {\n\t\tthis.faceValue = (int)(NUM_SIDES*Math.random()) + 1;\n\t}",
"public void flipCoin() {\n coin.flip();\n }",
"public int roll(){\r\n myFaceValue = (int)(Math.random() * myNumSides) + 1;\r\n return myFaceValue;\r\n }",
"@RequestMapping(value = \"/flipAction\", method = RequestMethod.POST, consumes =\n MediaType.APPLICATION_FORM_URLENCODED_VALUE)\n public String flipAndGuess(@RequestParam(\"guess\") String guess,\n Map<String, Object> model){\n try {\n int userGuess = Integer.parseInt(guess); // HEADS = 0 , TAILS = 1\n int actualResult = toss();\n if (actualResult == 0){\n model.put(\"result\", HEADS_RESULT);\n }\n else if (actualResult == 1){\n model.put(\"result\", TAILS_RESULT);\n }\n if (guessResult(userGuess, actualResult)){\n model.put(\"message\", WINNING_MESSAGE);\n }\n else{\n model.put(\"message\", LOSING_MESSAGE);\n }\n\n } catch (NumberFormatException e) {\n model.put(\"guess\", ERROR);\n }\n return \"flipCoinGuess\";\n }",
"public int performDuel(){\n Random rand = new Random();\n int intRand;\n intRand = rand(6);\n while(this.engine.getGameInformation().cards[intRand][intRand] == 0 ){\n intRand = rand(6);\n }\n return intRand;\n }",
"public void evaluateHand(){only public for testing\n //hand types will be\n //1 royal flush\n //2 straight flush\n //3 four of a kind\n //4 full house\n //5 flush\n //6 straight\n //7 three of a kind\n //8 two pair\n //9 pair\n //10 high card\n //hand secondary values will have to some how account for\n //the lead card of a flush or straight or the bigger pair\n //\n HandType = 0;\n\n //----------checking flush----------\n boolean flush = true;//will flip the vriable when proven wrong\n //if Hand.suites all equal\n for(Card c : Hand) {\n if (!c.getSuite().contains(Hand[0].getSuite())) {\n flush = false;\n }\n }\n //--Handtype = 5//flush\n if(flush){\n HandType=5;\n }\n\n //----------checking pair, two pair, boat,three of a kind, four of a kind----------\n int countmatches=0;\n HashMap<Integer, ArrayList<Card>> maskd = new HashMap<>();\n int[] mask = new int[5];\n int currentmask=1;\n maskd.put(0, new ArrayList<>());\n mask[0]=0;\n maskd.get(0).add(this.Hand[0]);\n //if any two hand.value equal\n for(int comp = 0; comp<Hand.length;comp++){//comparitor\n for(int check = comp+1; check<Hand.length;check++) {//checker\n //System.out.print(\"{\"+comp+check+\"}\");\n if(0==Hand[comp].compareTo(Hand[check])){\n //System.out.println(\"pair\"+Hand[comp]+Hand[check]);\n countmatches++;\n /*if(pairprimary==0&&!(pairprimary==Hand[check].getValue())){\n pairprimary=Hand[check].getValue();\n }else if(pairsecondary==0){\n pairsecondary=Hand[check].getValue();\n }//this wont work for boats\n */\n //create mask?\n if(mask[comp]==0){\n mask[comp]=currentmask;\n maskd.put(currentmask,new ArrayList<>());\n maskd.get(currentmask).add(this.Hand[comp]);\n currentmask++;\n if(maskd.get(0).contains(this.Hand[comp])){\n maskd.get(0).remove(this.Hand[comp]);\n }\n }\n mask[check]=mask[comp];\n if(!maskd.get(mask[comp]).contains(this.Hand[check])) {\n if(maskd.get(0).contains(this.Hand[check]))\n maskd.get(0).remove(this.Hand[check]);\n maskd.get(mask[comp]).add(this.Hand[check]);\n }\n continue;\n }\n if(!maskd.get(0).contains(this.Hand[check]))\n maskd.get(0).add(this.Hand[check]);\n }\n }\n\n //for(int m:maskd.keySet())\n // System.out.print(\"\"+m+\":\"+maskd.get(m));\n //System.out.println(\"\");\n\n if(HandType==0)\n switch (countmatches){ //basically i'm counting the collisions\n case 1: HandType=9;break;//one pair\n case 2: HandType=8;break;//two pair\n case 3: HandType=7;break;//triple\n case 4: HandType=4;break;//boat\n case 6: HandType=3;break;//four of a kind\n case 10: HandType=-1;break;//five of a kind\n }//reorder cards by mask?\n if(countmatches>0){\n Card[] newhand = new Card[5];\n int bigger = 0;\n if(currentmask==3) {//two pair boat\n //two pair\n if (maskd.get(1).get(0).getValue()\n > maskd.get(2).get(0).getValue()) {\n bigger = 1;\n } else {\n bigger = 2;\n }\n\n //boat\n if (maskd.get(1).size() == 3) {\n bigger = 1;\n }\n if (maskd.get(2).size() == 3) {\n bigger = 2;\n }\n }else {\n //one pair???\n bigger = 1;\n }\n\n for(int i = 0; i<5;i++){\n //if(maskd.containsKey(bigger)) {\n if(!maskd.get(bigger).isEmpty()) {\n newhand[i] = maskd.get(bigger).get(0);\n //if (maskd.get(bigger).size() > 0) {\n maskd.get(bigger).remove(0);\n //} else {\n // bigger = Math.abs(bigger - 3);\n //}\n }else{\n if(maskd.containsKey(Math.abs(bigger-3))){\n if(!maskd.get(Math.abs(bigger-3)).isEmpty()){\n bigger = Math.abs(bigger-3);\n }else{\n bigger = 0;\n }\n }else{\n bigger = 0;\n }\n i--;\n }\n //}\n\n }//end for loop\n\n //end pair bits\n\n //System.out.println(newhand);\n this.Hand=newhand;\n }//end reshuffle hand if statement\n //----------checking for straight----------\n //if first card is ace and second card is a 5, treat ace as one\n if(Hand[0].getValue()==14&&Hand[1].getValue()==5) {\n Hand[0] = new Card(\"Ace\", Hand[0].getSuite(), 1);\n //Hand[0].Value=1;\n this.sortHand();\n this.flipHand();\n }\n //go through hand and see if all 5 values are consecutive\n int n = Hand[0].getValue();\n boolean straight = true;\n for(int i = 1;i<Hand.length; i++){\n n--;\n if(!(Hand[i].getValue()==n)){\n straight=false;\n }\n }\n if(straight){\n //if above true\n //--if handtype = 5\n if(HandType==5) {\n //----if card1 is ace\n if (Hand[0].getValue() == 14) {\n //------handtype = 1 //royal flush\n HandType = 1;\n } else {\n //----else\n HandType=2;\n //------handtype = 2 //straight flush\n }\n }else {\n //--else //not a flush\n HandType=6;\n //----handtype = 6 //straight\n }\n }\n\n //----------checking high card----------\n //if handtype = 0\n if(HandType==0) {\n HandType=10;\n //--hand card = 10\n }\n }",
"public void speckle() {\n\t\tint r = (height / res) - 1;\n\t\tint c = (width / res);\n\t\tfor (int i = 0; i < c; i++)\t\t{\n\t\t\tint x = rng.nextInt(25);\t\t\t\n\t\t\tif (x == 0) { // 1/25 chance of changing bottom row pixel to black\t \n\t\t\t\tvalues[r][i] = color1;\t\t\t\t\n\t\t\t}\n\t\t\telse if (x == 1) { // 1/25 chance of changing bottom row pixel to white\n\t\t\t\tvalues[r][i] = color2;\n\t\t\t}\n\t\t\t// 23/25 chance of leaving bottom pixel alone\n\t\t}\n\t}",
"private void randomBehavior() {\n\t\trandom = rand.nextInt(50);\n\t\tif (random == 0) {\n\t\t\trandom = rand.nextInt(4);\n\t\t\tswitch (random) {\n\t\t\t\tcase 0:\n\t\t\t\t\tchangeFacing(ACTION.DOWN);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tchangeFacing(ACTION.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tchangeFacing(ACTION.UP);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tchangeFacing(ACTION.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void hinduShuffle()\r\n {\r\n List<Card> cut = new ArrayList<Card>();\r\n List<Card> cut2 = new ArrayList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n int cutPoint = 0;\r\n int cutPoint2 = 0;\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n cutPoint = rand.nextInt( cards.size()-1 );\r\n cutPoint2 = rand.nextInt( cards.size() - cutPoint ) + cutPoint;\r\n for (int i = 0; i < cutPoint; i++) {\r\n cut.add(draw());\r\n }\r\n for (int i = cutPoint2; i < cards.size(); i++) {\r\n cut2.add(draw());\r\n }\r\n for (int i = 0; i < cut.size(); i++) {\r\n shuffledDeck.add(cut.remove(0));\r\n }\r\n for (int i = 0; i < cards.size(); i++) {\r\n shuffledDeck.add(cards.remove(0));\r\n }\r\n for (int i = 0; i < cut2.size(); i++) {\r\n shuffledDeck.add(cut2.remove(0));\r\n }\r\n cut = cards;\r\n cut.clear();\r\n cut2.clear();\r\n cards = shuffledDeck;\r\n }\r\n }",
"public void roll() { \n this.value = (int)(Math.random() * this.faces()) + 1; \n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tint input = 0;\r\n\t\tint ai = 0;\r\n\t\tint win = 0;\r\n\t\tint defeat = 0;\r\n\t\tint draw = 0;\r\n\t\t\r\n\t\tString me = \"\";\r\n\t\tString com = \"\";\r\n\t\tSystem.out.println(\"★☆★☆★☆★☆가위바위보 게임입니다!★☆★☆★☆★☆\");\r\n\t\tfor(int i = 1 ; i < 4 ; i++) {\r\n\t\t\tSystem.out.println(\"\\t\\t\\t\\t\\t 최대횟수/남은횟수\");\r\n\t\t\tSystem.out.println(\"가위(1), 바위(2), 보(3) 중 하나를 입력하세요>>>\\t\\t3 / \" + i);\r\n\t\t\tinput = scan.nextInt();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tai = (int)(Math.random()*3) + 1;\r\n\t\t\t\r\n\t\t\tif (input == 1) me = \"가위\";\r\n\t\t\telse if (input == 2) me = \"바위\";\r\n\t\t\telse if (input == 3) me = \"보\";\r\n\t\t\telse System.out.println(\"잘못 입력하셨습니다\");\r\n\t\t\tif (ai == 1) com = \"가위\";\r\n\t\t\telse if (ai == 2) com = \"바위\";\r\n\t\t\telse if (ai == 3) com = \"보\";\r\n\t\t\t\r\n\t\t\tif(me != \"\") {\r\n\t\t\t\tSystem.out.println(\"컴퓨터도 선택 했습니다.\");\r\n\t\t\t\tSystem.out.println(\"당신은 \\\"\" + me + \"\\\" 상대는 \\\"\" + com + \"\\\" 을 선택했습니다\");\r\n\t\t\t\r\n\t\t\t\tswitch (input - ai) {\r\n\t\t\t\tcase -1 : case 2 : \r\n\t\t\t\t\tSystem.out.println(\"★☆저런~~ 졌네요★☆\\n\"); defeat += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase -2 : case 1 : \r\n\t\t\t\t\tSystem.out.println(\"★☆오~~ 이겼네요★☆\\n\"); win += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 0 : \r\n\t\t\t\t\tSystem.out.println(\"★☆이런! 비겼네요★☆\\n\"); draw += 1;\r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault : System.out.println(\"오류 입니다\"); \r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(win==defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 무승부 입니다\");\r\n\t\t} else if(win > defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 승리입니다\");\r\n\t\t} else if(win < defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 패배입니다\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"오류 입니다\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public void recover(){\n\tint hp = (int)((Math.random() * health)*.5);\n\n\thealth += hp;\n\t\t\n\tSystem.out.print(\"You catch your breath and pick yourself up. Recover : \");\n\tSystem.out.print(hp);\n\tSystem.out.println(\" health.\\n\"); \n }",
"Coin()//method to initialize the coin with a side\r\n {//opening code for the coin method\r\n toss();//statement of using the later toss method to initialize the coin\r\n }",
"public static boolean simulationStep(BagInterface<Integer> heads, BagInterface<String> work) {\n\n \t//flag if overflow\n boolean notOverflow = true; \n \n int remove= heads.remove();\n \n if(remove!=1){\n \n \tremove= remove-1;\n \n \t// add two ints that have lesser value than removed head\n \t\n \theads.add(remove);\n \n \theads.add(remove);\n \n \tnotOverflow= true;\n }\n \n notOverflow= work.add(\"chopp\");\n \n return notOverflow;\n }",
"public void spin () {\n //Decide outcome.\n Random rand=new Random();\n result=rand.nextInt(100)+1+prevSpin;\n\n /**\n * Set the images\n * Image 1-11 are pictures listed bellow. 12 is wild.\n */\n //Loss\n if (result<=10) {\n //Prevention of loss streak\n prevSpin+=1;\n spinsLeft-=1;\n\n img1=rand.nextInt(12)+1;\n if (img1==12) {\n img2=rand.nextInt(11)+1;\n }\n else {\n img2=rand.nextInt(12)+1;\n }\n\n if (img1==img2) {\n img3=rand.nextInt(11)+1;\n while (img1==img3) {\n img3=rand.nextInt(11)+1;\n }\n }\n else if (img1==12 || img2==12) {\n img3=rand.nextInt(11)+1;\n while (img1==img3 || img2==img3) {\n img3=rand.nextInt(11)+1;\n }\n }\n else {\n img3=rand.nextInt(12)+1;\n }\n }\n\n //Cherry (1)\n else if (11<=result && result<=27) {\n prevSpin=0;\n spinsLeft-=1;\n score+=10;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=1;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=1;\n if (rand.nextInt(wildChance)+1==1 && (img1==1 || img2==1))\n img3=12;\n else\n img3=1;\n }\n\n //Pine tree (2)\n else if (28<=result && result<=38) {\n prevSpin=0;\n spinsLeft-=1;\n score+=20;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=2;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=2;\n if (rand.nextInt(wildChance)+1==1 && (img1==2 || img2==2))\n img3=12;\n else\n img3=2;\n }\n\n //\"Bar\" (3)\n else if (39<=result && result<=49) {\n prevSpin=0;\n spinsLeft-=1;\n score+=40;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=3;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=3;\n if (rand.nextInt(wildChance)+1==1 && (img1==3 || img2==3))\n img3=12;\n else\n img3=3;\n }\n\n //Bell (4)\n else if (50<=result && result<=58) {\n prevSpin=0;\n spinsLeft-=1;\n score+=60;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=4;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=4;\n if (rand.nextInt(wildChance)+1==1 && (img1==4 || img2==4))\n img3=12;\n else\n img3=4;\n }\n\n //Snowflake (5)\n else if (59<=result && result<=67) {\n prevSpin=0;\n spinsLeft-=1;\n score+=100;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=5;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=5;\n if (rand.nextInt(wildChance)+1==1 && (img1==5 || img2==5))\n img3=12;\n else\n img3=5;\n }\n\n //Mead tankard (6)\n else if (68<=result && result<=75) {\n prevSpin=0;\n spinsLeft-=1;\n score+=150;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=6;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=6;\n if (rand.nextInt(wildChance)+1==1 && (img1==6 || img2==6))\n img3=12;\n else\n img3=6;\n }\n\n //Snowball (7)\n else if (76<=result && result<=82) {\n prevSpin=0;\n spinsLeft-=1;\n score+=250;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=7;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=7;\n if (rand.nextInt(wildChance)+1==1 && (img1==7 || img2==7))\n img3=12;\n else\n img3=7;\n }\n\n //Moose (8)\n else if (83<=result && result<=88) {\n prevSpin=0;\n spinsLeft-=1;\n score+=350;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=8;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=8;\n if (rand.nextInt(wildChance)+1==1 && (img1==8 || img2==8))\n img3=12;\n else\n img3=8;\n }\n\n //Coin (9)\n else if (89<=result && result<=93) {\n prevSpin=0;\n score+=500;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=9;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=9;\n if (rand.nextInt(wildChance)+1==1 && (img1==9 || img2==9))\n img3=12;\n else\n img3=9;\n }\n\n //\"7\" (10)\n else if (94<=result && result<=98) {\n prevSpin=0;\n spinsLeft+=2;\n score+=777;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=10;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=10;\n if (rand.nextInt(wildChance)+1==1 && (img1==10 || img2==10))\n img3=12;\n else\n img3=10;\n }\n\n //Barbarian \"Bar\" (11)\n else if (99<=result) {\n //Prevention of \"high win\" streak\n prevSpin-=1;\n spinsLeft+=9;\n score+=1000;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=11;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=11;\n if (rand.nextInt(wildChance)+1==1)\n img3=12;\n else\n img3=11;\n }\n\n else {\n System.out.println(\"Result Error.\");\n }\n }",
"public void roll(){\n Random rand = new Random();\n this.rollVal = rand.nextInt(this.faces) + 1;\n }",
"public void receiveResult( int flipResult, BigInteger x);",
"public byte collide(byte inBoundState){\n byte[] poss = collisions[(int)inBoundState].resultingState;\n if(poss.length==1){\n return poss[0];\n }\n else{\n int ndx = rand.nextInt(poss.length - 1);\n return poss[ndx];\n }\n }",
"public void toss(Coin myCoin){\n\t\tmyCoin.toss();\n\t\tSystem.out.println(\"coin sideup is \"+myCoin.getSideUp());\n\t\tif(myCoin.getSideUp().equals(\"heads\"))\n\t\t\theads++;\n\t\telse\n\t\t\ttails++;\n\t}",
"public int roll() {\n Random random = new Random();\n faceValue = random.nextInt(sides)+1;\n return faceValue;\n }",
"public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }",
"public void infection() {\n\r\n chance = r.nextInt(100); //Random Integer\r\n found = false; // Boolean Value\r\n for (int i = 0; i < storage.size(); i++) {\r\n if (chance == storage.get(i)) { //if random int is equal to any element in List\r\n found = true; // Set boolean value \r\n break;\r\n\r\n } else {\r\n found = false;\r\n numhealthy.setText(\"\" + (100 - count));\r\n numinfected.setText(\"\" + count);\r\n\r\n }\r\n }\r\n\r\n if (found == false) {\r\n storage.add(chance);\r\n pixellist.get(chance).setBackground(new Color(216, 19, 55));\r\n count++;\r\n numhealthy.setText(\"\" + (100 - count));\r\n numinfected.setText(\"\" + count);\r\n }\r\n\r\n }",
"private String whichPlayerToStart(){\n\t\tdouble whichPlayerToCommence = Math.random();\n\t\tdouble randomLimit = Math.random();\n\t\tif(whichPlayerToCommence <= randomLimit){ \n\t\tthis.turn = \"blue\";\n\t\treturn this.turn;\n\t\t}\n\t\telse{\n\t\tthis.turn = \"red\";\n\t\treturn this.turn;\n\t\t} \n\t}",
"public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter number of times to flip coin\");\n int n=Integer.parseInt(sc.nextLine());\n flipcoins(n);\n\t}",
"int accidentVelo()\r\n\t{\r\n\t\tdouble rand = Math.random()*100;\r\n\t\tSystem.out.println(rand);\r\n\t\tif ((double)rand <= 0.5) {\r\n\t\t\tSystem.out.println(\"Finalement vous auriez du y aller à pied. Vous vous vider de votre sang sur le bord du trottoir.\");\r\n\t\t\treturn 0.5;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public void roll ()\n {\n //sets faceValue to an int between 1 - numFaces (both inclusive)\n faceValue = (int)(Math.random() * numFaces + 1);\n }",
"public String showdown() {\n if(this.playerH.Rank() < this.serverH.Rank()|| \n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() < this.serverH.getSecondaryRank()) ||\n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() == this.serverH.getSecondaryRank() && this.playerH.getAuxRank() < this.serverH.getAuxRank())){\n if(this.playerBet <= this.serverBet){\n this.money_server += this.playerBet + this.serverBet;\n }\n else{\n this.money_server+= this.serverBet + this.serverBet; \n this.money_player += this.playerBet - this.serverBet;\n }\n }\n else if(this.playerH.Rank() > this.serverH.Rank()|| \n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() > this.serverH.getSecondaryRank()) ||\n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() == this.serverH.getSecondaryRank() && this.playerH.getAuxRank() > this.serverH.getAuxRank())){\n if(this.playerBet >= this.serverBet){\n this.money_player += this.playerBet + this.serverBet;\n }\n else{\n this.money_player += 2*this.playerBet;\n this.money_server += this.serverBet-this.playerBet;\n }\n }\n else{\n \n this.money_player += this.playerBet;\n this.money_server += this.serverBet;\n }\n this.playerBet = 0;\n this.serverBet = 0;\n this.state = -1;\n return \"show\"+this.serverH.toString();\n }",
"public int checkChasingPlayer()\n {\n if(stunCountdown > 0)\n {\n chasingPlayer = false;\n return stunCountdown;\n }\n if(Game.getInstance().getPlayer().getCurrentRoom().isControlRoom())\n {\n chasingPlayer = false;\n return(-1);\n }\n else\n {\n List<Exit> neighbors = getCurrentRoom().getCollectionOfExits();\n for(Exit neighbor : neighbors)\n {\n if(getCurrentRoom().getExit(neighbor).equals(Game.getInstance().getPlayer().getCurrentRoom()) && neighbor.isOperating())\n {\n chasingPlayer = true;\n return(5 + (int) Math.floor(Math.random() * 6));\n }\n }\n chasingPlayer = false;\n return(-1);\n }\n }",
"public void playGame () {\n int rank1 = team1.getSeed();\n int rank2 = team2.getSeed();\n double s1 = Math.random();\n System.out.println(s1);\n double s2 = Math.random();\n System.out.println(s2);\n \n if(rank1 < rank2){\n\t double one = (s1*10)+1;\n\t score1 = (int)one;//gives a slight advantage to the person with a higher seed\n\t double two = (s2*10); \n\t score2 = (int)two;\n\t if(score1 == score2){\n\t score1 = score1+1; //gives the game to the higher seed if there is a tie\n }\n else if(rank2 < rank1){\n\t double r = (s2*10)+1;\n\t score2 = (int)r;\n\t double t = (s1*10); \n\t score1 = (int)t;\n\t if(score1 == score2){\n\t score2 = score2+1;\n\t }}}}",
"public int match(int n){\n if(n == random){\n return 0;\n }\n else if(Math.abs(random - n) < Math.abs(random - temp)){\n return 1;\n }\n else{\n return -1;\n }\n }",
"@Test\n public void randomInt() {\n HashMap<Integer, Integer> hist = new HashMap<Integer, Integer>();\n for(int i = 0; i < 300; i++){\n // we can think of random int as a coin toss\n Integer coin = test.randInt();\n Integer coinTotal = hist.get(coin);\n if (coinTotal == null){\n hist.put(coin, 1);\n } else {\n hist.put(coin, coinTotal+1);\n }\n }\n assertTrue(\"Should be more than 100 of each\",\n hist.get(0) > 100 && hist.get(1) > 100);\n System.out.println(hist);\n }",
"private int getRandomCard (ArrayList<Card> hand) {\n\t\treturn (int)(Math.random() * hand.size());\r\n\t}",
"public void randomizeHaplotype() {\n if (rand == null) {\n log.error(\"Cannot randomize haplotype\");\n log.error(toString());\n System.exit(1);\n }\n\n isPhased = true;\n if (rand.nextDouble() > 0.5) {\n return;\n }\n byte tmp = paternal;\n paternal = maternal;\n maternal = tmp;\n }",
"public static void main(String[] args) {\n\t final float N=3;\n\t int totalFlips = 0;\n\n\t for(int i=0; i<N; i++){\n\t String sequenceSoFar = \"\"; // empty string list\n\t sequenceSoFar += coinFlip(); // append to string\n\t sequenceSoFar += coinFlip();\n\t sequenceSoFar += coinFlip();\n\t int count = 3;\n\t totalFlips += 3; // add initial 3 flips to total.\n\t // if the first three aren't the sequence, then keep going until the sequence is met in the while loop\n\t if(!sequenceSoFar.equals(\"121\")) {\n\t while(!(sequenceSoFar.substring(sequenceSoFar.length() - 3).equals(\"121\"))) {\n\t sequenceSoFar += coinFlip();\n\t count++;\n\t totalFlips++;\n\t }\n\t }\n\t // to check my work with small numbers\n\t System.out.println(sequenceSoFar);\n\t System.out.println(count);\n\t }\n\t System.out.println(\"Sequence for HTH: \");\n\t System.out.println(\"Total Flips: \" + N);\n\t System.out.println(\"Total flips sum: \" + totalFlips);\n\t double average = (totalFlips * 1.0) /(double) N;\n\t System.out.println(\"Average flips: \" + average);\n\t}",
"float genChance();",
"private static void roll()\n {\n rand = (int)(((Math.random())*6)+1); // dice roll #1\n rand2 = (int)(((Math.random())*6)+1);// dice roll #2\n }",
"public void tick() {\r\n\t\thunger += (10 + generateRandom());\r\n\t\tthirst += (10 + generateRandom());\r\n\t\ttemp -= (1 + generateRandom());\r\n\t\tboredom += (1 + generateRandom());\r\n\t\tcageMessiness += (1 + generateRandom());\r\n\t}",
"public static void crapsBS() {\r\n\t\tint dice1 = rand.nextInt(6) + 1;\r\n\t\tint dice2 = rand.nextInt(6) + 1;\r\n\t\tint sum = dice1 + dice2;\r\n\t\tSystem.out.printf(\"Nakon bacenih kockica brojevi su %d i %d\\n\", dice1, dice2);\r\n\t\tif (sum == 2 || sum == 3 || sum == 12) {\r\n\t\t\tSystem.out.println(\"Nazalost, izgubio si.\");\r\n\t\t} else if (sum == 7 || sum == 11) {\r\n\t\t\tSystem.out.println(\"Bravo, pobijedio si!\");\r\n\t\t} else if ((sum >= 4 && sum <= 6) || (sum >= 8 && sum <= 10)) {\r\n\t\t\tSystem.out.println(\"Point je \" + sum);\r\n\t\t\trestartBS();\r\n\t\t\tpointBS(sum);\r\n\t\t}\r\n\t}",
"private void chooseRandomTweet() {\n if (random.nextBoolean()) {\n realTweet = true;\n displayRandomTrumpTweet();\n } else {\n realTweet = false;\n displayRandomFakeTweet();\n }\n }",
"public int generateRoll() {\n\t\tint something = (int) (Math.random() * 100) + 1;\n\t\tif (something <= 80) {\n\t\t\tint allNumRoll = (int) (Math.random() * getNumSides()) + 1;\n\t\t\tint roll = allNumRoll * 2 - 1;\n\t\t\treturn roll;\n\t\t} else {\n\t\t\tint allNumRoll = (int) (Math.random() * getNumSides()) + 1;\n\t\t\tint roll = allNumRoll * 2;\t\t\n\t\t\treturn roll;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"WECOME TO SNAKE AND LADDER PROBLEMS\");\n\t\tint position=0;\n\t\tSystem.out.println(\"Initial Position of Player : \"+position);\n\t\tint count=0;\n\t\t\n\t\t\n\t\twhile(position<100)\n\t\t{\n\t\t\t//Random Function to generate values between a range\n\t\t\t//Formula = Math.random() * (max - min + 1) + min\n\t\t\tint Dice = (int) Math.floor(Math.random()*(6-1+1)+1);\n\t\t\tSystem.out.println(\"Number on Dice : \"+Dice);\n\t\t\tcount++;\n\t\t\tSystem.out.println(count);\n\t\t\tint Option = (int) Math.floor(Math.random()*10)%3;\n\t\t\t\n\t\t\tSystem.out.println(\"====OPTIONS======\\nOption 0 : No Play\\nOption 1 : Ladder \\nOption 2 : Snake \\n\");\n\t\t\tSystem.out.println(\"Option : \"+Option);\n\t\t\t\n\t\t\tif (Option == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"No Play the player stays in the same position \"+position);\n\t\t\t}\n\t\t\telse if (Option == 1)\n\t\t\t{\n\t\t\t\tposition = position + Dice;\n\t\t\t\tSystem.out.println(\"Position : \"+position);\n\t\t\t\tif(position > 100)\n\t\t\t\t{\n\t\t\t\t\tposition = position - Dice;\n\t\t\t\t\tSystem.out.println(\"Player comes back to the previous position : \"+position);\n\t\t\t\t}\n\t\t\t\telse if (position == 100)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Player has won : \"+position);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Player moves ahead by : \"+position);\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tposition = position - Dice;\n\t\t\t\tSystem.out.println(\"Player moves behind by :\" +position);\n\t\t\t\tif(position < 0)\n\t\t\t\t{\n\t\t\t\t\tposition = 0;\n\t\t\t\t\tSystem.out.println(\"Player restarts from \" +position);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\n\t\t}\n\t\tSystem.out.println(\"Number of times the dice was rolled : \"+count);\n\t\t\n\t}",
"public int drawpseudocard(){\n Random random = new Random();\n return random.nextInt(9)+1;\n }",
"private static BigInteger numOfFlipsRequired(BigInteger numOfCards,BigInteger bi0,BigInteger bi3,BigInteger bi1){\n \n if(numOfCards.equals(bi0)){\n return bi0;\n }else if(numOfCards.compareTo(bi3) == -1){\n return bi1;\n }else if(numOfCards.mod(bi3).compareTo(bi0) == 0){\n return numOfCards.divide(bi3);\n }else{\n return numOfCards;\n }\n \n \n // return numOfFlips;\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 roll() {\n int number = new Random().nextInt(MAXIMUM_FACE_NUMBER);\n FaceValue faceValue = FaceValue.values()[number];\n setFaceValue(faceValue);\n }",
"public static int fullHouseYahtzee(int... result) {\n\n int score = nSame(3, 6, result);\n int firstPairVal = score/3;\n\n result = IntStream.of(result).filter(val -> val != firstPairVal).toArray();\n score = nSame(2, 6, result);\n int secondPairVal = score/2;\n\n if (firstPairVal*secondPairVal > 0) {\n score = 25;\n } else {\n score = 0;\n }\n\n return score;\n }",
"public static void simulateOdds(){\n \n //set up counters for each rank pair\n int A=0;\n int two=0;\n int three=0;\n int four=0;\n int five=0;\n int six=0;\n int seven=0;\n int eight=0;\n int nine=0;\n int ten = 0;\n int J=0;\n int Q=0;\n int K=0;\n \n //set up a counter for not exactly one pair\n int notOnePair=0;\n \n //set up a loop to run 10000 simulations\n for(int a=0;a<10000;a++){\n \n int Deck[]=new int[52];//set up the array for deck\n \n \n //store 0 to 51 into the Deck array\n for(int i=0;i<Deck.length;i++){\n Deck[i] = i; \n }\n \n int Hand[]={-1,-1,-1,-1,-1};//set up and initialize the array for hand\n \n Random r = new Random ();//Decalre a instance of the Random generator\n int k = Deck.length;//declare a variable to show the effective length of the Deck array\n //set up a loop to draw cards from the deck ramdomly\n for(int j=0;j<Hand.length;j++){\n int draw = r.nextInt(k-1);\n Hand[j] = Deck[draw];//store the ramdom pick from Deck into Hand\n //set the random pick in Deck to -1 and swap with the last effective number in Deck\n Deck[draw]=Deck[k-1];\n Deck[k-1]= -1;\n k--;//reduce the effective array size\n }\n //set up a loop to calculate the rank of each card in hand\n for(int j=0;j<Hand.length;j++){\n Hand[j] = Hand[j]%13;\n }\n \n //check if there is only one pair in hand\n if(exactlyOneDup(Hand))\n {\n //set up a loop to compare numbers in the array with each other\n for(int i=0;i<Hand.length;i++){\n int j=i+1;\n while(j<Hand.length)\n {\n if (Hand[i]==Hand[j])\n {\n int rank=Hand[i];\n //use the switch to determine which counter should increment\n switch (rank){\n case 0:\n A++;\n break;\n case 1:\n K++;\n break;\n case 2:\n Q++;\n break;\n case 3:\n J++;\n break;\n case 4:\n ten++;\n break;\n case 5:\n nine++;\n break;\n case 6:\n eight++;\n break;\n case 7:\n seven++;\n break;\n case 8:\n six++;\n break;\n case 9:\n five++;\n break;\n case 10:\n four++;\n break;\n case 11:\n three++;\n break;\n case 12:\n two++;\n break;\n } \n \n }\n \n j++;\n \n }\n \n }\n \n \n }\n \n else{\n \n notOnePair++;\n }\n \n }\n //print out the simulation results\n System.out.println(\"rank freq of exactly one pair\");\n System.out.println(\" A \"+A);\n System.out.println(\" K \"+K);\n System.out.println(\" Q \"+Q);\n System.out.println(\" J \"+J);\n System.out.println(\" 10 \"+ten);\n System.out.println(\" 9 \"+nine);\n System.out.println(\" 8 \"+eight);\n System.out.println(\" 7 \"+seven);\n System.out.println(\" 6 \"+six);\n System.out.println(\" 5 \"+five);\n System.out.println(\" 4 \"+four);\n System.out.println(\" 3 \"+three);\n System.out.println(\" 2 \"+two);\n System.out.println(\"--------------------------------\");\n System.out.println(\"total not exactly one pair: \"+notOnePair);\n return; \n }",
"public Card chooseCard(Hand h, Trick t);",
"public static void roll() {\n int random = (int) (Math.random() * (roll.size() - 1) + 0); // numbers are indexes not the actual number you will be genrating\n // thoes numbers are in the list.\n // System.out.println(random); // but you want the number NOT THE INDEX!!!\n int number = roll.get(random);\n System.out.println(\"The number generated is: \" + number);\n roll.remove(random);\n called.add(random); // so I can display the number I called\n for (int i = 0; i < card.length; i++) { // rows\n for (int j = 0; j < card[i].length; j++) { //coloums\n if (card[i][j] == number) {\n card[i][j] = 0;\n }\n\n }\n\n }\n }",
"public int doMostFavourAction() {\n if (this.eatable > this.playable && this.eatable > this.ignorable) {\n this.raiseEatable(1.1, 0.9);\n return 0;\n } else if (this.playable > this.eatable && this.playable > this.ignorable) {\n this.raisePlayable(1.1, 0.9);\n return 1;\n } else if (this.ignorable > this.eatable && this.ignorable > this.playable) {\n this.raiseIgnorable(1.1, 0.9);\n return 2;\n } else {\n int random = (int) (Math.random()*3);\n if (random == 0) {\n this.raiseEatable(1.1, 0.9);\n } else if (random == 1) {\n this.raisePlayable(1.1, 0.9);\n } else {\n this.raiseIgnorable(1.1, 0.9);\n }\n return random;\n }\n }",
"public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}",
"private static char[][] flipCoins(char coins[], int flip[][]) {\n\n \tint numFlips = flip.length; /* number of flips */\n \t\n \t/* allocate storage for solution */\n \tchar result[][] = new char[numFlips][];\n \tfor (int i=0; i<numFlips; i++)\n \t\tresult[i] = coins.clone(); /* new char[coins.length] */\n \t\t\n /* ------------------- INSERT CODE HERE ---------------------*/\n \tchar middle[][] = new char[numFlips][];\n \tfor (int i=0; i<numFlips; i++)\n \t\tmiddle[i] = coins.clone(); /* new char[coins.length] */\n \tfor (int i=0; i<numFlips; i++)\n \t{\n \t\tfor (int x = 0; x < coins.length; x++)\n \t\t{\n \t\t\tif (x >= (flip[i][0] - 1) && x <= (flip[i][1] - 1))\n \t\t\t{\n \t\t\t\tSystem.out.println(x);\n \t\t\t\tif (middle[i][x] == 'H')\n\t\t\t\t\t{\n\t\t\t\t\t\tmiddle[i][x] = 'T';\n\t\t\t\t\t\tSystem.out.println(\"Flipped \" + i + x);\n\t\t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\tmiddle[i][x] = 'H';\n \t\t\t\t\tSystem.out.println(\"Flipped \" + i + x);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"NOW PRINTING MID\");\n \t\tfor(char[] a : middle)\n \t{\tfor(char b : a)\n \t\t\tSystem.out.print(b);\n \t\t\tSystem.out.println();\n \t}\n \t\tSystem.out.println(\"NOW PRINTING RESULT\");\n \t\tfor(char[] a : result)\n \t{\tfor(char b : a)\n \t\t\tSystem.out.print(b);\n \t\t\tSystem.out.println();\n \t}\n \t\t//use for loop to put it in temp so no variable refrences crossing\n \t\tresult[i] = middle[i] ;\n \t\tSystem.out.println(\"Wrote to result.\");\n \t\tif(i<numFlips-1)\n\t\t\t{\n\t\t\t\tmiddle[i+1] = middle[i];\n\t\t\t\tSystem.out.println(\"Copied row \" + i + \"to row\" + (i+1) + \"in MID\");\n\t\t\t}\n \t\t\n \t\t\n \t\t\n \t\tSystem.out.println(\"NOW PRINTING MID\");\n \t\tfor(char[] a : middle)\n \t{\tfor(char b : a)\n \t\t\tSystem.out.print(b);\n \t\t\tSystem.out.println();\n \t}\n \t\tSystem.out.println(\"NOW PRINTING RESULT\");\n \t\tfor(char[] a : result)\n \t{\tfor(char b : a)\n \t\t\tSystem.out.print(b);\n \t\t\tSystem.out.println();\n \t}\n \t}\n \t\t\t\n \t\n \t\n \t\n \t\n \t\n \t\n \t\t\n /* -------------------- END OF INSERTION --------------------*/\n \t\n return result;\n\n }",
"private void coins_fR(){\n\t\tthis.cube[13] = this.cube[9]; \n\t\tthis.cube[9] = this.cube[15];\n\t\tthis.cube[15] = this.cube[17];\n\t\tthis.cube[17] = this.cube[11];\n\t\tthis.cube[11] = this.cube[13];\n\t}",
"public int countHandShakes(){\n\t\tif (this.getNCouples() < 1) {\n\t\t\treturn 0;\n\t\t}else if (this.getNCouples() == 1) {\n\t\t\treturn 1;\n\t\t}else{\n\t\t\tthis.setNCouples(this.getNCouples() - 1);\n\t\t\treturn (this.getNCouples() + 1) * 3 - 2 + countHandShakes();\n\t\t}\n\t}",
"@Override\r\n\tpublic int computeNextVal(boolean prediction) {\n\t\treturn (int) (Math.random()*10)%3;\r\n\t}",
"public static void showHands(){\n Scanner scan=new Scanner(System.in);//call the Scanner constructor\n int Deck[]=new int[52];//set up the array for deck\n String answer=\"\";\n do{\n //store 0 to 51 into the Deck array\n for(int i=0;i<Deck.length;i++){\n Deck[i] = i; \n }\n \n int Hand[]={-1,-1,-1,-1,-1};//set up and initialize the array for hand\n \n Random r = new Random ();//Decalre a instance of the Random generator\n int k = Deck.length;//declare a variable to show the effective length of the Deck array\n //set up a loop to draw cards from the deck ramdomly\n for(int j=0;j<Hand.length;j++){\n int draw = r.nextInt(k-1);\n Hand[j] = Deck[draw];//store the ramdom pick from Deck into Hand\n //set the random pick in Deck to -1 and swap with the last effective number in Deck\n Deck[draw]=Deck[k-1];\n Deck[k-1]= -1;\n k--;//reduce the effective array size\n }\n \n //set up the strings, which will indicate the result\n String Clubs = \"Clubs: \";\n String Diamonds = \"Diamonds: \";\n String Hearts = \"Hearts: \";\n String Spades = \"Spades: \";\n //set up a loop to determine the kind and value of each card in hand\n for(int j=0;j<Hand.length;j++){\n int kind = Hand[j]/13;//calculate the kind of the card\n int rank = Hand[j]%13;//calculete the rank of the card\n switch (kind){\n case 0:\n switch (rank){\n case 0:\n Clubs += \"A \";\n break;\n case 1:\n Clubs += \"K \";\n break; \n case 2:\n Clubs += \"Q \";\n break; \n case 3:\n Clubs += \"J \";\n break; \n case 4:\n Clubs += \"10 \";\n break; \n case 5:\n Clubs += \"9 \";\n break; \n case 6:\n Clubs += \"8 \";\n break; \n case 7:\n Clubs += \"7 \";\n break; \n case 8:\n Clubs += \"6 \";\n break; \n case 9:\n Clubs += \"5 \";\n break; \n case 10:\n Clubs += \"4 \";\n break; \n case 11:\n Clubs += \"3 \";\n break; \n case 12:\n Clubs += \"2 \";\n break; \n } \n break;\n case 1:\n switch (rank){\n case 0:\n Diamonds += \"A \";\n break;\n case 1:\n Diamonds += \"K \";\n break; \n case 2:\n Diamonds += \"Q \";\n break; \n case 3:\n Diamonds += \"J \";\n break; \n case 4:\n Diamonds += \"10 \";\n break; \n case 5:\n Diamonds += \"9 \";\n break; \n case 6:\n Diamonds += \"8 \";\n break; \n case 7:\n Diamonds += \"7 \";\n break; \n case 8:\n Diamonds += \"6 \";\n break; \n case 9:\n Diamonds += \"5 \";\n break; \n case 10:\n Diamonds += \"4 \";\n break; \n case 11:\n Diamonds += \"3 \";\n break; \n case 12:\n Diamonds += \"2 \";\n break; \n } \n break;\n case 2:\n switch (rank){\n case 0:\n Hearts += \"A \";\n break;\n case 1:\n Hearts += \"K \";\n break; \n case 2:\n Hearts += \"Q \";\n break; \n case 3:\n Hearts += \"J \";\n break; \n case 4:\n Hearts += \"10 \";\n break; \n case 5:\n Hearts += \"9 \";\n break; \n case 6:\n Hearts += \"8 \";\n break; \n case 7:\n Hearts += \"7 \";\n break; \n case 8:\n Hearts += \"6 \";\n break; \n case 9:\n Hearts += \"5 \";\n break; \n case 10:\n Hearts += \"4 \";\n break; \n case 11:\n Hearts += \"3 \";\n break; \n case 12:\n Hearts += \"2 \";\n break; \n } \n break;\n case 3:\n switch (rank){\n case 0:\n Spades += \"A \";\n break;\n case 1:\n Spades += \"K \";\n break; \n case 2:\n Spades += \"Q \";\n break; \n case 3:\n Spades += \"J \";\n break; \n case 4:\n Spades += \"10 \";\n break; \n case 5:\n Spades += \"9 \";\n break; \n case 6:\n Spades += \"8 \";\n break; \n case 7:\n Spades += \"7 \";\n break; \n case 8:\n Spades += \"6 \";\n break; \n case 9:\n Spades += \"5 \";\n break; \n case 10:\n Spades += \"4 \";\n break; \n case 11:\n Spades += \"3 \";\n break; \n case 12:\n Spades += \"2 \";\n break; \n } \n break;\n }\n }\n \n //print out the results\n System.out.println(Clubs);\n System.out.println(Diamonds);\n System.out.println(Hearts);\n System.out.println(Spades);\n //ask user for input\n System.out.print(\"Go again? Enter 'y' or 'Y', anything else to quit- \");\n answer=scan.next();\n }while(answer.equals(\"Y\") || answer.equals(\"y\"));\n return;\n }",
"static int utilityFunction(int choice, double[] finalRes) {\n\t\t// U(choice) = P(In loses to choice | history) - P(In wins to choice | history)\n\t\t// U(0) = P(2 | history) - P(1 | history)\n\t\t// U(1) = P(0 | history) - P(2 | history)\n\t\t// U(2) = P(1 | history) - P(0 | history)\n\t\tdouble u0, u1, u2;\n\t\tu0 = finalRes[2] - finalRes[1];\n\t\tu1 = finalRes[0] - finalRes[2];\n\t\tu2 = finalRes[1] - finalRes[0];\n\t\tRandom random = new Random();\n\t\t// If all three utilities are the same, randomize between the three\n\t\tif(u0 == u1 && u1 == u2)\n\t\t\treturn random.nextInt() % 3;\n\t\t// If two choices' utilities are the same, randomize between the two\n\t\telse if((u1 > u0 && u1 == u2) || (u2 > u0 && u2 == u1)) \n\t\t\treturn random.nextBoolean() ? 2 : 1;\n\t\telse if((u1 > u2 && u1 == u0)|| (u0 > u2 && u0 == u1)) \n\t\t\treturn random.nextBoolean() ? 0 : 1;\n\t\telse if((u2 > u1 && u2 == u0) || (u0 > u1 && u0 == u2)) \n\t\t\treturn random.nextBoolean() ? 2 : 0;\n\t\t// If one choice's utility is greater than the rest\n\t\telse if(u0 > u1 && u0 > u2) \n\t\t\treturn 0;\n\t\telse if(u1 > u2 && u1 > u0) \n\t\t\treturn 1;\n\t\t//(u2 > u0 && u2 > u1) \n\t\telse return 2;\n\t}",
"private void hailstoneSeq() {\r\n\t\tint evenCount = 0; //number of times the even operation is used\r\n\t\tint oddCount = 0; //number of times the of operation is used\r\n\t\t\r\n\t\tint num = readInt(\"Enter a number:\");\r\n\t\t\r\n\t\twhile(num != 1) {\r\n\t\t\t//even numbers\r\n\t\t\tif(num % 2 == 0) { \r\n\t\t\t\tprintln(num + \" is even, so I take half: \" + (num/2));\r\n\t\t\t\tnum = num / 2;\r\n\t\t\t\tevenCount += 1;\r\n\t\t\t\t\r\n\t\t\t\tif(num == 1) { \r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\t//odd numbers\r\n\t\t\tif(num % 2 != 0) { \r\n\t\t\t\tprintln(num + \" is odd, so I make 3n + 1: \" + (3 * num + 1));\r\n\t\t\t\tnum = 3 * num + 1;\r\n\t\t\t\toddCount += 1;\r\n\t\t\t\t\r\n\t\t\t\tif(num == 1) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//determining the number of steps to reach number 1\r\n\t\tint totalCount = evenCount + oddCount;\r\n\t\tprintln(\"It took \" + totalCount + \" steps to reach 1.\");\r\n\t}",
"public void deal(){\n\t\tInteger topRank;\n\t\tInteger btmRank;\n\t\tDouble[] currPercent = {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0};\n\t\tlastRaise = -1;\n\t\tcurrBet = 3.0;\n\t\tfor (int i = 0; i<tablePlayers.length*2+5; i++) {\n\t\t\tif (i<tablePlayers.length) {\n\t\t\t\ttablePlayers[i].setCard1(deck[i]); \n\t\t\t}\n\t\t\telse if (i<tablePlayers.length*2) {\n\t\t\t\ttablePlayers[i%tablePlayers.length].setCard2(deck[i]); \n\t\t\t}\n\t\t\telse {\n\t\t\t\ttableCards[i-tablePlayers.length*2].setRank(deck[i].getRank());\n\t\t\t\ttableCards[i-tablePlayers.length*2].setSuit(deck[i].getSuit());\n\t\t\t}\n\t\t}\n\t\t//determine each hand's winning percentage and go through first round of betting\n\t\tfor (int j = 0; j < tablePlayers.length; j++) {\n\t\t\tint i = (button + 3 + j) % 10;\n\t\t\t//if (j==0) System.out.println(\"button = \" + button + \"; first = \" + i);\n\t\t\tif (tablePlayers[i].getCard1().getRank() == 1 || tablePlayers[i].getCard2().getRank() == 1) {\n\t\t\t\ttopRank = 14;\n\t\t\t\tbtmRank = Math.max(tablePlayers[i].getCard1().getRank(), tablePlayers[i].getCard2().getRank());\n\t\t\t\tif (btmRank == 1) {\n\t\t\t\t\tbtmRank = 14;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (tablePlayers[i].getCard1().getRank() <= tablePlayers[i].getCard2().getRank()) {\n\t\t\t\t\ttopRank = tablePlayers[i].getCard2().getRank();\n\t\t\t\t\tbtmRank = tablePlayers[i].getCard1().getRank();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttopRank = tablePlayers[i].getCard1().getRank();\n\t\t\t\t\tbtmRank = tablePlayers[i].getCard2().getRank();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (topRank == btmRank) { //pocket pair\n\t\t\t\tif (topRank == 14) {\n\t\t\t\t\tcurrPercent[i] = winPercent[168];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrPercent[i] = winPercent[154 + topRank];\n\t\t\t\t}\n\t\t\t} \n\t\t\telse {\n\t\t\t\tint index = -1;\n\t\t\t\tfor (int k = 1; k < topRank-2; k++) {\n\t\t\t\t\tindex += k;\n\t\t\t\t}\n\t\t\t\tindex += btmRank-1;\n\t\t\t\tindex *= 2;\n\t\t\t\tif (tablePlayers[i].getCard1().getSuit() == tablePlayers[i].getCard2().getSuit()) {\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tcurrPercent[i] = winPercent[index];\n\t\t\t}\n\t\t\t\n\t\t\t//place first round of pre-flop bets\n\t\t\tif (currPercent[i] > 0.20) { \n\t\t\t\tbetOrRaise(i,12.,3.);\n\t\t\t}\t\t\t\n\t\t\telse if ((currPercent[i] > 0.166 && currBet <= 3.0) ) { \n\t\t\t\tbetOrRaise(i,6.,3.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallBBOdds[i] && currBet <= 3.0) {\n\t\t\t\tcallBetOrCheck(i,3.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallARaiseOdds[i] && currBet <= 6.0) {\n\t\t\t\tcallBetOrCheck(i,6.);\n\t\t\t}\n\t\t\telse if (currPercent[i] > preFlopCallMultiRaiseOdds[i] && currBet > 6.0) {\n\t\t\t\tcallBetOrCheck(i,12.);\n\t\t\t}\n\t\t\telse if (i == ((button + 1) % 10)) {\n\t\t\t\ttablePlayers[i].placeBet(1.0);\n\t\t\t\tpot += 1.0;\n\t\t\t\ttablePlayers[i].foldHand();\n\t\t\t}\n\t\t\telse if (i == ((button + 2) % 10)) {\n\t\t\t\ttablePlayers[i].placeBet(3.0);\n\t\t\t\tpot += 3.0;\n\t\t\t\tif (currBet > 3.0) {\n\t\t\t\t\tif (currPercent[i] > preFlopCallBBOdds[i] && currBet <= 6.0) {\n\t\t\t\t\t\tcallBetOrCheck(i,6.);\n\t\t\t\t\t}\n\t\t\t\t\telse tablePlayers[i].foldHand();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tablePlayers[i].getBet() < currBet) {\n\t\t\t\ttablePlayers[i].foldHand();\n\t\t\t}\n\t\t}\n\t\tif (lastRaise > -1) {\n\t\t\traiseCount++;\n\t\t}\n\t\t// call raises and allow for re-raises to cap\n\t\twhile (lastRaise > -1) {\n\t\t\tlastRaise = -1;\n\t\t\tfor (int j = 0; j < tablePlayers.length; j++) {\n\t\t\t\tint i = (button + 3 + j) % 10;\n\t\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\t\tif (currPercent[i] > 0.20) {\n\t\t\t\t\t\tbetOrRaise(i,12.,3.);\n\t\t\t\t\t}\n\t\t\t\t\tif (tablePlayers[i].getBet() >= currBet) {\n\t\t\t\t\t\tcontinue; //check\n\t\t\t\t\t}\n\t\t\t\t\telse if (tablePlayers[i].getBet() == currBet - 3.0 && currPercent[i] > preFlopCallBBOdds[i]) {\n\t\t\t\t\t\t//call one raise if player would have called BB\n\t\t\t\t\t\tcallBetOrCheck(i, currBet);\n\t\t\t\t\t}\n\t\t\t\t\telse if (tablePlayers[i].getBet() < currBet - 3.0 && currPercent[i] > preFlopCallMultiRaiseOdds[i]) {\n\t\t\t\t\t\t//call the multiRaise if would have called multiple raises on first action\n\t\t\t\t\t\tcallBetOrCheck(i,12.);\n\t\t\t\t\t}\n\t\t\t\t\telse tablePlayers[i].foldHand();\n\t\t\t\t}\n\t\t\t}\n//\t\t\tprintTableStatus();\n\t\t}\n//\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n//\t\t\tif (!tablePlayers[9].hasFolded()) flopsPlayed++;\n//\t\t}\n\t\t//Bet the flop\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t\tflopPlayers++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) flopsSeen++;\n\t\tplayersLeft = 0;\n\t\tbetFlop();\n\t\t//Bet the turn\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t\tturnPlayers++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) turnsSeen++;\n\t\tplayersLeft = 0;\n\t\tbetTurn();\n\t\t\n\t\t//Bet the river\n\t\tresetPlayerBets();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\triverPlayers++;\n\t\t\t\tplayersLeft++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) riversSeen++;\n\t\tplayersLeft = 0;\n\t\tbetRiver();\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) {\n\t\t\t\tplayersLeft++;\n\t\t\t}\n\t\t}\n\t\tif (playersLeft > 1) showdowns++;\n\t\tplayersLeft = 0;\n\t\t\n\t}",
"@Override\r\n\tpublic void sendShakeGame(Player player)// csf\r\n\t{\r\n\t\tbyte sameCount = 0;\r\n\t\tbyte[] diceNumbers = DicePointFactory.getDiceNumber(5);\r\n\r\n\t\tdicePoints.put(player.getPlayerID(), diceNumbers);\r\n\t\tplayer.setDiceNumbers(diceNumbers);\r\n\t\tplayer.setSameCount(sameCount);\r\n\t\tplayer.setDiceNumber(0);\r\n\t\tplayer.setDicePoint(0);\r\n\t\tplayer.setIsCallOne(false);// csf\r\n\r\n\t\tPacket packet = new Packet(UserCmdOutType.GAME_START_BOUT);\r\n\t\tpacket.putByte(diceNumbers);\r\n\t\tpacket.putByte(sameCount);\r\n\t\tsendToPlayer(packet, player);\r\n\r\n\t\tif (gameState != GameState.Prepared)\r\n\t\t\tgameState = GameState.Prepared;\r\n\r\n\t\tfor (int i = 1; i <= 5; i++) {\r\n\t\t\tint point = diceNumbers[i - 1];\r\n\t\t\tif (dicePointsCount.containsKey(point))\r\n\t\t\t\tdicePointsCount.put(point, dicePointsCount.get(point) + 1);\r\n\t\t\telse\r\n\t\t\t\tdicePointsCount.put(point, 1);\r\n\t\t}\r\n\t}",
"private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}",
"public static void miedo(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n aleatorio = (numeroAleatorio.nextInt(10-5+1)+5);\n \n if(oro>aleatorio){//condicion de finalizar battalla y sus acciones\n oroPerdido= (nivel*2)+aleatorio;\n oro= oro-oroPerdido;\n System.out.println(\"Huiste de la batalla!!!\");\n\t\t System.out.println(\"oro perdido:\"+oroPerdido);\n opcionMiedo=1; //finalizando battalla por huida del jugador \n }\n else{\n System.out.println(\"No pudes huir de la batalla\");\n } \n }",
"public void bake() {\n\t\twhile(true) {\n\t\t\tSystem.out.print(\"attempting to bake 1 souffle...\");\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tSystem.out.println(\"success!\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"but it didn't rise\");\n\t\t\t\tprepare();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\t\n\t int number = (int)(Math.random()*3);\n\t if(number == 1) {\n\t \ttxt.setText(\"都出剪刀,平手\"); \n\t \tk++;\n\t \tai.setText(\"剪刀\");\n\t \tplayer.setText(\"剪刀\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.scissor);\n\t \timg2.setImageResource(R.drawable.scissor);\n\t }\n\t else if(number == 2) {\n\t \ttxt.setText(\"你出剪刀 ,電腦出石頭,你輸了\");\n\t \tj++;\n\t \tai.setText(\"石頭\");\n\t \tplayer.setText(\"剪刀\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.rock);\n\t \timg2.setImageResource(R.drawable.scissor);\n\t }\n\t else {\n\t \ttxt.setText(\"你出剪刀,電腦出布,你贏了\");\n\t \ti++;\n\t \tai.setText(\"布\");\n\t \tplayer.setText(\"剪刀\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.paper);\n\t \timg2.setImageResource(R.drawable.scissor);\n\t }\n\t\t}",
"public int eightball (int points, int life)\n {\n\tchar doesntmatter = IBIO.inputChar (\"Type anything to proceed on your journey: \");\n\tprintSlow (\"\\nOff into the hallways, just like last year. As you glance at your schedule, you realize you have a new course - Divination?\");\n\tprintSlow (\"You walk into your class, spotting a weird teacher with even weirder glasses, who calls your name and asks you to read a magical leaf\");\n\tint prediction = (int) (Math.random () * 5) + 1;\n\tprintSlow (\"\\n\\n\\t***The Divination Tea Leaf***\");\n\tSystem.out.println (\"\\t\\t |\");\n\tSystem.out.println (\"\\t\\t .'|'.\");\n\t;\n\tSystem.out.println (\"\\t\\t /.'|\\\\ \\\\ \");\n\tSystem.out.println (\"\\t\\t | /|'.|\");\n\tSystem.out.println (\"\\t\\t \\\\ |\\\\/\");\n\tSystem.out.println (\"\\t\\t \\\\|/\");\n\tSystem.out.println (\"\\t\\t , \");\n\tprintSlow (\"~Endorsed and encouraged by Hogwart's very own Prof. Trelawny~\");\n\tprintSlow (\"Your inner eye believes that the following about your current quest is true:\\n\");\n\n\t//int yn = IBIO.inputInt (\"Enter a yes or no question: \");\n\t// Maybe I can make ^ change something based on the Tea Leaf's output\n\tif (prediction == 1)\n\t{\n\t printSlow (\"The divination leaf seems to be in your favour, increasing your courage for future battles!\\n\\n\");\n\t points += 5;\n\t return 1;\n\t}\n\n\n\telse if (prediction == 2)\n\t{\n\t printSlow (\"You feel empowered knowing that the odds of your victory in the future will be empowered.\\n\\n\");\n\t points += 10;\n\t return 1;\n\t}\n\n\n\telse if (prediction == 3)\n\t{\n\t printSlow (\"You feel slightly weak after staring at a leaf for a long amount of time without any resolve\\n\\n\");\n\t points -= 5;\n\t return 1;\n\t}\n\n\n\telse if (prediction == 4)\n\t{\n\t printSlow (\"You read through the leaf that your chances in the upcoming battle are greatly reduced.\\n\\n\");\n\t points -= 10;\n\t return 1;\n\t}\n\n\n\telse\n\t{\n\t printSlow (\"Professor Trelawny runs over to you, and shrieks *AAAAAAAHHHH* before changing her tone of voice\");\n\t printSlow (\"As someone must pass every year, this year the leaves say it SHALL be you!\\n\\n\");\n\t return 2;\n\t}\n }",
"public boolean checkTip(String tip) {\n\t\tboolean head = false;\n\t\tboolean retVal = false;\n\t\tdouble random = Math.random();\n\t\tif (random < 0.5) {\n\t\t\thead = true;\n\t\t\tSystem.out.println(\"************\");\n\t\t\tSystem.out.println(\"****Head****\");\n\t\t\tSystem.out.println(\"************\");\n\t\t\tSystem.out.println();\n\t\t} else {\n\t\t\tSystem.out.println(\"************\");\n\t\t\tSystem.out.println(\"****Tail****\");\n\t\t\tSystem.out.println(\"************\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\tif (head == true && tip.equals(\"head\")) {\n\n\t\t\tSystem.out.println(\"$$$$$$$$$$$$\");\n\t\t\tSystem.out.println(\"$ You win! $\");\n\t\t\tSystem.out.println(\"$$$$$$$$$$$$\");\n\t\t\tSystem.out.println();\n\t\t\tretVal = true;\n\t\t}\n\n\t\telse if (head == false && tip.equals(\"tail\")) {\n\n\t\t\tSystem.out.println(\"$$$$$$$$$$$$\");\n\t\t\tSystem.out.println(\"$ You win! $\");\n\t\t\tSystem.out.println(\"$$$$$$$$$$$$\");\n\t\t\tSystem.out.println();\n\t\t\tretVal = true;\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"%%%%%%%%%%%%%\");\n\t\t\tSystem.out.println(\"% You lose. %\");\n\t\t\tSystem.out.println(\"%%%%%%%%%%%%%\");\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\treturn retVal;\n\t}",
"public boolean shuffleNeeded();",
"static int getRandomDelta() {\n int d = rand.nextInt(100);\n if (d < 50) {\n return -1;\n } else {\n return 1;\n }\n }",
"public static void game()\n\t{\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tint car = (int)(Math.random() * 3 + 1);\n\t\t\n\t\t//testing\n\t\tSystem.out.println(\"car = \" + car); \n\t\t\n\t\tSystem.out.print(\"Please choose a door (1, 2, or 3) \");\n\t\tint user_pick = keyboard.nextInt();\n\t\t// get rid of the newLine from the buffer\n\t\tkeyboard.nextLine();\n\t\t\n\t\t// testing\n\t\tSystem.out.println(\"You chose door # \" + user_pick);\n\t\t\n\t\tint reveal = doorToReveal(car, user_pick);\n\t\t\n\t\t//testing\n\t\tSystem.out.println(\"Open door #: \" + reveal);\n\t\t\n\t\t//ask the user if they want to switch\n\t\tSystem.out.println(\"Do you want to switch?: \");\n\t\tString answer = keyboard.nextLine();\n\t\t\n\t\t//testing \n\t\tSystem.out.println(\"The user wants to switch \" + answer);\n\t\t\n\t\tif(answer.equals(\"yes\"))\n\t\t{\n\t\t\tuser_pick = doorToReveal1(user_pick, reveal);\n\t\t\n\t\t}\n\t\t\n\t\tif ( car == user_pick )\n\t\t\tSystem.out.print(\"You win!!\");\n\t\telse\n\t\t\tSystem.out.println(\"Sorry! You lose !!!\");\n\t\n\t}",
"public int trickWinner(){\n Card.NUMBER one = player1Play.getValue();\n Card.NUMBER two = player2Play.getValue();\n Card.NUMBER three = player3Play.getValue();\n Card.NUMBER four = player4Play.getValue();\n Card.SUIT oneSuit = player1Play.getSuit();\n Card.SUIT twoSuit = player2Play.getSuit();\n Card.SUIT threeSuit = player3Play.getSuit();\n Card.SUIT fourSuit = player4Play.getSuit();\n int[] value = new int[4];\n value[0] = Card.getValsVal(one, oneSuit, currentTrumpSuit);\n value[1] = Card.getValsVal(two, twoSuit, currentTrumpSuit);\n value[2] = Card.getValsVal(three, threeSuit, currentTrumpSuit);\n value[3] = Card.getValsVal(four, fourSuit, currentTrumpSuit);\n if(player1Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[0] += 10;\n }\n if(player2Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[1] += 10;\n }\n if(player3Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[2] += 10;\n }\n if(player4Play.getSuit() == firstPlayedSuit && firstPlayedSuit != currentTrumpSuit && value[0] != 7){\n value[3] += 10;\n }\n if(player1Play.getSuit() == currentTrumpSuit || value[0] == 7){\n value[0] += 20;\n }\n if(player2Play.getSuit() == currentTrumpSuit || value[1] == 7){\n value[1] += 20;\n }\n if(player3Play.getSuit() == currentTrumpSuit || value[2] == 7){\n value[2] += 20;\n }\n if(player4Play.getSuit() == currentTrumpSuit || value[3] == 7){\n value[3] += 20;\n }\n int winner = 0;\n int winVal = 0;\n for(int i = 0; i < 4; i++){\n if(value[i] > winVal){\n winVal = value[i];\n winner = i;\n }\n }\n return winner;\n }",
"public int fight() {\r\n\t\treturn -this.randomObject.nextInt(50);\r\n\t}",
"public static int getRandomBalance(){\n return rand.nextInt(1000000);\n }",
"public static void main (String[] args) {\n\t\t\n\t\t//Kop of munt definieren\n\t\tString[] kopOfMunt = {\"kop\", \"munt\"};\n\t\t\n\t\t//Wat het resultaat van de flip gaat zijn (random)\n\t\t//Definieer eerst uw range\n\t\tint aantalMogelijkheden = kopOfMunt.length;\n\t\t\n\t\t//Vragen aan de gebruiker hoeveel we moeten tossen\n\t\tSystem.out.println(\"Yo fam, zeg keer, hoeveel keer moek smijten? (1-15000)\\n\");\n\t\tScanner sc = new Scanner(System.in);\n\t\t//Dit getal gaan we in een variabele steken\n\t\tint aantalFlips = sc.nextInt(); //indien je een string zil gebruiken, vervang nextInt() door nextLine(). En verander het datatype naar string natuurlijk \n\t\t\n\t\t//Variabelen dat aantal munt en aantal kop vasthoud \n\t\tint aantalKop = 0;\n\t\tint aantalMunt = 0;\n\t\t\n\t\t//Flip de coin *aantalFlips* keer\t\t\n\t\t//Maak een for-loop dat *aantalFlips* keer itereert (herhaalt), dan wordt het resultaat in totaal *aantalFlips* keer geprint\n\t\tfor (int i = 0; i < aantalFlips; i++) {\n\n\t\t\t//Uw range van mogelijke resultaten maal iets random tussen 0 en 1\n\t\t\t//Dit kiest een positie van uw array, deze positie noemen we nu \"kopOfMuntResultaat\"\n\t\t\tint kopOfMuntResultaat = (int) (Math.random() * aantalMogelijkheden);\n\t\t\n\t\t\t//Dit is de variabele die het woord gaat vasthouden dat op deze random positie van deze array zit\n\t\t\tString resultaat = kopOfMunt[kopOfMuntResultaat];\n\t\t\t\n\t\t\t//Print het resultaat van elke flip, enkel indien het lager dan 100 flips zijn\n\t\t\tif (aantalFlips < 100) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(resultaat);\n\t\t\t} else {\n\t\t\t\t//doe niks, aleja ga verder met de code, dit is een lege statement\n\t\t\t\t;\n\t\t\t} \n\t\t\t\n\t\t\t//De teller van aantal kop moet eentje naar omhoog indien het kop was (zelfde voor munt)\n\t\t\tif (kopOfMuntResultaat == 0) {\n\t\t\t\taantalKop++;\n\t\t\t} else {\n\t\t\t\taantalMunt++;\n\t\t\t} \n\t\t}\n\t\t\n\t\t//Hier print je het *aantalFlips*\n\t\t//Hier print je het aantal keer dat het kop was en het aantal keer dat het munt was\n\t\tSystem.out.println(\"\\nAight cava, kzal \" + aantalFlips + \" keer smijten voor u. \\nKheb speciaal voor u exact, ma EXACT \" + aantalFlips + \" keer gesmeten.\\nHet was \" + aantalKop + \" keer kop en het was \" + aantalMunt + \" keer munt. \\nZOT HE!!\\n\");\n\t\t\n\t\t//Variabelen om de percentages van het resultaat te bewaren. Aangezien het percentage een kommagetal is gaan we eerst de ints in een double steken voor de berekening\n\t\tdouble doubleAantalFlips = aantalFlips;\n\t\tdouble doubleAantalKop = aantalKop;\n\t\tdouble doubleAantalMunt = aantalMunt;\n\t\tdouble percentKop = (doubleAantalKop / doubleAantalFlips) * 100;\n\t\tdouble percentMunt = (doubleAantalMunt / doubleAantalFlips) * 100;\n\t\t\n\t\t//Hier rond ik de doubles af tot op 2 decimalen (gevonden op stackoverflow)\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\"); \n\t\tpercentKop = Double.valueOf(df.format(percentKop));\n\t\tpercentMunt = Double.valueOf(df.format(percentMunt));\n\t\t\n\t\t//Print het percentage van het aantal keer kop en aantal keer munt. Gebruik een nieuwe regel voor percentage van munt.\n\t\tSystem.out.println(\"In procenten betekent dit dat het \" + percentKop + \"% kop was. \\nEn het was \" + percentMunt + \"% munt.\");\n\t\t\n\t\t\n\t}",
"@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the number of times of toss\");\n\t\tint no;\n\t\tno=sc.nextInt();\n\t\tint tail = 0,head=0;\n\t\tdouble result;\n\t\tfor(int i=0;i<no;i++) {\n\t\t\tresult=Math.random();\n\t\t\tif(result<0.5)\n\t\t\t{\n\t\t\t\ttail++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\thead++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"percentage of tail is :\"+((tail*100)/no));\n\t\tSystem.out.println(\"percentage of head is :\"+((head*100)/no));\t\t\n\n\t}",
"@Override\n public String solve() {\n\n long firstCoin = 1504170715041707L;\n long modValue = 4503599627370517L;\n //System.out.println(\"Second Coin \" + (firstCoin - (4503599627370517L % firstCoin)));\n long secondCoin = firstCoin - (modValue % firstCoin);\n long ans = firstCoin + secondCoin;\n while(secondCoin > 1) {\n modValue = firstCoin;\n firstCoin = secondCoin;\n secondCoin = firstCoin - (modValue % firstCoin);\n //System.out.println(secondCoin);\n ans += secondCoin;\n }\n return Long.toString(ans);\n }",
"private void checkForPlayerChance()\n\t\t\t{\n\t\t\t\tf = false;\n\t\t\t\tfor (j = 0; j < 8; ++j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (win[j] == 2 && lose[j] == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tf = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\tif (f == false)\n\t\t\t\t\tj = 10;\n\n\t\t\t}"
] |
[
"0.72804266",
"0.7184349",
"0.71302456",
"0.70404977",
"0.7035902",
"0.7010875",
"0.66937083",
"0.6502938",
"0.65000314",
"0.6463962",
"0.641587",
"0.64142495",
"0.6381827",
"0.6182689",
"0.6118211",
"0.57360226",
"0.57280135",
"0.57164186",
"0.5710599",
"0.5705047",
"0.56868553",
"0.5665597",
"0.5645677",
"0.56455505",
"0.5581336",
"0.55130255",
"0.5450962",
"0.5441101",
"0.5434017",
"0.5432165",
"0.54310465",
"0.54144883",
"0.5414293",
"0.5385126",
"0.5381121",
"0.53702354",
"0.53606385",
"0.53589624",
"0.53484297",
"0.5325653",
"0.5318179",
"0.53176576",
"0.5281862",
"0.5277909",
"0.52756506",
"0.52712023",
"0.5267889",
"0.52678514",
"0.5267238",
"0.5266424",
"0.5254747",
"0.52509534",
"0.52311784",
"0.51970965",
"0.51970005",
"0.51873654",
"0.51842076",
"0.51727563",
"0.516772",
"0.5163362",
"0.5159957",
"0.51440614",
"0.5139192",
"0.5124697",
"0.5122677",
"0.51201206",
"0.5110592",
"0.50981456",
"0.50961876",
"0.50918",
"0.5091045",
"0.5089427",
"0.5084115",
"0.5080029",
"0.5072525",
"0.50578964",
"0.5054248",
"0.5053314",
"0.5052646",
"0.50484926",
"0.50417787",
"0.5040363",
"0.50397503",
"0.5036416",
"0.50361425",
"0.5030857",
"0.5028263",
"0.5027478",
"0.50228655",
"0.5021698",
"0.5020649",
"0.50198334",
"0.50183046",
"0.50164956",
"0.5014017",
"0.5008599",
"0.50058556",
"0.50051373",
"0.500199",
"0.49994326"
] |
0.75450724
|
0
|
CONSTRUCTORES TRAER TIPOS DE USUARIOS
|
public TipoUsuario(int id_tipousuario, String usuario) {
this.id_tipousuario = id_tipousuario;
this.usuario = usuario;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }",
"UnionSecuenciaLuz createUnionSecuenciaLuz();",
"private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }",
"public TrazAqui(){\n this.utilizadores = new TreeMap<>();\n this.encomendas = new TreeMap<>();\n this.utilizador = null;\n }",
"private RicercaSinteticaCapitoloEPrev creaUtilityRicercaSinteticaCapitoloEPrev() {\n\t\tRicercaSinteticaCapitoloEPrev utility = new RicercaSinteticaCapitoloEPrev();\n\t\t\n\t\tutility.setAnnoEsercizio(getAnnoEsercizioInt());\n\t\tutility.setAnnoCapitolo(getAnnoCapitoloDaConsultare());\n\t\tutility.setNumeroCapitolo(getNumeroCapitoloDaConsultare());\n\t\tutility.setNumeroArticolo(getNumeroArticoloDaConsultare());\n\t\t\n\t\treturn utility;\n\t}",
"private IOferta buildOfertaEjemplo7() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoEnSegundoProducto(\"11-111-1111\", \"11-111-1112\", 50);\n\t\treturn new OfertaDinero(\"50% en Sprite, comprando 1 Coca\", condicion,\tdescuento);\n\t}",
"private USI_TRLT() {}",
"public Transportadora() {\r\n super();\r\n this.nif = \"\";\r\n this.raio = 0;\r\n this.precoKm = 0;\r\n this.classificacao = new Classificacao();\r\n this.estaLivre = true;\r\n this.velocidadeMed = 0;\r\n this.kmsTotal = 0;\r\n this.capacidade = 0;\r\n }",
"UtenteFactory () {\n /**\n * inizializzo l'array list che contiene la lista degli utenti iscritti al sito.\n */\n listaUtenti = new ArrayList <Utente> ();\n \n // creo una lista contenente i venditori e una contenente gli acquirenti\n VenditoreFactory listaVenditori = new VenditoreFactory ();\n AcquirenteFactory listaAcquirenti = new AcquirenteFactory();\n \n \n // inserisco nella lista degli utenti, gli acquirenti e i venditori\n // contenuti nelle rispettive liste\n for (int i=0; i<4; i++) {\n listaUtenti.add(listaVenditori.getListaVenditori().get(i));\n listaUtenti.add(listaAcquirenti.getListaAcquirenti().get(i));\n }\n }",
"public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }",
"private IOferta buildOfertaEjemplo6() {\n\t\tPredicate<Compra> condicion = new PredicadoCupon(\"11111\");\n\n\t\tFunction<Compra, Float> descuento = Functions.compose(\n\t\t\t\tnew DescuentoFijo<>(10.0f),\n\t\t\t\tnew ExtraerTotalBruto());\n\n\t\treturn new OfertaDinero(\"$10 cupon\", condicion, descuento);\n\t}",
"public SigalPeticion getUsuarios() throws Exception {\n SigalPeticion msgEnvio = SigalPeticion.getInstance( 2 );\n\n msgEnvio.addParametro( 0, new Parametro( \"FUNCION\", \"CL\" ) ); \n msgEnvio.addParametro( 1, \n /**\n * Somente usuarios ATIVOS\n * N = Ativos\n * S = Ativos e Inativos\n */\n new Parametro( \"USUBAJAC\", \"N\" ) \n );\n\n msgEnvio.setTipoOperacion( \"view\" );\n msgEnvio.setTransaccion( \"SGCLUSU\" );\n\n return msgEnvio;\n }",
"private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}",
"public Utilizador(){\n this.email = \"\";\n this.password = \"\";\n this.nome = \"\";\n this.genero = \"\";\n this.morada = \"\";\n this.data_nasc = new GregorianCalendar();\n this.data_reg = new GregorianCalendar();\n this.amigos = new TreeSet<>();\n this.pedido_amizade = new TreeSet<>();\n this.atividades = new HashMap<>();\n this.eventos = new TreeSet<>();\n }",
"public Test3()\n {\n for(int i=0; i< horas.length;i++){\n String [] d = horas[i].split(\":\");\n v[i][0] = new CarroGrande(\"URC781\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][1] = new CarroPequeno(\"URC782\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][2] = new Moto(\"URC783\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n v[i][3] = new Bicicleta(\"URC784\"+i, \"60458723\", Integer.parseInt(d[0]), Integer.parseInt(d[1]), Integer.parseInt(d[2]));\n }\n }",
"private IOferta buildOfertaEjemplo5() {\n\t\tPredicate<Compra> condicion = new PredicadoJubilado();\n\n\t\tFunction<Compra, Float> descuento = Functions.compose(\n\t\t\t\tnew DescuentoPorcentual(10.0f),\n\t\t\t\tnew ExtraerTotalBruto());\n\n\t\treturn new OfertaDinero(\"10% descuento jubilados\", condicion, descuento);\n\t}",
"@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}",
"private SegmentTmTuv createTuv(SegmentTmTu p_tu, Element p_root)\n throws Exception\n {\n SegmentTmTuv result = new SegmentTmTuv();\n result.setOrgSegment(p_root.asXML());\n \n // need to set backpointer to tuv, or SegmentTmTuv.equals() fails.\n result.setTu(p_tu);\n\n // language of the TUV \"EN-US\", case insensitive\n String lang = p_root.attributeValue(Tmx.LANG);\n\n try\n {\n String locale = ImportUtil.normalizeLocale(lang);\n result.setLocale(ImportUtil.getLocaleByName(locale));\n }\n catch (Throwable ex)\n {\n throw new Exception(\"unknown locale \" + lang + \",you can create it in system then retry.\");\n }\n\n // Creation user - always set to a known value\n String user = p_root.attributeValue(Tmx.CREATIONID);\n if (user == null)\n {\n user = p_root.getParent().attributeValue(Tmx.CREATIONID);\n }\n\n result.setCreationUser(user != null ? user : Tmx.DEFAULT_USER);\n\n // Modification user - only set if known\n user = p_root.attributeValue(Tmx.CHANGEID);\n if (user == null)\n {\n user = p_root.getParent().attributeValue(Tmx.CHANGEID);\n }\n\n if (user != null)\n {\n result.setModifyUser(user);\n }\n\n // Timestamps (should be expressed using java.util.Date).\n // In TMX, timestamps use the short form: yyyymmddThhmmssZ,\n // so prepare for both short and long form.\n Date now = new Date();\n Date date;\n\n // Creation date - always set to a known value\n String ts = p_root.attributeValue(Tmx.CREATIONDATE);\n if (ts == null)\n {\n ts = p_root.getParent().attributeValue(Tmx.CREATIONDATE);\n }\n\n if (ts != null)\n {\n date = UTC.parseNoSeparators(ts);\n if (date == null)\n {\n date = UTC.parse(ts);\n }\n result.setCreationDate(new Timestamp(date.getTime()));\n }\n else\n {\n result.setCreationDate(new Timestamp(now.getTime()));\n }\n\n // Modification date - only set if known (note: currently\n // AbstractTmTuv sets the modification date to NOW)\n ts = p_root.attributeValue(Tmx.CHANGEDATE);\n if (ts == null)\n {\n ts = p_root.getParent().attributeValue(Tmx.CHANGEDATE);\n }\n\n if (ts != null)\n {\n date = UTC.parseNoSeparators(ts);\n if (date == null)\n {\n date = UTC.parse(ts);\n }\n result.setModifyDate(new Timestamp(date.getTime()));\n }\n else\n {\n // If no \"changedate\", set it same as \"creationdate\".\n result.setModifyDate(result.getCreationDate());\n }\n\n\t\tts = p_root.attributeValue(Tmx.LASTUSAGEDATE);\n\t\tif (ts == null)\n\t\t{\n\t\t\tts = p_root.getParent().attributeValue(Tmx.LASTUSAGEDATE);\n\t\t}\n\t\tif (ts != null)\n\t\t{\n\t\t\tdate = UTC.parseNoSeparators(ts);\n\t\t\tif (date == null)\n\t\t\t{\n\t\t\t\tdate = UTC.parse(ts);\n\t\t\t}\n\t\t\tresult.setLastUsageDate(new Timestamp(date.getTime()));\n\t\t}\n\n\t\tList tuvPropNodes = p_root.elements(\"prop\");\n\t\tfor (int i = 0; i < tuvPropNodes.size(); i++)\n\t\t{\n\t\t\tElement elem = (Element) tuvPropNodes.get(i);\n\t\t\tString type = elem.attributeValue(\"type\");\n\t\t\tString value = elem.getText();\n\t\t\tif (Tmx.PROP_PREVIOUS_HASH.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setPreviousHash(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_NEXT_HASH.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setNextHash(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_JOB_ID.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setJobId(Long.parseLong(value));\n\t\t\t}\n\t\t\telse if (Tmx.PROP_JOB_NAME.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setJobName(value);\n\t\t\t}\n\t\t\telse if (Tmx.PROP_CREATION_PROJECT.equalsIgnoreCase(type))\n\t\t\t{\n\t\t\t\tresult.setUpdatedProject(value);\n\t\t\t}\n\t\t}\n // Segment text: need to produce root elements <translatable>\n // and <localizable> depending on TU type.\n StringBuffer segment = new StringBuffer();\n\n if (p_tu.isTranslatable())\n {\n segment.append(\"<segment>\");\n }\n else\n {\n segment.append(\"<localizable>\");\n }\n\n segment.append(getSegmentValue(p_root));\n\n if (p_tu.isTranslatable())\n {\n segment.append(\"</segment>\");\n }\n else\n {\n segment.append(\"</localizable>\");\n }\n\n result.setSid(p_tu.getSID());\n //End of Added\n result.setSegment(segment.toString());\n\n return result;\n }",
"public TTau() {}",
"private void cargarTarjetaTuberculosis() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_HC_TUBERCULOSIS,\r\n\t\t\t\tIRutas_historia.LABEL_HC_TUBERCULOSIS, parametros);\r\n\t}",
"public abstract Anuncio creaAnuncioTematico();",
"Tarifas(int tipoTarifa, double costeMinuto, String nombreTarifa)\n {\n this.tipoTarifa = tipoTarifa;\n this.costeMinuto = costeMinuto;\n this.nombreTarifa = nombreTarifa;\n }",
"public Tura() {\n\t\tLicznikTur = 0;\n\t}",
"private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}",
"private void setupEscenario3( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,3,7,9\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"2,4,6,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"5\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"public Fruitore()\r\n\t{\r\n\t\tthis.nomeUtente = Costanti.STRINGA_VUOTA;\r\n\t}",
"Soldat[][] getUnites();",
"private void setupEscenario2( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,2,3,4\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"5,6,7,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"9\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }",
"public Curso() {\n\t\tthis.alumnos = new ArrayList<Alumno>();\n\t\tcupo = 0;\n\t\tcreditos = 0;\n\t}",
"private IOferta buildOfertaEjemplo3() {\n\t\tPredicate<Compra> condicion = Predicates.compose(\n\t\t\t\tnew PredicadoDiaSemana(Calendar.SATURDAY),\n\t\t\t\tnew ExtraerFechaCreacion());\n\t\tFunction<Compra, Float> descuento = new DescuentoFijo<>(10.0f);\n\t\treturn new OfertaDinero(\"10$ descuento sabados\", condicion,\n\t\t\t\tdescuento);\n\t}",
"SintagmaPreposicional createSintagmaPreposicional();",
"private TipoAtaque generateTipoAtaque() {\n\t\treturn null;\r\n\t}",
"public void teclas() {\r\n\t\tif (app.key == '1') {\r\n\t\t\ttipoCom = 1;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso1.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '2') {\r\n\t\t\ttipoCom = 2;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso2.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '3') {\r\n\t\t\ttipoCom = 3;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso3.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '4') {\r\n\t\t\ttipoCom = 4;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso4.addAll(persona);\r\n\t\t}\r\n\t}",
"private static void etapa2Urna() {\n\t\t\n\t\tint opcaoNumero = 0;\n\n\t\tdo {\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tSystem.out.println(\"Votação\");\n\t\t\tSystem.out.println(\"1 - Votar\");\n\t\t\tSystem.out.println(\"2 - Justificar ausencia\");\n\t\t\tSystem.out.println(\"Digite o número da etapa ou -1 para sair: \");\n\t\t\t\n\t\t\ttry {\n\t\t\n\t\t\t\topcaoNumero = Integer.parseInt(br.readLine());\n\t\t\n\t\t\t\tswitch( opcaoNumero ) {\n\t\t\n\t\t\t\tcase 1: \n\t\t\t\t\t// Abrir Etapa 1: Configurar Urna\n\t\t\t\t\tlimparConsole();\n\t\t\t\t\trealizarVotacao();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 2: \n\t\t\t\t\t// Abrir Etapa 2: Realizar Votacao na Urna\n\t\t\t\t\tlimparConsole();\n\t\t\t\t\tSystem.out.println(\"Insira o numero do seu titulo de eleitor\");\n\t\t\t\t\tint tituloEleitor = Integer.parseInt(br.readLine());\n\t\t\t\t\turna.justificarVoto(tituloEleitor);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\n\t\t}while(opcaoNumero != -1);\n\t}",
"private void populaUnidade()\n {\n Unidade unidade = new Unidade(\"Unidade Santo Amaro\", \"Horario de funcionamento: 6:00 as 23:00\");\n unidadeDAO.insert(unidade);\n unidade = new Unidade(\"Unidade Aclimação\", \"Horario de funcionamento: 7:00 as 22:00\");\n unidadeDAO.insert(unidade);\n unidade = new Unidade(\"Unidade Vinhedo\", \"Horario de funcionamento: 6:00 as 22:00\");\n unidadeDAO.insert(unidade);\n }",
"private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}",
"private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }",
"public final void addUniverso() {\n GraphicsConfigTemplate3D gct3D = new GraphicsConfigTemplate3D();\n gct3D.setSceneAntialiasing(GraphicsConfigTemplate3D.REQUIRED);\n GraphicsConfiguration gc = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getBestConfiguration(gct3D);\n\n Canvas3D cv = new Canvas3D(gc);\n add(cv, \"Center\");\n // SimpleUniverse define los elementos basicos de una escena 3D \n // y lo asocia al plano 2D\n universo = new SimpleUniverse(cv);\n // Define la ubicación predeterminada de la vista\n // Mueve el centro (0,0,0) a una distancia de 2.\n universo.getViewingPlatform().setNominalViewingTransform();\n creaRamaContenido();\n }",
"public static void init()\n\t{\n\t\t\n\t\tu.creerGalaxie(\"VoieLactee\", \"spirale\", 0);\n\t\tu.creerEtoile(\"Soleil\", 0, 'F', u.getGalaxie(\"VoieLactee\")); //1\n\t\tu.creerObjetFroid(\"Terre\", 150000 , 13000 , 365 , u.getObjet(1)); //2\n\n\t\tu.creerObjetFroid(\"Lune\", 200 , 5000 , 30 , u.getObjet(2)); //3\n\n\t\tu.creerObjetFroid(\"Mars\", 200000 , 11000 , 750 , u.getObjet(1)); //4\n\n\t\tu.creerObjetFroid(\"Phobos\", 150 , 500 , 40 , u.getObjet(4)); //5\n\n\t\tu.creerObjetFroid(\"Pluton\", 1200000 , 4000 , 900 , u.getObjet(1)); //6\n\n\t\tu.creerEtoile(\"Sirius\", 2, 'B', u.getGalaxie(\"VoieLactee\")); //7\n\n\t\tu.creerObjetFroid(\"BIG-1\", 1000 , 50000 , 333 , u.getObjet(7)); //8\n\n\t\tu.creerGalaxie(\"M31\", \"lenticulaire\", 900000);\n\t\tu.creerEtoile(\"XS67\", 8, 'F', u.getGalaxie(\"M31\")); //9\n\t\tu.creerObjetFroid(\"XP88\", 160000 , 40000 , 400 , u.getObjet(9)); //10\n\t}",
"public TipoUsuario(int id_tipousuario) {\n this.id_tipousuario = id_tipousuario;\n }",
"public datosTaller() {\n this.cedulaCliente = new int[100]; //Atributo de la clase\n this.nombreCliente = new String[100]; //Atributo de la clase\n this.compraRealizada = new String[100]; //Atributo de la clase\n this.valorCompra = new float[100]; //Atributo de la clase\n this.posicionActual = 0; //Inicializacion de la posicion en la que se almacenan datos\n }",
"private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }",
"public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}",
"private SegmentTmTu createTu(Element p_root)\n throws Exception\n {\n SegmentTmTu result = new SegmentTmTu();\n\n // Optional TU attributes:\n\n // Original TU id, if known\n String id = p_root.attributeValue(Tmx.TUID);\n if (id != null && id.length() > 0)\n {\n try\n {\n long lid = Long.parseLong(id);\n result.setId(lid);\n }\n catch (Throwable ignore)\n {\n // <TU tuid> can be an alphanumeric token.\n // If it is not a simple number, we ignore it.\n }\n }\n\n // Datatype of the TU (html, javascript etc)\n String format = p_root.attributeValue(Tmx.DATATYPE);\n if (format == null || format.length() == 0)\n {\n format = m_tmx.getDatatype();\n }\n result.setFormat(format);\n\n // Locale of Source TUV (use default from header)\n String lang = p_root.attributeValue(Tmx.SRCLANG);\n\n if (lang == null || lang.length() == 0)\n {\n lang = m_defaultSrcLang;\n }\n\n try\n {\n String locale = ImportUtil.normalizeLocale(lang);\n result.setSourceLocale(ImportUtil.getLocaleByName(locale));\n }\n catch (Throwable ex)\n {\n CATEGORY.warn(\"invalid locale \" + lang);\n\n throw new Exception(\"cannot handle locale \" + lang);\n }\n\n // TODO: other optional attributes\n String usageCount = p_root.attributeValue(Tmx.USAGECOUNT);\n String usageDate = p_root.attributeValue(Tmx.LASTUSAGEDATE);\n //String tool = p_root.attributeValue(Tmx.CREATIONTOOL);\n //String toolversion = p_root.attributeValue(Tmx.CREATIONTOOLVERSION);\n // used in createTuv()\n //String creationDate = p_root.attributeValue(Tmx.CREATIONDATE);\n //String creationUser = p_root.attributeValue(Tmx.CREATIONID);\n //String changeDate = p_root.attributeValue(Tmx.CHANGEDATE);\n //String changeUser = p_root.attributeValue(Tmx.CHANGEID);\n\n // GlobalSight-defined properties:\n\n // Segment type (text, css-color, etc)\n String segmentType = \"text\";\n\n Node node = p_root.selectSingleNode(\n \".//prop[@type = '\" + Tmx.PROP_SEGMENTTYPE + \"']\");\n\n if (node != null)\n {\n segmentType = node.getText();\n }\n result.setType(segmentType);\n\n //Read SID\n node = p_root.selectSingleNode(\n \".//prop[@type= '\" + Tmx.PROP_TM_UDA_SID + \"']\");\n if (node != null) {\n result.setSID(node.getText());\n }\n \n // TU type (T or L)\n boolean isTranslatable = true;\n node = p_root.selectSingleNode(\n \".//prop[@type = '\" + Tmx.PROP_TUTYPE + \"']\");\n\n if (node != null)\n {\n isTranslatable = node.getText().equals(Tmx.VAL_TU_TRANSLATABLE);\n }\n\n if (isTranslatable)\n {\n result.setTranslatable();\n }\n else\n {\n result.setLocalizable();\n }\n \n // prop with Att::\n List propNodes = p_root.elements(\"prop\");\n for (int i = 0; i < propNodes.size(); i++)\n {\n Element elem = (Element) propNodes.get(i);\n ProjectTmTuTProp prop = createProp(result, elem);\n\n if (prop != null)\n result.addProp(prop);\n }\n\n // TUVs\n List nodes = p_root.elements(\"tuv\");\n for (int i = 0; i < nodes.size(); i++)\n {\n Element elem = (Element)nodes.get(i);\n\n SegmentTmTuv tuv = createTuv(result, elem);\n\n result.addTuv(tuv);\n }\n\n\t\tif (com.globalsight.everest.tm.importer.ImportOptions.TYPE_TMX_WORLD_SERVER\n\t\t\t\t.equals(m_options.getFileType()))\n\t\t{\n\t\t\tresult.setFromWorldServer(true);\n\t\t}\n \n return result;\n }",
"private IOferta buildOfertaEjemplo4() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoLlevaXPagaY(\"11-111-1111\", 3, 2);\n\t\treturn new OfertaDinero(\"Lleva 3 paga 2 en Coca-Cola\", condicion,\n\t\t\t\tdescuento);\n\t}",
"Uom getUom();",
"private IOferta buildOfertaEjemplo2() {\n\t\tPredicate<Compra> condicion = Predicates.compose(\n\t\t\t\tnew PredicadoDiaSemana(Calendar.THURSDAY),\n\t\t\t\tnew ExtraerFechaCreacion());\n\t\tFunction<Compra, Float> descuento = Functions.compose(\n\t\t\t\tnew DescuentoPorcentual(10.0f), \n\t\t\t\tnew ExtraerTotalBrutoProductos(new PredicadoRubro(\"11\")));\n\t\treturn new OfertaDinero(\"10% descuento comida los jueves\", condicion,\n\t\t\t\tdescuento);\n\t}",
"public Cgg_res_oficial_seguimiento_usuario(){}",
"public GenerarInformeProfesores(Curso[] cursos) {\n this.infoProfe = new InformeProfesores[5 * 16];\n\n int as = 0;\n int profe = 0;\n for (int cantidadCurso = 0; cantidadCurso < 16; cantidadCurso++) {\n for (as = 0; as < 5; as++) {\n this.infoProfe[profe] = new InformeProfesores(cursos[cantidadCurso].getAsignaturas()[as].getNombre());\n this.infoProfe[profe].setNombre(cursos[cantidadCurso].getAsignaturas()[as].getProfesor().getNombre());\n this.infoProfe[profe].setApellido(cursos[cantidadCurso].getAsignaturas()[as].getProfesor().getApellido());\n this.infoProfe[profe].setRun(cursos[cantidadCurso].getAsignaturas()[as].getProfesor().getRun());\n for (int alumnosTotal = 0; alumnosTotal < 30; alumnosTotal++) {\n\n this.infoProfe[profe].getAlumnos()[alumnosTotal].setNombre(cursos[cantidadCurso].getAlumnos()[alumnosTotal].getNombre());\n this.infoProfe[profe].getAlumnos()[alumnosTotal].setApellido(cursos[cantidadCurso].getAlumnos()[alumnosTotal].getApellido());\n this.infoProfe[profe].getAlumnos()[alumnosTotal].setRun(cursos[cantidadCurso].getAlumnos()[alumnosTotal].getRun());\n for (int j = 0; j < 5; j++) {\n if (cursos[cantidadCurso].getAlumnos()[alumnosTotal].getPromedios()[j].getAsignatura().equals(infoProfe[profe].getAsignatura())) {\n infoProfe[profe].getAlumnos()[alumnosTotal].setPromedio(cursos[cantidadCurso].getAlumnos()[alumnosTotal].getPromedios()[j].getNota());\n }\n }\n }\n profe++;\n }\n }\n\n }",
"UOp createUOp();",
"private static Vuelo[] arribos(Vuelo [] vuelosArray) {\n Ciudad concordia = new Ciudad(\"CON\",\"Concordia\");\n\n Vuelo[] listado = new Vuelo[0];\n for (Vuelo vuelo: vuelosArray) {\n if (vuelo.getCiudaDestino().equals(concordia)) {\n listado = agregarVuelo(listado, vuelo);\n }\n }\n return listado;\n }",
"private List<OrarioIngressoUscita> getOrariIngressoUscita(Cliente cliente) throws IOException {\r\n\t\tString userID = cliente.getId();\r\n\t\tBufferedReader reader = Utilities.apriFile(\"orariIngressoUscita.txt\");\r\n\t\t\r\n\t\tString currentLine;\r\n\t\tString[] user = new String[200];\r\n\t\t\r\n\t\tList<OrarioIngressoUscita> result = new ArrayList<>();\r\n\t\t\r\n\t\twhile ((currentLine = reader.readLine()) != null) {\r\n\t\t\tuser = currentLine.split(Pattern.quote(\"|\"));\r\n\t\t\t\r\n\t\t\tif (user[0].equals(userID) && \r\n\t\t\t\t\tcliente.getTes().getUltimoAggiornamento().isAfter(LocalDateTime.parse(user[1], Utilities.formatterDataOra)))\r\n\t\t\t\tif (!user[2].equals(\"null\"))\r\n\t\t\t\t\tresult.add(new OrarioIngressoUscita(LocalDateTime.parse(user[1], Utilities.formatterDataOra), \r\n\t\t\t\t\t\t\tLocalDateTime.parse(user[2], Utilities.formatterDataOra)));\r\n\t\t}\r\n\t\t\r\n\t\treader.close();\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }",
"public Tribu crearTribus(Tribu tribuJugador){\r\n if(tribuJugador != null){\r\n System.out.println(\"\\n-------------Nueva partida---------------\");\r\n System.out.println(\"Tribu del jugador: \" + tribuJugador.getNombre());\r\n String nombreTribuEnemiga = nombreRandom(tribuJugador.getNombre());\r\n Tribu tribuEnemiga = crearTribu(nombreTribuEnemiga);\r\n System.out.println(\"Tribu enemiga: \" + nombreTribuEnemiga);\r\n System.out.println(\"-----------------------------------------\");\r\n System.out.println(\"\\n\");\r\n ajustarPoderes(tribuJugador, tribuEnemiga);\r\n ajustarPoderes2(tribuEnemiga, tribuJugador);\r\n tribus.put(tribuJugador.getNombre(), determinarGolpe(tribuJugador));\r\n imprimirAtributos(tribuJugador);\r\n System.out.println(\"\\n\");\r\n tribus.put(tribuEnemiga.getNombre(), determinarGolpe(tribuEnemiga));\r\n imprimirAtributos(tribuEnemiga);\r\n System.out.println(\"\\n\");\r\n System.out.println(\"Tribus creadas\");\r\n System.out.println(tribus);\r\n System.out.println(\"\\n\");\r\n //Se devuelve la tribu enemiga para poder trabajar con ella.\r\n return tribuEnemiga;\r\n }\r\n System.out.println(\"El nombre de la tribu elegida no existe.\");\r\n return null;\r\n }",
"public void metodoInstanciaArbitrariaDeUnTipo2() {\n\t\tString[] lista= {\"cielo\",\"agua\",\"papa\",\"carpintero\",\"taza\",\"ciencia\",\"dedo\",\"mamut\",\"telefono\",\"computadora\",\"maniqui\",\"zapato\"};\n\t\tList<String> palabras=Arrays.asList(lista);\n\t\tpalabras.forEach(String::length);// \n\t\t//forEach recibe un consumidor de solo un parametro, es decir puede ser de la siguiente forma: (palabra)->{}\n\t\t//Pero tambien puede recibir un metodo referencia, en este caso, por ejemplo recibe el metodo length, pero el metodo length se opera sobre una instancia de String.\n\t\t//la firma del metodo length es: public int length() , es decir no recibe parametros, es operado sobre la instanacia del objeto.\n\t\t\n\t\t//Otro caso de referencia arbitraria seria\n\t\tArrays.sort(lista, String::compareToIgnoreCase);\n\t\t//Donde el segundo parametro es un Comparator, en este caso el metodo compareToIgnoreCase es un metodo de instancia, y recibe como parametro otro String para compararse \n\t\t//sobre la instancia del mismo.\n\t\t//definicion del Comparator: int compare(T o1, T o2);\n\t\t//definicion del compareToIgnoreCase: public int compareToIgnoreCase(String str)\n\t\t//La definicion compareToIgnoreCase esta muy cerca de Comparator pero el primero parametro es una instancia y el segundo parametro otra instancia. \n\t}",
"public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}",
"public Vector listaTitulaciones()\n {\n try\n {\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM titulaciones WHERE activa='s'\";\n\n //Se crea un vector de asignaturas\n Vector vectorTitulaciones = new Vector();\n\n //Se ejecuta la query\n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n\n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n titulacion titulacion = new titulacion();\n\n titulacion.setCodigo(resultado.getString(\"codigo\"));\n titulacion.setTitulacion(resultado.getString(\"titulacion\"));\n\n //Se añade la asignatura al vector de asignaturas\n vectorTitulaciones.add(titulacion);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorTitulaciones;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las titulaciones de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }",
"Vaisseau_ordonneeLaPlusBasse createVaisseau_ordonneeLaPlusBasse();",
"public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }",
"public void tipoDatos() {\n\t\tint num = 10;\n\t\t// Texto STring\n\t\tString cadena = \"cadena\";\n\n\t\t// Decimale O flotante\n\t\tdouble decimal = 12.16;\n\t\tfloat fl = new Float(10);\n\t\t// Bolean\n\t\tboolean bl = true;\n\n\t\t// ARREGLOS\n\t\t// string\n\t\tString[] veString = new String[5];\n\t\tveString[0] = \"hola mundo\";\n\t\tveString[1] = \"hola mundo\";\n\t\tveString[2] = \"hola mundo\";\n\t\tveString[3] = \"hola mundo\";\n\t\tveString[4] = \"hola mundo\";\n\n\t\tint[] varNum = new int[] { 0, 1, 2, 3, 4, 5 };\n\n\t}",
"public TCubico(){}",
"public GenerarInformePlanificacion(Curso[] cursos, Apoderado[] apoderados) {\n this.apoderados = new PlanificacionApoderado[apoderados.length];\n for (int i = 0; i < apoderados.length; i++) {\n this.apoderados[i] = new PlanificacionApoderado();\n }\n\n int cantidadCurso = 0;\n\n for (int apTotal = 0; apTotal < this.apoderados.length; apTotal++) {\n this.apoderados[apTotal].nombre = apoderados[apTotal].getNombre();\n this.apoderados[apTotal].apellido = apoderados[apTotal].getApellido();\n this.apoderados[apTotal].run = apoderados[apTotal].getRun();\n for (int cantPupilos = 0; cantPupilos < apoderados[apTotal].getPupilos().size(); cantPupilos++) {\n\n PlanificacionAlumno alumnoAgregar = new PlanificacionAlumno();\n alumnoAgregar.nombre = apoderados[apTotal].getPupilos().get(cantPupilos).getNombre();\n alumnoAgregar.apellido = apoderados[apTotal].getPupilos().get(cantPupilos).getApellido();\n alumnoAgregar.run = apoderados[apTotal].getPupilos().get(cantPupilos).getRun();\n for (int j = 0; j < 16; j++) {\n for (int alum = 0; alum < 30; alum++) {\n if (cursos[j].getAlumnos()[alum].getRun().equals(apoderados[apTotal].getPupilos().get(cantPupilos).getRun())) {\n cantidadCurso = j;\n break;\n }\n }\n }\n for (int i = 0; i < 50; i++) {\n alumnoAgregar.plan[i] = cursos[cantidadCurso].getAsignaturas()[(int) i / 10].getPlan()[i % 10];\n }\n this.apoderados[apTotal].pupilos.add(alumnoAgregar);\n\n }\n }\n\n }",
"private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }",
"public static Data<String> tueuseType(){\n\t\tData<String> res = new Data<String>();\n\t\tres.add(new Tuple<String, Integer>(\"Aberrations\", 5));\n\t\tres.add(new Tuple<String, Integer>(\"Animaux\", 4));\n\t\tres.add(new Tuple<String, Integer>(\"Créatures artificielles\", 7));\n\t\tres.add(new Tuple<String, Integer>(\"Dragons\", 6));\n\t\tres.add(new Tuple<String, Integer>(\"Fées\", 5));\n\t\tres.add(new Tuple<String, Integer>(\"Humanoïdes (choisir un sous-type)\", 33));\n\t\tres.add(new Tuple<String, Integer>(\"Créatures magiques\", 5));\n\t\tres.add(new Tuple<String, Integer>(\"Humanoïdes monstrueux\", 5));\n\t\tres.add(new Tuple<String, Integer>(\"Vases\", 2));\n\t\tres.add(new Tuple<String, Integer>(\"Extérieurs (choisir un sous-type)\", 16));\n\t\tres.add(new Tuple<String, Integer>(\"Plantes\", 2));\n\t\tres.add(new Tuple<String, Integer>(\"Morts-vivants\", 8));\n\t\tres.add(new Tuple<String, Integer>(\"Vermine\", 2));\n\n\t\treturn res;\n\t}",
"public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}",
"public Caso_de_uso () {\n }",
"public Tulip(){\n super(CropName.TULIP, CropType.FLOWER, CropStatus.WAITING, 90, 2, 2, 3, 0, 1, 1, 1, 7);\n }",
"public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }",
"public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }",
"public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\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}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}",
"private IOferta buildOfertaEjemplo1() {\n\t\tPredicate<Compra> condicion = Predicates.compose(\n\t\t\t\tPredicates.equalTo(MedioPago.EFECTIVO),\n\t\t\t\tnew ExtraerMedioPago());\n\n\t\tFunction<Compra, Float> descuento = Functions.compose(\n\t\t\t\tnew DescuentoPorcentual(5.0f),\n\t\t\t\tnew ExtraerTotalBruto());\n\n\t\treturn new OfertaDinero(\"5% descuento pago en efectivo\", condicion, descuento);\n\t}",
"@SuppressWarnings(\"PMD.ExcessiveMethodLength\")\r\n\tprivate void gerarLaudosUTI(MpmPrescricaoMedica prescricao,\r\n\t\t\tList<MpmLaudo> laudoList, FatConvenioSaudePlano convenioSaudePlano,\r\n\t\t\tAghParametros seqLaudoUTI) {\r\n\r\n\t\tIAghuFacade aghuFacade = getAghuFacade();\r\n\t\tif (prescricao.getAtendimento().getUnidadeFuncional() != null) {\r\n\t\t\t// TODO: RETIRAR ESTE MERGE QUANDO AS EXCEPTIONS COM ROLLBACK DOS\r\n\t\t\t// CRUDS DA PRESCRIÇÃO JÁ TIVEREM\r\n\t\t\t// SIDO REMOVIDAS.\r\n\t\t\taghuFacade.atualizarAghUnidadesFuncionaisSemException(prescricao.getAtendimento().getUnidadeFuncional());\r\n\t\t}\r\n\r\n\t\tboolean possuiCaracteristica = aghuFacade.possuiCaracteristicaPorUnidadeEConstante(prescricao.getAtendimento().getUnidadeFuncional().getSeq(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tConstanteAghCaractUnidFuncionais.LAUDO_CTI);\r\n\t\tif (possuiCaracteristica) {\r\n\r\n\t\t\tShort tempoValidade = this.getMpmTipoLaudoConvenioDAO()\r\n\t\t\t\t\t.obterTempoValidadeTipoLaudo(\r\n\t\t\t\t\t\t\tseqLaudoUTI.getVlrNumerico().shortValue(),\r\n\t\t\t\t\t\t\tconvenioSaudePlano);\r\n\r\n\t\t\tif (tempoValidade != null) {\r\n\r\n\t\t\t\tboolean acheiLaudoValido = false;\r\n\r\n\t\t\t\tMpmTipoLaudo tipoLaudoUTI = this.getMpmTipoLaudoDAO()\r\n\t\t\t\t\t\t.obterPorChavePrimaria(\r\n\t\t\t\t\t\t\t\tseqLaudoUTI.getVlrNumerico().shortValue());\r\n\r\n\t\t\t\tList<MpmLaudo> laudos = this.getMpmLaudoDAO()\r\n\t\t\t\t\t\t.listarLaudosPorAtendimentoETipo(\r\n\t\t\t\t\t\t\t\tprescricao.getAtendimento(), tipoLaudoUTI,\r\n\t\t\t\t\t\t\t\tprescricao.getDthrInicio());\r\n\r\n\t\t\t\tString justificativa = null;\r\n\t\t\t\tShort duracaoTratamentoSolicitado = null;\r\n\r\n\t\t\t\tfor (MpmLaudo laudo : laudos) {\r\n\t\t\t\t\tDate dataTeste = DateUtil.adicionaDias(laudo\r\n\t\t\t\t\t\t\t.getDthrInicioValidade(), tempoValidade - 1);\r\n\r\n\t\t\t\t\tif (DateUtil.validaDataTruncadaMaiorIgual(dataTeste,\r\n\t\t\t\t\t\t\tprescricao.getDthrInicio())\r\n\t\t\t\t\t\t\t&& laudo.getDthrFimValidade() == null) {\r\n\r\n\t\t\t\t\t\tacheiLaudoValido = true;\r\n\r\n\t\t\t\t\t} else if (laudo.getDthrFimValidade() != null\r\n\t\t\t\t\t\t\t&& DateUtil.entreTruncado(prescricao\r\n\t\t\t\t\t\t\t\t\t.getDthrInicio(), laudo\r\n\t\t\t\t\t\t\t\t\t.getDthrInicioValidade(), laudo\r\n\t\t\t\t\t\t\t\t\t.getDthrFimValidade())) {\r\n\r\n\t\t\t\t\t\tacheiLaudoValido = true;\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (laudo.getDthrFimValidade() == null) {\r\n\t\t\t\t\t\t\tlaudo.setDthrFimValidade(DateUtil.adicionaDias(\r\n\t\t\t\t\t\t\t\t\tlaudo.getDthrInicioValidade(),\r\n\t\t\t\t\t\t\t\t\ttempoValidade - 1));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tjustificativa = laudo.getJustificativa();\r\n\t\t\t\t\tduracaoTratamentoSolicitado = laudo\r\n\t\t\t\t\t\t\t.getDuracaoTratSolicitado();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!acheiLaudoValido) {\r\n\r\n\t\t\t\t\tShort maximaDiariaUTI = null;\r\n\r\n\t\t\t\t\tif (prescricao.getAtendimento().getInternacao() != null) {\r\n\t\t\t\t\t\tmaximaDiariaUTI = prescricao.getAtendimento()\r\n\t\t\t\t\t\t\t\t.getInternacao()\r\n\t\t\t\t\t\t\t\t.getItemProcedimentoHospitalar()\r\n\t\t\t\t\t\t\t\t.getMaxDiariaUti();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (maximaDiariaUTI == null || maximaDiariaUTI > 0) {\r\n\t\t\t\t\t\tMpmLaudo laudo = new MpmLaudo();\r\n\t\t\t\t\t\tlaudo.setDthrInicioValidade(prescricao.getDthrInicio());\r\n\t\t\t\t\t\tlaudo.setDthrFimValidade(DateUtil.adicionaDias(laudo\r\n\t\t\t\t\t\t\t\t.getDthrInicioValidade(), tempoValidade - 1));\r\n\t\t\t\t\t\tlaudo.setDthrFimPrevisao(DateUtil.adicionaDias(laudo\r\n\t\t\t\t\t\t\t\t.getDthrInicioValidade(), tempoValidade - 1));\r\n\t\t\t\t\t\tlaudo.setJustificativa(justificativa);\r\n\t\t\t\t\t\tlaudo.setContaDesdobrada(false);\r\n\t\t\t\t\t\tlaudo.setImpresso(false);\r\n\t\t\t\t\t\tlaudo\r\n\t\t\t\t\t\t\t\t.setDuracaoTratSolicitado(duracaoTratamentoSolicitado);\r\n\t\t\t\t\t\tlaudo.setLaudoManual(false);\r\n\t\t\t\t\t\tlaudo.setAtendimento(prescricao.getAtendimento());\r\n\t\t\t\t\t\tlaudo.setTipoLaudo(tipoLaudoUTI);\r\n\t\t\t\t\t\tlaudoList.add(laudo);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"Vaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();",
"public Puerto()\n {\n alquileres = new ArrayList<>();\n }",
"public SigalPeticion reativarUsuario ( AccountTO usuario ) throws Exception {\n \n // Tratamento para controle de campos opicionais\n int totalParams = 11;\n boolean possuiCenttra = true;\n boolean possuiCodPerfil = true;\n\n if ( usuario.getCenttra() == null || usuario.getCenttra().trim().equals(\"\") ) {\n --totalParams;\n possuiCenttra = false;\n }\n\n if ( usuario.getCodperfil() == null || usuario.getCodperfil().trim().equals(\"\") ) {\n --totalParams;\n possuiCodPerfil = false;\n }\n\n SigalPeticion msgEnvio = SigalPeticion.getInstance( totalParams );\n\n msgEnvio.addParametro( --totalParams, new Parametro( \"FUNCION\", \"RE\" ) );\n\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.USUARIO,\n usuario.getUsuario() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.OFICINA,\n usuario.getOficina() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.NOMBREUSU,\n usuario.getNombreusu() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.PASSWORD,\n usuario.getPassword() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.NIVSEGUSU,\n usuario.getNivsegusu() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CODIDIOMA,\n usuario.getCodidioma() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.FECACTIVA,\n usuario.getFecactivaForEASE() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.FECDESACT,\n usuario.getFecdesactForEASE() ) );\n\n // CAMPO OPICIONAL, alteração feita na especificação v. 5.0\n if ( possuiCenttra )\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CENTTRA,\n usuario.getCenttra() ) );\n\n // CAMPO OPICIONAL, alteração feita na especificação v. 5.0\n if ( possuiCodPerfil ) {\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CODPERFIL,\n usuario.getCodperfil() ) );\n }\n\n msgEnvio.setTipoOperacion( \"update\" );\n msgEnvio.setTransaccion( \"SGREUSU\" );\n\n return msgEnvio; \n }",
"private AtualizarContaPreFaturadaHelper parserRegistroTipo3(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Limite Inicial do Consumo na Faixa\r\n\t\tretorno.limiteInicialConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Limite Final do consumo na Faixa\r\n\t\tretorno.limiteFinalConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Agua na Faixa\r\n\t\tretorno.valorTarifaAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Esgoto na Faixa\r\n\t\tretorno.valorTarifaEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\treturn retorno;\r\n\t}",
"Oracion createOracion();",
"private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }",
"private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}",
"public Unidadmedida() {\r\n\t}",
"public RendezVous() {\r\n this.no_rdv = 0;\r\n this.date_arr = \"\";\r\n this.date_dep = \"\";\r\n this.motif = \"\";\r\n\r\n }",
"private static Suma creaObjetoSuma (){\n Suma suma = new Suma(4,6);\n return suma; \n }",
"private AtualizarContaPreFaturadaHelper parserRegistroTipo5(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Valor do imposoto\r\n\t\tretorno.sequencialRotaMarcacao = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_5_SEQUENCIAL_IMOVEL);\r\n\t\tindex += REGISTRO_TIPO_5_SEQUENCIAL_IMOVEL;\r\n\r\n\t\treturn retorno;\r\n\t}",
"public MorteSubita() {\n }",
"Vaisseau createVaisseau();",
"private Punto getPuntoCercano(Punto puntoini, List<Punto> puntos ){\n\t\t\t\n\t\t List<Segmento> segmentos = new ArrayList<Segmento>();\n\t\t\t// todos contra todos\n\t\t\tfor (Punto punto : puntos) {\n\t\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\t\t\tsegmentos.add(new Segmento(puntoini, punto, d));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(segmentos);\n\t\t\tPunto puntocerano = segmentos.get(0).getPunto2();\n\t\t \n\t\t return puntocerano;\n\t\t \n\t }",
"Object obtenerPolizasPorFolioSolicitudNoCancelada(int folioSolicitud,String formatoSolicitud);",
"public abstract Anuncio creaAnuncioGeneral();",
"public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }",
"public abstract Anuncio creaAnuncioIndividualizado();",
"public TelaContaUnica() {\n initComponents();\n }",
"public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}",
"private ArrayList<Estado> generar_sucesores(Estado actual) {\r\n\t\tArrayList<Estado> sucesores = new ArrayList<>();\r\n\t\tsucesores.add(actual.derecha().addHeuristica(estado_final)); //Añado los puntos hijos del estado actual\r\n\t\tsucesores.add(actual.izquierda().addHeuristica(estado_final));\r\n\t\tsucesores.add(actual.arriba().addHeuristica(estado_final));\r\n\t\tsucesores.add(actual.abajo().addHeuristica(estado_final));\r\n\r\n\t\tif (sucesores.contains(estado_inicial)) { //Limpio posible estado inicial\r\n\t\t\tsucesores.remove(estado_inicial);\r\n\t\t}\r\n\t\tArrayList<Estado> aux = new ArrayList<>(); // Para evitar error de concurrencia creo una lista auxiliar con los sucesores\r\n\t\tfor (int i = 0; i < sucesores.size(); i++) {\r\n\t\t\taux.add(sucesores.get(i));\r\n\t\t}\r\n\t\tfor (Estado p : aux) { //Limpio muros\r\n\t\t\tif (matriz[p.getX() - 1][p.getY() - 1] == muro) {\r\n\t\t\t\tsucesores.remove(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sucesores;\r\n\t}",
"public Arquero(){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }",
"public Rettangolo(Punto[] vertici)\n\t{\n\t\tsuper(vertici);\n\n\t\tif(this.direzioneLati[0] != -1.0 / this.direzioneLati[1] && (this.direzioneLati[0] != Double.POSITIVE_INFINITY || this.direzioneLati[1] != 0.0))\n\t\t{\n\t\t\tthis.vertici = null;\n\t\t\tthis.direzioneLati = this.lunghezzaLati = null; // TODO: eccezioni\n\t\t\tSystem.out.println(\"Errore: i quattro punti non individuano un rettangolo.\");\n\t\t}\n\t}",
"public Utilizador(){\r\n this.id = \"\";\r\n this.email = \"\";\r\n this.nome = \"\";\r\n this.password = \"\";\r\n this.morada = \"\";\r\n this.dataNasc = new GregorianCalendar();\r\n }",
"public Troco() {\n }",
"public Memoria(Espacio[] espacios) {\r\n\t\tthis.numEspacios = espacios.length;\r\n\t\tthis.espacios = espacios;\r\n\t\ttamaņo = 0;\r\n\t\tfor (int i = 0; i < numEspacios; i++) {\r\n\t\t\ttamaņo += espacios[i].getTamaņo();\r\n\t\t}\r\n\t}",
"java.lang.String getUa();"
] |
[
"0.6177747",
"0.595704",
"0.58330077",
"0.5821874",
"0.5805115",
"0.5775473",
"0.57496256",
"0.5719084",
"0.56859255",
"0.5680836",
"0.5678049",
"0.5648893",
"0.56292003",
"0.56227267",
"0.5573949",
"0.5557286",
"0.5551808",
"0.5517571",
"0.5502964",
"0.54862386",
"0.5473774",
"0.545356",
"0.54503584",
"0.54455876",
"0.5441766",
"0.5438137",
"0.54289424",
"0.54277194",
"0.54145026",
"0.5413578",
"0.5401553",
"0.5400652",
"0.53977937",
"0.53941756",
"0.5364215",
"0.5362292",
"0.5359041",
"0.53575295",
"0.533798",
"0.5335185",
"0.5332736",
"0.5325484",
"0.5321119",
"0.5316584",
"0.5316279",
"0.53126746",
"0.53021765",
"0.5300562",
"0.52817833",
"0.5274549",
"0.5268385",
"0.52550924",
"0.5249897",
"0.5245075",
"0.5244211",
"0.5241736",
"0.5225418",
"0.5218958",
"0.5214574",
"0.5206101",
"0.5199839",
"0.5199314",
"0.51992345",
"0.51964676",
"0.51953286",
"0.5183327",
"0.51788366",
"0.51785994",
"0.5172437",
"0.5166435",
"0.5158657",
"0.5155194",
"0.51431435",
"0.51423764",
"0.5124912",
"0.5119498",
"0.51186955",
"0.5114481",
"0.51138663",
"0.511234",
"0.51117384",
"0.51114887",
"0.5109568",
"0.5108412",
"0.51059496",
"0.5105735",
"0.5102755",
"0.5098695",
"0.5095451",
"0.5093835",
"0.50776386",
"0.5077352",
"0.50731355",
"0.5071686",
"0.50696266",
"0.50690025",
"0.5064902",
"0.50619334",
"0.5058005",
"0.50553757"
] |
0.5571585
|
15
|
PARA USAR EN CLASE USUARIO Y CREAR UN USUARIO NUEVO
|
public TipoUsuario(int id_tipousuario) {
this.id_tipousuario = id_tipousuario;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void crearUsuario(String cedula,String name ,String lastname ,String phone , String city ,String email,String password) throws BLException;",
"Secuencia createSecuencia();",
"public void altaUsuario();",
"OperacionColeccion createOperacionColeccion();",
"Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);",
"public void crearUsuarioWS(String name, String login, String pass){\n //JAXBElement<ArrayOfAdministrationResource> arrayAdminRole = obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).;\n \n ObjectFactory fact = new ObjectFactory(); \n //fact.createArrayOfAdministrationRole(obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).);\n \n //fact.createArrayOfint()\n \n //obtenerConexion().getRolesByIds()\n \n //busqueda y seteo del rol de cliente\n ArrayOfint aux =fact.createArrayOfint(); \n aux.getInt().add(Integer.valueOf(181)); //perfil del cliente \n ArrayOfAdministrationRole arrayRole = obtenerConexion().getRolesByIds(aux);\n \n JAXBElement<ArrayOfAdministrationRole> jaxbElementRol;\n jaxbElementRol = fact.createArrayOfAdministrationRole(arrayRole);\n \n //creacion del nuevo usuario con rol cliente\n AdministrationUser user = new AdministrationUser();\n user.setEnabled(Boolean.TRUE);\n user.setMustChangePassword(Boolean.FALSE);\n user.setLastName(fact.createString(name)); \n user.setPassword(fact.createString(pass));\n user.setUserName(fact.createString(login)); \n user.setRoles(jaxbElementRol); \n \n \n //agrego el nuevo usuario\n obtenerConexion().addUser(ConstantesWS.APLICACION_PROVEEDORES, user);\n \n }",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"public abstract Anuncio creaAnuncioIndividualizado();",
"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 }",
"@Override\n\tpublic void create(UserServer obj) {\n\t\tcreateClient(obj);// INSERE USUARIO NA ENTIDADE CLIENT\n\t\ttry {\n\t\t\tfinal ResultSet result = stat.getGeneratedKeys();\n\t\t\twhile (result.next()) {\n\t\t\t\tobj.setId(result.getInt(\"idclient\"));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcreatePhone(obj);// INSERE PHONE INFORMADO PELO CLIENT CADASTRADO\n\t\tcreateEmail(obj);// INSERE EMAIL INFORMADO PELO CLIENT CADASTRADO\n\t\tencerrarConexao();\n\t}",
"public void creatUser(String name, String phone, String email, String password);",
"Compuesta createCompuesta();",
"public Cgg_res_oficial_seguimiento_usuario(){}",
"public void crearUsuario(UsuarioDTO usuarioNuevo) throws Exception;",
"public TelaPrincipal() {\r\n initComponents();\r\n con.conecta();\r\n }",
"protected void accionUsuario() {\n\t\t\r\n\t}",
"public void createNewClient(String nom, String prenom, String tel, String mail, String adresse) throws SQLException {\n\t\tint tmp = getLastClientId();\n\t\tSystem.out.println(tmp);\n\t\tif(tmp != 0) {\n\t\t\t//voir generated keys pour l'id\n\t\t\tClient tmpClient = new Client(tmp, nom, prenom, tel, mail, adresse);\n\t\t\tClient tmp2 = create(tmpClient);\n\t\t\tSystem.out.println(tmp2.getLogin());\n\t\t\tSystem.out.println(\"Succès lors de la création de l'utilisateur\");\n\t\t}else\n\t\t\tSystem.out.println(\"Erreur lors de la création de l'utilisateur\");\n\t}",
"Human_User createHuman_User();",
"public void makeClient() {\n try {\n clienteFacade.create(cliente);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Cliente creado exitosamente\", null));\n } catch (Exception e) {\n System.err.println(\"Error en la creacion del usuario: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }",
"public ControladorUsuario() {\n }",
"private void btnAgregarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {\n String v_nombre=\" \";\n\n if(txtNombreAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Digite un nombre, por favor\", \"Informacion\");\n return;\n }\n v_nombre=txtNombreAU.getText(); \n //Valido la contrasenia\n if(txtContraseniaAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar una contraseña\", \"Informacion\");\n return;\n }\n if(!validarContraseniaUsuario(txtContraseniaAU.getText())){\n return;\n }\n String v_contrasenia=txtContraseniaAU.getText();\n //Valido nombre completo\n if(txtNombreCompletoAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar el nombre completo\", \"Informacion\");\n return;\n }\n String v_nombreCompleto=txtNombreCompletoAU.getText();\n \n //Valido que se escogio un valor para el cargo\n int v_cargo=0;\n //10 = Administrador, 20=Funcionario\n if(rbtnAdministradorAU.isSelected()){\n v_cargo=10;\n }else if(rbtnFuncionarioAU.isSelected()){\n v_cargo=20;\n }else{\n Utilidades.mensajeInformacion(\"Escoga un cargo\", \"Informacion\");\n return;\n }\n \n //Creo y agreggo un usuario dependiendo del cargo escogido (Administrador o funcionario)\n try{\n boolean agregado=false;\n if(v_cargo==10){\n Administrador nuevoUsuario=new Administrador(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n\n } \n if(v_cargo==20){\n Funcionario nuevoUsuario=new Funcionario(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n }\n\n\n if(agregado){\n Utilidades.mensajeExito(\"Se agrego el Usuario\", \"Agregacion Exitosa\");\n limpiarCamposAgregarUsuario();\n }else{\n Utilidades.mensajeError(\"El Usuario a agregar ya existe\", \"Error\");\n }\n\n }catch (IOException ex) {\n Logger.getLogger(Funcionario.class.getName()).log(Level.SEVERE, null, ex);\n Utilidades.mensajeAdvertencia(\"Se ha interrumpido la conexion con el servidor\", \"Error\");\n }\n \n }",
"@Override\n\tpublic void crearUsuario(UsuarioEntity Usuario) {\n\t\treposUsuarios.save(Usuario);\n\t}",
"public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public String crearPostulante() {\n\t\tString r = \"\";\n\t\ttry {\n\t\t\tif (edicion) {\n\t\t\t\tsetPos_password(Utilidades.Encriptar(getPos_password()));// PASS\n\t\t\t\tmanagergest.editarPostulante(pos_id.trim(), pos_nombre.trim(),\n\t\t\t\t\t\tpos_apellido.trim(), pos_direccion.trim(),\n\t\t\t\t\t\tpos_correo.trim(), pos_telefono.trim(),\n\t\t\t\t\t\tpos_celular.trim(), pos_password.trim(), \"A\");\n\t\t\t\tpos_id = \"\";\n\t\t\t\tpos_nombre = \"\";\n\t\t\t\tpos_apellido = \"\";\n\t\t\t\tpos_direccion = \"\";\n\t\t\t\tpos_correo = \"\";\n\t\t\t\tpos_password = \"\";\n\t\t\t\tpos_telefono = \"\";\n\t\t\t\tpos_celular = \"\";\n\t\t\t\tpos_institucion = \"\";\n\t\t\t\tpos_gerencia = \"\";\n\t\t\t\tpos_area = \"\";\n\t\t\t\tMensaje.crearMensajeINFO(\"Modificado - Editado\");\n\t\t\t\tr = \"home?faces-redirect=true\";\n\t\t\t} else {\n\t\t\t\tMensaje.crearMensajeINFO(\"Error..!!! Usuario no pudo ser Creado\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tMensaje.crearMensajeINFO(\"Error..!!! Usuario no pudo ser Creado\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn r;\n\t}",
"@Override\n\tpublic Usuario create(Usuario obj) {\n\t\treturn null;\n\t}",
"public Utilizador(){\r\n this.id = \"\";\r\n this.email = \"\";\r\n this.nome = \"\";\r\n this.password = \"\";\r\n this.morada = \"\";\r\n this.dataNasc = new GregorianCalendar();\r\n }",
"public Usuario () {\r\n\t\t\r\n\t\t\r\n\t}",
"public ResultadoDTO crearUsuario(UsuarioDTO UsuarioDTO)throws EntityExistsException, IllegalArgumentException;",
"public void registrarUsuario(String cedula, String nombre, String apellido, String correo, String contrasena) {\n\n usuario = new Usuario(cedula, nombre, apellido, correo, contrasena);\n usuarioDAO.create(usuario);\n\n }",
"public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}",
"@Test\r\n\tpublic void CT05CadastrarUsuarioComNomeNulo() {\r\n\t\t// cenario\r\n\t\tUsuario usuario = new Usuario();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comNomeNulo();\r\n\t\t\tfail(\"deveria lançar uma exceção\");\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"Nome invalido\", e.getMessage());\r\n\t\t}\r\n\t}",
"@Given(\"^El usuario va a acceder al sistema$\")\n\tpublic void El_usuario_va_a_acceder_al_sistema() throws Throwable {\n\t\tdao = new DAOPersona();\n\t p=new Persona(\"carlitos93\", \"a1Zs8s2DS\");\n\t assert(true);\n\t}",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"public abstract Anuncio creaAnuncioTematico();",
"public void ajouterRole(RoleUtilisateur ru);",
"public Usuario() {\r\n }",
"public Usuario() {\r\n }",
"@Override\n\tpublic Usuario createUsuario(Usuario usr) {\n\t\treturn null;\n\t}",
"Operacion createOperacion();",
"public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}",
"Authorizor createAuthorizor();",
"public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }",
"public UsuarioControlador() {\n }",
"public static String createRole() {\n InputStreamReader sr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(sr);\n String role = null;\n try {\n while (true) {\n role = br.readLine();\n\n if (role.equalsIgnoreCase(\"воин\")) {\n System.out.println(\"Замечательно! Теперь ты ВОИН.\");\n System.out.println(\"Ты получаешь длинный меч, тяжелый щит и сияющие доспехи.\");\n break;\n }\n\n if (role.equalsIgnoreCase(\"маг\")) {\n System.out.println(\"Замечательно! Теперь ты МАГ.\");\n System.out.println(\n \"Ты получаешь искрящийся посох великой мощи стихий (береги бороду!) и расшитый халат.\");\n break;\n }\n\n if (role.equalsIgnoreCase(\"разбойник\")) {\n System.out.println(\"Замечательно! Теперь ты РАЗБОЙНИК.\");\n System.out.println(\n \"Ты не получаешь ничего, ведь разбойник сам берет то, что ему положено! Ну ладно, вот тебе пара красивых кинжалов со стразиками и черная повязка на глаза.\");\n break;\n } else {\n System.out.println(\"- Опять? Прекращай. Выбери из предложенных выше.\");\n }\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return role;\n }",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public void createAccount(){\n System.out.println(\"vi skal starte \");\n }",
"public alterarSenhaCliente() {\n }",
"public static void creaHidatoAutomaticament()\n {\n ControladorVista.mostraCreacioHidatoAutomatica();\n }",
"public OmsUsuario() {\n\t}",
"private void salvar() {\n try {\n validarCampos();\n Cliente c = new Cliente();\n c.setUserLogin(fldUsuario.getText());\n c.setSenha(fldSenha.getText());\n ClienteDao cd = new ClienteDao();\n cd.usuarioCliente(c);\n JOptionPane.showMessageDialog(null, \"Usuário cadastrado com sucesso\",\"\",JOptionPane.PLAIN_MESSAGE);\n dispose();\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage(),\"\",JOptionPane.ERROR_MESSAGE);\n } catch (Exception e){\n JOptionPane.showMessageDialog(null, e.getMessage(),\"\",JOptionPane.ERROR_MESSAGE);\n }\n }",
"public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }",
"public String guardarUsuario() {\n\t\terror=\"\";\n\t\tUsuario nuevoUsuario = new Usuario();\n\t\tnuevoUsuario.setPassword(password);\n\t\tnuevoUsuario.setEmail(email);\n\t\tTokenGenerator miToken = new TokenGenerator();\n\t\tnuevoUsuario.setToken(miToken.generateToken());\n\t\t\n\t\tif(usuarioService.validaUsuarioEmail(nuevoUsuario)==true && usuarioService.validaUsuarioPassword(nuevoUsuario)==true && usuarioService.contraseñasComunes(nuevoUsuario)==true) {\n\t\t\terror=null;\n\t\t\tusuarioService.guardarUsuario(nuevoUsuario);//se guarda usuairo\n\t\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorEmailyContraseña(nuevoUsuario.getEmail(), nuevoUsuario.getPassword());\n\t\t\tif (usuarioDb != null) {\n\t\t\t\tString accion = \"Usuario \"+ usuarioDb.getEmail() + \" registrado.\";\n\t\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t\t}\n\t\t\terror=\"Se envio un correo a su cuenta.\";\n\t\t\treturn \"index\";\n\t\t}\n\t\tUsuario usuarioDb = usuarioService.buscarUsuarioPorEmailyContraseña(nuevoUsuario.getEmail(), nuevoUsuario.getPassword());\n\t\tif(usuarioDb==null) {\n\t\t\tString accion = \"Error al registrar usuario \"+email;\n\t\t\tauditoriaService.registrarAuditoria(usuarioDb,accion);\n\t\t}\n\t\terror=\"Email o Contraseña no validos\";\n\t\treturn \"registro\";\n\t}",
"private void entrar() {\n\n Connection con = Conexao.abrirConexao();\n UsuarioDAO ud = new UsuarioDAO(con);\n String login = txtLOGIN.getText();\n String senha = txtSENHA.getText();\n String nome;\n\n if (txtLOGIN.getText().equals(\"admin\")) {\n nome = \"Administrador\";\n } else {\n nome = ud.retornarUsuario(login);\n }\n\n if (/*ud.logar(login, senha) == 0 ||*/ login.equals(\"admin\") && senha.equals(\"admin\")) {\n lblERRO.setText(\"\");\n JFrame principal = new frm_PRINCIPAL(login, nome);\n this.dispose();\n principal.setVisible(true);\n\n } else {\n\n lblERRO.setText(\"Usuário e/ou Senha Inválidos!\");\n }\n Conexao.fecharConexao(con);\n }",
"boolean insertarRol(String nombre) throws Exception;",
"private String createUser(String name) {\n\t\treturn null;\n\t}",
"public Usuario criaUsuario(String nome, String login, double dinheiro,\r\n\t\t\tString tipoJogador) throws CriacaoUsuarioException {\r\n\t\t this.usuario =new Usuario(nome, login, dinheiro);\r\n\t\t\tif (tipoJogador.equals(\"Noob\")) {\r\n\t\t\t\tloja.adicionaUsuario(usuario);\r\n\t\t\t\treturn usuario;\r\n\t\t\t} else if (tipoJogador.equals(\"Veterano\")) {\r\n\t\t\t\tusuario.upgrade();\r\n\t\t\t\tloja.adicionaUsuario(usuario);\r\n\t\t\t\treturn usuario;\r\n\t\t\t} else if (!tipoJogador.equals(\"Noob\")\r\n\t\t\t\t\t|| tipoJogador.equals(\"Veterano\")) {\r\n\r\n\t\t\t}\r\n\t\r\n\r\n\t\treturn null;\r\n\t}",
"public principal() {\n initComponents();\n \n // Verificando si se completó el nivel\n verificar_niveles();\n \n \n }",
"public Cliente(){\r\n this.nome = \"\";\r\n this.email = \"\";\r\n this.endereco = \"\";\r\n this.id = -1;\r\n }",
"public abstract Anuncio creaAnuncioGeneral();",
"@PostMapping(value=\"/usuarios\")\n\t@Transactional //gera transacao no banco de dados\n\tpublic String cria(@RequestBody @Valid NovoUsuarioRequest request) {\n\t\tUsuario novoUsuario = request.toUsuario();\n\t\tmanager.persist(novoUsuario);//insere no banco de dados\n\t\treturn novoUsuario.toString();\n\t}",
"U getCreateby();",
"public CrearCuenta(UsuarioVO usu) {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"Constructor CrearCuenta\");\r\n\t\tinitialize();\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tusuario = usu;\r\n\t}",
"@FXML\n\tpublic void createUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtUserNames.getText();\n\t\tString lastName = txtUserSurnames.getText();\n\t\tString id = txtUserId.getText();\n\t\tString username = txtUserUsername.getText();\n\t\tString password = PfUserPassword.getText();\n\n\t\tif (!name.equals(empty) && !lastName.equals(empty) && !id.equals(empty) && !username.equals(empty)\n\t\t\t\t&& !password.equals(empty)) {\n\t\t\tcreateSystemUser(name, lastName, id, username, password);\n\t\t\ttxtUserNames.setText(\"\");\n\t\t\ttxtUserSurnames.setText(\"\");\n\t\t\ttxtUserId.setText(\"\");\n\t\t\ttxtUserUsername.setText(\"\");\n\t\t\tPfUserPassword.setText(\"\");\n\t\t\t// labelUserMessage.setText(\"The user has been created\");\n\t\t} else if (name.equals(empty) && lastName.equals(empty) && id.equals(empty) && username.equals(empty)\n\t\t\t\t&& password.equals(empty)) {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"public Usuario(int idUsuario, String nome, String email, String telefone, int motorista){\n\t\tthis.idUsuario = idUsuario;\n\t\tthis.nome = nome;\n\t\tthis.email = email;\n\t\tthis.telefone = telefone;\n\t\tthis.motorista = motorista;\n\t}",
"public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}",
"public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }",
"public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }",
"@RequestMapping(value = \"/crearusuario\", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\n public CommonsResponse createuser(@RequestParam String llave_seguridad, @RequestBody NewUserInputDTO request, HttpServletRequest requestTransaction)\n {\n CommonsResponse response = new CommonsResponse();\n Map<String, String> mapConfiguration = null;\n try\n {\n logger.debug(\"Se valida la licencia si puede consumir los procesos.\");\n mapConfiguration = GatewayBaseBean.validateLicenceToWS(llave_seguridad, webUtils.getClientIp(requestTransaction));\n\n userServices.createUser(mapConfiguration, request);\n }\n catch (ParamsException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.error(\"Parametros de Licencia Errados WS [crearusuarioisoft], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (LicenseException ex)\n {\n response.toLicenceWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode(), llave_seguridad);\n logger.error(\"Parametros de Licencia Errados WS [consultarusuariossistema], key[\"+llave_seguridad+\"].\", ex);\n return response;\n }\n catch (ServiceException ex)\n {\n response.toParamsWarn(messageSource, KEY_ERRORS_GENERIC + ex.getCode());\n logger.warn(\"Error de Servicio WS [crearusuarioisoft].\", ex);\n return response;\n }\n catch (Exception ex)\n {\n logger.error(\"Error Generico en WS [crearusuarioisoft].\", ex);\n GatewayBaseBean.matchToResponses(response);\n return response;\n }\n logger.info(\"Se retorna respuesta efectiva del WS [crearusuario].\");\n return response.toOk();\n }",
"@Override\n void create(Cliente cliente);",
"public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}",
"public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public Usuario(String usuario, String contrasena) {\n \tthis.usuario = usuario;\n \tthis.contrasena = contrasena;\n }",
"Long crear(Espacio espacio);",
"public VentanaPrincipal() throws IOException {\n initComponents();\n buscador = new Busqueda();\n }",
"@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }",
"Motivo create(Motivo motivo);",
"@Test\n public void testRegistrar() throws Exception { \n long sufijo = System.currentTimeMillis();\n Usuario usuario = new Usuario(\"Alexander\" + String.valueOf(sufijo), \"alex1.\", TipoUsuario.Administrador); \n usuario.setDocumento(sufijo); \n usuario.setTipoDocumento(TipoDocumento.CC);\n servicio.registrar(usuario); \n Usuario usuarioRegistrado =(Usuario) servicioPersistencia.findById(Usuario.class, usuario.getLogin());\n assertNotNull(usuarioRegistrado);\n }",
"public Usuario(String nickUsuario, String nombreUsuario, String correoUsuario) {\r\n this.nickUsuario = nickUsuario;\r\n this.nombreUsuario = nombreUsuario;\r\n this.correoUsuario = correoUsuario;\r\n }",
"ProjetoRN createProjetoRN();",
"private void registrarDatosBD(String nombre, String apellido, String usuario, String clave, String fnacim) {\n\t\tUsuario u = new Usuario(0, nombre, apellido, usuario, clave, fnacim, 0, 0);\n\t\t// 02. Registrar el obj usando la clase de gestion y guardando\n\t\tint ok = new GestionUsuarios().registrar(u);\n\n\t\t// salidas\n\t\tif (ok == 0) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Error al registrar\");\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(this, \"Registro OK\");\n\t\t}\n\t}",
"public void cadastrarUsuario(View view){\n String textoNome= campoNome.getText().toString();\n String textoEmail= campoEmail.getText().toString();\n String textoSenha= campoSenha.getText().toString();\n\n\n if(!textoNome.isEmpty()){\n if(!textoEmail.isEmpty()){\n if(!textoSenha.isEmpty()){\n Usuario usuario = new Usuario();\n usuario.setNome(textoNome);\n usuario.setEmail(textoEmail);\n usuario.setSenha(textoSenha);\n salvarUsuario(usuario);\n\n home();\n finish();\n }else{ exibirMensagem(\"preencha sua senha\"); }\n }else{ exibirMensagem(\"preencha seu email\"); }\n }else{ exibirMensagem(\"Digite seu nome\"); }\n }",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"public Usuario ObtenerUsuario(String nombre)\n {\n /*creamos una instancia de la clase usuario que sera donde almacenaremos la informacion\n del usuario que deseemos analizar*/\n Usuario jugador = new Usuario(); \n //encerramos todo en un try para manejar los errores\n try\n {\n //si no hay ninguna conexion entonces generamos una\n if(con == null)\n con = Conexion_Sql.getConexion();\n \n String sql = \"SELECT * FROM puntajes WHERE nombre = ?\"; \n PreparedStatement statement = con.prepareStatement(sql);\n statement.setString(1, nombre);\n ResultSet result = statement.executeQuery();\n \n result.next();\n //agregamos toda la informacion obtenida a la instancia del objeto\n jugador = new Usuario(result.getString(1),result.getInt(2)); \n }\n catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n \n //retornamos dicho producto o instancia\n return jugador;\n }",
"public void inicializar() {\r\n\t\ttry {\r\n\t\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\tUIManager.setLookAndFeel(\"com.jtattoo.plaf.hifi.HiFiLookAndFeel\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tgetContentPane().setLayout(null);\r\n\r\n\t\tlblUsuario = new JLabel(\"Mail Empleado:\");\r\n\t\tlblUsuario.setBounds(40, 40, 124, 20);\r\n\t\tgetContentPane().add(lblUsuario);\r\n\r\n\t\tlblPass = new JLabel(\"Contraseña:\");\r\n\t\tlblPass.setBounds(40, 72, 124, 20);\r\n\t\tgetContentPane().add(lblPass);\r\n\r\n\t\tlblConfPass = new JLabel(\"Confirmación Contraseña:\");\r\n\t\tlblConfPass.setBounds(40, 104, 220, 20);\r\n\t\tgetContentPane().add(lblConfPass);\r\n\r\n\t\ttxtUsuario = new JTextField();\r\n\t\ttxtUsuario.setBounds(275, 40, 138, 20);\r\n\t\tgetContentPane().add(txtUsuario);\r\n\t\ttxtUsuario.setColumns(10);\r\n\r\n\t\tpwdPass = new JPasswordField();\r\n\t\tpwdPass.setEchoChar('*'); // quitamos valor\r\n\t\tpwdPass.setBounds(275, 72, 138, 20);\r\n\t\tgetContentPane().add(pwdPass);\r\n\r\n\t\tpwdConfPass = new JPasswordField();\r\n\t\tpwdConfPass.setEchoChar('*');\r\n\t\tpwdConfPass.setBounds(275, 104, 138, 20);\r\n\t\tgetContentPane().add(pwdConfPass);\r\n\r\n\t\tbtnRegistrar = new JButton(\"Registrar\");\r\n\t\tbtnRegistrar.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t// recuperamos los datos introducidos y los volcamos en BD\r\n\t\t\t\tUsuarioPojo user = null;\r\n\t\t\t\tUsuarioPersistencia up = new UsuarioPersistencia();\r\n\r\n\t\t\t\t//int id = up.obtenerIdEmple();\r\n\t\t\t\tString usuarioMail = txtUsuario.getText();\r\n\t\t\t\tString password = new String(pwdPass.getPassword()); // DNI de momento\r\n\t\t\t\tString passwordC = new String(pwdConfPass.getPassword());\r\n\t\t\t\tString apenom = txtApenom.getText();\r\n\t\t\t\tString dni = txtDni.getText();\r\n\t\t\t\tint numSS = Integer.parseInt(txtSegSoc.getText());\r\n\t\t\t\tString cuenta = txtCuenta.getText();\r\n\r\n\t\t\t\tif (password.equals(passwordC)) {\r\n\t\t\t\t\t// creamos un objeto usuario si coinciden las contraseñas\r\n\t\t\t\t\tuser = new UsuarioPojo(apenom, numSS, cuenta, dni, usuarioMail, password);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\t// insertaremos el usuario si coinciden las contraseñas\r\n\t\t\t\t\tup = new UsuarioPersistencia();\r\n\t\t\t\t\tint res = up.insertarUser(user);\r\n\r\n\t\t\t\t\tif (res == 1) { // se habrá registrado al usuario\r\n\t\t\t\t\t\tSystem.out.println(\"Insertado correctamente\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro insertado correctamente\",\r\n\t\t\t\t\t\t\t\t\"Resultado del Registro\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tdispose(); // dispose cierra ventana actual, System.exit(0) sale del programa\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mostramos msg si no coinciden las contraseñas, manteniendo el control en dreg\r\n\t\t\t\t\tSystem.out.println(\"No insertado\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Contraseñas introducidas no coinciden\", \"Error de contraseña\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t// limpiamos campos de contraseña\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRegistrar.setBounds(305, 285, 90, 23);\r\n\t\tgetContentPane().add(btnRegistrar);\r\n\r\n\t\tchckbxMostrarPass1 = new JCheckBox(\"Mostrar contraseña\");\r\n\t\tchckbxMostrarPass1.setBounds(470, 71, 175, 23);\r\n\t\t// añadimos un listener para poder mostrar la contraseña como texto\r\n\t\tchckbxMostrarPass1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (chckbxMostrarPass1.isSelected()) {\r\n\t\t\t\t\tpwdPass.setEchoChar((char) 0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpwdPass.setEchoChar('*');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxMostrarPass1);\r\n\r\n\t\tchckbxMostrarPass2 = new JCheckBox(\"Mostrar contraseña\");\r\n\t\tchckbxMostrarPass2.setBounds(470, 103, 175, 23);\r\n\t\tchckbxMostrarPass2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (chckbxMostrarPass2.isSelected()) {\r\n\t\t\t\t\tpwdConfPass.setEchoChar((char) 0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpwdConfPass.setEchoChar('*');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxMostrarPass2);\r\n\r\n\t\tlblApenom = new JLabel(\"Nombre y Apellidos:\");\r\n\t\tlblApenom.setBounds(40, 136, 220, 20);\r\n\t\tgetContentPane().add(lblApenom);\r\n\r\n\t\ttxtApenom = new JTextField();\r\n\t\ttxtApenom.setBounds(275, 136, 270, 20);\r\n\t\tgetContentPane().add(txtApenom);\r\n\t\ttxtApenom.setColumns(10);\r\n\r\n\t\tlblSegSoc = new JLabel(\"Nº Seguridad Social:\");\r\n\t\tlblSegSoc.setBounds(40, 200, 220, 20);\r\n\t\tgetContentPane().add(lblSegSoc);\r\n\r\n\t\ttxtSegSoc = new JTextField();\r\n\t\ttxtSegSoc.setBounds(275, 200, 138, 20);\r\n\t\tgetContentPane().add(txtSegSoc);\r\n\t\ttxtSegSoc.setColumns(10);\r\n\r\n\t\tlblCuenta = new JLabel(\"Nº Cuenta Bancaria:\");\r\n\t\tlblCuenta.setBounds(40, 232, 200, 20);\r\n\t\tgetContentPane().add(lblCuenta);\r\n\r\n\t\ttxtCuenta = new JTextField();\r\n\t\ttxtCuenta.setBounds(275, 232, 138, 20);\r\n\t\tgetContentPane().add(txtCuenta);\r\n\t\ttxtCuenta.setColumns(10);\r\n\r\n\t\tlblDniUser = new JLabel(\"DNI:\");\r\n\t\tlblDniUser.setBounds(40, 168, 124, 20);\r\n\t\tgetContentPane().add(lblDniUser);\r\n\r\n\t\ttxtDni = new JTextField();\r\n\t\ttxtDni.setColumns(10);\r\n\t\ttxtDni.setBounds(275, 168, 138, 20);\r\n\t\tgetContentPane().add(txtDni);\r\n\r\n\t\t// cambiamos EXIT por DISPOSE, porque solo queremos que cierre esta ventana, no\r\n\t\t// que me salga del programa definitivamente\r\n\t\tsetDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(250, 250, 700, 380);\r\n\t\tthis.setLocationRelativeTo(null); // para que centre en pantalla\r\n\t}",
"@Test\r\n\tpublic void CT03CadastrarUsuarioComRaNulo() {\r\n\t\t// cenario\r\n\t\tUsuario usuario = new Usuario();\r\n\t\t\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comRAInvalido_nulo();\r\n\t\t\tfail(\"deveria lançar uma exceção\");\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"RA invalido\", e.getMessage());\r\n\t\t}\r\n\t}",
"public VentanaPrincipal() {\n initComponents();\n\n idUsuariosControlador = Fabrica.getInstance().getControladorUsuarios(null).getId();\n idProductosControlador = Fabrica.getInstance().getControladorProductos(null).getId();\n idOrdenesControlador = Fabrica.getInstance().getControladorOrdenes(null).getId();\n controlarUsuario = Fabrica.getInstance().getControladorUsuarios(idUsuariosControlador);\n controlarProducto = Fabrica.getInstance().getControladorProductos(idProductosControlador);\n controlarOrden = Fabrica.getInstance().getControladorOrdenes(idOrdenesControlador);\n }",
"@Test\r\n\tpublic void CT05ConsultarLivroComNomeNulo() {\r\n\t\ttry {\r\n\t\t\t// cenario\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tUsuario usuario;\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comNome_nulo();\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"Nome inválido\", e.getMessage());\r\n\t\t}\r\n\t}",
"public Usuario(String idUsuario, String contrasena) {\n\t\tsuper();\n\t\tthis.idUsuario = idUsuario;\n\t\tthis.contrasena = contrasena;\n\t}",
"public VentanaPrincipal(Modelo s) {\n modelo = s;\n initComponents();\n capturarEventos();\n }",
"public VentanaPrincipal() {\n initComponents();\n editar = false;\n }",
"@Test\n public void createComentarioTest() {\n PodamFactory factory = new PodamFactoryImpl();\n ComentarioEntity nuevaEntity = factory.manufacturePojo(ComentarioEntity.class);\n ComentarioEntity resultado = comentarioPersistence.create(nuevaEntity);\n\n Assert.assertNotNull(resultado);\n\n ComentarioEntity entity = em.find(ComentarioEntity.class, resultado.getId());\n\n Assert.assertEquals(nuevaEntity.getNombreUsuario(), entity.getNombreUsuario());\n \n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tUsuarioPojo user = null;\r\n\t\t\t\tUsuarioPersistencia up = new UsuarioPersistencia();\r\n\r\n\t\t\t\t//int id = up.obtenerIdEmple();\r\n\t\t\t\tString usuarioMail = txtUsuario.getText();\r\n\t\t\t\tString password = new String(pwdPass.getPassword()); // DNI de momento\r\n\t\t\t\tString passwordC = new String(pwdConfPass.getPassword());\r\n\t\t\t\tString apenom = txtApenom.getText();\r\n\t\t\t\tString dni = txtDni.getText();\r\n\t\t\t\tint numSS = Integer.parseInt(txtSegSoc.getText());\r\n\t\t\t\tString cuenta = txtCuenta.getText();\r\n\r\n\t\t\t\tif (password.equals(passwordC)) {\r\n\t\t\t\t\t// creamos un objeto usuario si coinciden las contraseñas\r\n\t\t\t\t\tuser = new UsuarioPojo(apenom, numSS, cuenta, dni, usuarioMail, password);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\t// insertaremos el usuario si coinciden las contraseñas\r\n\t\t\t\t\tup = new UsuarioPersistencia();\r\n\t\t\t\t\tint res = up.insertarUser(user);\r\n\r\n\t\t\t\t\tif (res == 1) { // se habrá registrado al usuario\r\n\t\t\t\t\t\tSystem.out.println(\"Insertado correctamente\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Registro insertado correctamente\",\r\n\t\t\t\t\t\t\t\t\"Resultado del Registro\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tdispose(); // dispose cierra ventana actual, System.exit(0) sale del programa\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// mostramos msg si no coinciden las contraseñas, manteniendo el control en dreg\r\n\t\t\t\t\tSystem.out.println(\"No insertado\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Contraseñas introducidas no coinciden\", \"Error de contraseña\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t// limpiamos campos de contraseña\r\n\t\t\t\t}\r\n\t\t\t}",
"public SigalPeticion reativarUsuario ( AccountTO usuario ) throws Exception {\n \n // Tratamento para controle de campos opicionais\n int totalParams = 11;\n boolean possuiCenttra = true;\n boolean possuiCodPerfil = true;\n\n if ( usuario.getCenttra() == null || usuario.getCenttra().trim().equals(\"\") ) {\n --totalParams;\n possuiCenttra = false;\n }\n\n if ( usuario.getCodperfil() == null || usuario.getCodperfil().trim().equals(\"\") ) {\n --totalParams;\n possuiCodPerfil = false;\n }\n\n SigalPeticion msgEnvio = SigalPeticion.getInstance( totalParams );\n\n msgEnvio.addParametro( --totalParams, new Parametro( \"FUNCION\", \"RE\" ) );\n\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.USUARIO,\n usuario.getUsuario() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.OFICINA,\n usuario.getOficina() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.NOMBREUSU,\n usuario.getNombreusu() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.PASSWORD,\n usuario.getPassword() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.NIVSEGUSU,\n usuario.getNivsegusu() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CODIDIOMA,\n usuario.getCodidioma() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.FECACTIVA,\n usuario.getFecactivaForEASE() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.FECDESACT,\n usuario.getFecdesactForEASE() ) );\n\n // CAMPO OPICIONAL, alteração feita na especificação v. 5.0\n if ( possuiCenttra )\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CENTTRA,\n usuario.getCenttra() ) );\n\n // CAMPO OPICIONAL, alteração feita na especificação v. 5.0\n if ( possuiCodPerfil ) {\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CODPERFIL,\n usuario.getCodperfil() ) );\n }\n\n msgEnvio.setTipoOperacion( \"update\" );\n msgEnvio.setTransaccion( \"SGREUSU\" );\n\n return msgEnvio; \n }",
"private void NuevoUsuario(String IDFacebook, Usuarios nuevo)\n {\n final String szIDFacebook = IDFacebook;\n\n // Guardamos los datos del nombre del usuario\n Helpers.setNombre(getActivity(), nuevo.NOMBRE);\n\n // Datos de la solicitud\n cliente.post(getActivity(), Helpers.URLApi(\"nuevousuario\"), Usuarios.ToStringEntity(nuevo), \"application/json\", new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n super.onSuccess(statusCode, headers, responseBody);\n\n try\n {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Guardamos el token del usuario\n Helpers.setTokenAcceso(getActivity(), objeto.getJSONObject(\"usuario\").getString(\"token\"));\n\n // Guardamos el nombre del usuario\n Helpers.setNombre(getActivity(), objeto.getJSONObject(\"usuario\").getString(\"nombre\"));\n\n // Subimos la foto del usuario\n GetPictureFacebook(szIDFacebook, objeto.getJSONObject(\"usuario\").getString(\"imagen\"));\n }\n else\n {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n } catch (JSONException ex) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.notcreateuser));\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.notcreateuser));\n }\n });\n }",
"public Cliente nuevoCliente (String nombre){\r\n\t\t//TODO Implementar metodo\r\n\t\treturn null;\r\n\t}",
"public static void main(String[] args) throws SQLException, ClassNotFoundException {\n CtrlUsuarios us = new CtrlUsuarios(); \n //instancia de un objeto Usuario, para almacenar el usuario obtenido\n Usuarios user = null;\n //Para probar el código solo deben mandar a llamar al método correspondiente creado para la funcionalidad\n //En este caso imprimo el resultado obtenido y el código creado es correcto\n user = us.obtenerPorId(Conexion.conectar(),1);\n System.out.println(user.toString());\n \n //de aquí en seguida podemos seguir agragando las demas prubas...\n }",
"public Cliente registroUsuario(Ventana vis, Modelo mod) {\n\t\tJTextField dni = vis.panelLogin.textFieldDNI;\n\t\tJTextField nombre = vis.panelLogin.textFieldNombre;\n\t\tJTextField apellido = vis.panelLogin.textFieldApellido;\n\t\tDate fechaNac = vis.panelLogin.calendarioFechaNac.getDate();\n\t\tchar sexo = cambiarSexoAChar(vis.panelLogin.cmbBoxSexo);\n\t\tfinal char[] contra = vis.panelLogin.passFieldContrasenia.getPassword();\n\t\tif (validarSoloLetras(nombre) && validarSoloLetras(apellido) && (nombre.getText().length() > 0) && (apellido.getText().length() > 0) && validarDNI(dni) && validarFecha(fechaNac) && validarContrasenia(contra)) {\n\t\t\tif (comprobarDNIenBD(vis.panelLogin.textFieldDNI.getText(), mod) == false) {\n\t\t\t\treturn (new Cliente(dni.getText(), nombre.getText(), apellido.getText(), fechaNac, sexo, encriptarContra(contra)));\n\t\t\t} else {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"El usuario introducido ya esta registrado, porfavor inicie sesion\", \"Usuario ya registrado\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Secured(\"ROLE_ADMIN\")\n\t@PostMapping(value= \"/usuario\")\n public ResponseEntity<Profesional> createUsuario(@RequestBody Registro registro,BindingResult bindingResult){\n \tRole rol = roleService.findOne((long) 3);\n \tProfesional profesional = registro.getProfesional();\n try {\n \tprofesional.setEstado_profesional(estadoProfService.findOne((long) 1));// se le da el estado habilitado\n \tprofesionalService.save(profesional);\n \tregistro.getUsuario().setPassword(passwordEncoder.encode(registro.getUsuario().getPassword()));\n \tregistro.getUsuario().setEnable(true);\n \tusuarioService.save(registro.getUsuario());\n \t usuarioService.saveUsuario_Roles(registro.getUsuario().getId_Usuario(),rol.getId_Role() );\n }catch(DataAccessException e) {\n return new ResponseEntity<Profesional>(HttpStatus.INTERNAL_SERVER_ERROR);\n }\n return new ResponseEntity<Profesional>(profesional,HttpStatus.CREATED);\n }",
"private void metodoSalvarUsuarioFirebase(final Usuarios variavelClasseUsuarios) {\n\n refAutenticacaofb = ConfiguracaoFirebase.metodoAutenticacaoFirebase();\n refAutenticacaofb.createUserWithEmailAndPassword(variavelClasseUsuarios.getEmail(),\n variavelClasseUsuarios.getSenha()).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n\n idUsuario = task.getResult().getUser().getUid();\n variavelClasseUsuarios.setId(idUsuario);\n variavelClasseUsuarios.salvarUsuario();\n\n if(pegarTipoUsuarioSwitch() == \"Cliente\"){\n\n startActivity(new Intent(CadastroUsuario.this, Home.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Usuário salvo com sucesso\", Toast.LENGTH_LONG).show();\n }else{\n\n startActivity(new Intent(CadastroUsuario.this, PainelEmpresa.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Empresa inserida com sucesso!\", Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n\n\n }\n });\n\n }",
"public void crearClase() {\r\n\t\tsetClase(3);\r\n\t\tsetTipoAtaque(3);\r\n\t\tsetArmadura(15);\r\n\t\tsetModopelea(0);\r\n\t}"
] |
[
"0.7141991",
"0.7066228",
"0.6785011",
"0.6732753",
"0.67246777",
"0.65717286",
"0.6551392",
"0.65411025",
"0.6531841",
"0.6516735",
"0.65112484",
"0.6498209",
"0.6458662",
"0.645543",
"0.64391416",
"0.6346701",
"0.63249516",
"0.63209534",
"0.6319831",
"0.6281222",
"0.6276401",
"0.62619305",
"0.62599313",
"0.62513506",
"0.62478656",
"0.62423843",
"0.62320334",
"0.62165713",
"0.62161815",
"0.62148",
"0.62111944",
"0.6211163",
"0.62074935",
"0.62046975",
"0.61963767",
"0.6136838",
"0.6135832",
"0.6135832",
"0.613491",
"0.6128376",
"0.61281466",
"0.61255646",
"0.61149096",
"0.61145276",
"0.6113398",
"0.6106926",
"0.6100811",
"0.6092218",
"0.6090032",
"0.6089939",
"0.6081798",
"0.6080344",
"0.6074923",
"0.6050618",
"0.60474813",
"0.6037766",
"0.6028858",
"0.60204685",
"0.6019078",
"0.60176843",
"0.6017022",
"0.6010677",
"0.6009725",
"0.6007179",
"0.6007042",
"0.60043305",
"0.59982806",
"0.59951013",
"0.5993318",
"0.5988453",
"0.5984841",
"0.5982722",
"0.59813184",
"0.5978271",
"0.5969419",
"0.5964058",
"0.5957882",
"0.5950489",
"0.5950054",
"0.5946419",
"0.59355325",
"0.59318304",
"0.5931746",
"0.5931154",
"0.5929186",
"0.59290564",
"0.592796",
"0.5917629",
"0.5917515",
"0.591138",
"0.5911215",
"0.5906554",
"0.5894017",
"0.5892423",
"0.58833575",
"0.5881496",
"0.58789414",
"0.587563",
"0.5875102",
"0.58733934",
"0.58717066"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
private URL resolveRecaptcha(CharSequence content) {
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public boolean estaElemento(String elemento) {
return false;
}
|
{
"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
|
Use this factory method to create a new instance of this fragment using the provided parameters.
|
public static Fragment_home newInstance(String imei, String param2) {
Fragment_home fragment = new Fragment_home();
Bundle bundle=new Bundle();
bundle.putString("imei",imei);
fragment.setArguments(bundle);
return fragment;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n }",
"@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }",
"public CuartoFragment() {\n }",
"public StintFragment() {\n }",
"public ExploreFragment() {\n\n }",
"public RickAndMortyFragment() {\n }",
"public FragmentMy() {\n }",
"public LogFragment() {\n }",
"public FeedFragment() {\n }",
"public HistoryFragment() {\n }",
"public HistoryFragment() {\n }",
"public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }",
"public WkfFragment() {\n }",
"public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment(){}",
"public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }",
"public WelcomeFragment() {}",
"public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public progFragment() {\n }",
"public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }",
"public HeaderFragment() {}",
"public EmployeeFragment() {\n }",
"public Fragment_Tutorial() {}",
"public NewShopFragment() {\n }",
"public FavoriteFragment() {\n }",
"public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }",
"public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }",
"public CreateEventFragment() {\n // Required empty public constructor\n }",
"public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}",
"public NoteActivityFragment() {\n }",
"public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }",
"public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public EventHistoryFragment() {\n\t}",
"public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public HomeFragment() {}",
"public PeopleFragment() {\n // Required empty public constructor\n }",
"public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public VantaggiFragment() {\n // Required empty public constructor\n }",
"public AddressDetailFragment() {\n }",
"public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }",
"public ArticleDetailFragment() { }",
"public RegisterFragment() {\n }",
"public EmailFragment() {\n }",
"public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }",
"public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }",
"public ForecastFragment() {\n }",
"public FExDetailFragment() {\n \t}",
"public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }",
"public TripNoteFragment() {\n }",
"public ItemFragment() {\n }",
"public NoteListFragment() {\n }",
"public CreatePatientFragment() {\n\n }",
"public DisplayFragment() {\n\n }",
"public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}",
"public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment() {\n\n }",
"public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }",
"public CustomerFragment() {\n }",
"public BackEndFragment() {\n }",
"public static Fragment newInstance() {\n return new SettingsFragment();\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }",
"public PeersFragment() {\n }",
"public TagsFragment() {\n }",
"public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }",
"public HomeSectionFragment() {\n\t}",
"public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }",
"public PersonDetailFragment() {\r\n }",
"public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }",
"public RegisterFragment() {\n // Required empty public constructor\n }",
"public VehicleFragment() {\r\n }",
"public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}",
"public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}",
"public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }",
"public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }",
"public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }",
"public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public PlaylistFragment() {\n }",
"public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }",
"public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public TechFragment() {\n }"
] |
[
"0.72621447",
"0.7232083",
"0.7112217",
"0.6991051",
"0.6990589",
"0.6834896",
"0.6830138",
"0.68136847",
"0.6801746",
"0.68014497",
"0.67672217",
"0.6741153",
"0.6741153",
"0.6730413",
"0.6717659",
"0.6707773",
"0.6691707",
"0.66907436",
"0.6690217",
"0.6663584",
"0.6645943",
"0.66428155",
"0.66410416",
"0.66347164",
"0.66186553",
"0.6614004",
"0.66081345",
"0.6605987",
"0.66007537",
"0.65950495",
"0.6594042",
"0.6592835",
"0.6583988",
"0.65787506",
"0.65643406",
"0.65615",
"0.6560042",
"0.65529734",
"0.65527296",
"0.6542672",
"0.6540366",
"0.65373075",
"0.65327805",
"0.65282583",
"0.65265137",
"0.65256894",
"0.6523943",
"0.65153366",
"0.65072274",
"0.6501109",
"0.64982265",
"0.64963937",
"0.64954245",
"0.6486538",
"0.6485938",
"0.648154",
"0.6479702",
"0.6475937",
"0.64716905",
"0.6466315",
"0.64576936",
"0.64566696",
"0.6454944",
"0.64542574",
"0.6452508",
"0.6450492",
"0.64498377",
"0.6449044",
"0.64436847",
"0.64434344",
"0.64434344",
"0.64434344",
"0.6442567",
"0.6441868",
"0.6438361",
"0.64370716",
"0.64310926",
"0.6428947",
"0.64258647",
"0.6421065",
"0.6417939",
"0.6413496",
"0.6413297",
"0.6403445",
"0.6401332",
"0.6397697",
"0.63954955",
"0.6393425",
"0.63887346",
"0.638496",
"0.6382197",
"0.63754094",
"0.63753843",
"0.63753843",
"0.63753843",
"0.63657707",
"0.63647723",
"0.63615525",
"0.6356532",
"0.63540596",
"0.63518465"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void onClick(DialogInterface arg0, int arg1) {
}
|
{
"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: Rename method, update argument and hook method into UI event
|
public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\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}",
"public abstract void update(UIReader event);",
"@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}",
"@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Event e) {\n\t}",
"public abstract void onInvoked(CommandSender sender, String[] args);",
"@Override\r\n public void updateUI() {\r\n }",
"@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}",
"@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}",
"@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}",
"public void updateUI(){}",
"private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }",
"@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\r\n public void actionPerformed( ActionEvent e )\r\n {\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 handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}",
"Event () {\n // Nothing to do here.\n }",
"void onArgumentsChanged();",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@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\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"void eventChanged();",
"@Override public void handle(ActionEvent e)\n\t {\n\t }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\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}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }",
"public abstract void onCommand(MessageEvent context) throws Exception;",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void handle(Event event) {\n }",
"@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(AnActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}",
"public void ImageView(ActionEvent event) {\n\t}",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n public void delta() {\n \n }",
"public void runInUi(ElexisEvent ev){}",
"@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent ev) {\n }",
"@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }",
"@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}",
"@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\n public void actionPerformed(ActionEvent e) {\n\n }",
"@Override\n public void update(Observable o, Object arg)\n {\n \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }"
] |
[
"0.6619879",
"0.65252125",
"0.64742106",
"0.64742106",
"0.6435789",
"0.63233054",
"0.6237398",
"0.6190151",
"0.61593384",
"0.6144328",
"0.6123186",
"0.6107672",
"0.61000156",
"0.60933954",
"0.6049657",
"0.6049657",
"0.6045916",
"0.60418254",
"0.60418254",
"0.6007766",
"0.5999073",
"0.59860754",
"0.59777474",
"0.59568363",
"0.5937938",
"0.59264165",
"0.59264165",
"0.59218025",
"0.5917128",
"0.5917022",
"0.5917022",
"0.5917022",
"0.5917022",
"0.5917022",
"0.5908811",
"0.58963823",
"0.58942205",
"0.5893935",
"0.58897686",
"0.58897686",
"0.58897686",
"0.5868519",
"0.5868519",
"0.5868519",
"0.5863722",
"0.5863722",
"0.5863513",
"0.5862181",
"0.58571035",
"0.5847909",
"0.5847909",
"0.5847909",
"0.5847909",
"0.58386195",
"0.58384675",
"0.5820893",
"0.5807655",
"0.58043337",
"0.5773459",
"0.57727826",
"0.5771248",
"0.57667226",
"0.5764449",
"0.5755082",
"0.57549536",
"0.57549536",
"0.5746155",
"0.57458013",
"0.57458013",
"0.57458013",
"0.5742825",
"0.5741792",
"0.57386494",
"0.5736",
"0.5736",
"0.5736",
"0.57341015",
"0.57341015",
"0.57341015",
"0.57341015",
"0.57341015",
"0.57341015",
"0.57341015",
"0.5724812",
"0.57240057",
"0.57223064",
"0.57210654",
"0.57210654",
"0.57207394",
"0.5718951",
"0.5715106",
"0.57118565",
"0.57118565",
"0.57118565",
"0.57118565",
"0.57118565",
"0.57118565",
"0.57091635",
"0.5705632",
"0.57038647",
"0.5703226"
] |
0.0
|
-1
|
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
|
public interface OnFragmentInteractionListener {
// TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}",
"public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }",
"public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }",
"public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}",
"public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}",
"public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }",
"void onFragmentInteraction(Object ref);",
"public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }",
"public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }",
"public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }",
"public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }",
"public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}",
"public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}",
"public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }",
"public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }",
"public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}",
"public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface PersonalFragmentView extends BaseMvpView {\n\n}",
"public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }",
"void onFragmentInteraction(View v);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }",
"void onFragmentInteractionMain();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }",
"public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}",
"public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }",
"void onFragmentInteraction(String id);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }",
"public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }",
"public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}",
"public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }",
"public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}",
"public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }",
"public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}",
"public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}",
"public interface ChangeFragmentListener {\n void changeFragment();\n}",
"public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}",
"public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }",
"void onFragmentInteraction(int position);",
"public interface AddFarmFragmentView extends BaseView {\n\n\n}",
"void OpenFragmentInteraction();",
"public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}",
"public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}",
"public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}",
"public interface PesonageFragmentView extends MvpView {\n\n}",
"public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }",
"public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }",
"interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }",
"public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}"
] |
[
"0.732486",
"0.7209621",
"0.71364164",
"0.7125353",
"0.7123662",
"0.7015166",
"0.69779605",
"0.69779605",
"0.69779605",
"0.6975094",
"0.69687355",
"0.6966749",
"0.6961368",
"0.6954976",
"0.6944469",
"0.693585",
"0.6931194",
"0.6928626",
"0.69238746",
"0.69117075",
"0.6904201",
"0.6897983",
"0.68950915",
"0.68832165",
"0.6882244",
"0.6876292",
"0.6865402",
"0.68620276",
"0.6860568",
"0.6859283",
"0.68562776",
"0.6844383",
"0.68405527",
"0.6830463",
"0.6818809",
"0.68177456",
"0.6810608",
"0.67874515",
"0.67708206",
"0.6770329",
"0.6770329",
"0.6770329",
"0.6770329",
"0.6770329",
"0.6770329",
"0.6770329",
"0.6770329",
"0.6770329",
"0.67669225",
"0.67624575",
"0.6757312",
"0.67542255",
"0.66994476",
"0.66819537",
"0.66746384",
"0.66723186",
"0.6670445",
"0.6662573",
"0.66623265",
"0.66562444",
"0.66530395",
"0.6645724",
"0.6645319",
"0.6645319",
"0.6645319",
"0.6645319",
"0.6645319",
"0.6645319",
"0.6645319",
"0.6645319",
"0.6645319",
"0.6645319",
"0.6645319",
"0.6638947",
"0.6637034",
"0.6632185",
"0.6626709",
"0.66251534",
"0.66189253",
"0.6610348",
"0.66096294",
"0.6609508",
"0.6605318",
"0.6599287",
"0.65975773",
"0.6588631",
"0.6573124",
"0.656953",
"0.6561997",
"0.6560547",
"0.6555284",
"0.65507257",
"0.65501106",
"0.65437025",
"0.65399295",
"0.65349275",
"0.65349275",
"0.65349275",
"0.6520201",
"0.6518922",
"0.6517203"
] |
0.0
|
-1
|
TODO: Update argument type and name
|
void onFragmentInteraction(Uri uri);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"@Override\n public int getNumberArguments() {\n return 1;\n }",
"java.lang.String getArg();",
"@Override\n public int getArgLength() {\n return 4;\n }",
"Argument createArgument();",
"@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}",
"@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }",
"@Override\n\tpublic void traverseArg(UniArg node) {\n\t}",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"Object[] getArguments();",
"Object[] getArguments();",
"String getArguments();",
"@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}",
"@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }",
"ArgList createArgList();",
"public Object[] getArguments() { return args;}",
"@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }",
"@Override\n protected String getName() {return _parms.name;}",
"private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }",
"uicargs createuicargs();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}",
"@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}",
"public getType_args(getType_args other) {\n }",
"Object[] args();",
"protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }",
"@Test\n void getArgString() {\n }",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"int getArgIndex();",
"@Override\n\tpublic void addArg(FormulaElement arg){\n\t}",
"public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }",
"@Override\n public Object[] getArguments() {\n return null;\n }",
"public login_1_argument() {\n }",
"Optional<String[]> arguments();",
"private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }",
"@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}",
"protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}",
"void setArguments(String arguments);",
"@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}",
"OpFunctionArgAgregate createOpFunctionArgAgregate();",
"protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);",
"void visitArgument(Argument argument);",
"public Thaw_args(Thaw_args other) {\r\n }",
"@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}",
"private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }",
"public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}",
"@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }",
"public abstract ValidationResults validArguments(String[] arguments);",
"public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }",
"public String getArgumentString() {\n\t\treturn null;\n\t}",
"@Override\n public String kind() {\n return \"@param\";\n }",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }",
"void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }",
"@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}",
"void onArgumentsChanged();",
"com.google.protobuf.ByteString\n\t\tgetArgBytes();",
"@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }",
"MyArg(int value){\n this.value = value;\n }",
"public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }",
"public Clear_args(Clear_args other) {\r\n }",
"private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }",
"public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}",
"@Override\n public int getArgent() {\n return _argent;\n }",
"private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }",
"private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}",
"PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }",
"public Type getArgumentDirection() {\n return direction;\n }",
"public String argTypes() {\n return \"I\";//NOI18N\n }",
"public static void main(String arg[]) {\n\n }",
"godot.wire.Wire.Value getArgs(int index);",
"@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }",
"public void setArgs(java.lang.String value) {\n this.args = value;\n }",
"private Argument(Builder builder) {\n super(builder);\n }",
"@Override\n public void execute(String[] args) {\n\n }",
"@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}",
"UUID createArgument(ArgumentCreateRequest request);",
"@Override\n public void initialise(String[] arguments) {\n\n }",
"public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }",
"protected abstract void parseArgs() throws IOException;"
] |
[
"0.7164074",
"0.6946075",
"0.6714363",
"0.65115863",
"0.63969076",
"0.6375468",
"0.63481104",
"0.63162106",
"0.6260299",
"0.6208487",
"0.6208487",
"0.62070644",
"0.6197276",
"0.61806154",
"0.6177103",
"0.61530507",
"0.61472267",
"0.61243707",
"0.60771817",
"0.6054482",
"0.59906125",
"0.59906125",
"0.5984017",
"0.59791875",
"0.5977681",
"0.59532714",
"0.5946838",
"0.59457266",
"0.59452903",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.5909717",
"0.5889277",
"0.588111",
"0.5871162",
"0.5866624",
"0.58613646",
"0.58519953",
"0.58381283",
"0.58083445",
"0.58059824",
"0.5795826",
"0.57816726",
"0.57670826",
"0.57556796",
"0.57471323",
"0.57418406",
"0.5729463",
"0.57291526",
"0.5716928",
"0.5713024",
"0.56974274",
"0.56782854",
"0.56723106",
"0.5664594",
"0.5664104",
"0.5660337",
"0.5652865",
"0.5647883",
"0.5642134",
"0.5635645",
"0.5634968",
"0.562251",
"0.56210977",
"0.56167537",
"0.56138444",
"0.56044126",
"0.56044126",
"0.5602371",
"0.56012225",
"0.55986875",
"0.55893147",
"0.5588273",
"0.5583255",
"0.5582767",
"0.55681497",
"0.55626017",
"0.55577534",
"0.55524325",
"0.5549442",
"0.55378276",
"0.5536797",
"0.5527675",
"0.5511817",
"0.55099154",
"0.550257"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
switch (msg.what) {
case 911:
queryMsg();
break;
default:
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
|
TODO Autogenerated method stub
|
protected void queryMsg() {
if (currentPosition == 0) {//LIVE
obtainLiveData(true, currentPosition, liveMaxChatId);
} else {//CHAT
obtainChatData(true, currentPosition, chatModels.get(0).getChatId());
}
}
|
{
"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 initNavBar() {
setTitle(R.string.live_detail);
}
|
{
"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 findViewById() {
mIndicator = (SimpleViewPagerIndicator) findViewById(R.id.id_stickynavlayout_indicator);
mViewPager = (ViewPager) findViewById(R.id.id_stickynavlayout_viewpager);
stickyNavLayout = (StickyNavLayout) findViewById(R.id.stickynavlayout);
iv_user_logo = (ImageView) findViewById(R.id.iv_user_logo);
tv_main_title = (TextView) findViewById(R.id.tv_main_title);
tv_subtitle = (TextView) findViewById(R.id.tv_subtitle);
tv_look_num = (TextView) findViewById(R.id.tv_look_num);
tv_status = (TextView) findViewById(R.id.tv_status);
iv_shuohua = (ImageView) findViewById(R.id.iv_shuohua);
iv_operate = (ImageView) findViewById(R.id.iv_operate);
}
|
{
"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 initView() {
setShuohuaTouchListener();
iv_shuohua.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
iv_operate.setSelected(!iv_operate.isSelected());
iv_shuohua.setSelected(!iv_shuohua.isSelected());
}
});
mViewPager.setOnPageChangeListener(new OnPageChangeListener()
{
@Override
public void onPageSelected(int position)
{
currentPosition = position;
if (position == 0) {// 直播
ZhiBoFragment fragment = ((ZhiBoFragment) fragments
.get(position));
if (liveModels == null || liveModels.size() == 0) {
//暂停计时器查询
stopTimeTask();
squareLiveDetailLiveRequest(fragment, false,0);
}
} else if (position == 1) {// 聊天
LiaotianFragment fragment = ((LiaotianFragment) fragments
.get(position));
if (chatModels == null || chatModels.size()==0) {
//暂停计时器查询
stopTimeTask();
squareLiveDetailChatRequest(fragment, false,0);
}
}
}
@Override
public void onPageScrolled(int position, float positionOffset,
int positionOffsetPixels)
{
mIndicator.scroll(position, positionOffset);
}
@Override
public void onPageScrollStateChanged(int state)
{
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void onClick(View v) {
iv_operate.setSelected(!iv_operate.isSelected());
iv_shuohua.setSelected(!iv_shuohua.isSelected());
}
|
{
"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
|
protected void stopTimeTask() {
if (chatAsyncTask!=null) {
chatAsyncTask.cancel(true);
}
if (liveAsyncTask!=null) {
liveAsyncTask.cancel(true);
}
if (timerTask!=null) {
timerTask.cancel();
timerTask = null;
}
if (timer!=null) {
timer.cancel();
timer = 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 initData() {
isSearch = (boolean) getIntent().getExtras().getBoolean(Constant.IntentKey.isSearch,false);
if (isSearch) {//非来自直播列表
articleID = getIntent().getExtras().getLong(Constant.IntentKey.articleID);
// progressActivity.showLoading();
// 查询发现详情
obtainDetailRequest();
} else {
squareLiveModel = (SquareLiveModel) getIntent().getExtras().getSerializable(Constant.IntentKey.squareLiveModel);
initLoadView();
}
//启动定时器
// initTimerTask();
}
|
{
"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 onCallback(Exception e) {
ToastUtils.showCustomToast(e.getLocalizedMessage());
// mPullRefreshListView.onRefreshComplete();
// String errorMsg = e.getMessage();
// if ("无网络".equals(errorMsg)) {
// refreshComplete(true,true);
// } else {
// refreshComplete(true,false);
// }
}
|
{
"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 onCallback(String result) {
squareLiveModel = (SquareLiveModel) GsonUtils.jsonToBean(
result, SquareLiveModel.class);
initLoadView();
}
|
{
"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
|
private void initTimerTask() {
timerTask = new TimerTask() {
@Override
public void run() {
// TODO Auto-generated method stub
if (isCompleteQuery) {
isCompleteQuery = !isCompleteQuery;
Message message = new Message();
message.what = 911;
handler.sendMessage(message);
LogUtils.i("*****************定时任务查询");
}
}
};
if (timer == null) {
timer = new Timer();
}
timer.schedule(timerTask, 10000, 5000);//延迟10秒查询,每5秒执行一次
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void run() {
if (isCompleteQuery) {
isCompleteQuery = !isCompleteQuery;
Message message = new Message();
message.what = 911;
handler.sendMessage(message);
LogUtils.i("*****************定时任务查询");
}
}
|
{
"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
|
private void initLayoutData() {
ImageLoader.getInstance().displayImage(squareLiveModel.getVideoIco(), iv_user_logo, BaseApp.circleOptions);
if (squareLiveModel!=null && squareLiveModel.getTitle().split(" ").length>1) {
tv_main_title.setText(squareLiveModel.getTitle().split(" ")[1]);
} else {
tv_main_title.setText(squareLiveModel.getTitle());
}
tv_subtitle.setText(squareLiveModel.getSubTitle());
tv_look_num.setText(squareLiveModel.getChatPeopleCount()+"");
//0:未开始,1:进行中 2:已结束
if (squareLiveModel.getEventsProgress() == 0) {//未开始
tv_status.setText("距离开始"+ DateHelper.getIntervalDays(squareLiveModel.getEventsStart()));
} else if (squareLiveModel.getEventsProgress() == 1) {//进行中
tv_status.setText("进行中");
} else if (squareLiveModel.getEventsProgress() == 2) {//已结束
tv_status.setText("已经结束");
}
}
|
{
"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
|
private void initFragments() {
ZhiBoFragment zhiBoFragment = ZhiBoFragment.newInstance(null);
zhiBoFragment.setSquareFragmentListener(this);
LiaotianFragment liaotianFragment = LiaotianFragment.newInstance(null);
liaotianFragment.setSquareFragmentListener(this);
fragments.add(zhiBoFragment);
fragments.add(liaotianFragment);
}
|
{
"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 startActivity(SquareFoundDetailReplyActivity.class);
|
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Utily.go2Activity(this, SquareFoundDetailReplyActivity.class);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onClick(View v) {\n Log.d(TAG, \"onResume: reply has been clicked \");\n ((globalShared) activity.getApplicationContext()).setPassingReply(tempReply);\n Intent profileViewer = new Intent(activity, activity_reply_reply.class);\n activity.startActivity(profileViewer);\n Animatoo.animateSlideUp(activity);\n }",
"@Override\n public void onClick(View view) {\n Intent replyMailIntent = new Intent(\n EmailViewerActivity.this, MailEditorActivity.class);\n // Put message ID that this activity receive from InboxActivity\n replyMailIntent.putExtra(MailEditorActivity.KEY_REPLY,\n getIntent().getExtras().getInt(KEY_EXTRA));\n // Start the reply activity when this button is clicked\n startActivity(replyMailIntent);\n }",
"public void openScreenDetailsSmall(ContactDTO contact) {\n/*Generated! Do not modify!*/ replyDTO.setOpenParameter(contact);\n/*Generated! Do not modify!*/ replyDTO.setScreenToOpen(\"detailsSmall\");\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.OPEN_SCREEN, \"openScreenDetailsSmall(\", gson.toJson(contact), getClassName(contact));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(SuperScouting.this, MatchList.class);\n intent.putExtra(Constants.Intent_Extras.NEXT_PAGE, Constants.Intent_Extras.SUPER_SCOUTING);\n startActivity(intent);\n }",
"public void openScreenDetailsLarge(ContactDTO contact) {\n/*Generated! Do not modify!*/ replyDTO.setOpenParameter(contact);\n/*Generated! Do not modify!*/ replyDTO.setScreenToOpen(\"detailsLarge\");\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.OPEN_SCREEN, \"openScreenDetailsLarge(\", gson.toJson(contact), getClassName(contact));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(mContext, HelpDetails.class);\n intent.putExtra(\"hid\", item.getHelpId());\n mContext.startActivity(intent);\n\n\n // Toast.makeText(mContext, \"clicked\", Toast.LENGTH_SHORT).show();\n // Toast.makeText(mContext, \"\"+user_id, Toast.LENGTH_SHORT).show();\n\n }",
"public void sendToTrivia() {\n Intent intent = new Intent(getApplicationContext(), TriviaActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }",
"public void openScreenOverviewSmall() {\n/*Generated! Do not modify!*/ replyDTO.setScreenToOpen(\"overviewSmall\");\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.OPEN_SCREEN, \"openScreenOverviewSmall(\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(SuperScouting.this, SuperScouting.class);\n if (practice) {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, -1);\n } else {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, matchNumber - 1);\n }\n startActivity(intent);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(SuperScouting.this, SuperScouting.class);\n if (practice) {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, -1);\n } else {\n intent.putExtra(Constants.Intent_Extras.MATCH_NUMBER, matchNumber + 1);\n }\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n\n Intent intent=new Intent(context, Message_and_Dial.class);\n intent.putExtra(\"Contact Name\", contact.get(position).toString());\n intent.putExtra(\"Phone Number\", contact_num.get(position).toString());\n context.startActivity(intent);\n\n }",
"public void openScreenOverviewLarge() {\n/*Generated! Do not modify!*/ replyDTO.setScreenToOpen(\"overviewLarge\");\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.OPEN_SCREEN, \"openScreenOverviewLarge(\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"@Override\n public void onClick(View view) {\n Intent wannaGuess = new Intent(mContext, WannaGuessActivity.class);\n mContext.startActivity(wannaGuess);\n\n// Intent detailIntent = Game.starter(mContext, mCurrentSport.getTitle(),\n// mCurrentSport.getImageResource());\n\n\n //Start the detail activity\n// mContext.startActivity(detailIntent);\n\n //anoter ver\n\n // @Override\n// protected void onCreate(Bundle savedInstanceState) {\n// super.onCreate(savedInstanceState);\n// setContentView(R.layout.activity_main);\n//\n// //Find the view that shows the catch me category\n//// TextView catchMe = (TextView) findViewById(R.id.catch_me);\n//// catchMe.setOnClickListener(new View.OnClickListener() {\n//// @Override\n//// public void onClick(View v) {\n//// Intent catchMeIntent = new Intent(MainActivity.this, CatchMe.class);\n//// startActivity(catchMeIntent);\n//// }\n//// });\n//\n// }\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tintent = new Intent(SnaDetailsActivity.this,CommentActivity.class);\r\n\t\t\t\tintent.putExtra(\"stoid\", stoid);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + friend.getPhoneNo()));\n\n context.startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent detailIntent = Post.starter(mContext, mCurrentPost.getComment());\n\n //Start the detail activity\n mContext.startActivity(detailIntent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString number = listdata.get(position).getCallnumber();\n\t\t\t\tIntent detailsActInt = new Intent(MainActivity.this, ContactDetailsActivity.class);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_name\", contactname);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_number\", callnumber);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_call_id\", contact_call_id);\n\t\t\t\tstartActivity(detailsActInt);\n\t\t\t\t//addCommentDialog(number);\n\t\t\t}",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tUri uri = Uri.parse(\"smsto://08000000123\");\n\t\t\tIntent intent = new Intent(Intent.ACTION_SENDTO, uri);\n\t\t\tintent.putExtra(\"sms_body\", \"SMS message\");\n\t\t\tstartActivity(intent);\n\t\t}",
"@Override\n public void onClick(View v) {\n sendMessage(phone_from_intent);\n }",
"@Override\n public void onClick(View view){\n Intent goToList = new Intent(SPQ7Page.this,SPQuestionList.class );\n\n // Executes Intent object.\n startActivity(goToList);\n\n }",
"@Override\r\n public void onClick(View v) {\n profileClick(mFeedReplyList.get(pos));\r\n }",
"private void buttonNext (){\n Intent nextActivity = new Intent(Question_One.this, Question_two.class);\n nextActivity.putExtra(EXTRA_TEXT,scoreCounter);\n startActivity(nextActivity);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"\n\t\t\t\t\t\t+ phoneCode));\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.putExtra(\"isFirstInfo\", 1);\n\t\t\t\tintent.setClass(mContext, HelpActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Uri uri = Uri.parse(\"https://www.google.com/?gws_rd=ssl#q=\" + mAnswer.getWord());\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n }",
"private void showSendSMSActivity() {\n Uri uri = getIntent().getData();\n if (uri == null) {\n return;\n }\n\n // get phone number where to send the SMS\n String ssp = uri.getSchemeSpecificPart();\n String number = ContactsAccessHelper.normalizePhoneNumber(ssp);\n if (number.isEmpty()) {\n return;\n }\n\n // find person by phone number in contacts\n String person = null;\n ContactsAccessHelper db = ContactsAccessHelper.getInstance(this);\n Contact contact = db.getContact(this, number);\n if (contact != null) {\n person = contact.name;\n }\n\n // get SMS thread id by phone number\n int threadId = db.getSMSThreadIdByNumber(this, number);\n if (threadId >= 0) {\n // get the count of unread sms of the thread\n int unreadCount = db.getSMSMessagesUnreadCountByThreadId(this, threadId);\n\n // open thread's SMS conversation activity\n Bundle arguments = new Bundle();\n arguments.putInt(FragmentArguments.THREAD_ID, threadId);\n arguments.putInt(FragmentArguments.UNREAD_COUNT, unreadCount);\n arguments.putString(FragmentArguments.CONTACT_NUMBER, number);\n String title = (person != null ? person : number);\n CustomFragmentActivity.show(this, title, SMSConversationFragment.class, arguments);\n }\n\n // open SMS sending activity\n Bundle arguments = new Bundle();\n arguments.putString(FragmentArguments.CONTACT_NAME, person);\n arguments.putString(FragmentArguments.CONTACT_NUMBER, number);\n String title = getString(R.string.New_message);\n CustomFragmentActivity.show(this, title, SMSSendFragment.class, arguments);\n }",
"public void returnReply(){\n String title = titleView.getText().toString();\n String sDay = sDayView.getText().toString();\n String eDay = eDayView.getText().toString();\n String sTime = sTimeView.getText().toString();\n String eTime = eTimeView.getText().toString();\n String campus = campusView.getSelectedItem().toString();\n String building = buildingView.getSelectedItem().toString();\n String room = roomView.getText().toString();\n int cat = catView.getSelectedItemPosition();\n String note = noteView.getText().toString();\n\n Calendar idGen = Calendar.getInstance();\n int id;\n id = Long.valueOf(idGen.getTimeInMillis()).intValue(); //generate id based on time\n\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"data\", new Lecture(title, sDay, eDay, sTime, eTime, campus, building, room, cat, note, id)); //create new entry and send back as result\n setResult(RESULT_OK, returnIntent);\n finish();\n }",
"public void displayMsg (View v) {\n\n Intent i = new Intent (this, SecondActivity.class);\n startActivity(i);\n }",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1407\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getApplicationContext(), ChainInbox.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1071\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"public void onClick(View view) {\n\t\t\tsendSMSMessage(profile_silent,phoneNo);\n\t\t\tGoHome();\n }",
"public void buttonHintNext(View view) {\n //using finish to activity\n finish();\n\n //create a new object to start new activity\n Intent intent = new Intent(this, Hint.class);\n //pass object to startActivity\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent returnToPressHelp = new Intent(getApplicationContext(), PressHelp.class);\n startActivity(returnToPressHelp);\n\n\n //Tell the phone that the medication was taken.\n\n }",
"public void onClick(View view) {\n sendSMSMessage(profile_general,phoneNo);\n GoHome();\n }",
"@Override\r\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tIntent intent=new Intent(YanshoudanListActivity.this,CaptureActivity.class);\r\n\t\t\t\t\tstartActivityForResult(intent, QUERYACTIVITYCODE);\r\n\t\t\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1031\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:108\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:103\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t public void onClick(View v) {\n\t\tBundle bundle = new Bundle();\r\n\t\tbundle.putString(\"msgKind\", \"SMSLOG\");\r\n\t\tbundle.putStringArray(\"msgValue\", smsLogStr);\r\n\t\tIntent intent = new Intent(DisplayChoice.this, Display.class);\r\n\t\tintent.putExtras(bundle);\r\n\t\tstartActivity(intent);\r\n\t }",
"public void onClick(DialogInterface dialog, int which) {\n Intent nextScreen = new Intent(getApplicationContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n\n }",
"@Override\r\n\tpublic void onClick(View arg0) {\n\t\tIntent myobj=new Intent(Intent.ACTION_SENDTO,Uri.parse(\"smsto:\"+e2.getText().toString()));\r\n\t\tmyobj.putExtra(\"sms_body\",e1.getText().toString());\r\n\t\tstartActivity(myobj);\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:100\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tIntent intent=new Intent(MainActivity.this,NewSms.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tfinish();\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsmsDialog= new Comments();\n\t\t\t\tsmsDialog.show(getSupportFragmentManager(), \"sms\");\n\t\t\t}",
"private void SendSms()\n {\n try {\n Intent i = new Intent();\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"sms:\" + number[index])));\n startActivity(i);\n Toast.makeText(this, \"Option sms Chosen...\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcommentListSize = commentList.size();\n\t\t\t\tif(commentListSize != 0){\n\t\t\t\t\tcommentReplying = commentList.get(commentListSize - 1);\n\t\t\t\t\tstartActivity(openLecturerReply);\n\t\t\t\t}\n\t\t\t\t//setContentView(R.layout.activity_timetable__gui);\n\t\t\t}",
"public static void startReplyMeActivity(Context context, Intent intent) {\n\t\tintent.setClass(context, ReplyMeActivity.class);\n\t\tcontext.startActivity(intent);\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent callOnwerIntent = new Intent(Intent.ACTION_DIAL,\n Uri.parse(\"tel:\"+gym.getOwnerMobile().toString()));\n startActivity(callOnwerIntent);\n }",
"@Override\n public void onClick(View view) {\n String sms = \"FINDME location is \";\n if (LOCATION != null) {\n sms = sms + \"coordinates\" + \"*\" + LOCATION.latitude + \"*\" + LOCATION.longitude;\n }\n sendSms(\"0473848248\", sms);\n }",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:9753057542\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"public void viewScoreboard(){\n\n Intent intent = new Intent(this, DisplayScoreBoard.class);\n startActivity(intent);\n }",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1073\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\n public void onClick(View v) {\n\n Intent i = new Intent(OConnectBaseActivity.this, MessagingListActivity.class);\n startActivity(i);\n }",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:101\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1072\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcommentListSize = commentList.size();\n\t\t\t\tif(commentListSize > 1){\n\t\t\t\t\tcommentReplying = commentList.get(commentListSize - 2);\n\t\t\t\t\tstartActivity(openLecturerReply);\n\t\t\t\t}\n\t\t\t\t//setContentView(R.layout.activity_timetable__gui);\n\t\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:104\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1091\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(memberinfo.this,near_res.class);\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View view) {\n Intent hitsIntent = new Intent(Playlists.this, Playing_now.class);\n startActivity(hitsIntent);\n }",
"@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString ch=\"C++\";\r\n\t\t\t\t\t\t\t//MainActivity.this.finish();\r\n\t\t\t\t\t\t\tIntent ob=new Intent(Cplspls_Qu_page.this,Result.class);\r\n\t\t\t\t\t\t\tob.putExtra(\"SEND\", count);\r\n\t\t\t\t\t\t\tob.putExtra(\"PAGE_NAME\", ch);\r\n\t\t\t\t\t\t\tstartActivity(ob);\r\n\t\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent intent= new PlusShare.Builder(Glory.this)\n\t\t\t\t\t\t\t.setText(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")\n\t\t\t\t\t\t\t.setType(\"text/plain\")\n\t\t\t\t\t\t\t.setContentUrl(Uri.parse(\"https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal\"))\n\t\t\t\t\t\t\t.getIntent();\n\t\t\t\t\t\tstartActivityForResult(intent, 0);\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:102\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tUri uri = Uri.parse(\"tel:6581890\");\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_DIAL, uri);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(context, MeetingDetailActivity.class);\n intent.putExtra(MeetingDetailActivity.ARG_MEETING_ID, message.meetingId);\n context.startActivity(intent);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(context, MeetingDetailActivity.class);\n intent.putExtra(MeetingDetailActivity.ARG_MEETING_ID, message.meetingId);\n context.startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.putExtra(\"actid\", actid);\n\t\t\t\tintent.setClass(Activity_detail.this, BaoMing.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public void myScorecardPressed(View view) {\n\n Intent myScorecardIntent = new Intent(AllChannelListActivity.this, MyScorecardChannelActivity.class);\n\n myScorecardIntent.putExtra(\"userName\", userName);\n startActivity(myScorecardIntent);\n\n finish();\n }",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tIntent intent = new Intent(NearActivity.this, NearListActivity2.class);\r\n\t\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\t}",
"public void clickRS(View view) {\n Intent i = new Intent(this,RS.class);\n startActivity(i);\n\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, CommentActivity.class);\n intent.putExtra(\"comment_id\", String.valueOf(comments.get(pos).getId()));\n intent.putExtra(\"idc\", comments.get(pos).getId());\n intent.putExtra(\"content \",comments.get(pos).getDescription());\n context.startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\n\t\t\t\tcallIntent.setData(Uri.parse(\"tel:\" + getIntent().getLongExtra(\"phone\", 0)));\n\t\t\t\tstartActivity(callIntent);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i_Alert = new Intent(AndroidExamples.this, RssActivity.class);\n\t\t\t\tstartActivity(i_Alert);\n\t\t\t}",
"@Override\n public void onClick(View v)\n {\n\n Intent intent = new Intent (getApplicationContext(), Leaderboard.class);\n startActivity(intent);\n finish();\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context ,commentshow.class);\n context.startActivity(intent);\n\n\n }",
"private void navigateToConversationsActivity() {\n startActivity(this.conversationsIntent);\n }",
"public void intentForQuestion4 (View view){\n Intent question4 = new Intent(android.content.Intent.ACTION_VIEW,\n Uri.parse(\"https://www.google.pl/maps/place/Cape+Canaveral+Air+Force+Station/@28.4880013,-80.5730528,1691m/data=!3m1!1e3!4m5!3m4!1s0x88e0a4e74e6a8abb:0x2a16683cb4a44f!8m2!3d28.4886723!4d-80.5728241\"));\n startActivity(question4);\n }",
"public void LocateClick(View view){\n startActivity(new Intent(this,locateKNUST.class));\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent suggestionsActivity = new Intent(HomeActivity.this,SuggetionsActivity.class);\n\t\t\t\tstartActivity(suggestionsActivity);\n\t\t\t}",
"private void proceed() {\n finish();\n Intent onReturnView = new Intent(ChatMessage.this, MainActivity.class);\n startActivity(onReturnView);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, ChatActivity.class);\n intent.putExtra(\"hisUid\", post.getRequester_UID());\n intent.putExtra(\"requestPost\", post);\n intent.putExtra(\"cplatformPost\", postData);\n context.startActivity(intent);\n activity.finish();\n }",
"public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent(Hole9V2.this, roundFinishNine.class);\n Bundle b = new Bundle();\n b.putString(\"nine\", \"back\");\n\n intent.putExtras(b); //Put your id to your next Intent\n startActivity(intent);\n\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) \n\t\t\t\t\t{\n\t\t\t\t\t\tString url = \"https://www.facebook.com/dialog/feed?app_id=1507764116109075&\" +\n\t\t\t\t\t\t\t\t \t \"link=https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal&\" +\n\t\t\t\t\t\t\t\t \t \"caption=GuessIn&\" +\n\t\t\t\t\t\t\t\t \t \"description=\"+Uri.parse(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")+\n\t\t\t\t\t\t\t\t \t \"&redirect_uri=https://www.facebook.com/connect/login_success.html\"+\n\t\t\t\t\t\t\t\t \t \"&picture=http://nfnlabs.in/wp-content/uploads/2014/06/Share%20Image.png\";\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tintent.setData(Uri.parse(url));\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/cchat.html\");\n \t\t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tString url = \"https://twitter.com/intent/tweet?text=My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out Guessin by @nfnlabs:&url=\"+Uri.parse(\"http://goo.gl/CGmGEx\");\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tUri uri=Uri.parse(url);\n\t\t\t\t\t\tintent.setData(uri);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}",
"@Override\n public void onResponse(Call<JsonObject> call, Response<JsonObject> response) {\n Intent intent = new Intent(QuestionActivity.this, QuestionSuccessActivity.class);\n startActivity(intent);\n ((Activity)context).finish();\n progressDialog.dismiss();\n\n }",
"public void btnHelpClick(){\n try {\n String Tag = TAG + \"-BtnHelp\";\n // Get number\n String number = getMyPhoneNO();\n ReceiveMessageThread receiveMessageThread;\n // Mount the message to be sent\n String msg = \"*SOS*;Number:\" + number + \";\";\n Log.i(Tag, msg);\n // Show message to user\n showProgressDialog(\"Sending distress message...\");\n // Disable Help Button\n btn_help.setEnabled(false);\n // Start thread to send message\n receiveMessageThread = new ReceiveMessageThread(msgHandler, msg);\n receiveMessageThread.start();\n }\n catch (Exception e){\n Log.i(TAG , \"Caught this exception: \" + e.getMessage());\n }\n }",
"@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(BoilerRoom.this, ScanQR.class);\n //intent.putExtra( \"id\", tvmechID.getText().toString() );\n startActivity(intent);\n }",
"public void sendmessage(View v){\n \tIntent intent =new Intent();//意图\n \tintent.setAction(Intent.ACTION_SENDTO);//设置发短信意图\n \tintent.setData(Uri.parse(\"smsto:\"+1358752546));//设置拨号的信息\n \t//问题:怎么不能用11位电话号码\n \tString message=\"我是水哥,有妹子么\";\n \tintent.putExtra(\"sms_body\", message);\n \tstartActivity(intent);//开启意图\t \n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent ikhan_yunis = new Intent(man_lamar.this,man_khan_yunis.class);\n\t\t\t\tstartActivity(ikhan_yunis);\n\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\tUri uri=Uri.parse(\"tel:\"+ mPhone.getText()); //拨打电话号码的URI格式\n\t\t\t\t\tIntent it=new Intent(); //实例化Intent\n\t\t\t\t\tit.setAction(Intent.ACTION_CALL); //指定Action\n\t\t\t\t\tit.setData(uri); //设置数据\n\t\t\t\t\tstartActivity(it);//启动Acitivity\n\t\t\t\t}",
"public void onClick(DialogInterface dialog,int id) {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n /* Fill in correct activity once class name is known\n Intent intent = new Intent(context, ResultsActivity.class);\n startActivity(intent);\n */\n }\n }, 50);\n }",
"@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }",
"public void Riesgos_interno_quintana (View view){\n Intent intent = new Intent(this, quintanaroo_id_riesgo_interno.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent Getintent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://feedback.avriant.com\"));\n startActivity(Getintent);\n }",
"@Override\n\tprotected void positiveResult(String command) {\n\t\tstartActivity(new Intent(this, FifthActivity.class));\n\t}",
"@Override\n\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\tIntent i = new Intent(view.getContext(), OpenNote.class);\n\t\t\t\t\ti.putExtra(\"ID\", lyrics.get(getBindingAdapterPosition()).getID());\n\t\t\t\t\tview.getContext().startActivity(i);\n\t\t\t\t}",
"@Override\n public void onClick(WearableListView.ViewHolder viewHolder) {\n Intent intent;\n switch(messageType) {\n case 0: intent = new Intent(this, DrawingActivity.class);\n intent.putExtra(BTCommType.SEND_TO_CONTACT.toString(), choices.get(viewHolder.getPosition()));\n startActivity(intent);\n this.finish();\n break;\n case 1: intent = new Intent(this, EmojiListActivity.class);\n intent.putExtra(BTCommType.SEND_TO_CONTACT.toString(), choices.get(viewHolder.getPosition()));\n startActivity(intent);\n this.finish();\n break;\n case 2:\n DataMap dataMap = new DataMap();\n contact = choices.get(viewHolder.getPosition());\n dataMap.putString(\"convid\", contact);\n messagePhone(BTCommType.GET_DRAWINGS.toString(), dataMap.toByteArray());\n }\n\n }",
"public void clickRS(View view) {\n Intent i = new Intent(this,RS.class);\n startActivity(i);\n }"
] |
[
"0.6427092",
"0.589986",
"0.57408214",
"0.56974673",
"0.56451744",
"0.5614447",
"0.5581406",
"0.5555131",
"0.5509728",
"0.5479703",
"0.54703933",
"0.54276764",
"0.5349837",
"0.53010577",
"0.52924687",
"0.52762717",
"0.5249224",
"0.5247378",
"0.5242783",
"0.5242206",
"0.52357054",
"0.52343",
"0.5232112",
"0.522292",
"0.5221755",
"0.5216011",
"0.5205577",
"0.5204391",
"0.51987183",
"0.5187435",
"0.5180496",
"0.51801616",
"0.5178332",
"0.51774037",
"0.5175564",
"0.51725334",
"0.5171893",
"0.5169936",
"0.51673293",
"0.5160365",
"0.51579523",
"0.515381",
"0.5150596",
"0.51492816",
"0.51483685",
"0.514406",
"0.51437175",
"0.5141162",
"0.51392245",
"0.5138043",
"0.51375836",
"0.513296",
"0.5132303",
"0.5129273",
"0.5124",
"0.5119575",
"0.5119325",
"0.51139784",
"0.5113583",
"0.5106714",
"0.51024705",
"0.5080433",
"0.5073194",
"0.5073158",
"0.50641084",
"0.5058949",
"0.5058949",
"0.5053286",
"0.5051507",
"0.50460106",
"0.5038972",
"0.5037642",
"0.50366104",
"0.50319237",
"0.5031459",
"0.50301594",
"0.5024783",
"0.5024399",
"0.5022459",
"0.5021437",
"0.50187594",
"0.5017437",
"0.5015037",
"0.50146544",
"0.5014104",
"0.50051606",
"0.50005186",
"0.49953136",
"0.49866658",
"0.49827027",
"0.4972842",
"0.49725708",
"0.49721092",
"0.49692",
"0.4967325",
"0.496719",
"0.4966162",
"0.49654716",
"0.49585703",
"0.49580792"
] |
0.7048732
|
0
|
TODO Autogenerated method stub
|
@Override
public void onItemClick(int position) {
mViewPager.setCurrentItem(position);
}
|
{
"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 int getViewId() {
return R.layout.layout_square_live;
}
|
{
"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 rightNavClick() {
}
|
{
"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 onDestroy() {
if (timerTask!=null) {
timerTask.cancel();
timerTask = null;
}
if (timer!=null) {
timer.cancel();
timer = null;
}
super.onDestroy();
}
|
{
"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 ToastUtils.showMyToast(e.getLocalizedMessage());
|
@Override
public void onCallback(Exception e) {
fragment.refreshComplete();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\t ToastUtils.showCustomToast(e.getLocalizedMessage());\n\t\t\t}",
"@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\t ToastUtils.showCustomToast(e.getLocalizedMessage());\n\t\t\t}",
"@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\t ToastUtils.showCustomToast(e.getLocalizedMessage());\n\t\t\t}",
"@Override\n public void onFailure(@NonNull Exception e) {\n showToast(\"ERROR\", Color.RED);\n e.printStackTrace();\n }",
"@Override\n public void onFailure(Throwable t) {\n Toast.makeText(context, t.getMessage(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onFailure(Throwable t) {\n Toast.makeText(context, t.getMessage(), Toast.LENGTH_LONG).show();\n }",
"private void showErrorToast() {\n }",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tMaterialToast.fireToast(caught.getMessage());\n\t\t\t}",
"@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Uh-oh! something went wrong, please try again.\",Toast.LENGTH_SHORT).show();\n }",
"private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }",
"private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"\"+e.getMessage(),Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onError(Throwable e) {\n Log.e(TAG, e.getMessage());\n _view.showMessage(R.string.msg_erro);\n }",
"void onMessageToast(String string);",
"@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onError(ErrorObject error) {\n showToast(error.getErrorMessage());\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n\n Toast.makeText(CreateNoteActivity.this, \"\" + e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\r\n\t\t\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"등록완료\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\r\n\t\t\t\t\t \r\n\t\t\t}",
"@Override\r\n\t\t\t\t\t\tpublic void failed(final String message) {\n\t\t\t\t\t\t\tact.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tact.showToast(message);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\t\tpublic void failed(final String message) {\n\t\t\t\t\t\t\tact.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tact.showToast(message);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t}",
"private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }",
"@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }",
"public void loadToast(){\n Toast.makeText(getApplicationContext(), \"Could not find city\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void gotCategoriesError(String message) {\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }",
"void showToast(String message);",
"void showToast(String message);",
"public void ErrorToast(IllegalArgumentException exception) {\n Toast.makeText(this, exception.getMessage(), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void gotCategoriesError(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }",
"public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}",
"@Override\n public void e(String TAG, String msg) {\n }",
"protected void toast() {\n }",
"@Override\n public void onError(ErrorObject error) {\n showToast(error.getErrorMessage());\n }",
"private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"public void toastError(String mensagem){\n\n Context context = getApplicationContext();\n CharSequence text = mensagem;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n\n View view = toast.getView();\n\n //Obtém o plano de fundo oval real do Toast e, em seguida, define o filtro de cores\n view.getBackground().setColorFilter(getResources().getColor(R.color.colorError), PorterDuff.Mode.SRC_IN);\n\n //Obtém o TextView do Toast para que ele possa ser editado\n TextView newText = view.findViewById(android.R.id.message);\n newText.setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n newText.setTextColor(getResources().getColor(R.color.colorWhite));\n\n toast.show();\n\n }",
"public void yell(String message){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onError(UiError e) {\n Log.v(\"onError: \" + e.errorMessage, \"e\");\n }",
"private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }",
"public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }",
"private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }",
"private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }",
"@Override\n\t\t\tpublic void onFailed(String str) {\n\t\t\t\tToast.makeText(MainActivity.this, str, Toast.LENGTH_LONG).show();\n\t\t\t}",
"public void onToast (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tdoToast ();\r\n\t}",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onError(UiError e) {\n Util.toastMessage(QZoneShareActivity.this, \"onError: \" + e.errorMessage, \"e\");\n }",
"protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}",
"public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product added to cart\",Toast.LENGTH_LONG);\n // show method call to show Toast message\n toast.show();\n\n // create handler to set duration for toast message\n Handler handler = new Handler() {\n\n @Override\n public void close() {\n // set duration for toast message\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }\n @Override\n public void flush() {}\n\n @Override\n public void publish(LogRecord record) {}\n };\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tToast.makeText(mInflatedView.getContext(),\n\t\t\t\t\t\t\t\t\t\"Error Mal\" + e.getMessage(),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}",
"private void showToast(String msg) {\r\n Toast.makeText(Imprimir.this, msg, Toast.LENGTH_LONG).show();\r\n }",
"private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(String message) {\n Toast.makeText(getLayoutInflater().getContext(), message, Toast.LENGTH_SHORT).show();\n }",
"public void displayToast(String message) {\n //Todo: Add Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show(); to @displayToast method\n Log.d(TAG, message);\n }",
"private void showErrorToast(String message) {\n Toast.makeText(CreateAccountActivity.this, message, Toast.LENGTH_LONG).show();\n }",
"private void showErrorToast(String message) {\n Toast.makeText(CreateAccountActivity.this, message, Toast.LENGTH_LONG).show();\n }",
"public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }",
"private void toastMessage(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n }",
"public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }",
"private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n AppUtil.displaySingleActionAlert(mContext, getString(R.string.title), getString(R.string.error_msg) + \"(ERR-635)\", getString(R.string.ok));\n }",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }",
"public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n protected void onGetDataFailed(String message) {\n Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void showError(Throwable throwable) {\n Toasts.show(throwable.getMessage());\n }",
"public void errorMessage(String CustomErrorMessage){\n Toast toast = Toast.makeText(this, CustomErrorMessage, Toast.LENGTH_SHORT);\n TextView v = (TextView) toast.getView().findViewById(android.R.id.message);\n if( v != null) v.setGravity(Gravity.CENTER);\n toast.show();\n\n return;\n }",
"@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }",
"public static void toastText(Context context, String s)\n\t{\n\t\tif(Utils.ConstantVars.canToastDebugText) \n\t\t\tToast.makeText(context, s, 2 * Toast.LENGTH_LONG).show();\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplication(), \"right\", 1).show();\r\n\t\t\t}",
"@Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n Toast.makeText(TesteMqtt.this, \"ERRO\", Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"模块开发中,敬请期待\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}",
"static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }",
"private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }",
"private void cancelToast() {\n\t\tToast.makeText(getActivity(),\n\t\t\t\t\t\"Vorgang abgebrochen\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}",
"public static void displayToast(Context context, String msg) {\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n\n }",
"@Override\n public void gotIngredientsError(String message) {\n Toast toast = Toast.makeText(this, message, Toast.LENGTH_SHORT);\n toast.show();\n }",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n\tpublic void createToast(String slogan, float duration) {\n\t\tif (Gdx.app.getType() == ApplicationType.Android) {\n\t\t\tgGame.iFunctions.createToast(slogan, duration);\n\t\t} else\n\t\tsuper.createToast(slogan, duration);\n\t}",
"public void showToastMessage(String str) {\n Toast.makeText(self, str, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }",
"void showToast(String value);",
"public void toast(String message) {\n Toast.makeText(mContext, message, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(mContext, error.getMessage(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(mContext, error.getMessage(), Toast.LENGTH_LONG).show();\n }",
"private void showToast(final String message, final int toastLength) {\n post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), message, toastLength).show();\n }\n });\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n dialog.dismiss();\n //Display err toast msg\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();\n }",
"public void cT(String s) { \r\n\t\tToast.makeText(this, s, Toast.LENGTH_SHORT).show();\r\n\t}",
"@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }",
"public void onError(Exception error) {\n Toast.makeText(getApplicationContext(),\n error.getMessage(),\n Toast.LENGTH_LONG\n ).show();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmsg();\n\t\t\t}",
"public void showToast(View view) {\n // Initialize an object named 'toast' using the 'Toast' class\n Toast toast = Toast.makeText(this, R.string.toast_message, Toast.LENGTH_SHORT);\n\n // Use the method 'show()' under the 'Toast' class to show a message\n toast.show();\n }",
"@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }",
"private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}",
"public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }"
] |
[
"0.77303106",
"0.77303106",
"0.77303106",
"0.7236297",
"0.70881593",
"0.70879096",
"0.69903",
"0.69186294",
"0.67032796",
"0.6677052",
"0.66751105",
"0.66638976",
"0.6660971",
"0.66596824",
"0.6650699",
"0.6646778",
"0.66296744",
"0.6563662",
"0.6559429",
"0.6547665",
"0.65472305",
"0.65472305",
"0.651705",
"0.64958125",
"0.6483222",
"0.64683074",
"0.6452569",
"0.6452569",
"0.64423114",
"0.64366597",
"0.64287764",
"0.6419914",
"0.64166",
"0.64166",
"0.64166",
"0.6379746",
"0.63768226",
"0.63719285",
"0.63686335",
"0.63684773",
"0.6365736",
"0.63639736",
"0.6353357",
"0.63321483",
"0.6319895",
"0.63149613",
"0.63149613",
"0.6306752",
"0.62971294",
"0.629598",
"0.629598",
"0.62953913",
"0.62658334",
"0.6263651",
"0.62445796",
"0.62122774",
"0.6210979",
"0.6207757",
"0.6198966",
"0.6197796",
"0.6197796",
"0.61900157",
"0.61837715",
"0.6182371",
"0.61817014",
"0.61816907",
"0.6146967",
"0.6142984",
"0.6141808",
"0.6136152",
"0.6114045",
"0.611381",
"0.6112691",
"0.61117965",
"0.60958546",
"0.60673875",
"0.6062731",
"0.6061845",
"0.6060548",
"0.60491115",
"0.60421836",
"0.6041847",
"0.6041811",
"0.6035552",
"0.60236186",
"0.60091126",
"0.60089606",
"0.60058045",
"0.60057336",
"0.60034746",
"0.60034746",
"0.60033965",
"0.59944385",
"0.59755534",
"0.5973434",
"0.59726125",
"0.596877",
"0.59680665",
"0.59677386",
"0.5957945",
"0.59542507"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@SuppressWarnings("unchecked")
@Override
public void onCallback(String result) {
LogUtils.i(result);
fragment.refreshComplete();
isCompleteQuery = true;
Type type = new TypeToken<ArrayList<SquareLiveChatModel>>() {
}.getType();
ArrayList<SquareLiveChatModel> tempSquareLiveChatModels = (ArrayList<SquareLiveChatModel>) GsonUtils.jsonToList(result, type);
boolean isComplete = false;
if (!isRefresh) {//上拉加载更多
if (tempSquareLiveChatModels.size()<Constant.pageNum10) {
isComplete = true;
}
liveModels.addAll(tempSquareLiveChatModels);
if (liveMaxChatId==0) {
//获取最大chatId
obtainLiveMaxChatId();
}
} else {
// if (tempSquareLiveChatModels!=null && tempSquareLiveChatModels.size()>0) {
// liveModels.addAll(0, tempSquareLiveChatModels);
// }
//读取最新数据时,会把置顶的消息也传过来,1、首先清理已经存储数据中置顶的消息,2、把查询的数据添加到已经处理过后的数据中
//清理置顶数据
removeTopDataFromLiveModels();
//合并最新的数据
liveModels.addAll(0, tempSquareLiveChatModels);
//获取最大chatId
obtainLiveMaxChatId();
}
fragment.updateContentData(liveModels, isRefresh,isComplete);
if (timer == null) {
initTimerTask();
}
}
|
{
"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
|
protected void obtainLiveMaxChatId() {
for (int i = 0; i < liveModels.size();i++) {
SquareLiveChatModel squareLiveChatModel = liveModels.get(i);
if (squareLiveChatModel.getIsTop() == 0) {//置顶
long tempLiveMaxChatId = squareLiveChatModel.getChatId();
if (tempLiveMaxChatId>liveMaxChatId) {
liveMaxChatId = tempLiveMaxChatId;
}
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
|
TODO Autogenerated method stub
|
protected void removeTopDataFromLiveModels() {
for (int i = 0; i < liveModels.size();) {
SquareLiveChatModel squareLiveChatModel = liveModels.get(i);
if (squareLiveChatModel.getIsTop() == 1) {//置顶
liveModels.remove(i);
} else {
i++;
}
}
}
|
{
"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
|
private void squareLiveDetailChatRequest(final LiaotianFragment fragment,
final boolean isRefresh, long chatId) {
BaseRequest baseRequest = new BaseRequest();// 其它参数需要继承此类
// baseRequest.requestMethod = "get";//默认为get
// 请求地址
String requestID;
if (isRefresh) {//刷新
requestID = String.format(
Constant.RequestContstants.Request_Live_detail_chat_down_List, squareLiveModel.getArticleId(), chatId);
} else {
requestID = String.format(
Constant.RequestContstants.Request_Live_detail_chat_up_List, Constant.pageNum10, squareLiveModel.getArticleId(), chatId);
}
chatAsyncTask = doAsync(false, requestID, baseRequest, new Callback<Exception>() {
@Override
public void onCallback(Exception e) {
// TODO Auto-generated method stub
// ToastUtils.showMyToast(e.getLocalizedMessage());
fragment.refreshComplete();
}
}, new Callback<String>() {
@SuppressWarnings("unchecked")
@Override
public void onCallback(String result) {
// TODO Auto-generated method stub
LogUtils.i(result);
fragment.refreshComplete();
isCompleteQuery = true;
Type type = new TypeToken<ArrayList<SquareLiveChatModel>>() {
}.getType();
ArrayList<SquareLiveChatModel> tempSquareLiveChatModels = (ArrayList<SquareLiveChatModel>) GsonUtils.jsonToList(result, type);
boolean isComplete = false;
if (!isRefresh) {//上拉加载更多
if (tempSquareLiveChatModels.size()<Constant.pageNum10) {
isComplete = true;
}
chatModels.addAll(tempSquareLiveChatModels);
} else {//下拉刷新、加载未读数据
if (tempSquareLiveChatModels!=null && tempSquareLiveChatModels.size()>0) {
chatModels.addAll(0, tempSquareLiveChatModels);
}
}
fragment.updateContentData(chatModels, isRefresh,isComplete);
if (timer == null) {
initTimerTask();
}
}
});
}
|
{
"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 ToastUtils.showMyToast(e.getLocalizedMessage());
|
@Override
public void onCallback(Exception e) {
fragment.refreshComplete();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\t ToastUtils.showCustomToast(e.getLocalizedMessage());\n\t\t\t}",
"@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\t ToastUtils.showCustomToast(e.getLocalizedMessage());\n\t\t\t}",
"@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\t ToastUtils.showCustomToast(e.getLocalizedMessage());\n\t\t\t}",
"@Override\n public void onFailure(@NonNull Exception e) {\n showToast(\"ERROR\", Color.RED);\n e.printStackTrace();\n }",
"@Override\n public void onFailure(Throwable t) {\n Toast.makeText(context, t.getMessage(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onFailure(Throwable t) {\n Toast.makeText(context, t.getMessage(), Toast.LENGTH_LONG).show();\n }",
"private void showErrorToast() {\n }",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tMaterialToast.fireToast(caught.getMessage());\n\t\t\t}",
"@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Uh-oh! something went wrong, please try again.\",Toast.LENGTH_SHORT).show();\n }",
"private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }",
"private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"\"+e.getMessage(),Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onError(Throwable e) {\n Log.e(TAG, e.getMessage());\n _view.showMessage(R.string.msg_erro);\n }",
"void onMessageToast(String string);",
"@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onError(ErrorObject error) {\n showToast(error.getErrorMessage());\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n\n Toast.makeText(CreateNoteActivity.this, \"\" + e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\r\n\t\t\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"등록완료\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\r\n\t\t\t\t\t \r\n\t\t\t}",
"@Override\r\n\t\t\t\t\t\tpublic void failed(final String message) {\n\t\t\t\t\t\t\tact.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tact.showToast(message);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\t\tpublic void failed(final String message) {\n\t\t\t\t\t\t\tact.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tact.showToast(message);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t}",
"private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }",
"@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }",
"public void loadToast(){\n Toast.makeText(getApplicationContext(), \"Could not find city\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void gotCategoriesError(String message) {\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }",
"void showToast(String message);",
"void showToast(String message);",
"public void ErrorToast(IllegalArgumentException exception) {\n Toast.makeText(this, exception.getMessage(), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void gotCategoriesError(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }",
"public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }",
"public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}",
"@Override\n public void e(String TAG, String msg) {\n }",
"protected void toast() {\n }",
"private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onError(ErrorObject error) {\n showToast(error.getErrorMessage());\n }",
"public void toastError(String mensagem){\n\n Context context = getApplicationContext();\n CharSequence text = mensagem;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n\n View view = toast.getView();\n\n //Obtém o plano de fundo oval real do Toast e, em seguida, define o filtro de cores\n view.getBackground().setColorFilter(getResources().getColor(R.color.colorError), PorterDuff.Mode.SRC_IN);\n\n //Obtém o TextView do Toast para que ele possa ser editado\n TextView newText = view.findViewById(android.R.id.message);\n newText.setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n newText.setTextColor(getResources().getColor(R.color.colorWhite));\n\n toast.show();\n\n }",
"public void yell(String message){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onError(UiError e) {\n Log.v(\"onError: \" + e.errorMessage, \"e\");\n }",
"private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }",
"public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }",
"private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }",
"private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }",
"@Override\n\t\t\tpublic void onFailed(String str) {\n\t\t\t\tToast.makeText(MainActivity.this, str, Toast.LENGTH_LONG).show();\n\t\t\t}",
"public void onToast (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tdoToast ();\r\n\t}",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onError(UiError e) {\n Util.toastMessage(QZoneShareActivity.this, \"onError: \" + e.errorMessage, \"e\");\n }",
"protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}",
"public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product added to cart\",Toast.LENGTH_LONG);\n // show method call to show Toast message\n toast.show();\n\n // create handler to set duration for toast message\n Handler handler = new Handler() {\n\n @Override\n public void close() {\n // set duration for toast message\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }\n @Override\n public void flush() {}\n\n @Override\n public void publish(LogRecord record) {}\n };\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tToast.makeText(mInflatedView.getContext(),\n\t\t\t\t\t\t\t\t\t\"Error Mal\" + e.getMessage(),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}",
"private void showToast(String msg) {\r\n Toast.makeText(Imprimir.this, msg, Toast.LENGTH_LONG).show();\r\n }",
"private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(String message) {\n Toast.makeText(getLayoutInflater().getContext(), message, Toast.LENGTH_SHORT).show();\n }",
"public void displayToast(String message) {\n //Todo: Add Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show(); to @displayToast method\n Log.d(TAG, message);\n }",
"private void showErrorToast(String message) {\n Toast.makeText(CreateAccountActivity.this, message, Toast.LENGTH_LONG).show();\n }",
"private void showErrorToast(String message) {\n Toast.makeText(CreateAccountActivity.this, message, Toast.LENGTH_LONG).show();\n }",
"public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }",
"private void toastMessage(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n }",
"public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }",
"private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n AppUtil.displaySingleActionAlert(mContext, getString(R.string.title), getString(R.string.error_msg) + \"(ERR-635)\", getString(R.string.ok));\n }",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }",
"public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n protected void onGetDataFailed(String message) {\n Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show();\n }",
"public void errorMessage(String CustomErrorMessage){\n Toast toast = Toast.makeText(this, CustomErrorMessage, Toast.LENGTH_SHORT);\n TextView v = (TextView) toast.getView().findViewById(android.R.id.message);\n if( v != null) v.setGravity(Gravity.CENTER);\n toast.show();\n\n return;\n }",
"@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }",
"@Override\n public void showError(Throwable throwable) {\n Toasts.show(throwable.getMessage());\n }",
"public static void toastText(Context context, String s)\n\t{\n\t\tif(Utils.ConstantVars.canToastDebugText) \n\t\t\tToast.makeText(context, s, 2 * Toast.LENGTH_LONG).show();\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplication(), \"right\", 1).show();\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"模块开发中,敬请期待\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}",
"@Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n Toast.makeText(TesteMqtt.this, \"ERRO\", Toast.LENGTH_SHORT).show();\n }",
"static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }",
"private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }",
"private void cancelToast() {\n\t\tToast.makeText(getActivity(),\n\t\t\t\t\t\"Vorgang abgebrochen\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}",
"@Override\n public void gotIngredientsError(String message) {\n Toast toast = Toast.makeText(this, message, Toast.LENGTH_SHORT);\n toast.show();\n }",
"public static void displayToast(Context context, String msg) {\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n\n }",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n\tpublic void createToast(String slogan, float duration) {\n\t\tif (Gdx.app.getType() == ApplicationType.Android) {\n\t\t\tgGame.iFunctions.createToast(slogan, duration);\n\t\t} else\n\t\tsuper.createToast(slogan, duration);\n\t}",
"@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }",
"public void showToastMessage(String str) {\n Toast.makeText(self, str, Toast.LENGTH_SHORT).show();\n }",
"void showToast(String value);",
"public void toast(String message) {\n Toast.makeText(mContext, message, Toast.LENGTH_LONG).show();\n }",
"private void showToast(final String message, final int toastLength) {\n post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), message, toastLength).show();\n }\n });\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(mContext, error.getMessage(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(mContext, error.getMessage(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n dialog.dismiss();\n //Display err toast msg\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }",
"public void cT(String s) { \r\n\t\tToast.makeText(this, s, Toast.LENGTH_SHORT).show();\r\n\t}",
"public void onError(Exception error) {\n Toast.makeText(getApplicationContext(),\n error.getMessage(),\n Toast.LENGTH_LONG\n ).show();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmsg();\n\t\t\t}",
"@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }",
"public void showToast(View view) {\n // Initialize an object named 'toast' using the 'Toast' class\n Toast toast = Toast.makeText(this, R.string.toast_message, Toast.LENGTH_SHORT);\n\n // Use the method 'show()' under the 'Toast' class to show a message\n toast.show();\n }",
"private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}",
"public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }"
] |
[
"0.7730195",
"0.7730195",
"0.7730195",
"0.7235426",
"0.7087556",
"0.70874023",
"0.69886005",
"0.6917642",
"0.6702825",
"0.66768456",
"0.6674517",
"0.66637546",
"0.66613925",
"0.6659124",
"0.66497463",
"0.6647045",
"0.6629191",
"0.65622276",
"0.65591633",
"0.6549591",
"0.6546094",
"0.6546094",
"0.6516284",
"0.64962476",
"0.64826584",
"0.64678234",
"0.64512885",
"0.64512885",
"0.6440411",
"0.6436142",
"0.64276904",
"0.6418945",
"0.6415665",
"0.6415665",
"0.6415665",
"0.63784796",
"0.6377546",
"0.6372049",
"0.63677883",
"0.63670623",
"0.6365187",
"0.6363658",
"0.6353185",
"0.63312316",
"0.63192457",
"0.6314049",
"0.6314049",
"0.6306435",
"0.629691",
"0.62950015",
"0.62950015",
"0.6293974",
"0.6264338",
"0.626433",
"0.6243026",
"0.62118167",
"0.62094486",
"0.62062836",
"0.61980003",
"0.61955404",
"0.61955404",
"0.6188814",
"0.6182851",
"0.6180849",
"0.61805594",
"0.6180229",
"0.61465967",
"0.6143123",
"0.61416936",
"0.61347526",
"0.61145425",
"0.6113396",
"0.6112275",
"0.6112194",
"0.6094642",
"0.6068573",
"0.60634464",
"0.6062447",
"0.6059586",
"0.6048954",
"0.6042006",
"0.6041096",
"0.6040801",
"0.6035242",
"0.6024965",
"0.6009773",
"0.600829",
"0.6004459",
"0.60041153",
"0.60032576",
"0.6002665",
"0.6002665",
"0.5994564",
"0.59742177",
"0.5973363",
"0.5971205",
"0.5969954",
"0.59677184",
"0.5966383",
"0.5957026",
"0.59550476"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@SuppressWarnings("unchecked")
@Override
public void onCallback(String result) {
LogUtils.i(result);
fragment.refreshComplete();
isCompleteQuery = true;
Type type = new TypeToken<ArrayList<SquareLiveChatModel>>() {
}.getType();
ArrayList<SquareLiveChatModel> tempSquareLiveChatModels = (ArrayList<SquareLiveChatModel>) GsonUtils.jsonToList(result, type);
boolean isComplete = false;
if (!isRefresh) {//上拉加载更多
if (tempSquareLiveChatModels.size()<Constant.pageNum10) {
isComplete = true;
}
chatModels.addAll(tempSquareLiveChatModels);
} else {//下拉刷新、加载未读数据
if (tempSquareLiveChatModels!=null && tempSquareLiveChatModels.size()>0) {
chatModels.addAll(0, tempSquareLiveChatModels);
}
}
fragment.updateContentData(chatModels, isRefresh,isComplete);
if (timer == null) {
initTimerTask();
}
}
|
{
"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 onCallback(Exception e) {
ToastUtils.showCustomToast(e.getLocalizedMessage());
}
|
{
"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 onCallback(Exception e) {
ToastUtils.showCustomToast(e.getLocalizedMessage());
}
|
{
"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
|
@SuppressWarnings("unchecked")
@Override
public void onCallback(String result) {
LogUtils.i(result);
QiNiuTokenModel qiNiuTokenModel = (QiNiuTokenModel) GsonUtils.jsonToBean(result, QiNiuTokenModel.class);
//获取到 token 时,调用七牛接口把数据上传到七牛服务器
uploadAudio(qiNiuTokenModel);
}
|
{
"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 onCallback(Exception e) {
ToastUtils.showCustomToast(e.getLocalizedMessage());
}
|
{
"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
|
private SquareLiveChatModel initLiveChatModel() {
SquareLiveChatModel squareLiveChatModel = new SquareModel().new SquareLiveChatModel();
squareLiveChatModel.setArticleId(squareLiveModel.getArticleId());
squareLiveChatModel.setChatContent(null);
squareLiveChatModel.setUserId(dataManager.userModel.UserId);
squareLiveChatModel.setUserRole(userRole);
squareLiveChatModel.setParentId(0);
squareLiveChatModel.setUserAvatar(dataManager.userModel.Avatar);
squareLiveChatModel.setUserNickName(dataManager.userModel.NickName);
return squareLiveChatModel;
}
|
{
"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
|
Instantiates a new CJ frame clump search.
|
public CJFrameClumpSearch(JFrameMain parent) {
this.parent = parent;
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
try {
view = new JFrameClumpSearch();
view.setVisible(true);
view.addButtonSearchAL(new BtnListener());
} catch (Exception e) {
}
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Controller(FrameSearch frameSearch) {\n this.frameSearch = frameSearch;\n this.criteria = new Criteria();\n search = new Search();\n getCriteriaSaved();\n frameSearch.getTpDataBase().getBtLoad().addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent evt) {\n buttonEventClicked(evt);\n }\n });\n }",
"public void createframe(String cid) {\n\t\tviewframe = new JFrame();\n\t\tviewconsumer(cid);\n\t\tviewframe.setTitle(\"Search result\");\n\t\tviewframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tviewframe.setLayout(new BorderLayout()); \n\t\tviewframe.add(viewpage);\n\t\tviewframe.setVisible(true); \n\t\tviewframe.setSize(500, 400);\n\t\tviewframe.setResizable(true);\n\t}",
"public GUISearch() {\n initComponents();\n }",
"public SearchCard() {\n initComponents();\n }",
"public SearchFrame(){//The main search frame which calls other methods\n\t\t/*Calling the methods intitialiseGUI and buildGUI*/\n\t\tintitialiseGUI();\n\t\tbuildGUI();\n\t}",
"private void createAndShowGUI() {\n frame = new JFrame(\"WorkspaceDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setBounds(100, 100, 800, 600);\n final SearchBar sb = new SearchBar(\"Search blocks\",\n \"Search for blocks in the drawers and workspace\", workspace);\n for (final SearchableContainer con : getAllSearchableContainers()) {\n sb.addSearchableContainer(con);\n }\n final JPanel topPane = new JPanel();\n sb.getComponent().setPreferredSize(new Dimension(130, 23));\n topPane.add(sb.getComponent());\n frame.add(topPane, BorderLayout.PAGE_START);\n frame.add(getWorkspacePanel(), BorderLayout.CENTER);\n frame.add(getButtonPanel(), BorderLayout.SOUTH);\n frame.setVisible(true);\n }",
"private SearchBar() {\n controller = FilterController.getInstance();\n initComponents();\n createNewQueryPanel();\n }",
"public insearch() {\n initComponents();\n }",
"public SearchByName() {\n initComponents();\n }",
"public SearchDataView(JFrame parent) {\n \tthis.parentObject = parent;\n \taction = new SearchDataAction(this);\n initComponents();\n prepareComponents();\n }",
"private void initSearchComponents()\n {\n searchPaneWrapper = new JPanel(new CardLayout());\n logoLabel = new JLabel(new ImageIcon(searchBackgroundImage));\n searchBar = new JTextField();\n webSearchButton = new JButton(\"Search web\");\n imageSearchButton = new JButton(\"Search images\");\n \n logoLabel.setBorder(BorderFactory.createEmptyBorder(70, 0, 0, 0));\n PromptSupport.setPrompt(\" Search...\", searchBar);\n searchBar.setPreferredSize(new Dimension(400, 35));\n searchBar.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.LIGHT_GRAY));\n \n webSearchButton.addActionListener(this);\n imageSearchButton.addActionListener(this);\n \n searchPane.add(logoLabel);\n searchPane.add(Box.createRigidArea(new Dimension(searchPane.getPreferredSize().width, 20)));\n searchPane.add(searchBar);\n searchPane.add(Box.createRigidArea(new Dimension(searchPane.getPreferredSize().width, 10)));\n searchPane.add(webSearchButton);\n searchPane.add(imageSearchButton);\n searchPane.setBackground(Color.WHITE);\n searchPaneWrapper.add(searchPane, SEARCH_PANE_VIEW);\n \n viewPane.add(crawlPane);\n viewPane.add(searchPaneWrapper);\n \n viewPaneWrapper.add(viewPane, VIEW_PANE);\n viewPaneWrapper.add(transitionPane, TRANS_PANE_VIEW);\n \n JLabel crawlerTab = new JLabel(\"Crawler\", JLabel.CENTER);\n JLabel searchTab = new JLabel(\"Search\", JLabel.CENTER);\n crawlerTab.setIcon(new ImageIcon(spiderImage));\n searchTab.setIcon(new ImageIcon(searchIconDark));\n viewPane.setTabComponentAt(0, crawlerTab);\n viewPane.setTabComponentAt(1, searchTab); \n }",
"public CCFind() {\n jp = new JPanel(new FlowLayout());\n btnFind = new JButton(\"Find Next\");\n btnReplace = new JButton(\"Replace\");\n btnReplaceAll = new JButton(\"Relpace All\");\n jtfFind = new JTextField(20);\n jtfReplace = new JTextField(20);\n jlFind = new JLabel(\"Find:\");\n jta = new JTextArea();\n \n jtfFind.addCaretListener(this);\n jtfFind.addActionListener(this);\n \n jtfReplace.addActionListener(this);\n jtfReplace.setActionCommand(\"BTNREPLACE\");\n jtfReplace.setVisible(false);\n \n btnFind.addActionListener(this);\n btnFind.setActionCommand(\"BTNFIND\");\n \n btnReplace.addActionListener(this);\n btnReplace.setActionCommand(\"BTNREPLACE\");\n btnReplace.setVisible(false);\n \n btnReplaceAll.addActionListener(this);\n btnReplaceAll.setActionCommand(\"BTNREPLACEALL\");\n btnReplaceAll.setVisible(false);\n \n jp.add(jlFind);\n jp.add(jtfFind);\n jp.add(jtfReplace);\n jp.add(btnFind);\n jp.add(btnReplace);\n jp.add(btnReplaceAll);\n \n \n currIndex = 0;\n lastHighlight = new int [2];\n \n blnFind = true;\n }",
"public NewJFrame() {\r\n initComponents();\r\n }",
"public CFOP() {\n initComponents();\n }",
"public NewJFrame() {\n Connect();\n initComponents();\n }",
"public frameCliclistas() {\n initComponents();\n setLocationRelativeTo(this);\n show_ciclistas();\n }",
"public NewJFrame() {\n initComponents();\n \n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 283, 353);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setTitle(\"Search\");\n\t\t\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException 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 (UnsupportedLookAndFeelException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\n\t\tpanel.setLayout(new MigLayout(\"\", \"[421.00,grow,center]\", \"[][][][][][][][][]\"));\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title\");\n\t\tlblTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 22));\n\t\tpanel.add(lblTitle, \"cell 0 0\");\n\t\t\n\t\ttitleField = new JTextField();\n\t\ttitleField.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\ttitleField.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tpanel.add(titleField, \"cell 0 1,growx\");\n\t\ttitleField.setColumns(10);\n\t\t\n\t\tJLabel lblMediaType = new JLabel(\"Media Type\");\n\t\tlblMediaType.setFont(new Font(\"Tahoma\", Font.BOLD, 22));\n\t\tpanel.add(lblMediaType, \"flowx,cell 0 2\");\n\t\t\n\t\tJLabel label = new JLabel(\"\");\n\t\tpanel.add(label, \"cell 0 2\");\n\t\t\n\t\tJButton btnSearch = new JButton(\"Search\");\n\t\t\n\t\tbtnSearch.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString title = titleField.getText();\n\t\t\t\tString prod = productionField.getText();\n\t\t\t\t\n\t\t\t\tif(productionField.getText().equals(\"\"))\n\t\t\t\t\tprod = \"*\";\n\t\t\t\t\n\t\t\t\tHashMap<String, String> infoMap = Database.search(title, \"movie\", prod);\n\t\t\t\t\n\t\t\t\tnew InformationGUI(infoMap);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tJComboBox<String> comboBox = new JComboBox<String>();\n\t\tcomboBox.setModel(new DefaultComboBoxModel<String>(new String[] {\"movie\", \"tv series\", \"tv movie\", \"video movie\", \"tv miniseries\", \"video game\"}));\n\t\t((JLabel)comboBox.getRenderer()).setHorizontalAlignment(SwingConstants.CENTER);\n\t\tpanel.add(comboBox, \"cell 0 3,growx\");\n\t\t\n\t\tJLabel lblProductionYear = new JLabel(\"Production Year\");\n\t\tlblProductionYear.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\n\t\tpanel.add(lblProductionYear, \"cell 0 5\");\n\t\t\n\t\tproductionField = new JTextField();\n\t\tproductionField.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tproductionField.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tpanel.add(productionField, \"cell 0 6,growx\");\n\t\tproductionField.setColumns(10);\n\t\tpanel.add(btnSearch, \"cell 0 8\");\n\t}",
"public SearchingFrame(javax.swing.JFrame previousWindow) {\n initComponents();\n this.previousWindow = previousWindow;\n searchTypes.add(DAO.SearchType.LINEAR);\n searchTypes.add(DAO.SearchType.BINARY);\n searchTypes.add(DAO.SearchType.HASHING);\n selectRadioButton(\"numElements\", 0);\n }",
"public SearchPanel(\r\n\t\t\tSearchHandler handlerRef, \r\n\t\t\tRecordListView li, \r\n\t\t\tCategoryHandler<IncomeRecord> inCatHandRef, \r\n\t\t\tCategoryHandler<ExpenseRecord> exCatHandRef) {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.handler = handlerRef;\r\n\t\t\r\n\t\tpanCtrls = new JPanel();\r\n\t\tpanCtrls.setLayout(new BorderLayout());\r\n\t\t\r\n\t\tpanForm = new SearchFormPanel(this, this, inCatHandRef, exCatHandRef);\r\n\t\tpanCtrls.add(panForm, BorderLayout.CENTER);\r\n\t\tpanCtrls.setPreferredSize(new Dimension(DEFAULT_WIDTH, SIMPLE_HEIGHT)); // SIMPLE SEARCH EXPERIMENTATION\r\n\t\t\r\n\t\tpanBtns = new JPanel();\r\n\t\t\r\n\t\tpanForm.addListenerToTextFields(new ActionListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tperformSearch();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnAdvance = new JButton(\"More Options\");\r\n\t\tbtnAdvance.addActionListener(new ActionListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tswitchMode();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tpanBtns.setLayout(new BoxLayout(panBtns, BoxLayout.X_AXIS));\r\n\t\t\r\n\t\tJButton btnSearch = new JButton(\"Find\");\r\n\t\tpanBtns.add(btnSearch);\r\n\t\tpanBtns.add(Box.createVerticalGlue());\r\n\t\t\r\n\t\tpanBtns.add(btnAdvance);\r\n\t\t\r\n\t\tbtnSearch.addActionListener(new ActionListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tperformSearch();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tpanCtrls.add(panBtns, BorderLayout.EAST);\r\n\t\t\r\n\t\tthis.add(panCtrls, BorderLayout.NORTH);\r\n\t\t\r\n\r\n\t\tlist = li;\r\n\t\tthis.panResult = new JScrollPane(list);\r\n\t\tthis.add(this.panResult, BorderLayout.CENTER);\r\n\r\n\t\t// InfoPanel\r\n\t\tpanInfo = new InfoPanel();\r\n\t\tthis.add(panInfo, BorderLayout.SOUTH);\r\n\t}",
"public Community(Control c) {\n\t\t//link Community to control\n \tthis.control = c;\n\n\t\t//Setup the GUI\n\t\tframe = new JFrame(control.title);\n\t\tframe.setSize(control.frameX,control.frameY); //set the size\n\t\t\n\t\t//add this so that hitting the x button will actually end the program\n\t\t//the program will continue to run behind the scenes and you might end up with 10+ of them\n\t\t//without realizing it\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t//make it visible\n\t\tframe.setVisible(true);\n\t\tframe.add(this); //add this class (JPanel) to the JFrame\t\t\n\t}",
"public search_package() {\n initComponents();\n }",
"public NewJFrame()\r\n {\r\n initComponents();\r\n }",
"public SearchResultPanel()\n\t{\n\t\tcreateComponents();\n\t\tdesignComponents();\n\t\taddComponents();\n\t}",
"public InfoFilterFrame() {\n enableEvents(AWTEvent.WINDOW_EVENT_MASK);\n try {\n jbInit();\n init(); // do local intializations\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public NewJFrame() {\n initComponents();\n\n }",
"public CustomerFrame() {\n initComponents();\n this.conn = MainFrame.conn;\n this.statement = MainFrame.statement;\n this.resultsOfQuery = MainFrame.resultsOfQuery;\n this.sql = MainFrame.sql;\n this.meta = MainFrame.meta;\n }",
"public TestFrames() {\n\t\tclasslogger.info(\"Called constructor for TestFrames...\");\n\t}",
"public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}",
"FRAME createFRAME();",
"public CreatureSelector(JFrame frame, Vector<String> thingsInColumn)\n\t{\n\t\tsuper(frame, thingsInColumn);\n\t}",
"public BreukFrame() {\n super();\n initialize();\n }",
"public FrameNuevaCategoria() {\n initComponents();\n limpiar();\n }",
"public DisputeSearchPanel() {\n initComponents();\n }",
"public ClassesWindow(String cName) {\n \n initComponents();\n method();\n className.setText(cName);\n }",
"public void buildFrame();",
"public ProviderFrame() {\n this.setTitle(FACE_DETECTION_APPLICATION_TITLE);\n this.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);\n\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent event) {\n System.exit(0);\n }\n });\n\n buildElements();\n\n centerFrame();\n }",
"public JaccardSearcher(String docFilename) {\n super(docFilename);\n // TODO: YOUR CODE HERE\n\n // Instantiate the indexer\n // VSM MyCoolSearcher.Indexer is being used because we don't want to create static nested Builder class for the MyCoolSearcher.Indexer class\n indexer = new VectorSpaceModelIndexer.Builder(documents, stopWords).build();\n }",
"public Conector() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setVisible(true);\n }",
"public SearchDataView() {\n initComponents();\n }",
"public xinxiNewJFrame() {\n initComponents();\n }",
"public NewJFrame1() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(300, 300, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\ttxtEnterTheObservatory = new JTextField();\n\t\ttxtEnterTheObservatory.setBounds(103, 54, 204, 35);\n\t\tframe.getContentPane().add(txtEnterTheObservatory);\n\t\ttxtEnterTheObservatory.setColumns(10);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Search \");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSpecifiedStatsDisplay.comparingValue = Integer.parseInt(txtEnterTheObservatory.getText());\n\t\t\t\tSpecifiedStatsDisplay specifiedStatsDisplay = new SpecifiedStatsDisplay();\n\t\t\t\tspecifiedStatsDisplay.frame.setVisible(true);\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(162, 100, 89, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Search for records greater than:\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n\t\tlblNewLabel.setBounds(39, 11, 356, 32);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"Back \");\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tStatisticsGUI statisticsGUI = new StatisticsGUI();\n\t\t\t\tstatisticsGUI.frame.setVisible(true);\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(335, 227, 89, 23);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\t}",
"public POSFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }",
"Frame createFrame();",
"public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }",
"public FirstNewFrame() {\n\t\tjbInit();\n\t}",
"public CFJInternalFrame( ) {\n initComponents();\n \n refresh();\n }",
"public addStFrame() {\n initComponents();\n }",
"public holdersframe() {\n initComponents();\n }",
"public FrameInsert() {\n initComponents();\n }",
"public JMCF() {\n initComponents();\n }",
"public InterpolationSearchFrame()\n {\n super(\"Simulasi Interpolation Search\");\n statusInput=true;\n statusSearch=true;\n statusKeyword=true;\n node[0]=new Node();\n node[1]=new Node();\n node[2]=new Node();\n node[3]=new Node();\n node[4]=new Node();\n node[5]=new Node();\n input.setToolTipText(\"Input data\");\n search.setToolTipText(\"Search data\");\n reset.setToolTipText(\"Hapus semua data\");\n keyword.setToolTipText(\"Keyword data\");\n help.setToolTipText(\"Petunjuk penggunaan\");\n setLayout(tampilan);\n \n add(panel,BorderLayout.NORTH);\n \n input.addActionListener(new h());\n search.addActionListener(new h());\n reset.addActionListener(new h());\n keyword.addActionListener(new h());\n help.addActionListener(new h());\n buttonPanel.setLayout(new FlowLayout());\n buttonPanel.add(input);\n buttonPanel.add(keyword);\n buttonPanel.add(search);\n buttonPanel.add(reset);\n buttonPanel.add(help);\n add(buttonPanel,BorderLayout.SOUTH);\n }",
"public VentanaC() {\n initComponents();\n }",
"private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }",
"private Frame buildFrame() {\n return new Frame(command, headers, body);\n }",
"public FrameJogo() {\n initComponents();\n createBufferStrategy(2);\n Thread t = new Thread(this);\n t.start();\n }",
"private ClubSearch() \r\n {\r\n in = new Scanner(System.in);\r\n db = DatabaseManager.getInstance();\r\n \r\n openPrompt = \"Would you like to search for a club, \" +\r\n \t \"filter by type of club, list clubs, or exit? (s/f/l/e)\";\r\n cDatabase = \"ClubDatabase\";\r\n cName = \"ClubName\";\r\n }",
"public void init() {\n\t\tframe = new JFrame(\"Find the Capital City\");\n\t\tcountryLabel = new JLabel(\"Country:\");\n\t\tcapitalLabel = new JLabel(\"Capital City:\");\n\t\tcountryBox = new JComboBox<>(CountryUtil.COUNTRY_LIST);\n\t\tcapitalBox = new JTextField();\n\t\t\n\t\tcountryBox.addActionListener(new MyActionListener());\n\t\tcapitalBox.setEditable(false);\n\t\tcountryLabel.setHorizontalAlignment(JLabel.CENTER);\n\t\tcapitalLabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t\n\t\tframe.setLayout(new GridLayout(2, 2));\n\t\tframe.add(countryLabel);\n\t\tframe.add(countryBox);\n\t\tframe.add(capitalLabel);\n\t\tframe.add(capitalBox);\n\t\t\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(350, 100);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.setVisible(true);\n\t}",
"public NinjaFrame() {\r\n\r\n\t\tprofile = new ProfileFrame();\r\n\t\tbotP = new BotInfoPanel();\r\n\t\tsCenterP = new SearchResultPage();\r\n\t\ttopP = new TopInfoPanel(this, sCenterP);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\r\n\t\tiniciateFrame();\r\n\t}",
"public SearchConditionSB() {\r\n }",
"@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}",
"public static synchronized ClubSearch getInstance()\r\n {\r\n if (clubSearch == null)\r\n {\r\n clubSearch = new ClubSearch();\r\n }\r\n \r\n return clubSearch;\r\n }",
"public search() {\n }",
"private Frame3() {\n\t}",
"public FlightSearchPanel() {\n initComponents();\n \n setLayout(new BorderLayout());\n \n textPane = new JTextPane();\n textPane.setFont(new Font(\"Tahoma\", Font.ITALIC, 18));\n textPane.setText(\"No search results to display\");\n textPane.setFocusable(false);\n textPane.setEditable(false);\n textPane.setOpaque(false);\n \n \n add(textPane);\n \n searchResultsPanel = new SearchResultsPanel();\n //add(searchResultsPanel);\n \n expandedFlightPanel = new ExpandedFlightPanel();\n //this.add(searchResultsPanel);\n \n }",
"public MiFrame2() {\n initComponents();\n }",
"private JFrame getJFrame() {\n\t\tif (jFrame == null) {\n\t\t\tjFrame = new JFrame();\n\t\t\tjFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tjFrame.setJMenuBar(getJJMenuBar());\n\t\t\tjFrame.setSize(400, 200);\n\t\t\tjFrame.setContentPane(getJContentPane());\n\t\t\tjFrame.setTitle(\"Mancala\");\n\t\t}\n\t\treturn jFrame;\n\t}",
"public JFrameCadastroCategoria() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblDistanceBetweenCity = new JLabel(\"DISTANCE BETWEEN CITY\");\n\t\tlblDistanceBetweenCity.setFont(new Font(\"Tahoma\", Font.PLAIN, 21));\n\t\tlblDistanceBetweenCity.setBounds(84, 31, 284, 26);\n\t\tframe.getContentPane().add(lblDistanceBetweenCity);\n\t\t\n\t\tJButton btnEnterDistance = new JButton(\"Enter Distance\");\n\t\tbtnEnterDistance.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tEnterDistance frameEnter = new EnterDistance();\n\t\t\t\tframeEnter.frame.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnEnterDistance.setBounds(28, 117, 158, 23);\n\t\tframe.getContentPane().add(btnEnterDistance);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Find Distance\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tFindDistance fd = new FindDistance();\n\t\t\t\tfd.frame.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(224, 117, 158, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\t}",
"public RankingFrame() {\n initComponents();\n }",
"private static GridSearch9734Mod initializeGridSearch() {\r\n\t\tGridSearch9734Mod grid = new GridSearch9734Mod();\r\n\t\t// the metric to optimize\r\n\t\tgrid.setEvaluation(\r\n\t\t\t\tnew SelectedTag(GridSearch9734Mod.EVALUATION_WAUC, GridSearch9734Mod.TAGS_EVALUATION));\r\n\t\tgrid.setGridIsExtendable(false);\r\n\t\tgrid.setNumExecutionSlots(2);\r\n\t\tgrid.setSampleSizePercent(100);\r\n\t\tgrid.setInitialNumFolds(2);\r\n\t\tgrid.setStopAfterFirstGrid(true);\r\n\t\tgrid.setTraversal(\r\n\t\t\t\tnew SelectedTag(GridSearch9734Mod.TRAVERSAL_BY_ROW, GridSearch9734Mod.TAGS_TRAVERSAL));\r\n\t\tgrid.setDebug(false);\r\n\t\treturn grid;\r\n\t}",
"public Coup() {\n dim = Toolkit.getDefaultToolkit().getScreenSize();\n jframe = new JFrame(\"Coup\");\n jframe.setVisible(true);\n jframe.setSize(800, 700);\n jframe.setLocation(dim.width / 2 - jframe.getWidth() / 2, dim.width \n / 2 - jframe.getHeight() / 2);\n jframe.add(board = new Board());\n jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }",
"public QLHocSinhJFrame() {\n initComponents();\n }",
"public Calculator()\n {\n \n frame = new JFrame();\n createCalculator(range);\n createCP(range);\n frame.setVisible(true);\n frame.setSize(1200,1000);\n \n\n }",
"public FrameControl() {\n initComponents();\n }",
"public createclass() {\n initComponents();\n this.setLocationRelativeTo(null);\n getdata();\n }",
"public NewRoomFrame() {\n initComponents();\n }",
"public SearchGUI(){\n\t\t\n\t\tsuper(\"Search GUI\");\n\t\tsetSize(600,500);\n\t\tsetResizable(false);\n\t\tsetLocationRelativeTo(null);\n\t\tsetLayout(new BorderLayout());\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t\tpanelPro = new JPanel(new GridBagLayout());\n\t\tadd(panelPro, BorderLayout.NORTH);\t\n\t\tgrid = new GridBagConstraints();\n\t\tgrid.fill=GridBagConstraints.HORIZONTAL;\n\t\tgrid.insets = new Insets(2,2,2,2);\n\t\t\n\t}",
"public Badminton()\n { \n frame.add(new Board()); \n frame.setSize(900, 900);\n frame.setResizable(false);\n frame.setTitle(\"PE Class\");\n //frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }",
"public BaciWindow() {\r\n}",
"public FrmSearchBox(JInternalFrame internalFrame) {\r\n initComponents();\r\n this.setModal(true);\r\n this.setInternalFrame(internalFrame);\r\n productDAO = new ProductDAO();\r\n }",
"public static void SearchBox() {\r\n\tJFrame Search = new JFrame(\"Search\");\r\n\tSearch.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\tSearch.setSize(700,500);\r\n\tSearch.getContentPane();\r\n\tSearch.setVisible(true);\r\n\r\n\te7.setFont(f);\r\n\r\n\t\r\n\r\n\tSearch.getContentPane().add(GUI2Panel);\r\n\tGUI2Panel.add(e7);\r\n\tGUI2Panel.add(SearchField);\r\n\r\n\tGUI2Panel.add(SearchButton2);\r\n}",
"public FilterUsePanel(JFrame frame) {\n\t\tsuper();\n\t\tthis.frame = frame;\n\t\tframe.setPreferredSize(new Dimension(700, 300));\n\n\t\tsetLayout(new BorderLayout());\n\t\t// --------------------//\n\t\t// FilterEditorPanel\n\t\tfilterEditorPanel = new FilterEditorPanel();\n\t\tfilterEditorPanel.getPropertyChangeSupport().addPropertyChangeListener(this);\n\n\t\t// --------------------//\n\t\t// Selected Filter Panel\n\t\tJPanel selected_filter_panel = new JPanel();\n\t\tselected_filter_panel.setLayout(new BorderLayout());\n\t\tfilterListPanel = new FilterListPanel();\n\t\tselected_filter_panel.add(filterListPanel, BorderLayout.CENTER);\n\t\tselected_filter_panel.add(createManagePanel(), BorderLayout.NORTH);\n\t\tselected_filter_panel.add(createActionPanel(), BorderLayout.SOUTH);\n\n\t\tJSplitPane pane0 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, selected_filter_panel,\n\t\t filterEditorPanel);\n\t\tadd(pane0);\n\t\tfilterListPanel.getSwingPropertyChangeSupport().addPropertyChangeListener(filterEditorPanel);\n\t\tfilterListPanel.getSwingPropertyChangeSupport().addPropertyChangeListener(this);\n\t\tinitProgressMonitor();\n\t}",
"public JGSFrame() {\n\tsuper();\n\tinitialize();\n }",
"public launchFrame() {\n \n initComponents();\n \n }",
"public NewJFrame() {\n initComponents();\n mcam.setLineWrap(true);\n\n }",
"public SearchUI() {\n initComponents();\n initComponents2();\n }",
"public WAREHOUSE_DISPATCH_UI0002_DISPATCH_SCAN_JPANEL() {\n initComponents();\n }",
"public void newGameJBJ() {\n newGame();\n min = 0; max = 1000;\n myctr.setMinMaxLabel();\n myctr.setLabels();\n }",
"public Credits (JFrame frame)\r\n {\r\n super();\r\n this.setLayout (null); \r\n count = 0;\r\n this.frame = frame;\r\n playEnd();\r\n \r\n }"
] |
[
"0.5710311",
"0.5692092",
"0.5551521",
"0.54911774",
"0.5382751",
"0.53346723",
"0.5319655",
"0.52824926",
"0.52791786",
"0.5276979",
"0.5234525",
"0.51970696",
"0.5193646",
"0.5159177",
"0.5111848",
"0.510405",
"0.5103808",
"0.51036364",
"0.51036364",
"0.51036364",
"0.51036364",
"0.51036364",
"0.51036364",
"0.51036364",
"0.50994414",
"0.5097555",
"0.50870675",
"0.5082887",
"0.50804985",
"0.50638616",
"0.50626004",
"0.50278723",
"0.49967325",
"0.4987693",
"0.4983378",
"0.49489775",
"0.49348232",
"0.49288973",
"0.4922561",
"0.49174434",
"0.4911305",
"0.49049193",
"0.48991722",
"0.48926264",
"0.48922354",
"0.4888644",
"0.4886697",
"0.48858067",
"0.48756206",
"0.48627162",
"0.48580995",
"0.4852936",
"0.48512015",
"0.48496735",
"0.48494345",
"0.4847782",
"0.48427674",
"0.48416406",
"0.48405793",
"0.482867",
"0.482515",
"0.4821773",
"0.48164362",
"0.4812831",
"0.4809095",
"0.48050734",
"0.48018053",
"0.47953653",
"0.47918242",
"0.4779482",
"0.47704655",
"0.47686714",
"0.47573304",
"0.4757109",
"0.4745113",
"0.47366562",
"0.47365737",
"0.47333845",
"0.47328368",
"0.47300896",
"0.47237912",
"0.47211635",
"0.47075096",
"0.47069934",
"0.46990842",
"0.4698376",
"0.46940753",
"0.4690767",
"0.46890706",
"0.46881866",
"0.4686102",
"0.46752337",
"0.46724683",
"0.46719465",
"0.4670929",
"0.46673447",
"0.4661179",
"0.46600184",
"0.4658797",
"0.46530184"
] |
0.6161215
|
0
|
Sign up a Person in the system
|
@PostMapping
public ResponseEntity<Response<SignUpPersonDto>> signUp(@Valid @RequestBody SignUpPersonDto signUpPersonDto,
BindingResult result) throws NoSuchAlgorithmException{
Response<SignUpPersonDto> response = new Response<SignUpPersonDto>();
log.info("Signing up Person {}", signUpPersonDto);
//check if this Person already exists
checkIfPersonAlreadyExists(signUpPersonDto, result);
//check if result has errors and return the response with the errors
if(result.hasErrors()) {
log.error("Error validating Person sign up: {}", result.getAllErrors());
result.getAllErrors().forEach(er -> response.addErrors(er.getDefaultMessage()));
return ResponseEntity.badRequest().body(response);
}
//convert SignUpPersonDto into Person
Person person = convertSignUpPersonDtoIntoPerson(signUpPersonDto);
//persist person in the database using PersonService
personService.persist(person);
//complete the dto with the new info from Person
signUpPersonDto.setId(person.getId());
//return the response with the dto
response.setData(signUpPersonDto);
return ResponseEntity.ok(response);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void signUpAttempt(String email, String password, String firstName, String lastName);",
"void signUp(SignUpRequest signupRequest);",
"private void saveNewPerson() {\r\n\r\n\t\tSystem.out.println(\"Start Save new Patient...\");\r\n\r\n\t\ttry {\r\n\t\t\tIPerson p1 = new Person(\"admin\", new Role(Roles.ADMINISTRATOR,\r\n\t\t\t\t\t\"Hauptadministrator\"), \"Passwort\", \"[email protected]\", \"Vorname\",\r\n\t\t\t\t\t\"Nachname\", \"Organisation\", \"Abteilung\", \"Fachrichtung\",\r\n\t\t\t\t\t\"Strasse\", \"3e\", \"54321\", \"Ort\");\r\n\r\n\t\t\tp1.save();\r\n\t\t} catch (BusinesslogicException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} catch (DatabaseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"New Patient saved!!\");\r\n\t}",
"public Person registerOwner() {\n registerOwnerButton.setOnAction(e -> {\n if (validatePersonData() == DataControl.SUCCESS) {\n String birthNo = birthNoField.getText();\n String firstName = firstNameField.getText();\n String lastName = lastNameField.getText();\n String telephoneNo = telephoneNoField.getText();\n String email = emailField.getText();\n String zipCode = zipCodeField.getText();\n String streetAddress = streetAddressField.getText();\n person = new Person(birthNo, firstName, lastName, telephoneNo,\n email, zipCode, streetAddress);\n MessageDialog.showMessageDialog(\"Registrert\",\n \"Du har nå registrert en person ny eier av bilen.\",\n MessageDialog.INFORMATION_ICON,\n MessageDialog.OK_OPTION);\n stage.close();\n } else {\n if (MessageDialog.showMessageDialog(\"Ugyldig\",\n \"Ugyldig informasjon. Ønsker du å gjøre om?\",\n MessageDialog.INFORMATION_ICON,\n MessageDialog.YES__NO_OPTION) ==\n MessageDialog.YES_OPTION) {\n // do nothing after closing dialog\n } else {\n stage.close();\n }\n }\n });\n stage.showAndWait();\n return person;\n }",
"boolean signUp(User user);",
"public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }",
"public void signUp() {\n presenter.signup(username.getText().toString(), password.getText().toString());\n }",
"public void addUser(Person person){\n \t\n \ttry {\n\t\t\tperson.sethPassword(Base64.getEncoder().encodeToString(MessageDigest.getInstance(\"SHA-256\").digest(person.gethPassword().getBytes(StandardCharsets.UTF_8))));\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \t\n \t\n \tSystem.out.println(\"aanmaken van \" + person.getLogin());\n \tem.persist(person);\n \t\n }",
"User registration(User user);",
"public void register(RegistrationDTO p) throws UserExistException {\n userLogic.register((Person) p);\n }",
"@RequestMapping(\"/signup\")\n public void signUp(String firstName, String lastName, String address,\n String emailAddress, String userName,\n String password, int age, int telephoneNumber){\n User.UserBuilder userBuilder = new User.UserBuilder(firstName, lastName, address, age,\n userName, password,emailAddress);\n if(telephoneNumber > 0) userBuilder.telephoneNumber(telephoneNumber);\n User user = userBuilder.build();\n userService.addUser(user);\n }",
"public void creatUser(String name, String phone, String email, String password);",
"public void signup(){\n\t\tboolean result = SignUpForm.display(\"Chocolate Chiptunes - Sign Up\", \"Sign-Up Form\");\n\t\tSystem.out.println(result);\n\t}",
"public void register()\n {\n String n = nameProperty.getValue();\n if (n == null || n.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String p = passwordProperty.getValue();\n if (p == null || p.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String e = emailProperty.getValue();\n if (e == null || e.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String ph = phoneProperty.getValue();\n if (ph == null || ph.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (ph.length() != 8)\n {\n throw new IllegalArgumentException(\"Invalid phone number\");\n }\n try\n {\n Integer.parseInt(ph);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid phone number\", ex);\n }\n String t = titleProperty.getValue();\n if (t == null || t.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String a = authorProperty.getValue();\n if (a == null || a.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n String y = yearProperty.getValue();\n if (y == null || y.isEmpty())\n {\n throw new IllegalArgumentException(\"Field cannot be empty\");\n }\n if (y.length() != 4)\n {\n throw new IllegalArgumentException(\"Invalid year\");\n }\n try\n {\n Integer.parseInt(y);\n }\n catch (NumberFormatException ex)\n {\n throw new IllegalArgumentException(\"Invalid year\", ex);\n }\n\n try\n {\n\n model.registerUser(n, p, e, ph, t, a, y);\n\n }\n catch (Exception e1)\n {\n\n e1.printStackTrace();\n }\n\n }",
"Boolean registerNewUser(User user);",
"public void register(String form /* should be a Form from GUI */){\n String email = \"email\";\n String nome_completo = \"full_name\";\n Date data_nascimento = new Date(1996-10-21);\n String password = getMd5(\"password\");\n String nif = \"nif\";\n String morada = \"morada\";\n String telemovel = \"telemovel\";\n User user = new User(email);\n if (!user.exists()){\n user.setNome_completo(nome_completo);\n user.setData_nascimento(data_nascimento);\n user.setPassword(password);\n user.setNif(nif);\n user.setMorada(morada);\n user.setTelemovel(telemovel);\n user.setAdmin(FALSE);\n //System registers person\n //db.register(user)\n }\n }",
"private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pass.getText().toString())) {\r\n\t\t\t\tString postEntity = \"user_name=\" + ur_name.getText().toString()\r\n\t\t\t\t\t\t+ \"&email=\" + email.getText().toString() + \"&password=\"\r\n\t\t\t\t\t\t+ pass.getText().toString() + \"&gcm_id=\"\r\n\t\t\t\t\t\t+ GlobalDeclares.getGcmId();\r\n\t\t\t\tnew ServerUtilities(getApplicationContext(),\r\n\t\t\t\t\t\tGlobalDeclares.NEW_REGISTRATION, postEntity, delegate);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\"Password does not match!\", Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\"You need to fill all the fields!\", Toast.LENGTH_LONG)\r\n\t\t\t\t\t.show();\r\n\t\t}\r\n\r\n\t}",
"public void signUp(View v) {\n attemptRegistration();\n }",
"public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please fill out all fields!\";\n\t\t} else if(regview.findUser(uid)!=User.NULL_USER){\n\t\t\ttext = \"The username already exsit, please try another one!\";\n\t\t} else {\n\t\t\tregview.addUser(new User(uid,pw,na,em));\n\t\t\tregview.goLoginPage();\n\t\t}\n\t\tregview.setRegisterText(text);\n\t}",
"private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}",
"public void CreatePerson(Person p){\n\t\tWeddingConnectionPoolManager con = new WeddingConnectionPoolManager(); \n\t\t Person p1 = new Person(p.getId(), p.getFirstName(), p.getLastName(), p.getRelationship(),\n\t\t\t\t p.getAddress(), p.getPhone(), p.getEmail(), p.getComment(), user.getId());\n\t\t System.out.println(\"p1 : \" + p1);\n\t\t System.out.println(\"p : \" + p);\n\t\t// TODO - should to iterate on the results that returns when calling to \"getpersons\" method.\n\t\tPersonDBManager.getInstance().CreateNewPerson(con.getConnectionFromPool(), p1);\t\n\t}",
"@Test(priority=1, dataProvider=\"User Details\")\n\t\tpublic void registration(String firstname,String lastname,String emailAddress,\n\t\t\t\tString telephoneNum,String address1,String cityName,String postcodeNum,\n\t\t\t\tString country,String zone,String pwd,String confirm_pwd) throws Exception{\n\t\t\t\n\t\t\thomePage = new HomePage(driver);\n//'**********************************************************\t\t\t\n//Calling method to click on 'Create Account' link\n\t\t\tregistraionPageOC = homePage.clickCreateAccount();\n//'**********************************************************\t\t\t\n//Calling method to fill user details in Registration page and verify account is created\n\t\t\tregistraionPageOC.inputDetails(firstname,lastname,emailAddress,telephoneNum,address1,cityName,postcodeNum,country,zone,pwd,confirm_pwd);\n\t\t\ttry{\n\t\t\tAssert.assertEquals(\"Your Account Has Been Created!\", driver.getTitle(),\"Titles Not Matched: New Account Not Created\");\n\t\t\textentTest.log(LogStatus.PASS, \"Registration: New User Account is created\");\n\t\t\t}catch(Exception e){\n\t\t\t\textentTest.log(LogStatus.FAIL, \"Registration is not successful\");\n\t\t\t}\n\t\t}",
"private void registerByEmail() {\n\n String username = editUsername.getText().toString();\n String email = editEmail.getText().toString();\n String password = editPassword.getText().toString();\n\n AVUser person = new AVUser();\n person.setUsername(username);\n person.setEmail(email);\n person.setPassword(password);\n person.put(Person.NICK_NAME,username);\n\n person.signUpInBackground(new SignUpCallback() {\n @Override\n public void done(AVException e) {\n if (e == null) {\n ShowMessageUtil.tosatFast(\"register successful!\", EmailRegisterActivity.this);\n openValidateDialog();\n } else {\n ShowMessageUtil.tosatSlow(\"fail to register:\" + e.getMessage(), EmailRegisterActivity.this);\n }\n }\n });\n }",
"@WebMethod\t\r\n\t public boolean Register(String fname, String lname, String em, String d, String uname, String passw, String gender, int funds){\r\n\t\tDataAccess dBManager=new DataAccess();\r\n\t\tboolean created = dBManager.createAccount(fname,lname,em,d,uname, passw, gender, funds);\r\n\t\t// Sets current user when registering a new account\r\n\t\t//currentUser = dBManager.findAccount(uname);;\r\n\t\tdBManager.close();\r\n\t\treturn created;\r\n\t}",
"@Override\n\tpublic int signup(MemberVO member) {\n\t\treturn mapper.signup(member);\n\t}",
"String signUp(String userName, String password) throws RemoteException, InterruptedException;",
"private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }",
"public void createAccount(){\n System.out.println(\"vi skal starte \");\n }",
"public static void regPerson(){\n\t\tSystem.out.println(\"Skriv inn navnet, trykk enter, skriv så inn alder, trykk enter, og til slutt skriv inn bosted og trykk enter!\");\n\t}",
"@Override\n public boolean createAccount(String fullName, String username, String password, String email){\n // will change this if we make some errors.\n if(!usernameToPerson.containsKey(username)) { // check that there is not someone with that username\n Organizer og = new Organizer(fullName, username, password, email);\n updateUsernameToPerson(og.getUsername(), og); // see below\n idToPerson.put(og.getID(), og);\n return true;\n }\n\n return false;\n\n }",
"private final static void onRegister(TextField username, TextField email, PasswordField password, PasswordField passwordAgain)\n\t{\n\t\t// TODO no password = passwordAgain check\n\t\t// TODO check if username exists\n\t\t// TODO check if email exists\n\n\t\tint id = ProfileManipulation.getHighestId(\"Profile\", true);\n\t\tProfileManipulation.registerUser(id, username.getText(), email.getText(),\n\t\t\t\tpassword.getText());\n\t\tPartylize.setUsername(username.getText());\n\t\tPartylize.showMainScene();\n\t}",
"private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }",
"public void userSignup(String email_addr, String user_pw){\n\n String uuid_str = UUID.randomUUID().toString().replaceAll(\"-\", \"\");\n uuid_str = uuid_str.substring(0, 5);\n int uuid = Integer.parseInt(uuid_str);\n UserProfile new_user = new UserProfile(uuid, email_addr, user_pw);\n userDataAccessService.storeUserInfo(new_user.getUser_id(), new_user.getEmail_addr(), new_user.getUser_pw());\n\n }",
"Task<Void> signUp(String email, String password);",
"private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }",
"void lookupAndSaveNewPerson();",
"public void signup(String username, String password, String phoneNum,\r\n\t\t\tString address) {\n\t\tuserInfoMapper.signup(username, password, phoneNum, address);\r\n\t}",
"@Override\n public void onClick(View view) {\n final String username = usernameInput.getText().toString();\n final String password = passwordInput.getText().toString();\n final String email = emailInput.getText().toString();\n final String handle = handleInput.getText().toString();\n signup(username, password, email, handle);\n }",
"@PostMapping(value = \"/registration\")\n public @ResponseBody\n ResponseEntity<Object> register(@RequestParam(\"firstName\") String firstName,\n @RequestParam(\"lastName\") String lastName,\n @RequestParam(\"username\") String username,\n @RequestParam(\"password\") String password) {\n\n Person person = personService.getPersonByCredentials(username);\n\n String securePassword = HashPasswordUtil.hashPassword(password);\n\n if (person == null) {\n\n person = new Person(username, securePassword, firstName, lastName, PersonType.USER);\n\n try {\n personService.add(person);\n } catch (IllegalArgumentException e) {\n logger.error(e.getMessage());\n }\n person = personService.getPersonByCredentials(username);\n\n ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();\n HttpSession session = attr.getRequest().getSession(true); // true == allow create\n session.setAttribute(\"user\", username);\n session.setAttribute(\"userId\", person.getId());\n\n return ResponseEntity.status(HttpStatus.OK).body(null);\n } else {\n return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null);\n }\n\n }",
"public void createUser(int usertype) {\n\t\tthePerson = PersonFactory.getPerson(usertype);\n\t}",
"public SignUp() {\n PageFactory.initElements(webDriver, this);\n }",
"private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }",
"void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }",
"public void createUser(User user);",
"@PostMapping\n public @ResponseBody\n ResponseEntity<Object> register(@RequestParam(\"firstName\") final String firstName,\n @RequestParam(\"lastName\") final String lastName,\n @RequestParam(\"username\") final String username,\n @RequestParam(\"password\") final String password,\n @RequestParam(\"email\") final String email) {\n\n Person person = personService.getPersonByCredentials(username);\n\n final String securePassword = HashPasswordUtil.hashPassword(password);\n\n if (person == null) {\n\n person = new Person(username, securePassword, firstName, lastName, email, PersonType.USER);\n\n try {\n personService.add(person);\n } catch (IllegalArgumentException e) {\n logger.error(e.getMessage());\n }\n person = personService.getPersonByCredentials(username);\n\n ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();\n HttpSession session = attr.getRequest().getSession(true); // true == allow create\n session.setAttribute(\"user\", username);\n session.setAttribute(\"userId\", person.getIdPerson());\n\n return ResponseEntity.status(HttpStatus.OK).body(null);\n } else {\n return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null);\n }\n\n }",
"public void create(Person p) {\n\t\t\n\t}",
"public void savePerson()\r\n { \r\n\t/*get values from text fields*/\r\n\tname = tfName.getText();\r\n\taddress = tfAddress.getText();\r\n\tphone = Integer.parseInt(tfPhone.getText());\r\n\temail = tfEmail.getText();\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null, \"Please enter person name.\");\r\n\t}else\r\n {\r\n\r\n\t /*create a new PersonInfo object and pass it to PersonDAO to save it*/\r\n\t PersonInfo person = new PersonInfo(name, address, phone, email);\r\n\t pDAO.savePerson(person);\r\n\r\n\t JOptionPane.showMessageDialog(null, \"Record added\");\r\n }\r\n }",
"@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\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}",
"public int signUp(String email_address, String email_password, String first_name, String last_name)\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tString query = \"insert into users values (?, ?, ?, ?)\";\r\n\t\t\tpreparedStatement = connect.prepareStatement(query);\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * variables here replaces the question marks in the query\r\n\t\t\t * the numbers before the variables denote what question mark is the variable supposed to replace\r\n\t\t\t * the numbers start at 1 compared to starting at 0\r\n\t\t\t */\r\n\t\t\tpreparedStatement.setString(1, email_address);\r\n\t\t\tpreparedStatement.setString(2, email_password);\r\n\t\t\tpreparedStatement.setString(3, first_name);\r\n\t\t\tpreparedStatement.setString(4, last_name);\r\n\t\t\tpreparedStatement.execute();\t//execute the query above\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Created an object array which only contains the value of the button to be used in the popup message\r\n\t\t\t * the popup message displays upon successfully registering a user\r\n\t\t\t */\r\n\t\t\tObject[] options = {\"OK\"};\r\n\t\t\tint temp = JOptionPane.showOptionDialog(null, \"You are now registered\", \"Registration\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, options[0]);\r\n\t\t\treturn temp;\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public void savePerson() {\n\t\tthis.personService.savePerson();\n\t}",
"private void signUp() {\n final String email = ((EditText) findViewById(R.id.etSignUpEmail))\n .getText().toString();\n final String password = ((EditText) findViewById(R.id.etSignUpPassword))\n .getText().toString();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:success\");\n sendVerificationEmail(mAuth.getCurrentUser());\n updateUI();\n } else {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:failure\");\n Toast.makeText(LoginActivity.this,\n \"Failed to create a new user.\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n }",
"public SignUp() {\n Logger.log(\"SHOWING SIGN-UP PAGE\");\n\n displaySurnameFields();\n displayNameFields();\n displayNicknameFields();\n displayEmailFields();\n displayPasswordFields();\n displayConfirmPassword();\n displayBirthdayFields();\n displayCountryFields();\n\n displayBackButton();\n displaySubmitButton();\n\n setSceneMusic(\"pallet_town.mp3\");\n }",
"String registerUser(User user);",
"private void createPersonFromUser(String fullname){\n String useruid=\"\";\n String useremail=\"\";\n\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n if (user != null) {\n // Name, email address, and profile photo Url\n String username = user.getDisplayName();\n useremail = user.getEmail();\n Uri photoUrl = user.getPhotoUrl();\n\n // The user's ID, unique to the Firebase project. Do NOT use this value to\n // authenticate with your backend server, if you have one. Use\n // FirebaseUser.getToken() instead.\n useruid = user.getUid();\n }\n\n Person person =new Person();\n person.setName(fullname);\n person.setEmail(useremail);\n person.setUid(useruid);\n person.setTime_to_stop(\"0\");\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference myRef= database.getReference(\"Person\");\n myRef.child(useruid).setValue(person);\n\n }",
"User register(String firstName, String lastName, String username, String email) throws UserNotFoundException, EmailExistException, UsernameExistsException, MessagingException;",
"private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }",
"@Test(groups = { \"android\", \"ios\", \"web\", \"BVT01\" })\n\tpublic void P0Pass_1_testSignUpAsATeacher_GirlScout() throws Exception {\n\t\tSystem.out.println(\"P0Pass_1_testSignUpAsATeacher_BoysScout\");\n\t\tString sEmail = \"test_GirlScouts\" + getTimeStamp().replaceAll(\"-\", \"_\") + \"@test.com\";\n\t\tSystem.out.println(sEmail);\n\t\tLandingPage.getLandingPage(browser).clickOnCreateAccount().clickOnCreateNewClassGroup().clickOnGirlScoutsGroup()\n\t\t.enterFirstName(\"test\").enterLastName(\"Girl Scouts\")\n\t\t.enterEmailId(sEmail).enterPassword(\"bloomz999\")\n\t\t.clickOnSignUpButton().thenVerifyCreateButtonShouldBeDisplayed().thenVerifyProfileName(\"test Girl Scouts\")\n\t\t.thenVerifyWelcomeScreenTroop(\"Create a Troop\").clickOnSettingButton().clickOnAccountSettingsButton()\n\t\t.clickOnDeleteAccountButton().selectReasonForDeleteButton().selectReasonAsOthersButton()\n\t\t.enterPassword().clickDeletePermanentButton().clickOnYesButton().thenVerifyConfirmMessage().clickOnOkButton()\n\t\t.thenVerifySignInAndCreateButtonsShouldBeDisplayed();\n\t}",
"public void createUserAccount(UserAccount account);",
"@Override\n public void onClick(View v) {\n firstNameText = capitalizeFirstLetter(firstNameET.getText().toString());\n lastNameText = capitalizeFirstLetter(lastNameET.getText().toString());\n emailText = (emailET.getText().toString()).toLowerCase();\n passwordText = passwordET.getText().toString();\n reEnterPasswordText = reEnterPasswordET.getText().toString();\n\n // Using the user-inputted information to register the user via this method\n registerUser(firstNameText, lastNameText, emailText, passwordText, reEnterPasswordText);\n }",
"private void register(String username,String password){\n\n }",
"public static void addUserToDb(Person person) {\n\n //converting person's data for SQL database\n String name = person.getName();\n int height = person.getHeight();\n double weight = person.getWeight();\n double waist = person.getWaistCircumference();\n int multiplier = person.getMultiplier();\n double calorieRate = person.getCalorieRate();\n String lastDate = getTodaysDate();\n\n //using data to create a query\n String dbQuery = \"INSERT INTO users(username, userheight, userweight, userwaist, usermultiplier, usercaloryrate, lastdate) \" +\n \"VALUES ('\" + name + \"', \" + height + \", \" + weight + \", \" + waist + \", \" +\n multiplier + \", \" + calorieRate + \", '\" + lastDate + \"')\";\n\n //sending a query and effectively adding user to the DB. Setting sql generated ID to the java object\n int personsId = DbConnector.addingNewRecordToDb(dbQuery);\n person.setId(personsId);\n }",
"public static void signUp(String username, String password, String alternativeEmail, String firstName, String lastName) {\n click(REGISTRATION_LINK);\n type(REG_FLOW_USERNAME_FIELD, username);\n click(REG_FLOW_CHECK_BUTTON);\n// if (!REG_FLOW_USERNAME_FREE_MESSAGE.toString().contains(\"Потребителското име е свободно\")) {\n// System.out.println(\"Try another username - the entered one is already in use\");\n// }\n type(REG_FLOW_PASSWORD_FIELD, password);\n type(REG_FLOW_PASSWORD_REENTER_FIELD, password);\n WebElement phoneCheckbox = Browser.driver.findElement(REG_FLOW_PHONE_CHECKBOX);\n if (phoneCheckbox.isEnabled()) {\n phoneCheckbox.click(); //that's how we disable it\n }\n type(REG_FLOW_ALTERNATIVE_EMAIL_FIELD, alternativeEmail);\n type(REG_FLOW_QUESTION_FIELD, \"To be or not to be?\");\n type(REG_FLOW_ANSWER_FIELD, \"To beeee.\");\n type(REG_FLOW_FNAME_FIELD, firstName);\n type(REG_FLOW_LNAME_FIELD, lastName);\n Browser.driver.switchTo().frame(\"abv-GDPR-frame\").manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n // Manually to tap ACCEPT on the GDPR window\n Browser.driver.switchTo().defaultContent();\n click(REG_FLOW_GENDER_RADIOBUTTON); //to choose male\n click(REG_FLOW_DAY_DROPDOWN);\n click(REG_FLOW_DAY_3); // to choose 3th\n click(REG_FLOW_MONTH_DROPDOWN);\n click(REG_FLOW_MONTH_5); // to choose May\n click(REG_FLOW_YEAR_DROPDOWN);\n click(REG_FLOW_YEAR_1998); // to choose 1998\n\n findElement(REG_FLOW_CAPTCHA_FIELD);\n click(REG_FLOW_CAPTCHA_FIELD);\n // Timeout to enter the CAPTCHA manually\n // EXPLICIT WAIT DA MU TURYA\n click(REG_FLOW_CREATE_BUTTON);\n String successfulRegMessage = Browser.driver.findElement(REG_SUCCESS_MESSAGE).getText().trim();\n assertTrue(successfulRegMessage.contains(\"Успешна регистрация.\"), \"No SUCCESS message\");\n click(LOGIN_TO_YOUR_EMAIL_BUTTON);\n }",
"private void SignUp(String email, String password) {\n if (TextUtils.isEmpty(email) || TextUtils.isEmpty(password) ) {\n\n }else {\n msignInDialog.setTitle(\"Creating New User\");\n msignInDialog.setMessage(\"Please wait while DevChat creates your new Account...\");\n msignInDialog.setCanceledOnTouchOutside(false);\n msignInDialog.show();\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Toast.makeText(ActivityRegister.this, \"User Account Created!\", Toast.LENGTH_SHORT).show();\n createUser(et_username.getText().toString());\n msignInDialog.dismiss();\n Intent chatBoxIntent = new Intent(ActivityRegister.this, Chatbox_Activity.class);\n Bundle bundle = new Bundle();\n bundle.putStringArray(\"values\", values);\n chatBoxIntent.putExtras(bundle);\n startActivity(chatBoxIntent);\n } else {\n msignInDialog.dismiss();\n Toast.makeText(ActivityRegister.this, \"Error Creating New User Account!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }",
"@Override\r\n\tpublic long registerUser(RegistrationDetailsDTO registrationDTO) {\n\t\tLOGGER.debug(\"Creating candidate profile\");\r\n\t\tCandidate candidate = new Candidate();\r\n\t\tBeanUtils.copyProperties(registrationDTO, candidate);\r\n\t\treturn registrationRepository.save(candidate).getId();\r\n\t}",
"public void registrarPersona() {\n\t\ttry {\n\t\t\tif (validaNumDocumento(getNumDocumentPersona())) {\n\t\t\t\t\tif (validaDireccion()) {\n\t\t\t\t\t\tif (validaApellidosNombres()) {\n\t\t\t\t\t\t\tPaPersona persona = new PaPersona();\n\t\t\t\t\t\t\tif (getActualizaPersona() != null && getActualizaPersona().equals(\"N\")) {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(Constante.RESULT_PENDING);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(getPersonaId() == null ? Constante.RESULT_PENDING: getPersonaId());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpersona.setTipoDocumentoId(Integer.valueOf(mapTipoDocumento.get(getTipoDocumento())));\n\t\t\t\t\t\t\tpersona.setNroDocIdentidad(getNumDocumentPersona());\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tif (persona.getTipoDocumentoId() == Constante.TIPO_DOCUMENTO_RUC_ID) {\n\t\t\t\t\t\t\t\tpersona.setRazonSocial(getRazonSocial());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPrimerNombre(getPrimerNombre());\n\t\t\t\t\t\t\t\tpersona.setSegundoNombre(getSegundoNombre());\n\t\t\t\t\t\t\t\tpersona.setApePaterno(getApellidoPaterno());\n\t\t\t\t\t\t\t\tpersona.setApeMaterno(getApellidoMaterno());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tPaDireccion direccion = new PaDireccion();\n\t\t\t\t\t\t\tdireccion.setDireccionId(getDireccionId() == null ? Constante.RESULT_PENDING: getDireccionId());\n\t\t\t\t\t\t\tif (getSelectedOptBusc().intValue() == 1) {\n\t\t\t\t\t\t\t\tdireccion.setTipoViaId(mapGnTipoVia.get(getCmbtipovia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setViaId(mapGnVia.get(getCmbvia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setLugarId(null);\n\t\t\t\t\t\t\t\tdireccion.setSectorId(null);\n\t\t\t\t\t\t\t\tdireccion.setNumero(numero);\n\t\t\t\t\t\t\t\tdireccion.setPersonaId(persona.getPersonaId());\n\n\t\t\t\t\t\t\t\tString direccionCompleta = papeletaBo.getDireccionCompleta(direccion,mapIGnTipoVia, mapIGnVia);\n\t\t\t\t\t\t\t\tif (direccionCompleta != null && direccionCompleta.trim().length() > 0) {\n\t\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(direccionCompleta);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(getDireccionCompleta());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tBuscarPersonaDTO personaDto = getPersonaDto(persona, direccion);\n\t\t\t\t\t\t\tString personaPapeleta = (String) getSessionMap().get(\"personaPapeleta\");\n\t\t\t\t\t\t\tif (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"I\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosInfractor(personaDto);\n\t\t\t\t\t\t\t} else if (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"P\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosPropietario(personaDto);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlimpiar();\n\t\t\t\t\t\t\tesContribuyente = (Boolean) getSessionMap().get(\"esContribuyente\");\n\t\t\t\t\t\t\tif (esContribuyente == true) {\t\n\t\t\t\t\t\t\t\tWebMessages.messageError(\"Es un Contribeyente s�lo se Actualiz� la Direcci�n para Papeletas, los otros datos es por DJ\");\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t\t.messageError(\"Apellidos y nombres no valido\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t.messageError(\"Especifique la direccion de la persona\");\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tWebMessages\n\t\t\t\t\t\t.messageError(\"Número de documento de identidad no valido\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void createGuestProfile() {\n saveData();\n signupDelegate.enableNextButton(Boolean.FALSE);\n SwingUtil.setCursor(this, java.awt.Cursor.WAIT_CURSOR);\n errorMessageJLabel.setText(getString(\"SigningUp\"));\n errorMessageJLabel.paintImmediately(0, 0, errorMessageJLabel.getWidth(),\n errorMessageJLabel.getHeight());\n try {\n getSignupHelper().createGuestProfile();\n } catch (final OfflineException ox) {\n logger.logError(ox, \"An offline error has occured.\");\n addInputError(getSharedString(\"ErrorOffline\"));\n } catch (final ReservationExpiredException rex) {\n logger.logWarning(rex, \"The username/e-mail reservation has expired.\");\n addInputError(getString(\"ErrorReservationExpired\"));\n } catch (final Throwable t) {\n logger.logFatal(t, \"An unexpected error has occured.\");\n addInputError(getSharedString(\"ErrorUnexpected\"));\n } finally {\n errorMessageJLabel.setText(\" \");\n }\n }",
"void registerUser(User newUser);",
"public int signUp(RestaurantDetails details);",
"public void create(Person person) {\n\t\tpersonRepository.save(person);\n\t}",
"public boolean SignUp(String username,String password,String realname) throws IOException, JSONException {\n OkHttpClient client = new OkHttpClient();\n RequestBody body = new FormBody.Builder()\n .add(\"user_id\",\"\")\n .add(\"user_code\", username)\n .add(\"user_pwd\", password)\n .add(\"user_name\", realname)\n .add(\"user_birthday\",\"\").build();\n String PcPath = \"http://www.mypc.com:8080\";\n String url=PcPath+\"/permission/user/useradd\";\n Request request = new Request.Builder().url(url).post(body).addHeader(\"Cookie\",this.jid).build();\n final Call call = client.newCall(request);\n Response response = call.execute();\n String responseData = response.body().string();\n JSONObject jsonObject = new JSONObject(responseData);\n int id = jsonObject.getInt(\"status\");\n if (id == 200) {\n return true;\n }\n return false;\n }",
"public void PersonalSignUp(String mobNumber,String OTP)\n\t{\n\t\twaitUntilElementIsVisible(btnSignUP);\n\t\tclick(btnSignUP, \"Click on Sign Up Button\");\n\t\twaitUntilElementIsVisible(clickonPersonalTab);\n\t\tclick(clickonPersonalTab, \"Click on PersonalTab Button\");\n\t\tclick(fieldMobNumOrEmail, \"Click on MobNumOrEmail Button\");\n\t\tstepsForSignUP(mobNumber,OTP);\t\n\t\t\t\n\t}",
"Account create();",
"private void signUpNewUserToDB(){\n dbAuthentication.createUserWithEmailAndPassword(this.newUser.getEmail(), this.newUser.getPassword())\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n /**signUp success, will update realTime DB ant firebase Authentication*/\n FirebaseUser currentUser = dbAuthentication.getCurrentUser();\n addToRealDB(currentUser.getUid());\n /**will send verification email to the user from Firebase Authentication*/\n currentUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n }\n });\n }else{isBadEmail = true;}\n }\n });\n }",
"@Override\r\n\tpublic void create(Person person) {\n\r\n\t}",
"private void signup(final String email, String password) {\n firebaseAuth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()) {\n databaseRef.child(firebaseAuth.getCurrentUser().getUid()).child(\"email\").setValue(email);\n startActivity(new Intent(getBaseContext(), ShoppingActivity.class));\n setResult(1);\n finish();\n } else {\n alert(task.getException().getMessage());\n }\n }\n });\n }",
"@Override\r\n\tpublic void create(Person p) \r\n\t{\n\t\t\r\n\t}",
"public void registration() {\n\t\tSystem.out.print(\"Enter Name : \");\r\n\t\tthis.name=scan.nextLine();\r\n\t\tSystem.out.print(\"Enter Age : \");\r\n\t\tthis.age=scan.nextInt();\r\n\t\tSystem.out.print(\"Enter Gender : \");\r\n\t\tthis.gender=scan.next().charAt(0);\r\n\t\tscan.nextLine();\r\n\t\tSystem.out.print(\"Enter Price : \");\r\n\t\tthis.price=scan.nextDouble();\r\n\t\tSystem.out.print(\"Enter Quantity : \");\r\n\t\tthis.quantity=scan.nextInt();\t\r\n\t\tSystem.out.println(\"Register Successfully\");\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditText emailText = (EditText)findViewById(R.id.reg_email);\n\t\t\t\tEditText firstNameText = (EditText)findViewById(R.id.reg_first_name);\n\t\t\t\tEditText lastNameText = (EditText)findViewById(R.id.reg_last_name);\n\t\t\t\tEditText userNameText = (EditText)findViewById(R.id.reg_username);\n\t\t\t\tEditText passwordText = (EditText)findViewById(R.id.reg_password);\n\t\t\t\tEditText phoneNumberText = (EditText)findViewById(R.id.reg_phone);\n\t\t\t\t\n\t\t\t\tregister(firstNameText.getText().toString(), lastNameText.getText().toString(), userNameText.getText().toString(), passwordText.getText().toString(), emailText.getText().toString(), phoneNumberText.getText().toString());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }",
"public Register() {\n user = new User();\n em = EMF.createEntityManager();\n valid = false;\n }",
"public static void signUp() {\n\t\t//donor's full name\n\t\tboolean flag = true;\n \tdo {\n \t\ttry{\n \t\t\tfullname = JOptionPane.showInputDialog(null,\"Enter your full name: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t\t\tif (fullname.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t\t\t}\n \t\t\t\tflag = false;\n \t\t} catch (InputMismatchException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter a valid name.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t\tflag = true;\n \t\t} catch (NullPointerException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter your name.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t\tflag = true;\n \t\t}\n\t\t}while (flag);\n\t\t\n //donor's username\n \tflag = true;\n \tdo {\n \t\ttry {\n \t\t\tusername = JOptionPane.showInputDialog(null,\"Enter your username: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t\t\tif (username.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t }\n \t\t\tflag = false;\n \t\t} catch (NullPointerException e) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please enter a username.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t flag = true;\n \t\t}\t\n \t}while (flag);\n \t\n\t\t//donor's email\n \t \tflag = true;\n \t \tdo {\n \t \t\ttry {\n \t \t\t\temail = JOptionPane.showInputDialog(null,\"Enter your email: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n \t \t\t\tif (email.equals(\"null\")) {\n \t\t\t\tthrow new NullPointerException();\n \t\t\t}\n \t\t\tflag = false;\n \t \t\t} catch (NullPointerException e) {\n \t \t\t\tJOptionPane.showMessageDialog(null, \"Please enter your email\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t \t\t}\t\n \t}while (flag);\n\n\t \t//donor's gender\n \t \tflag = false;\n \t \tObject[] opt = {\"Male\", \"Female\"};\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tint g = JOptionPane.showOptionDialog(null,\"Choose your gender: \", \"SIGN UP\", JOptionPane.YES_NO_OPTION,JOptionPane.PLAIN_MESSAGE, null, opt, null);\n\t\t\t\tif (g == 0) {\n\t\t\t\t\tgender = \"male\";\n\t\t\t\t} else if (g == 1){\n\t\t\t\t\tgender = \"female\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t\tflag = true;\n\t\t\t} catch (NullPointerException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your gender\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t}while (flag == false);\n\t\t\t\n\t\t//donor's bloodtype\n\t\tflag = true;\n\t\twhile (flag) {\n\t\t\tbloodtype = (String) JOptionPane.showInputDialog(null, \"Choose your blood type\", \"SIGN UP\", JOptionPane.PLAIN_MESSAGE, null, bloodtypes, \"O+\" );\n\t\t\ttry {\n\t\t\t\tif (bloodtype.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t} else {\n\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your blood type.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//donor's SSN\n\t\tflag = true;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tSSN = JOptionPane.showInputDialog(null,\"Enter your SSN: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tif (SSN.length() == 11) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"Please enter a valid SSN (11 digits)\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tif (SSN.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter your SSN\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}while (flag);\n\t\t\t\n\t\t//donor's region\n\t\tflag = true;\n\t\tObject[] possibilities = {\"Attica\",\"South Aegean Sea\",\"North Aegean Sea\",\"Central Greece\",\"West Greece\",\n\t\t\t \"Ionian Islands\",\"Thessaly\",\"Peloponnese\",\"Epirus\",\"Eastern Macedonia and Thrace\",\n\t\t\t \"Central Macedonia\",\"West Macedonia\",\"Crete\"};\n\t\twhile (flag) {\n\t\t\tregion = (String)JOptionPane.showInputDialog(null, \"Choose your region\", \"SIGN UP\", JOptionPane.PLAIN_MESSAGE, null, possibilities, \"Attica\" );\n\t\t\ttry {\n\t\t\t\tif (region.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t} else {\n\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please choose your region.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t} \n\t\t}\n\t\t\n\t\t//donor's password\n\t\tflag = true;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tpassword = JOptionPane.showInputDialog(null,\"Enter your password: \", \"SIGN UP\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tif (password.matches(\"^.*(?=.{4,10})(?=.*\\\\d)(?=.*[a-zA-Z]).*$\")) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Your password must contain both numbers and letters.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tif (password.equals(null)) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter your password\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\t\t\t\n\t\t}while(flag);\n\n\t\t//insert user's data into data base\n\t\ttry {\n\t\t\tint rs = Messages.connect().executeUpdate(\"INSERT INTO BloodDonor (B_Name, B_Username, B_email, B_password, Gender, BloodType, SSN, Region)\" + \n\t\t\t\t\"VALUES ('\" + fullname + \"', '\" + username + \"', '\" + email + \"', '\" + password + \"', '\" + gender + \"', '\" + bloodtype + \"', '\" + SSN + \"', '\" + region + \"')\");\n\t\t\tMessages.connect().close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t//insertAnswers(username);\n\t}",
"@Override\n public void performRegister(final String name, final String email, final String gender, final String password){\n\n mAuth.createUserWithEmailAndPassword(email.toLowerCase(),password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n User user = new User();\n user.setName(name);\n user.setEmail(email.toLowerCase());\n user.setGender(gender);\n user.setPassword(password);\n FirebaseDatabase.getInstance().getReference(\"Users\")\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(context, \"Authentication Success.\",\n Toast.LENGTH_LONG).show();\n view.redirectToLogin();\n } else {\n Toast.makeText(context, \"Authentication Failed.\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n } else {\n Log.w(TAG, \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(context, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n }",
"private void signUpEvt() {\n String emailRegex = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\n // Get User Details\n String fullname = this.view.getWelcomePanel().getSignUpPanel().getFullnameText().getText().trim();\n String email = this.view.getWelcomePanel().getSignUpPanel().getEmailText().getText().trim();\n String password = new String(this.view.getWelcomePanel().getSignUpPanel().getPasswordText().getPassword()).trim();\n\n if (!fullname.equals(\"\") && !email.equals(\"\") && !password.equals(\"\")) {\n if (email.matches(emailRegex)) {\n if (model.getSudokuDB().registerUser(fullname, email, password)) {\n view.getWelcomePanel().getCardLayoutManager().next(view.getWelcomePanel().getSlider());\n // Clear Fields\n view.getWelcomePanel().getSignUpPanel().clear();\n Object[] options = {\"OK\"};\n JOptionPane.showOptionDialog(this, \"Your registration was successful!\\n You can now sign in to your account.\", \"Successful Registration\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n } else {\n Object[] options = {\"Let me try again\"};\n JOptionPane.showOptionDialog(this, \"Your registration was unsuccessful!\\nBe sure not to create a duplicate account.\", \"Unsuccessful Registration\", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, null);\n }\n } else {\n // Email doesn't meet requirement\n Object[] options = {\"I will correct that\"};\n JOptionPane.showOptionDialog(this, \"You must provide a valid email address.\", \"Invalid Email Address\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n } else {\n // Empty Fields\n Object[] options = {\"Alright\"};\n JOptionPane.showOptionDialog(this, \"In order to register, all fields must be filled out.\", \"Empty Fields\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n }",
"public void createUser(String firstName, String emailAddress) {\n\n this.firstName = firstName;\n this.emailAddress = emailAddress;\n\n }",
"public void registerUser(View view) {\n this.closeKeyboard();\n this.validator.validate();\n if (this.validator.hasNoErrors()) {\n User user = createUser();\n RealmUser registeredUser = registerUserDetails(user);\n //TODO register on server.\n if (registeredUser != null) {\n new MockUserRegistrationService().registerUser(user.getFirstName(), user.getLastName(), user.getEmail(), user.getInsuranceProvider(), user.getInsurancePlan());\n doOnRegistrationSuccess();\n }\n }\n }",
"@PostMapping(\"/register\")\r\n public Guardian createGuardian(@Valid @RequestBody RegistrationInfo registrationInfo) throws UserExistException {\r\n User user = userService.save(new User(registrationInfo));\r\n if (user != null) {\r\n return guardianRepository.save(new Guardian(registrationInfo));\r\n } else {\r\n throw new UserExistException(\"User is empty. Something went wrong.\");\r\n }\r\n }",
"void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);",
"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 createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"Boolean startRegistration(FaceuserPojo faceuserPojo);",
"public void savePerson() {\n\t\tSystem.out.println(\"save person\");\n\t}",
"public void savePerson() {\n\t\tSystem.out.println(\"save person\");\n\t}",
"public boolean registerNewUser(String un, String pw, String fn, String ln, String sq, String sa, int age) {\n\n boolean success;\n\n if (isUsernameExist(un)) {\n success = false;\n }\n else {\n // encrypting input password\n SHAEncryption sha = new SHAEncryption();\n String shaPW = sha.getSHA(pw);\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // creating new user document based on the input from UI\n Document newUser = new Document(\"username\", un)\n .append(\"password\", shaPW)\n .append(\"firstName\", fn)\n .append(\"lastName\", ln)\n .append(\"age\", age)\n .append(\"secureQ\", sq)\n .append(\"secureA\", sa.toLowerCase())\n .append(\"status\", \"\")\n .append(\"hidefriends\",false)\n .append(\"hideposts\",false)\n .append(\"hideage\",false)\n .append(\"hidestatus\",false);\n\n // insert newUser into registeredUser collection\n collRU.insertOne(newUser);\n System.out.println(\"Username \" + un + \" is registered!\");\n success = true;\n \n // create followList for new user\n db.getCollection(\"followList\").insertOne(\n new Document(\"username\", un).append(\"following\", new ArrayList<String>()));\n }\n\n return success;\n }",
"int insertPerson(UUID id, Person person);",
"private void registerUser(final String firstName, final String lastName, final String email, final String password, final String reEnterPassword) {\n\n if (validRegister(firstName, lastName, email, password, reEnterPassword)){\n mSignUpPresenter.registerUser(NetworkUtils.getInstance(this), email, password, firstName, lastName);\n }\n\n }",
"public void insertUser() {}",
"@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(\"[email protected]\").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 }",
"public void signup(String name, String uname, String passwd) {\n\t\t\n\t\tNameValueSet.Builder value = NameValueSet.newBuilder();\n\t\tvalue.setName(\"SignUp_name\");\n\t\tvalue.setValue(\"SignUp_value\");\n\t\t\n\t\tJobDesc.Builder desc = JobDesc.newBuilder();\n\t\tdesc.setNameSpace(\"SignUp_namespace\");\n\t\tdesc.setJobId(\"Zero\");\n\t\tdesc.setOwnerId(0);\n\t\tdesc.setStatus(JobCode.JOBUNKNOWN);\n\t\tdesc.setOptions(value.build());\n\t\t\n\t\tJobOperation.Builder j = eye.Comm.JobOperation.newBuilder();\n\t\tj.setAction(JobAction.ADDJOB);\n\t\tj.setJobId(\"Zero\");\n\t\tj.setData( desc.build());\n\n\t\t\t\n\t\tSignUp.Builder sb= eye.Comm.SignUp.newBuilder();\n\t\tsb.setFullName(name);\n\t\tsb.setUserName(uname);\n\t\tsb.setPassword(passwd);\n\t\t \n\n\t\t// Payload containing data\n\t\tRequest.Builder r = Request.newBuilder();\n\t\teye.Comm.Payload.Builder p = Payload.newBuilder();\n\t\tp.setSignUp(sb.build());\n\t\tp.setJobOp(j.build());\n\t\tr.setBody(p.build());\n\n\t\t// header with routing info\n\t\teye.Comm.Header.Builder h = Header.newBuilder();\n\t\th.setOriginator(\"client\");\n\t\th.setTag(\"Sign up\");\n\t\th.setTime(System.currentTimeMillis());\n\t\th.setRoutingId(eye.Comm.Header.Routing.JOBS);\n\t\tr.setHeader(h.build());\n\n\t\teye.Comm.Request req = r.build();\n\n\t\ttry {\n\t\t\tcomm.sendMessage(req);\n\t\t} catch (Exception e) {\n\t\t\tlogger.warn(\"Unable to deliver message, queuing\");\n\t\t}\n\t}",
"@Override\n public void onClick(View v) {\n Phone = RegisterPhone.getText().toString();\n Password = RegisterPassword.getText().toString();\n Name = RegisterName.getText().toString();\n\n\n CreateNewAccount(Phone,Password,Name);\n }"
] |
[
"0.7220531",
"0.7027089",
"0.68611294",
"0.6856639",
"0.681934",
"0.6804739",
"0.6724218",
"0.6715497",
"0.6687072",
"0.66854596",
"0.6648085",
"0.6628545",
"0.65509343",
"0.65281886",
"0.6524966",
"0.6512257",
"0.64841765",
"0.64791435",
"0.64694226",
"0.6464894",
"0.6462192",
"0.6451061",
"0.6417935",
"0.64107484",
"0.6407619",
"0.6384626",
"0.63822526",
"0.63710266",
"0.6367424",
"0.63664716",
"0.63664335",
"0.6355759",
"0.6346957",
"0.63431025",
"0.6328428",
"0.63209397",
"0.6314928",
"0.6311705",
"0.62880147",
"0.62838936",
"0.627879",
"0.6262905",
"0.6241061",
"0.6223642",
"0.6211628",
"0.61978567",
"0.61938685",
"0.6186878",
"0.6185869",
"0.6177473",
"0.61681926",
"0.61675864",
"0.61662227",
"0.6164228",
"0.6160585",
"0.6150125",
"0.61449504",
"0.61344296",
"0.6133951",
"0.6130205",
"0.6127682",
"0.61271405",
"0.61245364",
"0.61190104",
"0.611758",
"0.6117468",
"0.6115605",
"0.610799",
"0.6107213",
"0.61031085",
"0.6102706",
"0.6089353",
"0.6084062",
"0.6083937",
"0.60825115",
"0.60796374",
"0.60628045",
"0.6060614",
"0.6058829",
"0.60581833",
"0.60552216",
"0.60548806",
"0.60482824",
"0.6046394",
"0.60444325",
"0.6032995",
"0.60323334",
"0.6013866",
"0.6002207",
"0.6001574",
"0.59959537",
"0.59895563",
"0.59895563",
"0.5988499",
"0.59857404",
"0.5984029",
"0.5979113",
"0.5974829",
"0.5973197",
"0.5965224"
] |
0.6346811
|
33
|
Created by Ezequiel Suarez Buitrago, Thomas Tibebu, Innocent Kateba, shuling he, Wenxin He, Tram Ly Date April 20, 2019
|
public interface AES {
public String encrypt(String strToEncrypt);
public String decrypt(String strToDecrypt);
public String getSecretKeyWord();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n protected void getExras() {\n }",
"public void mo38117a() {\n }",
"private void poetries() {\n\n\t}",
"@Override\n public void perish() {\n \n }",
"public void mo4359a() {\n }",
"public String getName() {\n/* 50 */ return \"M\";\n/* */ }",
"abstract String mo1748c();",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"private UsineJoueur() {}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public void mo12628c() {\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"public void mo12930a() {\n }",
"public void mo55254a() {\n }",
"public Pitonyak_09_02() {\r\n }",
"private stendhal() {\n\t}",
"public abstract String mo13682d();",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void mo1531a() {\n }",
"public void mo9848a() {\n }",
"public abstract String mo9239aw();",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"protected void mo6255a() {\n }",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public abstract String mo9751p();",
"Petunia() {\r\n\t\t}",
"protected boolean func_70814_o() { return true; }",
"java.lang.String getField1489();",
"public abstract String mo118046b();",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public abstract String mo41079d();",
"@Override\n\t\t\tpublic int describeContents() {\n\t\t\t\treturn 0;\n\t\t\t}",
"public void mo6081a() {\n }",
"public void mo21783H() {\n }",
"private TMCourse() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void mo21878t() {\n }",
"@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }",
"public void mo21779D() {\n }",
"public abstract long mo9229aD();",
"@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}",
"public abstract String mo11611b();",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}",
"abstract C0451h mo1607e();",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"public void mo21794S() {\n }",
"public abstract void mo70713b();",
"public abstract void mo56925d();",
"public void mo21879u() {\n }",
"public int getNotaFinal()\r\n {\n return 4;\r\n }",
"public int getNotaFinal()\r\n {\n return 4;\r\n }",
"public void mo1403c() {\n }",
"@Override\n public int getOrder() {\n return 4;\n }",
"public String limpiar()\r\n/* 509: */ {\r\n/* 510:529 */ return null;\r\n/* 511: */ }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"private zza.zza()\n\t\t{\n\t\t}",
"public void mo3749d() {\n }",
"@Override public int describeContents() { return 0; }",
"public void skystonePos6() {\n }",
"java.lang.String getField1853();",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic int sequence() {\n\t\treturn 0;\n\t}",
"java.lang.String getField1873();",
"java.lang.String getField1829();",
"private TipoAtaque generateTipoAtaque() {\n\t\treturn null;\r\n\t}",
"public void skystonePos4() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"java.lang.String getField1837();",
"public abstract Object mo1771a();",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public void mo21787L() {\n }",
"public void mo21793R() {\n }",
"public final void mo91715d() {\n }",
"private USI_TRLT() {}",
"public void mo21782G() {\n }",
"java.lang.String getField1737();",
"java.lang.String getField1773();"
] |
[
"0.5307462",
"0.5288799",
"0.5276887",
"0.52583754",
"0.5252223",
"0.51988304",
"0.51667124",
"0.51580584",
"0.5155413",
"0.5149978",
"0.5122967",
"0.5113463",
"0.5113463",
"0.5113463",
"0.5113463",
"0.5113463",
"0.5113463",
"0.5113463",
"0.5069121",
"0.5052415",
"0.503952",
"0.5026706",
"0.5021574",
"0.50195587",
"0.50083125",
"0.49861592",
"0.49854577",
"0.4982265",
"0.49707",
"0.49554566",
"0.4951844",
"0.49476892",
"0.4945923",
"0.49417925",
"0.49417925",
"0.49404573",
"0.49298283",
"0.49239478",
"0.49179065",
"0.4893901",
"0.48788744",
"0.4870029",
"0.48694614",
"0.48640582",
"0.48555616",
"0.4848313",
"0.48475954",
"0.4844537",
"0.4838444",
"0.48291826",
"0.48209175",
"0.48208317",
"0.48127452",
"0.48102623",
"0.48010233",
"0.47928342",
"0.47792417",
"0.47736484",
"0.47644594",
"0.47632515",
"0.47622833",
"0.4761478",
"0.47596517",
"0.47593316",
"0.4757045",
"0.4749247",
"0.47472724",
"0.4746718",
"0.47461912",
"0.4744217",
"0.47427192",
"0.47421294",
"0.47416604",
"0.47411954",
"0.47411954",
"0.4740758",
"0.47343442",
"0.47340178",
"0.47316194",
"0.47301647",
"0.47297388",
"0.47297093",
"0.47287983",
"0.47195327",
"0.471376",
"0.4712436",
"0.47118124",
"0.47104955",
"0.47091526",
"0.47091314",
"0.47060832",
"0.4705428",
"0.47047508",
"0.47039312",
"0.47005415",
"0.47002012",
"0.46996716",
"0.46954176",
"0.46875206",
"0.46873412",
"0.46849734"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public List<String> viewAllProjects(String userId) {
return fileDao.getUserAllProjectsName(userId);
}
|
{
"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 List<String> viewUndoData(String userId, String projectId) {
return fileDao.viewUndoData(userId, projectId);
}
|
{
"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 List<String> viewDoneData(String userId, String projectId) {
return fileDao.viewDoneData(userId, projectId);
}
|
{
"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 String getAData(String userId, String projectId, String dataId) {
return fileDao.getAData(userId, projectId, dataId);
}
|
{
"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 Tag getATag(String userId, String projectId, String tagId) {
return fileDao.getATag(userId, projectId, tagId);
}
|
{
"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 String uploadDataSet(String userId, MultipartFile dataSet) {
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public boolean uploadTag(String userId, String projectId, String tagId, Tag tag) {
return fileDao.uploadTag(userId, projectId, tagId, tag);
}
|
{
"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
|
Name of the Test :QTH12_CQTValidateSoftwareLicenseFields Migration Author : Cigniti Technologies Date of Migration : OCT 2019 DESCRIPTION : This method is to perform Quote History search with date operations. Parameters : StartRow ,EndRow , nextTestJoin
|
@Parameters({ "StartRow", "EndRow", "nextTestJoin" })
@Test
public void TC_QTH12(int StartRow, String EndRow, boolean nextTestJoin) throws Throwable {
int counter = 0;
try {
int intStartRow = StartRow;
int intEndRow = ReportControl.fnGetEndRowCunt(EndRow, "QTH12_CQTValidateSoftwareLicenseFields", TestDataInsight, "Quote_History");
for (int intCounter = intStartRow; intCounter <= intEndRow; intCounter++) {
try {
counter = intCounter;
fnOpenTest();
ReportStatus.fnDefaultReportStatus();
ReportControl.intRowCount = intCounter;
Hashtable<String, String> data = TestUtil.getDataByRowNo("QTH12_CQTValidateSoftwareLicenseFields", TestDataInsight, "Quote_History", intCounter);
TestEngineWeb.reporter.initTestCaseDescription("CQTValidateSoftwareLicenseFields");
ShipBillPayLib sbpLib=new ShipBillPayLib();
navigateToApplication("SMART");
Thread.sleep(4000);
loginlib.loginIntoSmartApplication(data.get("UserName"),data.get("Password"));//QTPSVC,!OffShore!
Thread.sleep(4000);
Homelib.EnterSalesDocNumber(data.get("SalesDoc"));//0219334395
Homelib.clickOnSalesDocSearch();
Homelib.clickSalesDocDropdown(data.get("DDOption"));//Copy to Quote
Thread.sleep(4000);
Homelib.clickYesButtontocloseDocument();
Thread.sleep(4000);
Homelib.clickSideBarSmart();
Homelib.clickonSaveasQuote();
Homelib.enterCancelButtonInPoupHdr();
Thread.sleep(4000);
String QuoteNum= Homelib.getSaveQuoteNumber();
Thread.sleep(4000);
Homelib.clickSideBarSmart();
Homelib.clickClosthedocument(QuoteNum);
Homelib.clickYesButtontocloseDocument();
Thread.sleep(4000);
cmtLib.loginToCMT(data.get("Header"));
cmtLib.loginToCMTSearchWebGrpAndUser(data.get("Header"), data.get("WebGrp"),
data.get("LnameEmailUname"), data.get("ContactName"));
// Enable Quotes Check Box
cmtLib.setPermissions(data.get("Menu_Name"), data.get("Set_Permission"));
cmtLib.clickOnloginAs();
switchToChildWindow();
cmtLib.loginVerification(data.get("ContactName"));
clickToolsMenu(data.get("Tools_Menu"), data.get("Tools_Menu_DD"));
verifyQuoteHistory();
quickSearchAndVerifySearchResults(data.get("SearchBy"),QuoteNum);
verifyAndClickQuoteNumberOnHistory();
verifyQuoteDetails();
orderLib.convertQuote();
cartLib.verifyCartBreadCrumb();
// Proceed to checkout
orderLib.proceedToCheckout();
addAdditionalInformation(data.get("BUSINESSUNIT"),data.get("OPERATINGUNIT"),data.get("LOCATIONCODE"),data.get("DEPARTMENT"),data.get("ACCOUNT"),data.get("ENTITYNAME"),data.get("ENDUSERCONTACT"),data.get("ORDERCONTACT"),data.get("LICENCE"));
orderLib.shippingBillPayContinueButton(); // Click continue on shipping address
orderLib. shippingBillPayContinueButton();
orderLib.clickOnReviewOrderButton();
// Place Order
String summaryAmount = cartLib.getSummaryAmountInCart();
orderLib.placeOrderAndVerifyReceiptOrderAndDate(summaryAmount);
// Verify Receipt
orderLib.verifyReceiptVerbiage();
String ReferenceNumber = sbpLib.getReferenceNum();
orderLib.clickOrderDetailsLinkOnReceiptPage();
verifyContactName(data.get("ContactName"));
canadaLib.clickOnInvoiceHistory();
canadaLib.clickOnSideMenuSelectAccountToolOptions(data.get("Tools_Menu"), data.get("Tools_Menu_DD"));
quickSearchAndVerifySearchResults(data.get("SearchBy1"),ReferenceNumber);
commonLib.clickLogOutLink(data.get("Logout_Header"));
} catch (Exception e) {
ReportStatus.blnStatus = false;
gErrorMessage = e.getMessage();
gTestStatus = false;
}
}
} catch (Exception e) {
e.printStackTrace();
ReportStatus.blnStatus = false;
gErrorMessage = e.toString();
gTestStatus = false;
ReportStatus.fnUpdateResultStatus("CQTValidateSoftwareLicenseFields", "TC_QTH12", ReportStatus.strMethodName, 1, browser);
throw new RuntimeException(e);
}
finally {
ReportControl.fnEnableJoin();
ReportStatus.fnUpdateResultStatus("CQTValidateSoftwareLicenseFields", "TC_QTH12", ReportStatus.strMethodName, counter, browser);
fnCloseTest();
ReportControl.fnNextTestJoin(nextTestJoin);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Parameters({ \"StartRow\", \"EndRow\", \"nextTestJoin\" })\n\t\t@Test\n\t\tpublic void TC_ROD06(int StartRow,String EndRow, boolean nextTestJoin) throws Throwable {\n\t\t\ttry {\n\t\t\t\tint intStartRow = StartRow;\n\t\t\t\tint intEndRow = ReportControl.fnGetEndRowCunt(EndRow, \"ROD06_FCTWebReviewExport\", TestData, \"Web_Review_Order\");\n\t\t\t\tfor (int intCounter = intStartRow; intCounter <= intEndRow; intCounter++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfnOpenTest();\n\t\t\t\t\t\tReportStatus.fnDefaultReportStatus();\n\t\t\t\t\t\tReportControl.intRowCount = intCounter;\n\t\t\t\t\t\tHashtable<String, String> data = TestUtil.getDataByRowNo(\"ROD06_FCTWebReviewExport\", TestData, \"Web_Review_Order\", intCounter);\n\t\t\t\t\t\tTestEngineWeb.reporter\n\t\t\t\t\t\t\t\t.initTestCaseDescription(\"FCTWebReviewExport\");\n\t\t\t\t\t\treporter.SuccessReport(\"Iteration Number : \",\n\t\t\t\t\t\t\t\t\"**************Iteration Number:: \" + intCounter + \" For:: \" + data.get(\"LoginName\") + \" ::and:: \"\n\t\t\t\t\t\t\t\t\t\t+ data.get(\"Password\") + \" To Validate::\" + data.get(\"errorMessage\") + \" **************\",\n\t\t\t\t\t\t\t\t\"\");\n\n\n\t\t\t\t\t\tcmtLib.loginToCMTSelectUserAndLoginAS(data.get(\"Header\"), data.get(\"WebGrp\"), data.get(\"WebGrp_Name\"), data.get(\"Manage_Web_Grp_Options\"), data.get(\"LnameEmailUname\"), data.get(\"ContactName\"));\n\t\t\t\t\t\tsearchLib.searchInHomePage(data.get(\"SearchText1\"));\n\t\t\t\t\t\tprodLib.selectFirstProductAddToCartAndVerifyCart();\n\t\t\t\t\t\tcartLib.verifyQuickShopWithValidSinglePartNumber(data.get(\"QuickShop_Part\"), data.get(\"Quantity\"));\n\n\n\t\t\t\t\t\t// ******** Need To Add verify Export Excel ***************// -- Verify 1 item added\n\t\t\t\t\t\tcartLib.ClickExportCartAndVerify(data.get(\"Order_Utilities\"));\n\n\t\t\t\t\t\t// proceed To Checkout >> Fill Additional Information section >>> Fill Line level Information >>> Fill Order and Item Info page - Review Order\n\t\t\t\t\t\tproceedToCheckout();\n\t\t\t\t\t\tclickContinueOnLLIAndShipBillPaySections(); // Click continue\n\t\t\t\t\t\tselectPaymentInfoMethodCreditCard(data.get(\"Card_Number\").toString(), data.get(\"Card_Name\"), data.get(\"Month\"), data.get(\"Year\"),data.get(\"PO_Number\"));\n\t\t\t\t\t\tclickOnReviewOrderButton();\n\n\t\t\t\t\t\t// ******** Need To Add verify Export Excel ***************// -- Verify 2 items added\n\t\t\t\t\t\tcartLib.ClickExportCartAndVerify(data.get(\"Order_Utilities\"));\n\n\t\t\t\t\t\t// SearchPart OR Product\n\t\t\t\t\t\tsearchLib.searchInHomePage(data.get(\"SearchText2\"));\n\t\t\t\t\t\tprodLib.selectFirstProductAddToCartAndVerifyCart();\n\n\t\t\t\t\t\t// proceed To Checkout and click continue on Line Level information Section, shipping address,Shipping options, Billing address section >> Review Order\n\t\t\t\t\t\tproceedToCheckout();\n\t\t\t\t\t\tclickContinueOnLineLevelInfo();\n\t\t\t\t\t\tshippingBillPayContinueButton();\n\t\t\t\t\t\tshippingOptionsCarrierSelection();\n\t\t\t\t\t\tshippingBillPayContinueButton();\n\t\t\t\t\t\tclickOnReviewOrderButton();\n\n\t\t\t\t\t\t// ******** Need To Add verify Export Excel ***************// -- Verify 3 items added\n\t\t\t\t\t\tcartLib.ClickExportCartAndVerify(data.get(\"Order_Utilities\"));\n\n\t\t\t\t\t\t// Navigate to Account tools >> Company Standards\n\t\t\t\t\t\tsearchLib.selectAccountToolsFromSideMenuAndClickOnProductGrp(data.get(\"Tools_Menu\"), data.get(\"Tools_Menu_DD\"),data.get(\"Product_Group\"),data.get(\"Product_Name\"));\n\t\t\t\t\t\tsearchLib.clickAddToOrderOnCompanyStandardsScreen();\n\n\t\t\t\t\t\t// Verifying Bundle added to cart\n\t\t\t\t\t\tcartLib.verifyProductGroupBundleAddedToCart(data.get(\"Product_Name\"));\n\n\t\t\t\t\t\t// proceed To Checkout >> Fill Additional Information section >>> Fill Line level Information >>> Fill Order and Item Info page - Review Order\n\t\t\t\t\t\tproceedToCheckout();\n\n\t\t\t\t\t\tcontinueButtonOnAdditionalInformationSection(); // Click continue button on Add additional info\n\t\t\t\t\t\tclickContinueOnLLIAndShipBillPaySections(); // Click continue\n\t\t\t\t\t\tclickOnReviewOrderButton(); // Click Review order button\n\n\t\t\t\t\t\t// ******** Need To Add verify Export Excel ***************// -- Verify bundle items added\n\t\t\t\t\t\tcartLib.ClickExportCartAndVerify(data.get(\"Order_Utilities\"));\n\t\t\t\t\t\t//fnCloseTest();\n\t\t\t\t\t\tSystem.out.println(\"Test completed\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tReportStatus.blnStatus = false;\n\t\t\t\t\t\tgErrorMessage = e.getMessage();\n\t\t\t\t\t\tgTestStatus = false;\n\t\t\t\t\t}\n\t\t\t\t\tReportControl.fnEnableJoin();\n\t\t\t\t\tReportStatus.fnUpdateResultStatus(\"ROD\", \"ROD06\", ReportStatus.strMethodName, intCounter, browser);\n\t\t\t\t\tfnCloseTest();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tReportStatus.blnStatus = false;\n\t\t\t\tgErrorMessage = e.getMessage();\n\t\t\t\tgTestStatus = false;\n\t\t\t\tReportStatus.fnUpdateResultStatus(\"ROD\", \"ROD06\", ReportStatus.strMethodName, 1, browser);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\n\t\t\tReportControl.fnNextTestJoin(nextTestJoin);\n\t\t}",
"@Parameters({\"StartRow\",\"EndRow\",\"nextTestJoin\"})\n\t@Test()\n\tpublic void submitTowRSORequest(int StartRow,String EndRow,boolean nextTestJoin) throws Throwable {\n\t\ttry\n \t{\n \t\tint intStartRow=StartRow;\n \t\tint intEndRow=ReportControl.fnGetEndRowCunt(EndRow, \"submitTowRSORequest\", TestData, \"RSOMobile\");\n \t\tfor(int intCounter=intStartRow;intCounter<=intEndRow;intCounter++)\n \t\t{\n \t\t\ttry {\n \t\t\t\t\tReportStatus.fnDefaultReportStatus();\n \t\t\t\t\tReportControl.intRowCount=intCounter;\n \t\t\t\t\tHashtable<String, String> data=TestUtil.getDataByRowNo(\"submitTowRSORequest\", TestData, \"RSOMobile\",intCounter);\n\t\t\n\t\t\t\t\t\tthis.reporter.initTestCaseDescription(\"1623 TC - Submit Tow RSO Requests\"+ \" From Iteration \" + StartRow + \" to \" + EndRow );\n\t\t\t\t\t\treporter.SuccessReport(\"Iteration Number : \",\"**************Iteration Number:: \"+ intCounter+\" **************\");\n\t\t\t \t\t\n\t\t\t\t\t\tif (!isVisibleOnly(LaunchPage.continueButton, \"launch page continue btn\")) {\n\t\t\t\t\t\t\tclick(NotificationsPage.allowButton,\"Allow Permissions\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(isVisibleOnly(HomePage.loginButton, \"fetch logininHomePage\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thome.clickLogin();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlaunch.enterZIPCodeandselectContinue(data.get(\"ZIPCode\"));\n\t\t\t\t\t\tclub.clickOnSelectedClub();\n\t\t\t\t\t\tif(waitForVisibilityOfElement(NotificationsPage.allowButton,\"Allow Permissions\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tclick(NotificationsPage.allowButton,\"Allow Permissions\");\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(isVisibleOnly(HomePage.loginButton, \"fetch logininHomePage\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thome.clickLogin();\n\t\t\t\t\t\t\t//select club\n\t\t\t\t\t\t\tclub.clickOnSelectedClub();\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\tmemberInfo.clickAndEnterMembershipNumber(data.get(\"MemberNumber\"));\n\t\t\t\t\t\tmemberInfo.clickContinueButton();\n\t\t\t\t\t\tnotifications.verifyPushNotificationsLabel();\n\t\t\t\t\t\tnotifications.yesPushNotificationsLabel();\n\t\t\t\t\t\thome.clickRoadSideAssistance();\n\t\t\t\t\t\tnotifications.clickUntillOkDisappears();\n\t\t\t\t\t\tbreakdownlocation.enterAndSelectBreakDownLocation(data.get(\"BreakdownLocation\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\tvehicleinformation.clickAddNewVehicle();\n\t\t\t\t\t\ttellaboutvehicle.verifySaveButtonDisable();\n\t\t\t\t\t\ttellaboutvehicle.clickVehicleYearNumber();\n\t\t\t\t\t\ttellaboutvehicle.clickVehicleMakeName();\n\t\t\t\t\t\ttellaboutvehicle.clickVehicleModeleName();\n\t\t\t\t\t\ttellaboutvehicle.clickVehicleColor();\n\t\t\t\t\t\ttellaboutvehicle.clickSaveVehicle();\n\t\t\n\t\t\t\t\t\tvehicleinformation.clickExistingVehicle();\n\t\t\t\t\t\tprimaryTow.clickMechanicalProblemLabel();\n\t\t\t\t\t\tprimaryTow.clickPossibleEngineProblemLabel();\n\t\t\t\t\t\tprimaryTow.clickHomeLabel();\n\t\t\n\t\t\t\t\t\t//secondaryTow.clickSearchIcon();\n\t\t\t\t\t\tsecondaryTow.clickTowLocationField();\n\t\t\t\t\t\tsecondaryTow.clickCloseIcon();\n\t\t\t\t\t\tsecondaryTow.enterTowLocationAddress(data.get(\"TowDestination\"));\n\t\t\t\t\t\tnotifications.clickunableAuthorizeServiceCancel();\n\t\t\t\t\t\tsecondaryTow.clickNextBtn();\n\t\t\n\t\t\t\t\t\tcontactInformation.getContactNumber();\n\t\t\t\t\t\tcontactInformation.clickonSendRequest();\n\t\t\t\t\t\t\n\t\t\t\t\t\tanxietyScreen.estimatedTimeToArrive();\n\t\t\t\t\t\tanxietyScreen.verifyDidYouKnow();\n\t\t\t\t\t\tanxietyScreen.didYouKnowUpdatesLabel();\n \t\t\t}\n \t\t\tcatch(Exception e)\n \t\t\t{\n \t\t\t\tReportStatus.blnStatus=false;\n \t\t\t}\n \t\t\tReportControl.fnEnableJoin();\n \t\t\tReportStatus.fnUpdateResultStatus(\"RSO\",\"1623\",ReportStatus.strMethodName,intCounter,platformNameMobile);\n \t\t}\n \t}\n \tcatch (Exception e) \n \t{\n \t\te.printStackTrace();\n \t\tthrow new RuntimeException(e);\n \t}\n \tReportControl.fnNextTestJoin(nextTestJoin);\n }",
"@Test\n\tpublic void RevenueLineItems_19348_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\t\t\n\t\t// Create a quote edit, add a new QLI and save record\n\t\tSimpleDateFormat sdFmt = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString todaysDate = sdFmt.format(new Date());\n\t\t// TODO: VOOD-1898 Quote + QLI conversion to Opportunity + RLI: Duplicates RLIs created if Quote is API-created\n\t\tsugar().navbar.selectMenuItem(sugar().quotes, \"create\" + sugar().quotes.moduleNameSingular);\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tsugar().quotes.editView.getEditField(\"name\").set(testName);\n\t\tsugar().quotes.editView.getEditField(\"date_quote_expected_closed\").set(todaysDate);\n\t\tsugar().quotes.editView.getEditField(\"billingAccountName\").set(myAcc.getRecordIdentifier());\n\t\t\n\t\t// Add QLI details\n\t\t// TODO: VOOD-930 Library support needed for controls on Quote editview \n\t\tDataSource testDS = testData.get(testName);\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='add_group']\").click();\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='Add Row']\").click();\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='quantity[1]']\").set(testDS.get(0).get(\"quantity\"));\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='product_name[1]']\").set(testDS.get(0).get(\"product_name\"));\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='cost_price[1]']\").set(testDS.get(0).get(\"cost_price\"));\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='list_price[1]']\").set(testDS.get(0).get(\"list_price\"));\n\t\t// No entry for \"input[name='discount_price[1]']\" per Test case \n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='discount_amount[1]']\").set(testDS.get(0).get(\"discount_amount\"));\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='checkbox_select[1]']\").set(\"false\");\n\t\t\n\t\t// Save the quote record\n\t\tVoodooUtils.focusDefault();\n\t\tsugar().quotes.editView.save();\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\t\n\t\t// From the quote record view click 'Create Opportunity from Quote' button in an actions dropdown TODO: VOOD-930\n\t\tsugar().quotes.detailView.openPrimaryButtonDropdown();\n\t\tnew VoodooControl(\"a\", \"css\", \"#create_opp_from_quote_button\").click();\n\t\tVoodooUtils.focusDefault();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// // Verify likely case after User is redirected to the created Opportunity record view.\n\t\tsugar().opportunities.recordView.getDetailField(\"oppAmount\").assertContains(testDS.get(0).get(\"likely_case\"), true);\n\t\t\n\t\t// Verify the total discount amount is equal to single QLI discount as we have not select discount % option while creating quote\n\t\tStandardSubpanel revLineItemsSub = sugar().opportunities.recordView.subpanels.get(sugar().revLineItems.moduleNamePlural);\n\t\trevLineItemsSub.waitForVisible();\n\t\trevLineItemsSub.expandSubpanel();\n\t\trevLineItemsSub.clickRecord(1);\n\t\tsugar().revLineItems.recordView.getDetailField(\"discountPrice\").assertContains(testDS.get(0).get(\"discount_amount\"), true);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \"complete.\");\n\t}",
"@Test\n public void test10020ATS001ValidationofDatefieldsinPayHistory() throws Exception {\n driver.get(\"http://Clarity\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).sendKeys(\"02.08.09\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).sendKeys(\"password\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_LoginButton\")).click();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_btnLogin\")).click();\n //driver.findElement(By.linkText(\"Select\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*How much is my pension[\\\\s\\\\S][\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"02/10/20\");\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*Start date is later than end date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"25/07/2017\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).sendKeys(\"02/10/2\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"02/10/2\");\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*End Date is not recognized as a valid date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).sendKeys(\"21221\\\"\\\"\\\"\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"wewe\\\"\\\"\\\"\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n //try {\n //assertTrue(driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDateTypeValidator\")).getText().matches(\"^exact:[\\\\s\\\\S]*$\"));\n //} catch (Error e) {\n // verificationErrors.append(e.toString());\n //}\n // ERROR: Caught exception [Error: locator strategy either id or name must be specified explicitly.]\n driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_LoginStatus\")).click();\n }",
"public void run(String start, Datum[] expected, Datum expectedReservation, Datum expectedSP) throws Exception {\n DateTime dt = new DateTime(start, DateTimeZone.UTC);\n long startMilli = dt.withDayOfMonth(1).getMillis();\n long reportMilli = new DateTime(reportDate, DateTimeZone.UTC).getMillis();\n \n String manifest = \"\";\n if (dt.getYear() < 2018) {\n manifest = manifest2017;\n }\n else if (dt.getYear() == 2018) {\n manifest = manifest2018;\n }\n else if (dt.getYear() == 2019) {\n manifest = dt.getMonthOfYear() == 12 ? manifest2019a : manifest2019;\n }\n else {\n manifest = manifest2019a;\n }\n\n LineItem lineItem = newCurLineItem(manifest, new DateTime(netUnblendedStart, DateTimeZone.UTC));\n lineItem.setItems(line.getCauLine(lineItem));\n runProcessTest(lineItem, startMilli, reportMilli, expected, expectedReservation, expectedSP);\n }",
"@Test\n\tpublic void testForTask4() {\n\t\t//test 2017-01-23\n\t\tString[] row = findRowByDateInAlerts(\"2017-01-23\");\n\t\tAssert.assertEquals(row[0], \"bearish\");\n\t\tAssert.assertEquals(row[1], \"FB\");\n\t\tAssert.assertEquals(row[2], \"2017-01-23\");\n\t\tAssert.assertEquals(convertStringToDouble(row[3]), convertStringToDouble(\"127.31\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[4]), convertStringToDouble(\"129.25\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[5]), convertStringToDouble(\"126.95\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[6]), convertStringToDouble(\"128.93\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[7]), convertStringToDouble(\"16016924.0\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[8]), convertStringToDouble(\"120.3734\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[9]), convertStringToDouble(\"121.18805\"));\n\t\t\n\t\t//test 2016-11-14\n\t\trow = findRowByDateInAlerts(\"2016-11-14\");\n\t\tAssert.assertEquals(row[0], \"bullish\");\n\t\tAssert.assertEquals(row[1], \"FB\");\n\t\tAssert.assertEquals(row[2], \"2016-11-14\");\n\t\tAssert.assertEquals(convertStringToDouble(row[3]), convertStringToDouble(\"119.1256\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[4]), convertStringToDouble(\"119.1256\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[5]), convertStringToDouble(\"113.5535\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[6]), convertStringToDouble(\"115.08\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[7]), convertStringToDouble(\"51377040\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[8]), convertStringToDouble(\"21134655.72\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[9]), convertStringToDouble(\"127.8374\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[10]), convertStringToDouble(\"118.5285\"));\n\t}",
"@Test\n public void testDAM32001001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n // This call brings te order details from various tables into single entity using join\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32001001Click();\n\n // Expected order details\n // the string is of the format\n // ORDER STATUS NAME, ITEM CODE, ITEM NAME, CATEGORY CODE, CATEGORY NAME, MEMO\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n // confirmation for some more order details....\n\n expectedOrdeDetails = \"Stock checking, ITM0000002, NotePC, CTG0000002, PC, \";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(2);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Item Shipped, ITM0000003, Car, CTG0000003, Hot selling, dummy3\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(3);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy4\";\n actualOrderDetails = orderMB3ListPage.getOrderDetails(4);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n }",
"@DDDataProvider(datafile = \"testdata/Team3Search and Sort.xlsx\", sheetName = \"SearchItem\", testcaseID = \"\", runmode = \"No\")\n@Test(dataProvider = \"dd-dataprovider\", dataProviderClass = TestUtil.class)\n\npublic void TC_SearchProductwithInValiddata(Hashtable<String, String> datatable) throws InterruptedException, UnsupportedEncodingException, GeneralSecurityException{\n\tSearchPage searchpage = new SearchPage(driver);\n\tExtentTest Obj = ExtentTestManager.getTest();\n\t\n\tExtentTestManager.getTest().log(Status.PASS, \"Testcase 1 : Search for the product with Invalid data\");\n\tLoginPage loginPage = new LoginPage(driver);\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 1 : Successfully singed in with Valid credentials\");\n\tloginPage.login(datatable.get(\"UserName\"), Base64.decrypt(datatable.get(\"Password\")));\n\tThread.sleep(1000);\n\t\n\tString searchvalue =datatable.get(\"ProductName\");\n\tsearchpage.getSearchBar().sendKeys(searchvalue);\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 2 : Successfully entered \" +searchvalue+ \" in the search bar\");\n\t\n\tsearchpage.getsearchBtn().click();\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 3 : Successfully clicked on the search button\");\n\tThread.sleep(500);\n\t\t\n\tExtentTestManager.getTest().log(Status.PASS, \"Step 4 : User entered invalid data: \" + searchpage.getnoDataFoundMsg().getText() + \".\");\n\t\n\t\n\t\t\t\n}",
"@Test(enabled = true, retryAnalyzer=RetryAnalyzer.class)\r\n\tpublic void testParkingResrvSummeryAndPrintTabs(){\r\n\r\n\t\tReporter.log(\"<span style='font-weight:bold;color:#000033'> \"\r\n\r\n\t\t +\"test:C74386: Summary and Printing are not available, if required field is not filled out for parking Reservation\", true);\r\n\r\n\r\n\t\tString region = \"1preRgRef\";\r\n\r\n\t\tint random = (int)(Math.random() * 10)+18;\r\n\r\n\t\tString date = this.getFutureDate(random);\r\n\r\n\t\tString from = \"01:00\";\r\n\t\tString until = \"01:30\";\r\n\r\n\t\tString parking = \"1prePrkEqRef\";\r\n\t\t String summaryTabText= \"A summary is not available for the currently entered data\\n\"\r\n\t\t\t\t +\"\\n\"+\r\n\t\t\t\t \"Please fill in the Reservation Responsible.\\n\"+\r\n\t\t\t\t \"\\n\"+\"Please make sure you have filled out all mandatory fields.\";\r\n\t\t \r\n\r\n\t\tString printIconWarningMsg =\"Printing requires all changes to be saved first\";\r\n\r\n\t\tSoftAssert softAssert = new SoftAssert();\r\n\r\n\t\tsoftAssert.setMethodName(\"testParkingResrvSummeryAndPrintTabs\");\r\n\r\n\t\texpandAdministration();\r\n\r\n\t\twaitForExtJSAjaxComplete(20);\r\n\r\n\t\texpandSubMainMenu(\"Reservation\");\r\n\r\n\t\twaitForExtJSAjaxComplete(20);\r\n\r\n\t\twaitAndClick(XPATH_NEWRESERVATIONS);\r\n\r\n\t\twaitForExtJSAjaxComplete(20);\r\n\r\n\t\t//waitForExtJSAjaxComplete(20);\r\n\r\n\t\tsetRegion(region);\r\n\r\n\t\tsetDate(date);\r\n\r\n\t\tsetTimeFrom(from);\r\n\r\n\t\tsetTimeUntil(until);\r\n\r\n\t\twaitForExtJSAjaxComplete(5);\r\n\r\n\t\tclickParkingTab();\r\n\r\n\t\twaitForExtJSAjaxComplete(5);\r\n\r\n\t\tclickSearch();\r\n\r\n\t\twaitForExtJSAjaxComplete(20);\r\n\r\n\t\tclickLaunchReservation(parking);\r\n\r\n\t\twaitForExtJSAjaxComplete(20);\r\n\r\n\t\tclickSummaryTab();\r\n\r\n\t\twaitForExtJSAjaxComplete(20);\r\n\r\n\t\tsoftAssert.assertEquals(getSummaryTabText(),summaryTabText,\"'A summary is not available for the currently entered data' is display with a message to fill out required fields.\");\r\n\r\n\t\tclickReportIconInSummarySection();\r\n\r\n\t\twaitForExtJSAjaxComplete(20);\r\n\r\n\t\tsoftAssert.assertTrue(verifyWarningDialogTextMessage(printIconWarningMsg),\"'Printing requires all changes to be saved first' alert message is displayed.\");\r\n\r\n\t\tthis.clickOnDialogButton(\"OK\");\r\n\r\n\t\tsoftAssert.assertAll();\r\n\r\n\t\tReporter.log(\"Summary pane is display with a message to fill out required fields.\"\r\n\t\t\t\t+ \"Alert message is displayed for print icon <br>\", true);\r\n\t}",
"@Test(enabled = true, retryAnalyzer=RetryAnalyzer.class)\r\n\tpublic void testParkingBookingPreparationTimeAndCleanupNotConsidered() throws IOException{\r\n\t\tReporter.log(\"<span style='font-weight:bold;color:#000033'> \"\r\n\t\t\t\t+ \"C118064: Preparation and Cleanup time should not be considered while calculating Total Cost in Parking reservation\", true);\r\n\r\n\t\t int random = (int)(Math.random() * 10)+24;\r\n\t\t String date = this.getFutureDate(random);\r\n\t\t String region = \"1preRgRef\";\r\n\t\t String from = \"18:00\";\r\n\t\t String until = \"19:00\";\r\n\t\t String prakingResv = \"prePrkDefRef\";\r\n\t\t String prepTime = \"00:30\";\r\n\t\t String cleanupTime = \"00:30\";\r\n\t\t String responsible=getUserLastNameOfLoggedInUser();\r\n\r\n\t\t SoftAssert softAssert = new SoftAssert();\r\n\t\t softAssert.setMethodName(\"testParkingBookingPreparationTimeAndCleanupNotConsidered\");\r\n\t\t \r\n\t\t expandAdministration();\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t expandSubMainMenu(\"Reservation\");\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t waitAndClick(XPATH_NEWRESERVATIONS);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t //C118064\r\n\t\t setRegion(region);\r\n\t\t setDate(date);\r\n\t\t setTimeFrom(from);\r\n\t\t setTimeUntil(until);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t clickParkingTab();\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t clickSearch();\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t clickLaunchReservation(prakingResv);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t setTimePrepareFromReservationPanel(prepTime);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t setTimeCleanupFromReservationPanel(cleanupTime);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t setResponsible(responsible);\r\n\t\t waitForExtJSAjaxComplete(10);\r\n\r\n\t\t clickSummaryTab();\r\n\t\t waitForExtJSAjaxComplete(20);\r\n\r\n\t\t String getSummaryText = getItemDetailsFromReservationSummary(prakingResv);\r\n\t\t softAssert.assertTrue( getSummaryText.contains(\"1 h x 4.00 EUR\"),\"Total cost is calculated without considering Prepare/Cleanup time\");\r\n\t\t softAssert.assertTrue(getSummaryTitle().contains(\"4.04 EUR\"),\"summary title is ok before adding additional Equipment, Vehicles & Parking\");\r\n\t}",
"public void test_fn_current_date_9() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-9.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-9.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"public void test_fn_current_date_6() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-6.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-6.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertNotNull(actual);\n //assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"@Test\r\n public void testSearch(){\r\n\r\n BusinessObjectService boService = KRADServiceLocator.getBusinessObjectService();\r\n String chartOfAccountsCode = \"BL\";\r\n String accountNumber = \"1222222\";\r\n String accountName = \"testTempRestricted\";\r\n String organizationCode = \"AAAI\";\r\n Date accountEffectiveDate = SpringContext.getBean(DateTimeService.class).getCurrentSqlDate();//\"03/07/2012\";\r\n String subFundGroupCode = \"AUXAMB\";\r\n String universityAccountNumber = \"1234\";\r\n String fiscalOfficerUserName = \"ole-cswinson\";\r\n String accountRestrictedStatusCode = \"T\";\r\n Date accountRestrictedStatusDate = SpringContext.getBean(DateTimeService.class).getCurrentSqlDate();\r\n String accountSufficientFundsCode = \"A\";\r\n String accountExpenseGuidelineText = \"test guide line text for temporary restricted\";\r\n\r\n Chart chartOfAccounts = new Chart();\r\n chartOfAccounts.setChartOfAccountsCode(chartOfAccountsCode);\r\n\r\n AccountGuideline accountGuideline = new AccountGuideline();\r\n accountGuideline.setAccountExpenseGuidelineText(accountExpenseGuidelineText);\r\n accountGuideline.setChartOfAccountsCode(chartOfAccountsCode);\r\n accountGuideline.setAccountNumber(accountNumber);\r\n\r\n\r\n Account account = new Account();\r\n account.setChartOfAccounts(chartOfAccounts);\r\n account.setChartOfAccountsCode(chartOfAccountsCode);\r\n account.getChartOfAccountsCode();\r\n account.setAccountNumber(accountNumber);\r\n account.setAccountName(accountName);\r\n account.setOrganizationCode(organizationCode);\r\n account.setAccountEffectiveDate(accountEffectiveDate);\r\n account.setSubFundGroupCode(subFundGroupCode);\r\n account.setUniversityAccountNumber(universityAccountNumber);\r\n ((PersonImpl)account.getAccountFiscalOfficerUser()).setName(fiscalOfficerUserName);\r\n account.setAccountRestrictedStatusCode(accountRestrictedStatusCode);\r\n account.setAccountRestrictedStatusDate(accountRestrictedStatusDate);\r\n account.setAccountSufficientFundsCode(accountSufficientFundsCode);\r\n account.setAccountGuideline(accountGuideline);\r\n\r\n boService.save(account);\r\n\r\n String chartOfAccountsCode1 = \"BL\";\r\n String accountNumber1 = \"1222223\";\r\n String accountName1 = \"testUnRestricted\";\r\n String organizationCode1 = \"AAAI\";\r\n Date accountEffectiveDate1 = SpringContext.getBean(DateTimeService.class).getCurrentSqlDate();//\"03/07/2012\";\r\n String subFundGroupCode1 = \"AUXAMB\";\r\n String universityAccountNumber1 = \"1245\";\r\n String fiscalOfficerUserName1 = \"ole-cswinson\";\r\n String accountRestrictedStatusCode1 = \"U\";\r\n String accountSufficientFundsCode1 = \"A\";\r\n String accountExpenseGuidelineText1 = \"test guide line text for un-restricted\";\r\n\r\n Chart chartOfAccounts1 = new Chart();\r\n chartOfAccounts1.setChartOfAccountsCode(chartOfAccountsCode1);\r\n\r\n AccountGuideline accountGuideline1 = new AccountGuideline();\r\n accountGuideline1.setAccountExpenseGuidelineText(accountExpenseGuidelineText1);\r\n accountGuideline1.setChartOfAccountsCode(chartOfAccountsCode1);\r\n accountGuideline1.setAccountNumber(accountNumber1);\r\n\r\n Account account1 = new Account();\r\n account1.setChartOfAccounts(chartOfAccounts1);\r\n account1.setChartOfAccountsCode(chartOfAccountsCode1);\r\n account1.setAccountNumber(accountNumber1);\r\n account1.setAccountName(accountName1);\r\n account1.setOrganizationCode(organizationCode1);\r\n account1.setAccountEffectiveDate(accountEffectiveDate1);\r\n account1.setSubFundGroupCode(subFundGroupCode1);\r\n account1.setUniversityAccountNumber(universityAccountNumber1);\r\n ((PersonImpl)account1.getAccountFiscalOfficerUser()).setName(fiscalOfficerUserName1);\r\n account1.setAccountRestrictedStatusCode(accountRestrictedStatusCode1);\r\n account1.setAccountSufficientFundsCode(accountSufficientFundsCode1);\r\n account1.setAccountGuideline(accountGuideline1);\r\n\r\n boService.save(account1);\r\n\r\n\r\n List<Account> accounts = (List<Account>) boService.findAll(Account.class);\r\n for(int i=0;i<accounts.size();i++){\r\n if(accounts.get(i).getAccountNumber().equalsIgnoreCase(accountNumber) || accounts.get(i).getAccountNumber().equalsIgnoreCase(accountNumber1)){\r\n if(accounts.get(i).getAccountRestrictedStatusCode().equalsIgnoreCase(\"T\")){\r\n accounts.remove(i);\r\n }\r\n assertEquals(accounts.get(i).getAccountName(), accountName1);\r\n }\r\n }\r\n }",
"private void testRow( TaskKey aTask, String aBarcode, AircraftKey aAircraft,\n AssemblyKey aAssembly, String aAircraftName, RefSchedPriorityKey aSchedPriority,\n Date aDueDate, RefTaskPriorityKey aTaskPriority, int aTaskPriorityOrd,\n int aNextHighestEventDbId, String aClassModeCd, String aNextHighestTaskClassCd,\n Date aHighestSchedStartGdt, double aDuration, String aPartList, String aToolList,\n String aLabourList, String aWorkTypeList, String aSubtreeList ) {\n\n MxAssert.assertEquals( aTask.toString(), iDataSet.getString( \"task_pk\" ) );\n MxAssert.assertEquals( aBarcode, iDataSet.getString( \"barcode_sdesc\" ) );\n MxAssert.assertEquals( aAircraft.toString(), iDataSet.getString( \"aircraft_pk\" ) );\n MxAssert.assertEquals( aAssembly.toString(), iDataSet.getString( \"assmbl_pk\" ) );\n MxAssert.assertEquals( aAircraftName, iDataSet.getString( \"aircraft_name\" ) );\n MxAssert.assertEquals( aSchedPriority.toString(), iDataSet.getString( \"sched_priority\" ) );\n MxAssert.assertEquals( aDueDate, iDataSet.getDate( \"due_date\" ) );\n MxAssert.assertEquals( aTaskPriority.toString(), iDataSet.getString( \"task_priority\" ) );\n MxAssert.assertEquals( aTaskPriorityOrd, iDataSet.getInt( \"task_priority_ord\" ) );\n\n // Loose Task Specific values\n MxAssert.assertEquals( aNextHighestEventDbId, iDataSet.getInt( \"nh_event_db_id\" ) );\n MxAssert.assertEquals( aClassModeCd, iDataSet.getString( \"class_mode_cd\" ) );\n\n // Non Loose Task Specific values\n MxAssert.assertEquals( aNextHighestTaskClassCd, iDataSet.getString( \"nh_task_class_cd\" ) );\n MxAssert.assertEquals( aHighestSchedStartGdt, iDataSet.getDate( \"h_sched_start_gdt\" ) );\n\n MxAssert.assertEquals( aDuration, iDataSet.getDouble( \"duration\" ) );\n\n if ( aPartList != null ) {\n MxAssert.assertEquals( aPartList, iDataSet.getString( \"part_details_list\" ) );\n }\n\n if ( aToolList != null ) {\n MxAssert.assertEquals( aToolList, iDataSet.getString( \"tools_list\" ) );\n }\n\n if ( aLabourList != null ) {\n MxAssert.assertEquals( aLabourList, iDataSet.getString( \"est_labour_effort_list\" ) );\n }\n\n if ( aWorkTypeList != null ) {\n MxAssert.assertEquals( aWorkTypeList, iDataSet.getString( \"work_types_list\" ) );\n }\n\n if ( aSubtreeList != null ) {\n MxAssert.assertEquals( aSubtreeList, iDataSet.getString( \"subtree_list\" ) );\n }\n }",
"@Test(dependsOnMethods = \"verifyInvoiceSortTest\")\r\n\tpublic void verifySchedDateSortTest() throws InterruptedException {\n\t\tcarrierschedulepayment.clickschdateColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\tAssert.assertTrue(firstRowData.size() > 0, \"No data rows found when sorting by date\");\r\n\t\t// click LoadID Column to change sort from ascending to descending\r\n\t\tcarrierschedulepayment.clickschdateColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tlastRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// compare to the database when sorted by given column-Descending\r\n\t\t// if (carrierschedulepayment.getRowCount() > 1)\r\n\t\t// Assert.assertNotEquals(firstRowData, lastRowData,\r\n\t\t// \"First Row Data: \\n\" + firstRowData + \"\\nLast Row Data: \\n\" + lastRowData);\r\n\t}",
"@Test(dataProvider=\"getData\",enabled=true)\n\t\tpublic void addStocks(String StockName,String ExpireDate) throws InterruptedException, IOException {\n\t\t\t\n\t\t\t\n\t\t\tdriver.findElement(By.id(OR.getProperty(\"searchText\"))).clear();\n\t\t\tdriver.findElement(By.id(OR.getProperty(\"searchText\"))).sendKeys(StockName);\n\t\t\t//JavascriptExecutor js = (JavascriptExecutor) driver;\n\t\t\tString lastThursday=TestUtil.getLastThrusdayofMonth(0);\n\t\t\t final String DATE_FORMAT_NOW = \"dd-MMM-yyyy\";\n\t\t\t Calendar cal = Calendar.getInstance();\n\t\t\t SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);\n\t\t\t String date = sdf.format(new Date());\n\t\t\t if (date.compareTo(lastThursday) > 0) {\n\t\t System.out.println(\"Date1 is after Date2\");\n\t\t lastThursday= TestUtil.getLastThrusdayofMonth(1);\n\t\t\t }\n//\t\t } else if (date.compareTo(lastThursday) < 0) {\n//\t\t System.out.println(\"Date1 is before Date2\");\n//\t\t } else if (date.compareTo(lastThursday) == 0) {\n//\t\t System.out.println(\"Date1 is equal to Date2\");\n//\t\t }\n\t\t\t System.out.println(date);\n\t\t\tString datelastthursday=lastThursday.replaceAll(\"-\", \"\");\n\t\t\tSystem.out.println(\"LastThursday :\"+datelastthursday);\n\t\t\tdriver.findElement(By.xpath((\"//input[contains(@src,'\"+OR.getProperty(\"gobutton\")+\"')]\"))).click();\n\t\n\t\t\tSelect expirydate= new Select(driver.findElement(By.id(OR.getProperty(\"expire\"))));\n\t\t\tList<WebElement>allOptions=\texpirydate.getOptions();\n\t\t\t//allOptions.size();\n\t\t\tfor(int i=1;i<=1;i++) {\n\t\t\t\tSystem.out.println(\"option expiry date Size is :\"+allOptions.size()+\"date\"+allOptions.get(i).getText());\n\t\t\t\tString Expiredate=allOptions.get(i).getText();\n\t\n\t\t\t\texpirydate.selectByVisibleText(Expiredate);\n\t\t\t\tdriver.findElement(By.linkText(\"Hide\")).click();\n\t\t\t\tThread.sleep(500);\n\t\t\t\tFile scrFile=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t\t\t//\t\tString Month=new SimpleDateFormat(\"MMM\").format(cal.getTime());\n\t\t\t\tThread.sleep(500);\n\t\t\t\t\n\t\t\t\tFile file = new File(\"D:\\\\Pratice\\\\\"+datelastthursday+\"\\\\Nifty50Stocks\\\\\"+StockName);\n\t\t\t\tSystem.out.println(\"D:\\\\Pratice\\\\\"+datelastthursday+\"\\\\Nifty50Stocks\\\\\"+StockName);\n\t\t\t\tif(!file.exists()) {\n\t\n\t\t\t\t\tfile.mkdirs();\n\t\t\t\t}\n\t\t\t\tString screenshotName = StockName+\"_\"+(cal.get(Calendar.MONTH)+1)+\"_\"+cal.get(Calendar.DAY_OF_MONTH)+\"_\"+cal.get(Calendar.HOUR_OF_DAY)+\"_\"+cal.get(Calendar.MINUTE) + \".png\";\n\t\t\t\tSystem.out.println(screenshotName);\n//\t\t\t\tFiles.copy(scrFile,\n//\t\t\t\t\t\tnew File(\"D:\\\\Pratice\\\\\"+Expiredate+\"\\\\\"+StockName+\"\\\\\"+screenshotName));\n\t\t\t\t\n\t\t\t\t//js.executeScript(\"window.scrollBy(0,1000)\");\n\t\t\t\t//Shutterbug.shootPage(driver,ScrollStrategy.VERTICALLY,3000,true).withName(screenshotName).save(\"D:\\\\Pratice\\\\\"+datelastthursday+\"\\\\Nifty50Stocks\\\\\"+StockName+\"\\\\\");\n\t\t\t\t\n\t\t\t\tFileUtils.copyFile(scrFile, new File(\"D:\\\\Pratice\\\\\"+datelastthursday+\"\\\\Nifty50Stocks\\\\\"+StockName+\"\\\\\"+screenshotName));\n\t\n\t\t\t}\n\t\t}",
"public void test_fn_current_date_13() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-13.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-13.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"public void test_fn_current_date_16() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-16.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-16.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"public void test_fn_current_date_15() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-15.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-15.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"public void test_fn_current_date_7() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-7.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-7.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertNotNull(actual);\n //assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"public void test_fn_current_date_3() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-3.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-3.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n Date expectedDate = new Date();\n DateFormat expectedFormat = new SimpleDateFormat(\"MM\");\n \n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", Integer.valueOf(expectedFormat.format(expectedDate)).toString(), actual);\n \n }",
"public void test_fn_current_date_18() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-18.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-18.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"public void test_fn_current_date_17() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-17.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-17.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"@Test\n public void testReservedMonthlyFeeElasticsearch() throws Exception {\n Line line = new Line(LineItemType.RIFee, \"us-east-1\", \"\", es, \"HeavyUsage:r4.xlarge.elasticsearch\", \"ESDomain\", \"USD 0.0 hourly fee per Elasticsearch, r4.xlarge.elasticsearch instance\", null, \"2019-07-01T00:00:00Z\", \"2019-07-31T23:59:59Z\", \"1488\", \"1488.0\", \"\");\n line.setRIFeeFields(\"744.0\", \"0\", \"0\", \"0\", \"2\", \"2017-01-01T00:00:00Z\", \"2020-01-01T00:00:00Z\");\n ProcessTest test = new ProcessTest(line, Result.ignore, 31);\n test.setDelayed();\n Datum expected = new Datum(CostType.recurring, a2, Region.US_EAST_1, null, elasticsearch, Operation.reservedInstancesPartialUpfront, \"r4.xlarge.elasticsearch\", \",\", ReservationArn.get(\"\"), 1.0, 2.0);\n test.run(\"2019-07-01T00:00:00Z\", null, expected);\n \n // All Upfront - 2 RIs at 2.0/hr upfront\n line = new Line(LineItemType.RIFee, \"us-east-1\", \"\", es, \"HeavyUsage:r4.xlarge.elasticsearch\", \"ESDomain\", \"USD 0.0 hourly fee per Elasticsearch, r4.xlarge.elasticsearch instance\", null, \"2019-07-01T00:00:00Z\", \"2019-07-31T23:59:59Z\", \"1488\", \"0\", \"\");\n line.setRIFeeFields(\"2976.0\", \"0\", \"0\", \"0\", \"2\", \"2017-01-01T00:00:00Z\", \"2020-01-01T00:00:00Z\");\n test = new ProcessTest(line, Result.ignore, 31);\n test.setDelayed();\n expected = new Datum(CostType.recurring, a2, Region.US_EAST_1, null, elasticsearch, Operation.reservedInstancesAllUpfront, \"r4.xlarge.elasticsearch\", \",\", ReservationArn.get(\"\"), 4.0, 0.0);\n test.run(\"2019-07-01T00:00:00Z\", null, expected);\n \n // No Upfront - 2 RIs at 1.5/hr recurring\n line = new Line(LineItemType.RIFee, \"us-east-1\", \"\", es, \"HeavyUsage:r4.xlarge.elasticsearch\", \"ESDomain\", \"USD 0.0 hourly fee per Elasticsearch, r4.xlarge.elasticsearch instance\", null, \"2019-07-01T00:00:00Z\", \"2019-07-31T23:59:59Z\", \"1488\", \"2232.0\", \"\");\n line.setRIFeeFields(\"0\", \"0\", \"0\", \"0\", \"2\", \"2017-01-01T00:00:00Z\", \"2020-01-01T00:00:00Z\");\n test = new ProcessTest(line, Result.ignore, 31);\n test.setDelayed();\n expected = new Datum(CostType.recurring, a2, Region.US_EAST_1, null, elasticsearch, Operation.reservedInstancesNoUpfront, \"r4.xlarge.elasticsearch\", \",\", ReservationArn.get(\"\"), 0.0, 3.0);\n test.run(\"2019-07-01T00:00:00Z\", null, expected);\n }",
"private void searchex()\n {\n try\n {\n this.dtm.setRowCount(0);\n \n String a = \"date(now())\";\n if (this.jComboBox1.getSelectedIndex() == 1) {\n a = \"DATE_ADD( date(now()),INTERVAL 10 DAY)\";\n } else if (this.jComboBox1.getSelectedIndex() == 2) {\n a = \"DATE_ADD( date(now()),INTERVAL 31 DAY)\";\n } else if (this.jComboBox1.getSelectedIndex() == 3) {\n a = \"DATE_ADD( date(now()),INTERVAL 90 DAY)\";\n } else if (this.jComboBox1.getSelectedIndex() == 4) {\n a = \"DATE_ADD( date(now()),INTERVAL 180 DAY)\";\n }\n ResultSet rs = this.d.srh(\"select * from stock inner join product on stock.product_id = product.id where exdate <= \" + a + \" and avqty > 0 order by exdate\");\n while (rs.next())\n {\n Vector v = new Vector();\n v.add(rs.getString(\"product_id\"));\n v.add(rs.getString(\"name\"));\n v.add(rs.getString(\"stock.id\"));\n v.add(Double.valueOf(rs.getDouble(\"buyprice\")));\n v.add(Double.valueOf(rs.getDouble(\"avqty\")));\n v.add(rs.getString(\"exdate\"));\n this.dtm.addRow(v);\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"public void test_fn_current_date_14() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-14.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-14.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"public void test_fn_current_date_19() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-19.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-19.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"@Test\n\tpublic void searchForTerminatedUnitByUnitNbr_FuncTest(){ \t\t\n\t\tList<DriverSearchVO> drivers = driverService.searchDriver(null, null, null, null, terminatedUnit, null, null, null, true,null, null, null);\t\n\t\tlong driversCnt = driverService.searchDriverCount(null, null, null, null, terminatedUnit, null, null, null, true,null);\n\t\t\n\t\t// we get back one result\n\t\tassertEquals(1, driversCnt);\n\t\t// that result has a end date in the past\t\n\t\tassertTrue(drivers.get(0).getContractLineEndDate().before(new Date(System.currentTimeMillis())));\t\t\n\t}",
"@Test\n\tpublic void RevenueLineItems_19230_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet myTestData = sugar().revLineItems.getDefaultData();\n\t\tsugar().navbar.openQuickCreateMenu();\n\n\t\t// Verify RLI option is under quick create (i.e click method already takes care of its visibility/existence)\n\t\tsugar().navbar.quickCreate.getControl(sugar().revLineItems.moduleNamePlural).click();\t\t\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Verify standard create drawer is open\n\t\t// TODO: VOOD-1887- Once resolved commented line should work and remove very next line\n\t\t//sugar().revLineItems.createDrawer.assertVisible(true);\n\t\tsugar().revLineItems.createDrawer.getEditField(\"name\").assertVisible(true);\n\t\tsugar().revLineItems.createDrawer.showMore();\n\t\tsugar().revLineItems.createDrawer.setFields(myTestData);\n\t\tsugar().revLineItems.createDrawer.save();\n\n\t\t// Verification for currency/double field values below decimal formatting code is required, when currency field verification is implemented in library update verification to use default data \n\t\tDecimalFormat formatter = new DecimalFormat(\"##,###.00\");\n\t\tString likelyDoubleValue = String.format(\"%s%s\", \"$\", formatter.format(Double.parseDouble(myTestData.get(\"likelyCase\"))));\n\t\tmyTestData.put(\"likelyCase\", likelyDoubleValue);\n\t\tmyTestData.put(\"quantity\", formatter.format(Double.parseDouble(myTestData.get(\"quantity\"))));\n\n\t\t// Below code added for ease verification of RLI record \n\t\tRevLineItemRecord myRLI = (RevLineItemRecord)Class.forName(sugar().revLineItems.recordClassName).getConstructor(FieldSet.class).newInstance(myTestData);\n\t\tmyRLI.verify(myTestData);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}",
"public void test_fn_current_date_11() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-11.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-11.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n \t fail(\"Returned:\" + actual);\n \n } catch (StaticError ex) {\n actual = ex.code();\n \t fail(\"Returned:\" + actual);\n \n } catch (DynamicError ex) {\n actual = ex.code();\n \t fail(\"Returned:\" + actual);\n \n } \n \n }",
"@Test\n public void testDAM31304001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n {\n webDriverOperations.click(id(\"dam31304001\"));\n }\n\n {\n assertThat(webDriverOperations.getText(id(\"getDateResult\")), is(\n \"2016-12-29\"));\n assertThat(webDriverOperations.getText(id(\"getDateClassResult\")),\n is(\"java.time.LocalDate\"));\n assertThat(webDriverOperations.getText(id(\n \"getObjectCertification\")), is(\"true\"));\n }\n }",
"public void test_fn_current_date_12() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-12.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-12.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"public void test_fn_current_date_2() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-2.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-2.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertTrue(\"XPath Result Error \" + xqFile + \":\", actual.compareTo(expectedResult) >= 0);\n \n \n }",
"public void test_fn_current_date_1() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-1.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-1.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertTrue(\"XPath Result Error \" + xqFile + \":\", actual.compareTo(expectedResult) >= 0);\n \n \n }",
"public void test_fn_current_date_21() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-21.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-21.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n \t fail(\"Returned:\" + actual);\n \n } catch (StaticError ex) {\n actual = ex.code();\n \t fail(\"Returned:\" + actual);\n \n } catch (DynamicError ex) {\n actual = ex.code();\n \t fail(\"Returned:\" + actual);\n \n }\n \n }",
"public void test_fn_current_date_8() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-8.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/\";\n String expectedResult = \"XPST0017\";\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n }",
"@Test()\n\tpublic void groupSales_US440_TC3481() throws InterruptedException,\n\t\t\tRowsExceededException, BiffException, WriteException, IOException, ParseException {\n\t\t/** Variable Section : **/\n\t\tGroupSalesPage groupSalesPage;\n\t\tAbstractTest.tcName=\"groupSales_US440_TC3481\";\n\t\tString password = LoginTestData.level1_SSO_Password;\n\t\tString userId = LoginTestData.level1_SSO_UserId;\n\t\tString storeId = LoginTestData.level1StoreId;\n\t\t/***********************************/\n\t\tHomePage homePage = PageFactory.initElements(driver, HomePage.class);\n\t\t// Navigate to Group sales page\n\t\tgroupSalesPage = homePage.selectUserWithSSOLogin(userId, password).selectLocation(storeId)\n\t\t\t\t.goToGroupSalesPage();\n\t\t//Click on edit button for first validated record\n\t\tJavascriptExecutor executor = (JavascriptExecutor)driver;\n\t\texecutor.executeScript(\"arguments[0].click();\",groupSalesPage.TextExemptSales_BaggedRecord_View_BT);\n\t\twait.until(ExpectedConditions.visibilityOf(groupSalesPage.EditTaxExemptSales_PopUp_Header));\n\t\tString headerText = groupSalesPage.TaxExemptSalesPopUp_HeaderText_Value.getText();\n\t\tSystem.out.println(\"Header Text \"+ headerText);\n\t\tString register = headerText.split(\"\\\\|\")[0].trim();\n\t\tString date = headerText.split(\"\\\\|\")[1].trim();\n\t\tString time = headerText.split(\"\\\\|\")[2].trim();\n\t\tString user = headerText.split(\"\\\\|\")[3].trim();\n\t\tif (date.matches(\"([0-9]{2})/([0-9]{2})/([0-9]{4})\")) {\n\t\t\tReporter.reportPassResult(\n\t\t\t\t\tbrowser,\n\t\t\t\t\t\"user should be able to view auto pupulated date in view Tax Exempt Sales Page\",\n\t\t\t\t\t\"Pass\");\n\t\t} else {\n\t\t\tReporter.reportTestFailure(\n\t\t\t\t\tbrowser,\n\t\t\t\t\t\"user should be able to view auto pupulated date in view Tax Exempt Sales Page\",\n\t\t\t\t\t\"Fail\");\n\t\t\tAbstractTest.takeSnapShot();\n\t\t}\n\t\tif (time.matches(\"([0-2]{1,}[0-9]{1,})(:)([0-5]{1,}[0-9]{1,})\")) {\n\t\t\tReporter.reportPassResult(\n\t\t\t\t\tbrowser,\n\t\t\t\t\t\"user should be able to view auto pupulated time in view Tax Exempt Sales Page\",\n\t\t\t\t\t\"Pass\");\n\t\t} else {\n\t\t\tReporter.reportTestFailure(\n\t\t\t\t\tbrowser,\n\t\t\t\t\t\"user should be able to view auto pupulated time in view Tax Exempt Sales Page\",\n\t\t\t\t\t\"Fail\");\n\t\t\tAbstractTest.takeSnapShot();\n\t\t}\n\t\tif(!register.isEmpty() & !user.isEmpty() & !groupSalesPage.EditTaxExemptSalesPopUp_Amount_TB.getAttribute(\"value\").isEmpty()){\n\t\t\tReporter.reportPassResult(\n\t\t\t\t\tbrowser,\n\t\t\t\t\t\"user should be able to view auto pupulated Amount,Register #,User in view Tax Exempt Sales Page\",\n\t\t\t\t\t\"Pass\");\n\t\t} else {\n\t\t\tReporter.reportTestFailure(\n\t\t\t\t\tbrowser,\n\t\t\t\t\t\"user should be able to view auto pupulated Amount,Register #,User in view Tax Exempt Sales Page\",\n\t\t\t\t\t\"Fail\");\n\t\t\tAbstractTest.takeSnapShot();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void test_fn_current_date_20() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-20.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-20.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"public void test_fn_current_date_5() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-5.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-5.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }",
"@Test\n public void testgetPostedApartmentEndDate() throws SQLException {\n System.out.println(\"getPostedApartmentEndDate\");\n String username = \"hello13\";\n ApartmentBLL instance = new ApartmentBLL();\n ResultSet result = instance.getPostedApartmentEndDate(username);\n assertTrue(result.next());\n }",
"@Test\n public void testFindEntitiesSearch() {\n MouldingProcessSearch search = new MouldingProcessSearch();\n search.setSignedOffBy(\"John Malone\");\n DAO<MouldingProcess> mpDAO = new DAO<MouldingProcess>(MouldingProcess.class);\n\n SearchProcessSheetAction action = new SearchProcessSheetAction(mpDAO);\n\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 4);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n search.setMachineNo(\"Fanuc 1\");\n\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 1);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n // Reset Search\n search = new MouldingProcessSearch();\n search.setStartDate(java.sql.Date.valueOf(\"2013-05-11\"));\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 1);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n search.setStartDate(java.sql.Date.valueOf(\"2000-01-01\"));\n search.setEndDate(java.sql.Date.valueOf(\"2014-01-01\"));\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 3);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n search.setSignedOffBy(\"John Malone\");\n try {\n List<MouldingProcess> result = action.search(search);\n // assertNotNull(result);\n // assertEquals(result.size(), 3);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n }",
"public void test_fn_current_date_4() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-4.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-4.txt\";\n String expectedResult = getExpectedResult(resultFile);\n Calendar cal = null;\n \n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n\t cal = dc.current_date_time();\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n assertEquals(\"XPath Result Error \" + xqFile + \":\", Integer.toString(cal.get(Calendar.DAY_OF_MONTH)), actual);\n \n \n }",
"public void test_fn_current_date_10() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-10.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/ContextFunc/ContextCurrentDateFunc/fn-current-date-10.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n \t fail(\"Returned:\" + actual);\n } catch (StaticError ex) {\n actual = ex.code();\n \t fail(\"Returned:\" + actual);\n } catch (DynamicError ex) {\n actual = ex.code();\n \t fail(\"Returned:\" + actual);\n } \n \n }",
"@Test\n public void shouldCalculatePaymentWhen24MonthsIsSelected() {\n\n\n //1. Select '24'\n //2. Enter 7 in the Interest Rate field\n //3. Enter 25000 in the Price field.\n //4. Enter 1500 in the Down Payment Field.\n //5. Inter 3000 in the Trade in Value field.\n //6. Enter 593.86 in the Amount owed on Trade field.\n //7. Select the Calculate button.\n //8. Verify that Estimated Payment - $945 / month for 24 months at 7.0%.\n\n\n //1. Select '36'\n //2. Enter 4 in the Interest Rate field\n //3. Enter 35000 in the Price field.\n //4. Enter 2500 in the Down Payment Field.\n //5. Inter 2000 in the Trade in Value field.\n //6. Enter 593.86 in the Amount owed on Trade field.\n //7. Select the Calculate button.\n //8. Verify that Estimated Payment - $919 / month for 36 months at 4.0%.\n\n\n //1. Select '48'\n //2. Enter 5 in the Interest Rate field\n //3. Enter 45000 in the Price field.\n //4. Enter 3500 in the Down Payment Field.\n //5. Inter 3000 in the Trade in Value field.\n //6. Enter 593.86 in the Amount owed on Trade field.\n //7. Select the Calculate button.\n //8. Verify that Estimated Payment - $901 / month for 48 months at 5.0%.\n\n\n //1. Select '60'\n //2. Enter 6 in the Interest Rate field\n //3. Enter 55000 in the Price field.\n //4. Enter 4500 in the Down Payment Field.\n //5. Inter 4000 in the Trade in Value field.\n //6. Enter 593.86 in the Amount owed on Trade field.\n //7. Select the Calculate button.\n //8. Verify that Estimated Payment - $911 / month for 60 months at 6.0%.\n\n\n //1. Select '72'\n //2. Enter 8 in the Interest Rate field\n //3. Enter 65000 in the Price field.\n //4. Enter 5500 in the Down Payment Field.\n //5. Inter 5000 in the Trade in Value field.\n //6. Enter 593.86 in the Amount owed on Trade field.\n //7. Select the Calculate button.\n //8. Verify that Estimated Payment - $966 / month for 72 months at 8.0%.\n\n\n }",
"public boolean checkSearchForServiceRequestsForContractsTable(String sMethod) throws ParseException\n\t{\n\t\t// Checking if the table is present or not and validating if it is already openened \n\t\tif(utils.isProxyWebelement(this.tableMbrCompositesearchforServiceRequestContracts))\n\t\t{\n\t\t\tutils.clickAnelemnt(this.lnkMbrCompositeIntSearchForServiceRequest,\"Member Composite \",\" Search for Service Request for Contract\");\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Open Service Request link is already clicked\\n\\n\");\n\t\t}\n\t\t//Checking if dates are equal \n\n\t\t// array list top storwe all the values and the dates in the Table \n\t\tArrayList<String> Dates = new ArrayList<String>();\n\t\t// wil save the values in an array list \n\t\tDates=utils.getcolumnStringFromTableByName(this.tableMbrCompositesearchforServiceRequestContracts, \"Open Date\");\n\t\tint i=2;\n\t\tSystem.out.println(Dates.size());\n\t\tif(Dates.size()>7)\n\t\t{\n\t\t\tSystem.out.println(\"There are more than 5 rows in Open Service request Table.\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// Iterating the dates from the stored values \n\t\tfor(String iterator:Dates)\t\n\t\t{\n\n\t\t\tDateFormat formatter ; \n\t\t\tDate date1,date2;\n\t\t\tDate date3 = null;\n\t\t\tString date_1=Dates.get(i);\n\t\t\tif(i+1==Dates.size())\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString date_2=Dates.get(i+1);\n\t\t\tformatter = new SimpleDateFormat(\"MMMM dd,yyyy\");\n\n\t\t\tdate1=formatter.parse(date_1);\n\t\t\tdate2=formatter.parse(date_2);\n\t\t\tif(date1.equals(date2))\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(sMethod==\"Last 7 Days\"||sMethod==\"Last 30 Days\"||sMethod==\"Last 90 Days\")\n\t\t\t\tif(date1.after(date2))\n\t\t\t\t{\n\t\t\t\t\ti++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"THE DATES ARE NOT IN DESCENDING ORDER\");\n\t\t\treturn false;\n\t\t}\n\n\t\tblogger.logMessage(\"Member Composite \", \" Open service request validation \");\n\t\treturn true;\n\t}",
"@Step(\"Creating a new Clinical Purchase Requisitions for a Work Order\")\n public void verifyCreatingNewPurchaseRequistion() throws Exception {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n pageActions.scrollthePage(ClinicalPurchaseRequisitionsTab);\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(ClinicalPurchaseRequisitionsTab));\n functions.highlighElement(driver, ClinicalPurchaseRequisitionsTab);\n pageActions.clickAt(ClinicalPurchaseRequisitionsTab, \"Clicking on purchase requistions tab\");\n pageActions.clickAt(clinicalPurchaseReqNewButton, \"Clicking on purchase requistions New buttton\");\n String randomExternalPO_Number = \"Test\"+Functions.getTimeStamp();\n pageActions.type(externalPO_Number, randomExternalPO_Number, \"Entered Clicnical PO Number\");\n clinicalPurchaseShortDescription.sendKeys(\"Automation externalPO_Numbner desc\");\n pageActions.clickAt(clinicalPurchaseSubmitButton, \"Clicking on SubmitButton\");\n pageActions.clickAt(saveAndGoButton, \"Clicked on save and go button\");\n searchExternalPONumber();\n\n }",
"@Test\n public void testGetComponentDoAtNextTaskByInv() throws Exception {\n\n DataSet lDataSet = this.execute( new InventoryKey( 4650, 200001 ) );\n\n // There are two 'Do at Next Install' tasks for the given inventory item in the testing\n // dataset.\n Assert.assertEquals( \"count\", 2, lDataSet.getRowCount() );\n\n EventKey lFirstRow = new EventKey( 4650, 100001 );\n QuerySetRowSelector.select( lDataSet,\n new QuerySetKeyColumnPredicate( lFirstRow, \"event_db_id\", \"event_id\" ) );\n\n EventKey lSecondRow = new EventKey( 4650, 100002 );\n QuerySetRowSelector.select( lDataSet,\n new QuerySetKeyColumnPredicate( lSecondRow, \"event_db_id\", \"event_id\" ) );\n }",
"@Test\n public void testCase2() {\n homePage.openSite();\n\n //2 Assert Browser title\n homePage.checkHomePageTitle();\n\n //3 Perform login\n homePage.login(PITER_CHAILOVSKII.login, PITER_CHAILOVSKII.password);\n\n //4 Assert User name in the left-top side of screen that user is logged in\n homePage.checkUserNameAfterLogIn();\n\n //5 Open through the header menu Service -> Dates Page\n homePage.openDatesServicePage();\n\n //6 Using drag-and-drop set Range sliders. left sliders - the most left position,\n // right slider - the most right position\n datesPage.settingRightRoller(100);\n datesPage.settingLeftRoller(0);\n\n //7 Assert that for \"From\" and \"To\" sliders there are logs rows with corresponding values\n datesPage.checkLog(2, \"to\", 100);\n datesPage.checkLog(1, \"from\", 0);\n\n //8 Using drag-and-drop set Range sliders. left sliders - the most left position, right slider -\n // the most left position.\n datesPage.settingLeftRoller(0);\n datesPage.settingRightRoller(0);\n\n //9 Assert that for \"From\" and \"To\" sliders there are logs rows with corresponding values\n datesPage.checkLog(2, \"from\", 0);\n datesPage.checkLog(1, \"to\", 0);\n\n //10 Using drag-and-drop set Range sliders. left sliders - the most right position, right slider - the most\n // right position.\n datesPage.settingRightRoller(100);\n datesPage.settingLeftRoller(100);\n datesPage.checkLog(1, \"from\", 100);\n datesPage.checkLog(2, \"to\", 100);\n\n //12 Using drag-and-drop set Range sliders.\n datesPage.settingLeftRoller(30);\n datesPage.settingLeftRoller(30);\n datesPage.settingRightRoller(70);\n datesPage.checkLog(2, \"from\", 30);\n datesPage.checkLog(1, \"to\", 70);\n }",
"@Test(groups = \"regression\")\n\t public void product()throws Throwable{\n\t ExcelUtility eLib = new ExcelUtility();\n\t String Pname1 = eLib.getExcelData(\"Product\", 8, 2);\n\t String Pname2 = eLib.getExcelData(\"Product\", 8, 3)+ JavaUtility.getRanDomNum();\n\t String Unit = eLib.getExcelData(\"Product\", 8, 4);\n\t String Qtys = eLib.getExcelData(\"Product\", 8, 5);\n\t String Qtyu = eLib.getExcelData(\"Product\", 8, 6);\n\t String Reorder = eLib.getExcelData(\"Product\", 8, 7);\n\t String Group = eLib.getExcelData(\"Product\", 8, 8);\n\t String Qtyd = eLib.getExcelData(\"Product\", 8, 9);\n\t\n\t /*step 3 : navigate to Products Page*/\n\n\t driver.findElement(By.xpath(\"//a[text()='Products']\")).click();\n\t /*step 4 : navigate to create Product Page*/\n\t List <WebElement> noofrows = driver.findElements(By.xpath(\"//table[@class=\\\"lvt small\\\"]/tbody/tr\")); \n\t //selecting existing product from the table. \n\t int rownum = noofrows.size();\t \n\t List <WebElement> element = driver.findElements(By.xpath(\"//a[@title=\\\"Products\\\"]\")); \n\t for (int i = 0; i<element.size();i++) \n\t {\n\t\t if(element.get(i).getText().equalsIgnoreCase(Pname1)) \n\t\t {\n\t\t\t element.get(i).click();\n\n\t\t\t break;\n\t\t }\n\n\t }\n\t //clickicg on edit option.\n\t driver.findElement(By.xpath(\"//input[@name=\\\"Edit\\\"]\")).click();\n\n\t //clearing old name and entering new name.\n\t driver.findElement(By.xpath(\"//input[@name='productname']\")).clear();\n\t driver.findElement(By.xpath(\"//input[@name='productname']\")).sendKeys(Pname2);\n\t //selecting unit to be used.\n\t WebElement dd = driver.findElement(By.xpath(\"//select[@name=\\\"usageunit\\\"]\"));\n\t wLib.select(dd,Unit);\n\t //\t\t\t\n\t //clearing texboxes and entering new data.\n\t driver.findElement(By.xpath(\"//input[@id=\\\"qtyinstock\\\"]\")).clear();\n\t driver.findElement(By.xpath(\"//input[@id=\\\"qtyinstock\\\"]\")).sendKeys(Qtys); \n\t driver.findElement(By.xpath(\"//input[@id=\\\"qty_per_unit\\\"]\")).clear();\n\t driver.findElement(By.xpath(\"//input[@id=\\\"qty_per_unit\\\"]\")).sendKeys(Qtyu);\n\t driver.findElement(By.xpath(\"//input[@id=\\\"reorderlevel\\\"]\")).clear();\n\t driver.findElement(By.xpath(\"//input[@id=\\\"reorderlevel\\\"]\")).sendKeys(Reorder);\n\t //selecting group from dropdown\n\t driver.findElement(By.xpath(\"//input[@value=\\\"T\\\"]\")).click();\n\t WebElement dd1 = driver.findElement(By.xpath(\"//select[@name=\\\"assigned_group_id\\\"]\"));\n\t wLib.select(dd1, Group);\n\n\t //updating quantity in demand.\n\t driver.findElement(By.xpath(\"//input[@id=\\\"qtyindemand\\\"]\")).clear();\n\t driver.findElement(By.xpath(\"//input[@id=\\\"qtyindemand\\\"]\")).sendKeys(Qtyd);\n\t //saving the changes by clicking save button.\n\t driver.findElement(By.xpath(\"//input[@title=\\\"Save [Alt+S]\\\"]\")).click();\n\n\t /*step 5: verify*/\n\t String actSuccessFullMsg = driver.findElement(By.xpath(\"//span[@class='lvtHeaderText']\")).getText();\n\t if(actSuccessFullMsg.contains(Pname2)) {\n\t\t System.out.println(Pname2 + \"==>Product editd successfully==>PASS\");\n\t }else {\n\t\t System.out.println(Pname2 + \"==>Product not Edited ==>Fail\");\n\n\t } \n }",
"@Test\r\n\tpublic void smr142() {\r\n\t\ttry{\r\n\t\t\tfinal String firstName=testDataOR.get(\"superuser_first_name\"),lastName=testDataOR.get(\"superuser_last_name\");\r\n\t\t\tlogin(\"URLEverest\",testDataOR.get(\"superuser\"),firstName,lastName);\r\n\t\t\tlogger.info(\"SMR142 execution started\");\r\n\t\t\tfinal String numComm=testDataOR.get(\"num_comm\"),cust=testDataOR.get(\"customer\")\r\n\t\t\t\t\t,posNum=testDataOR.get(\"pos_number\"),dbEportal=testDataOR.get(\"databaseEportal\"),dbAxis=testDataOR.get(\"databaseAxis\")\r\n\t\t\t\t\t,pos,numptv,numcom;\r\n\t\t\tfinal String[] posLoc={\"posrefund_xpath\",\"posforcing_xpath\",\"posvoid_xpath\",\"posnumcomm_xpath\"},\r\n\t\t\t\t\tposVal={testDataOR.get(\"refund_option\"),testDataOR.get(\"forcing_option\"),testDataOR.get(\"void_option\"),numComm};\r\n\t\t\t\r\n\t\t\t//Access Everest with the Everest superuser\r\n\t\t\t//Navigate to Card Payment-Customer Provisioning and select the \r\n\t\t\t//customer\r\n\t\t\taddProfToCust(cust);\r\n\r\n\t\t\t//Select 'Manual localization',pos and click Next\t\r\n\t\t\tlogger.info(\"Step 6:\");\r\n\t\t\tselUtils.selectItem(selUtils.getObject(\"operationorder_id\"), MANUALLOCALZTION);\r\n\t\t\tlogger.info(\"Selected \"+MANUALLOCALZTION);\r\n\t\t\tselUtils.clickOnWebElement(selUtils.getObject(\"pos_radiobttn_xpath\"));\r\n\t\t\tselUtils.clickOnWebElement(selUtils.getObject(\"orderopenext_id\"));\r\n\r\n\t\t\t//Select a lowest level zone and click Next\r\n\t\t\tlogger.info(\"Step 7:\");\r\n\t\t\tselUtils.selectItem(selUtils.getObject(\"localization_id\"), testDataOR.get(\"lowest_level_zone_a\"));\r\n\t\t\tselUtils.clickOnWebElement(selUtils.getObject(\"localizationnext_xpath\"));\r\n\t\t\tlogger.info(\"Selected a lowest level zone and next button\");\r\n\t\t\t\r\n\t\t\t//Select the <num_comm> from the dropdown list,click 'Next' button\r\n\t\t\tlogger.info(\"Step 8:\");\r\n\t\t\tselUtils.selectItem(selUtils.getObject(\"numcomm_selection_id\"), numComm);\r\n\t\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].click();\", selUtils.getObject(\"locnext_id\"));\r\n\t\t\tlogger.info(\"Selected numcomm zone and next button\");\r\n\r\n\t\t\t\r\n\t\t\t//select manual pos,and add pos details\r\n\t\t\tlogger.info(\"Step 9:\");\r\n\t\t\tselUtils.slctChkBoxOrRadio(selUtils.getObject(\"enterposanual_xpath\"));\r\n\t\t\tselUtils.clickOnWebElement(selUtils.getObject(\"addpos_xpath\"));\r\n\t\t\tselUtils.getObject(\"posnumber_id\").sendKeys(posNum);\r\n\t\t\taddPOSval(posLoc, posVal);\r\n\t\t\t\r\n\t\t\t//Edit projectname and deploy\r\n\t\t\teditPNameNDeply();\r\n\t\t\t\r\n\t\t\tif(dbCheck){\r\n\t\t\t\t//validating data with database,validate data in Eportal database\r\n\t\t\t\tsqlQuery = \"SELECT * FROM pos WHERE pos='\"+posNum+\"'\";\r\n\t\t\t\tresSet = dbMethods.getDataBaseVal(dbEportal,sqlQuery,CommonConstants.ONEMIN);\r\n\t\t\t\tpos=resSet.getString(\"pos\");\r\n\t\t\t\tAssert.assertTrue(pos.equals(posNum), \"Table data does not exist \");\r\n\t\t\t\tlogger.info(\"pos number \"+posNum+ \" exists in table\");\r\n\r\n\t\t\t\t//Validating the results in Axis database\r\n\t\t\t\tsqlQuery=\"SELECT numtpv,numcomm FROM emv.tpvemv WHERE numtpv='\"+posNum+\"' AND numcomm='\"+numComm+\"';\";\r\n\t\t\t\tresSet = dbMethods.getDataBaseVal(dbAxis,sqlQuery,CommonConstants.ONEMIN);\r\n\t\t\t\tnumptv=resSet.getString(\"numtpv\");\r\n\t\t\t\tnumcom=resSet.getString(\"numcomm\");\r\n\t\t\t\tAssert.assertTrue(numptv.equals(posNum)&&numcom.equals(numComm), \"Table data does not exist \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlogger.info(\"SMR142 executed successfully\");\r\n\t\t}\r\n\t\tcatch (Throwable t) {\r\n\t\t\thandleException(t);\r\n\t\t}\r\n\t}",
"@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality() {\n\tdriver.findElement(By.xpath(\"//a[contains(.,'Home')]\")).click();\r\n\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"Bill Payment\")));\r\n\tdriver.findElement(By.linkText(\"Bill Payment\")).click();\r\n\tWebDriverWait wait1 = new WebDriverWait(driver, 15);\r\n\twait1.until(\r\n\t\tExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()=' Institutional Payments ']\")));\r\n\tdriver.findElement(By.xpath(\"//div[text()=' Institutional Payments ']\")).click();\r\n\tdriver.findElement(By.xpath(\"//div[@class='col-in schoolFee']\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\t{\r\n\t WebElement dropdown = driver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\"));\r\n\t dropdown.findElement(By.xpath(\"//option[. = 'Account Number']\")).click();\r\n\t}\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).sendKeys(\"01129080146300\");\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_NAME .ct-form__ip\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_CODE .ct-form__ip\")).click();\r\n\tSystem.out.println(\"TC13 Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality |Success:\");\r\n\r\n\t}",
"@Test\n public void testRecordInboundMovement4() throws Exception {\n System.out.println(\"recordInboundMovement\");\n Long factoryId = 1L;\n Long goodsReceiptId = 20L;\n Long toBinId = 5L;\n String status = \"\";\n Double quantity = 40D;\n Calendar creationDate = Calendar.getInstance();\n creationDate.set(2014, 9, 30, 15, 0, 0);\n Long expResult = -1L;\n Long result = FactoryInventoryManagementModule.recordInboundMovement(factoryId, goodsReceiptId, toBinId, status, quantity, creationDate);\n assertEquals(expResult, result);\n }",
"@Test(priority=4)\n\tpublic void validatePredictNiftyInContestPage3()\n\t{\n\t\tAssert.assertTrue(c.openForParticipationTitile.getText().equalsIgnoreCase(\"Open For Participation\"));\n\t/*\tDate date = new Date();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd MMM\");\n\t\tString strDate = formatter.format(date);*/\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.add(Calendar.DATE, 1);\n\t\tDate date1 = calendar.getTime();\n\t\tFormat formatter1= new SimpleDateFormat(\"dd MMM\");\n\t\tString tomDate = formatter1.format(date1);\n\t\tSoftAssert s=new SoftAssert();\n\t\ts.assertTrue(c.dateForOpenForParticipation.getText().equals(tomDate.split(\" \")[0]));\n\t\ts.assertTrue(c.monthForOpenForParticipation.getText().equals(tomDate.split(\" \")[1]));\n\t\ts.assertAll();\n\t}",
"public void populateDemo(Connection connection, LocalDate start, LocalDate end) throws SQLException {\n\n DatabaseMetaData dmd = connection.getMetaData();\n ResultSet rs = dmd.getTables(null, null, \"DateList\", null);\n\n if (rs != null){\n\n while (!start.isAfter(end)){\n\n String sql = \"INSERT INTO DateList VALUES (to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'))\";\n\n String sql1 = \"INSERT INTO Information VALUES('Westin Hotel', 1, 'Single Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 5, 200)\";\n String sql2 = \"INSERT INTO Information VALUES('Westin Hotel', 1, 'Traditional Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 10, 300)\";\n String sql3 = \"INSERT INTO Information VALUES('Westin Hotel', 1, 'Presidential Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 1, 1000)\";\n String sql4 = \"INSERT INTO Information VALUES('Westin Hotel', 2, 'Single Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 5, 200)\";\n String sql5 = \"INSERT INTO Information VALUES('Westin Hotel', 2, 'Traditional Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 15, 400)\";\n String sql6 = \"INSERT INTO Information VALUES('Westin Hotel', 2, 'Presidential Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 1, 1000)\";\n String sql7 = \"INSERT INTO Information VALUES('Ritz Carlton Hotel', 1, 'Traditional Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 20, 800)\";\n String sql8 = \"INSERT INTO Information VALUES('Ritz Carlton Hotel', 1, 'Presidential Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 1, 2000)\";\n String sql9 = \"INSERT INTO Information VALUES('Ritz Carlton Hotel', 2, 'Traditional Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 25, 1000)\";\n String sql10 = \"INSERT INTO Information VALUES('Ritz Carlton Hotel', 2, 'Presidential Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 1, 2000)\";\n String sql11 = \"INSERT INTO Information VALUES('Four Seasons Hotel', 1, 'Single Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 10, 350)\";\n String sql12 = \"INSERT INTO Information VALUES('Four Seasons Hotel', 1, 'Twin Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 10, 250)\";\n\n PreparedStatement pStmt = connection.prepareStatement(sql);\n PreparedStatement pStmt1 = connection.prepareStatement(sql1);\n PreparedStatement pStmt2 = connection.prepareStatement(sql2);\n PreparedStatement pStmt3 = connection.prepareStatement(sql3);\n PreparedStatement pStmt4 = connection.prepareStatement(sql4);\n PreparedStatement pStmt5 = connection.prepareStatement(sql5);\n PreparedStatement pStmt6 = connection.prepareStatement(sql6);\n PreparedStatement pStmt7 = connection.prepareStatement(sql7);\n PreparedStatement pStmt8 = connection.prepareStatement(sql8);\n PreparedStatement pStmt9 = connection.prepareStatement(sql9);\n PreparedStatement pStmt10 = connection.prepareStatement(sql10);\n PreparedStatement pStmt11 = connection.prepareStatement(sql11);\n PreparedStatement pStmt12 = connection.prepareStatement(sql12);\n\n pStmt.clearParameters();\n pStmt1.clearParameters();\n pStmt2.clearParameters();\n pStmt3.clearParameters();\n pStmt4.clearParameters();\n pStmt5.clearParameters();\n pStmt6.clearParameters();\n pStmt7.clearParameters();\n pStmt8.clearParameters();\n pStmt9.clearParameters();\n pStmt10.clearParameters();\n pStmt11.clearParameters();\n pStmt12.clearParameters();\n\n pStmt.setString(1, start.toString());\n pStmt1.setString(1, start.toString());\n pStmt2.setString(1, start.toString());\n pStmt3.setString(1, start.toString());\n pStmt4.setString(1, start.toString());\n pStmt5.setString(1, start.toString());\n pStmt6.setString(1, start.toString());\n pStmt7.setString(1, start.toString());\n pStmt8.setString(1, start.toString());\n pStmt9.setString(1, start.toString());\n pStmt10.setString(1, start.toString());\n pStmt11.setString(1, start.toString());\n pStmt12.setString(1, start.toString());\n\n start = start.plusDays(1);\n\n pStmt.setString(2, start.toString());\n pStmt1.setString(2, start.toString());\n pStmt2.setString(2, start.toString());\n pStmt3.setString(2, start.toString());\n pStmt4.setString(2, start.toString());\n pStmt5.setString(2, start.toString());\n pStmt6.setString(2, start.toString());\n pStmt7.setString(2, start.toString());\n pStmt8.setString(2, start.toString());\n pStmt9.setString(2, start.toString());\n pStmt10.setString(2, start.toString());\n pStmt11.setString(2, start.toString());\n pStmt12.setString(2, start.toString());\n\n try {\n pStmt.executeUpdate();\n pStmt1.executeUpdate();\n pStmt2.executeUpdate();\n pStmt3.executeUpdate();\n pStmt4.executeUpdate();\n pStmt5.executeUpdate();\n pStmt6.executeUpdate();\n pStmt7.executeUpdate();\n pStmt8.executeUpdate();\n pStmt9.executeUpdate();\n pStmt10.executeUpdate();\n pStmt11.executeUpdate();\n pStmt12.executeUpdate();\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n pStmt1.close();\n pStmt2.close();\n pStmt3.close();\n pStmt4.close();\n pStmt5.close();\n pStmt6.close();\n pStmt7.close();\n pStmt8.close();\n pStmt9.close();\n pStmt10.close();\n pStmt11.close();\n pStmt12.close();\n }\n }\n }\n else {\n System.out.println(\"ERROR: Error loading CUSTOMER Table.\");\n }\n }",
"public static void main(String[] args) throws Exception {\n\t\t\n\t\tTradeImpl tf = new TradeImpl();\n\t\tDate todaysDate = Calendar.getInstance ().getTime();\n\t\tSimpleDateFormat sd = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\n\t\t\n\t\t\n//\t\tAdding Trade T1\n\t\tDate maturityDate=sd.parse(\"10/05/2021\");\n\t\tTradeBean t1=new TradeBean(\"T1\",1,\"CP-1\",\"B1\",maturityDate, todaysDate, 'N');\n\t\ttf.addTrade(t1);\n\t\t\n\t\t//Adding Trade T2\n\t\tmaturityDate=sd.parse(\"20/05/2021\");\n\t\tTradeBean t2=new TradeBean(\"T2\",2,\"CP-2\",\"B1\",maturityDate, todaysDate, 'N');\n\t\ttf.addTrade(t2);\t\t\n\n\t\tTradeBean t4=new TradeBean(\"T3\",5,\"CP-4\",\"B1\",maturityDate, todaysDate, 'N');\n\t\ttf.addTrade(t4);\n\t\t\n\t\t\n\t\t//Adding Trade T3\n\t\tmaturityDate=sd.parse(\"20/05/2021\");\n\t\tTradeBean t3=new TradeBean(\"T4\",5,\"CP-3\",\"B2\",maturityDate, todaysDate, 'N');\n\t\ttf.addTrade(t3);\n\t\t\n\t\t\n\t\t\n\t\t//Display all Trade\n\t\tSystem.out.println(\"\\n\\n\");\n\t\tSystem.out.println(\"Displaying total number of Trade in the list\");\n\t\ttf.printTrade();\n\t\tSystem.out.println(\"\\n\\n\");\t\n\t\t\t\t\n\t\t//Checking for all Expired Flag\n\t\tSystem.out.println(\"Checking for Expired Flag\");\n\t\tmaturityDate=sd.parse(\"20/01/2021\");\n\t\tTradeBean t6=new TradeBean(\"T2\",2,\"CP-2\",\"B1\",maturityDate, todaysDate, 'N');\n\t\ttf.tradeList.replace(\"T2\", t6);\n\t\t\n\t\tmaturityDate=sd.parse(\"20/01/2021\");\n\t\tTradeBean t7=new TradeBean(\"T4\",5,\"CP-3\",\"B2\",maturityDate, todaysDate, 'N');\n\t\ttf.tradeList.replace(\"T4\", t7);\n\t\ttf.checkExpiredDates();\n\t\ttf.printTrade();\n\t\t\n\t\t\n\n\t}",
"@Test //ExSkip\n public void fieldNext() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create a data source for our mail merge with 3 rows.\n // A mail merge that uses this table would normally create a 3-page document.\n DataTable table = new DataTable(\"Employees\");\n table.getColumns().add(\"Courtesy Title\");\n table.getColumns().add(\"First Name\");\n table.getColumns().add(\"Last Name\");\n table.getRows().add(\"Mr.\", \"John\", \"Doe\");\n table.getRows().add(\"Mrs.\", \"Jane\", \"Cardholder\");\n table.getRows().add(\"Mr.\", \"Joe\", \"Bloggs\");\n\n insertMergeFields(builder, \"First row: \");\n\n // If we have multiple merge fields with the same FieldName,\n // they will receive data from the same row of the data source and display the same value after the merge.\n // A NEXT field tells the mail merge instantly to move down one row,\n // which means any MERGEFIELDs that follow the NEXT field will receive data from the next row.\n // Make sure never to try to skip to the next row while already on the last row.\n FieldNext fieldNext = (FieldNext) builder.insertField(FieldType.FIELD_NEXT, true);\n\n Assert.assertEquals(\" NEXT \", fieldNext.getFieldCode());\n\n // After the merge, the data source values that these MERGEFIELDs accept\n // will end up on the same page as the MERGEFIELDs above. \n insertMergeFields(builder, \"Second row: \");\n\n // A NEXTIF field has the same function as a NEXT field,\n // but it skips to the next row only if a statement constructed by the following 3 properties is true.\n FieldNextIf fieldNextIf = (FieldNextIf) builder.insertField(FieldType.FIELD_NEXT_IF, true);\n fieldNextIf.setLeftExpression(\"5\");\n fieldNextIf.setRightExpression(\"2 + 3\");\n fieldNextIf.setComparisonOperator(\"=\");\n\n Assert.assertEquals(\" NEXTIF 5 = \\\"2 + 3\\\"\", fieldNextIf.getFieldCode());\n\n // If the comparison asserted by the above field is correct,\n // the following 3 merge fields will take data from the third row.\n // Otherwise, these fields will take data from row 2 again.\n insertMergeFields(builder, \"Third row: \");\n\n doc.getMailMerge().execute(table);\n\n // Our data source has 3 rows, and we skipped rows twice. \n // Our output document will have 1 page with data from all 3 rows.\n doc.save(getArtifactsDir() + \"Field.NEXT.NEXTIF.docx\");\n testFieldNext(doc); //ExSKip\n }",
"@Test\n\tpublic void creditEntrySEPA() throws Exception {\n\t\ttry {\n\t\t\t// Launch the browser and load the default URL\n\t\t\tUtility.initConfiguration();\n\t\t\tThread.sleep(3000);\n\t\t\t// Login to back end and check payment method is enabled or disabled\n\t\t\tUtility.wooCommerceBackEndLogin();\n\t\t\tThread.sleep(3000);\n\t\t\tElementLocators element = PageFactory.initElements(driver, ElementLocators.class);\n\t\t\t// Title for HTML report\n\t\t\ttest = extend.createTest(\"Vendor script execution for 'CREDIT_ENTRY_SEPA'\");\n\t\t\t// Steps\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\tThread.sleep(3000);\n\t\t\telement.WooCommerce_Settings.click();\n\t\t\telement.Payment_Tab.click();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Display.click();\n\t\t\t// Checking payment method enabled or disabled\n\t\t\tif (!element.Sepa_Enable_Payment_Method_Checkbox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Method_Checkbox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\t// Checking Guarantee payment enabled or disabled\n\t\t\tif (element.Sepa_Enable_Payment_Guarantee_CheckBox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Guarantee_CheckBox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\telement.Sepa_Payment_Save_Changes.click();\n\t\t\tThread.sleep(3000);\n\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\tThread.sleep(3000);\n\t\t\tUtility.wooCommerceCheckOutProcess();\n\t\t\tThread.sleep(4000);\n\t\t\t// Read the datafrom excel sheet\n\t\t\tMap<String, String> UserData = new HashMap<String, String>();\n\t\t\tUserData = Data.ExcelReader_PaymentMethods();\n\t\t\t// Check whether payment method is displayed in checkout page\n\t\t\tif (element.Sepa_Label.isDisplayed()) {\n\t\t\t\tif (element.Sepa_Radio_button.isDisplayed() == true) {\n\t\t\t\t\telement.Sepa_Radio_button.click();\n\t\t\t\t}\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\telement.Sepa_Iban_TextBox.sendKeys(UserData.get(\"SEPAIBAN\"));\n\t\t\t\telement.Place_Order.click();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);\n\t\t\t\t// After order placed successfully verify Thank you message displayed\n\t\t\t\tString thankyoumessage = element.FE_Thank_You_Page_Text.getText();\n\t\t\t\tif (thankyoumessage.equals(\"Thank you. Your order has been received.\")) {\n\t\t\t\t\tSystem.out.println(\"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.INFO, \"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\tThread.sleep(3000); // Get the amount from order success page front end\n\t\t\t\t\tString totalOrderAmount = element.OrderDetails_TotalAmount.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tString TID = element.OrderDetails_Note_TID.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\t\t// Go to callback execution site and enter vendor script URL\n\t\t\t\t\tdriver.navigate().to(Constant.vendorscripturl);\n\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\telement.Vendor_Script_Url.sendKeys((Constant.shopfrontendurl) + \"?wc-api=novalnet_callback\");\n\t\t\t\t\telement.Vendor_Id.clear();\n\t\t\t\t\telement.Vendor_Id.sendKeys(\"4\");\n\t\t\t\t\telement.Vendor_Auth_Code.clear();\n\t\t\t\t\telement.Vendor_Auth_Code.sendKeys(\"JyEtHUjjbHNJwVztW6JrafIMHQvici\");\n\t\t\t\t\telement.Product_Id.clear();\n\t\t\t\t\telement.Product_Id.sendKeys(\"14\");\n\t\t\t\t\telement.Tariff_Id.clear();\n\t\t\t\t\telement.Tariff_Id.sendKeys(\"30\");\n\t\t\t\t\telement.Payment_Type_Edit_Button.click();\n\t\t\t\t\tSelect selectpaymenttype = new Select(element.Payment_Type_Selectbox);\n\t\t\t\t\tselectpaymenttype.selectByVisibleText(\"CREDIT_ENTRY_SEPA\");\n\t\t\t\t\telement.Test_Mode.clear();\n\t\t\t\t\telement.Test_Mode.sendKeys(\"1\");\n\t\t\t\t\telement.Tid_Payment.clear();\n\t\t\t\t\telement.Tid_Payment.sendKeys(TID);\n\t\t\t\t\telement.Amount.clear();\n\t\t\t\t\telement.Amount.sendKeys(totalOrderAmount);\n\t\t\t\t\telement.Currency.clear();\n\t\t\t\t\telement.Currency.sendKeys(\"EUR\");\n\t\t\t\t\telement.Status.clear();\n\t\t\t\t\telement.Status.sendKeys(\"100\");\n\t\t\t\t\telement.Tid_Status.clear();\n\t\t\t\t\telement.Tid_Status.sendKeys(\"100\");\n\t\t\t\t\telement.Tid.clear();\n\t\t\t\t\telement.Tid.sendKeys(\"13245678945612345\");\n\t\t\t\t\telement.Execute_Button.click();\n\t\t\t\t\tString callback_message = element.callback_message.getText();\t\t\t\t\t\n\t\t\t\t\tString callback_message_updated = callback_message.substring(9, callback_message.length());\n\t\t\t\t\tSystem.out.println(\"Callback execution message: \" + callback_message_updated);\n\t\t\t\t\tif (callback_message.contains(\"Novalnet Callback Script executed successfully for the TID:\")) {\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t\tdriver.navigate().to(Constant.shopbackendurl);\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t\telement.WooCommerce_Orders.click();\n\t\t\t\t\t\telement.Backend_Order_Number.click();\n\t\t\t\t\t\tString BEOrderNotesMessage = element.BE_OrderNotes_Message.getText();\n\t\t\t\t\t\tSystem.out.println(\"Back end order note: \" + BEOrderNotesMessage);\n\t\t\t\t\t\tif (callback_message_updated.equals(BEOrderNotesMessage)) {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"TC PASSED: CREDIT_ENTRY_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\"TC PASSED: CREDIT_ENTRY_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"TC FAILED: CREDIT_ENTRY_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\"TC FAILED: CREDIT_ENTRY_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.FAIL, \"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close browser\n\t\t\tUtility.closeBrowser();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR: Unexpected error from 'creditEntrySEPA' method\");\n\t\t\ttest.log(Status.ERROR, \"ERROR: Unexpected error from 'creditEntrySEPA' method\");\n\t\t}\n\t}",
"public void generateImpatedRecords ()\r\n\t{\n\t\tRequest req = table.createRequest();\r\n\t\treq.setXPathFilter(path_to_id.format()+\"='\" + id +\"'\");\r\n\t\tRequestResult res = req.execute();\r\n\t\tshow(\"got results \" + res.getSize() );\r\n\t\tAdaptation ada = res.nextAdaptation();\r\n\t\tshow (\"STARTDATE: \" + startdate + \" ENDDATE: \" + enddate);\r\n\t\tshow(\"________________________________________________\");\r\n\t\twhile (ada!=null)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tDate adaStartDate = ada.getDate(path_to_start);\r\n\t\t\tDate adaEndDate = ada.getDate(path_to_end);\r\n\t\t\t//check im not me!\r\n\t\t\tif (!(ada.getOccurrencePrimaryKey().format().equals(newRecord.getOccurrencePrimaryKey().format())))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t// the record has been updated but date has not changed\r\n\t\t\t\tif (enddate!=null&&adaEndDate!=null&&(adaStartDate.equals(startdate)&&adaEndDate.equals(enddate)))\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tshow(\"The Record needs Spliting\");\r\n\t\t\t\t\trecordToSplit = ada;\r\n\t\t\t\t\tnewEndDate = addDays(startdate,-1);\r\n\t\t\t\t\tbeforeRecord = ada;\r\n\t\t\t\t\tnewStartDate = addDays(enddate,+1);\r\n\t\t\t\t\tafterRecord = ada;\r\n\t\t\t\t}\r\n\t\t\t\telse if (enddate!=null&&adaEndDate!=null&&(adaStartDate.before(startdate)&&adaEndDate.after(enddate)))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tshow(\"The Record needs Spliting\");\r\n\t\t\t\t\t\t\trecordToSplit = ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays(startdate,-1);\r\n\t\t\t\t\t\t\tbeforeRecord = ada;\r\n\t\t\t\t\t\t\tnewStartDate = addDays(enddate,+1);\r\n\t\t\t\t\t\t\tafterRecord = ada;\r\n\t\t\t\t\t\t}\r\n\t\t\t\telse if (adaStartDate == null && adaEndDate == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tshow (\"set end date on existing record\");\r\n\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t}\r\n\t\t\t\t\t\telse if (adaStartDate.before(startdate)&& adaEndDate==null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"set end date on existing record\");\r\n\t\t\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\telse if (adaStartDate.before(startdate) && adaEndDate.after(startdate))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"need to move existing end date\");\r\n\t\t\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (enddate!=null&&enddate==null&&adaStartDate.after(enddate))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"need to end date new record\");\r\n\t\t\t\t\t\t\tbeforeRecord = newRecord;\r\n\t\t\t\t\t\t\tnewEndDate = addDays(adaStartDate, -1);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\tada = res.nextAdaptation();\r\n\t}\r\n\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public List<String> nextWithDate(String startDate, String finalDate, boolean split) throws IOException, ParseException {\n counterSeveralLines = linesAfter;\n if (StringUtils.isBlank(currentPath)) return null;\n Data dataStart = Data.parseDate(startDate);\n Data dataEnd = Data.parseDate(finalDate);\n String[] temp_phrase = getSearchPhrase(split);\n String sCurrentLine;\n while ((sCurrentLine = bufferReader.readLine()) != null) {\n if (sCurrentLine.length() > 18) {\n String Data = sCurrentLine.substring(0, 19);\n Data temp = com.softcomputer.genetrace.Data.parseDate(Data);\n if (temp != null) {\n setDateBefore(temp);\n }\n }\n if ( ((dataStart.isAfter(getDateBefore()) && dataEnd.isBefore(getDateBefore())))\n || getDateBefore().isEqual(dataEnd) || getDateBefore().isEqual(dataStart)) {\n for (String s : temp_phrase) {\n if ((StringUtils.containsIgnoreCase(sCurrentLine, s))) {\n\n listBefore = addToArray(sCurrentLine);\n return listBefore;\n }\n }\n }\n arrayPreviousLines[counter] = sCurrentLine;\n counter++;\n if (counter >= linesBefore) {\n counter = 0;\n }\n }\n return listBefore;\n }",
"@Test\n\tpublic void RevenueLineItems_26647_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Navigate to RLIs listview, inline edit Sales Stage and verify the Probability and Forecast are changing respectively\n\t\tsugar().revLineItems.navToListView();\n\t\tsugar().revLineItems.listView.updateRecord(1, updateFS1);\n\t\tsugar().revLineItems.listView.verifyField(1, \"salesStage\", (fullFS1.get(\"salesStage\")));\n\t\tsugar().revLineItems.listView.verifyField(1, \"probability\", (fullFS1.get(\"probability\")));\n\t\tsugar().revLineItems.listView.verifyField(1, \"forecast\", (fullFS1.get(\"forecast\")));\n\n\t\tsugar().revLineItems.listView.updateRecord(2, updateFS2);\n\t\tsugar().revLineItems.listView.verifyField(2, \"salesStage\", fullFS2.get(\"salesStage\"));\n\t\tsugar().revLineItems.listView.verifyField(2, \"probability\", fullFS2.get(\"probability\"));\n\t\tsugar().revLineItems.listView.verifyField(2, \"forecast\", fullFS2.get(\"forecast\"));\n\n\t\tVoodooUtils.voodoo.log.info(testName + \"complete.\");\n\t}",
"@Test\n public void testCreateBookingReportJob() throws Exception {\n LocalDate currentDate = LocalDate.parse(\"2018-05-28\");\n LocalDate endDate = LocalDate.parse( \"2018-10-23\" );\n while ( currentDate.isBefore( endDate ) ) {\n BookingReportJob workerJob = new BookingReportJob();\n workerJob.setStatus( JobStatus.submitted );\n workerJob.setStartDate( currentDate );\n workerJob.setEndDate( currentDate.plusDays( 4 ) );\n dao.insertJob( workerJob );\n currentDate = currentDate.plusDays( 5 ); // dates are inclusive, +1\n }\n }",
"@Test\n public void wam_006_testJune32019DataCorrectness() {\n String date = \"June 3, 2019\";\n wam.typeDateInDatePicker(date);\n wam.verifyDateInDatePicker(date);\n\n wam.verifyWamIndexPageFirstColumnInOrder(1, wam.DEFAULT_WAM_INDEX_ROWS);\n wam.clickNextPaginator();\n wam.verifyWamIndexPageFirstColumnInOrder(\n wam.DEFAULT_WAM_INDEX_ROWS + 1,\n 2 * wam.DEFAULT_WAM_INDEX_ROWS\n );\n wam.clickNextPaginator();\n wam.verifyWamIndexPageFirstColumnInOrder(\n 2 * wam.DEFAULT_WAM_INDEX_ROWS + 1,\n 3 * wam.DEFAULT_WAM_INDEX_ROWS\n );\n\n }",
"@Test\n public void testReservedMonthlyFeeRDS() throws Exception {\n Line line = new Line(LineItemType.RIFee, \"ap-southeast-2\", \"\", rds, \"APS2-HeavyUsage:db.t2.micro\", \"CreateDBInstance:0014\", \"USD 0.012 hourly fee per PostgreSQL, db.t2.micro instance\", null, \"2019-06-01T00:00:00Z\", \"2019-06-30T23:59:59Z\", \"1440\", \"1440.0\", \"\");\n line.setRIFeeFields(\"720.0\", \"0\", \"0\", \"0\", \"2\", \"2017-01-01T00:00:00Z\", \"2020-01-01T00:00:00Z\");\n line.setNormalizationFactor(\"0.5\");\n ProcessTest test = new ProcessTest(line, Result.ignore, 30);\n test.setDelayed();\n Datum expected = new Datum(CostType.recurring, a2, Region.AP_SOUTHEAST_2, null, rdsInstance, Operation.reservedInstancesPartialUpfront, \"db.t2.micro.postgres\", \",\", ReservationArn.get(\"\"), 1.0, 2.0);\n test.run(\"2019-07-01T00:00:00Z\", null, expected);\n\n // All Upfront - 2 RIs at 2.0/hr upfront\n line = new Line(LineItemType.RIFee, \"ap-southeast-2\", \"\", rds, \"APS2-HeavyUsage:db.t2.micro\", \"CreateDBInstance:0014\", \"USD 0.012 hourly fee per PostgreSQL, db.t2.micro instance\", null, \"2019-06-01T00:00:00Z\", \"2019-06-30T23:59:59Z\", \"1440\", \"0\", \"\");\n line.setRIFeeFields(\"2880.0\", \"0\", \"0\", \"0\", \"2\", \"2017-01-01T00:00:00Z\", \"2020-01-01T00:00:00Z\");\n line.setNormalizationFactor(\"0.5\");\n test = new ProcessTest(line, Result.ignore, 30);\n test.setDelayed();\n expected = new Datum(CostType.recurring, a2, Region.AP_SOUTHEAST_2, null, rdsInstance, Operation.reservedInstancesAllUpfront, \"db.t2.micro.postgres\", \",\", ReservationArn.get(\"\"), 4.0, 0.0);\n test.run(\"2019-07-01T00:00:00Z\", null, expected);\n\n // No Upfront - 2 RIs at 1.5/hr recurring\n line = new Line(LineItemType.RIFee, \"ap-southeast-2\", \"\", rds, \"APS2-HeavyUsage:db.t2.micro\", \"CreateDBInstance:0014\", \"USD 0.012 hourly fee per PostgreSQL, db.t2.micro instance\", null, \"2019-06-01T00:00:00Z\", \"2019-06-30T23:59:59Z\", \"1440\", \"2160\", \"\");\n line.setRIFeeFields(\"0\", \"0\", \"0\", \"0\", \"2\", \"2017-01-01T00:00:00Z\", \"2020-01-01T00:00:00Z\");\n line.setNormalizationFactor(\"0.5\");\n test = new ProcessTest(line, Result.ignore, 30);\n test.setDelayed();\n expected = new Datum(CostType.recurring, a2, Region.AP_SOUTHEAST_2, null, rdsInstance, Operation.reservedInstancesNoUpfront, \"db.t2.micro.postgres\", \",\", ReservationArn.get(\"\"), 0, 3);\n test.run(\"2019-07-01T00:00:00Z\", null, expected);\n \n // Partial Upfront Multi-AZ 1 RI at 2.0/hr recurring and 1.0/hr upfront\n line = new Line(LineItemType.RIFee, \"ap-southeast-2\", \"\", rds, \"APS2-HeavyUsage:db.t2.micro\", \"CreateDBInstance:0014\", \"USD 0.012 hourly fee per PostgreSQL, db.t2.micro instance\", null, \"2019-06-01T00:00:00Z\", \"2019-06-30T23:59:59Z\", \"720\", \"1440.0\", \"\");\n line.setRIFeeFields(\"720.0\", \"0\", \"0\", \"0\", \"1\", \"2017-01-01T00:00:00Z\", \"2020-01-01T00:00:00Z\");\n line.setNormalizationFactor(\"1\");\n test = new ProcessTest(line, Result.ignore, 30);\n test.setDelayed();\n expected = new Datum(CostType.recurring, a2, Region.AP_SOUTHEAST_2, null, rdsInstance, Operation.reservedInstancesPartialUpfront, \"db.t2.micro.multiaz.postgres\", \",\", ReservationArn.get(\"\"), 1, 2);\n test.run(\"2019-07-01T00:00:00Z\", null, expected);\n }",
"@Test\r\n \tpublic void testFileEvents96_3() {\n \t\t\t\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/CSVTest_96_2.txt\"); // issue 96\r\n \t\tassertNotNull(input);\r\n \t\r\n \t\t// Set the parameters\r\n \t\tParameters params = new Parameters();\r\n \t\tsetDefaults(params);\r\n \t\tparams.fieldDelimiter = \",\";\r\n \t\tparams.textQualifier = \"\\\"\";\r\n \t\tparams.sendColumnsMode = Parameters.SEND_COLUMNS_LISTED;\r\n \t\tparams.sourceColumns = \"1\";\r\n \t\tparams.targetColumns = \"2\";\r\n \t\tparams.targetLanguages = \"\"; //locFRCA.toString();\r\n \t\tparams.targetSourceRefs = \"1\";\r\n \t\tfilter.setParameters(params);\r\n \t\t\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN, locFRCA));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\t\t\t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"src\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"trg\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"data\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source1\", \"\", \"target1\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data1\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source2\", \"\", \"target2\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data2\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\t\t\tfilter.close();\t\t\r\n \t}",
"@Test\n public void verifyPost2Corporate_EVENT_TYPE_RULE()\n {\n\n String clauseStatement =\"EVENT_TYPE = 'C2CORP'\";\n\n //The aim is to use a List for each Event Types. Each Event Type Data should have its onw list\n //And on each Test below we will use the Lists accordingly\n objSUB_EVN_LIST_DATA = new T_C3D_SUBSCR_SUB_EVN_LIST_DATA(clauseStatement);\n objtestSUB_EVN_LIST = objSUB_EVN_LIST_DATA.getData();\n\n objSUB_ATR_LIST_DATA = new T_C3D_SUBSCR_SUB_ATR_LIST_DATA();\n objSUB_ATR_LIST = objSUB_ATR_LIST_DATA.getData();\n\n // Log the Start of the Test\n logger = report.startTest(\"EVENT_TYPE = DEAL_SWAP \",\n \"TO VERIFY THAT EVENT_TYPE ACT MANDATORY FIELDS ARE POPULATED WITH CORRECT DATA\");\n\n int numberOfSubsWithCorrectValues = 0;\n int numberOfSubsWithIncorrectValues= 0;\n int totalNumberOfSubs = 0;\n int failedSubs = 0;\n int passedSubs = 0;\n\n try {\n\n String busEventTypeStr = null;\n String eventDateStr = null;\n String eventTypeStr = null;\n String eventSubsId = null;\n String strCUSTOMER_ID = null;\n String strMSIN = null;\n String strICC_ID = null;\n Object PROFILE_START_DATE_VALUE = null;\n Object strPROFILE_END_DATE;\n String strSUBSCRIBER_ID;\n String strT11_MSISDN;\n String strEXTERNAL_ID;\n String strACTIVATION_DATE;\n String strEVENT_SEQ;\n String strCONNECTION_DATE;\n Object strDISCONNECTION_DATE;\n Object strEvent_Date;\n\n\n TRANSLATION_LAYER_MANDATORY_FIELDS Function = new TRANSLATION_LAYER_MANDATORY_FIELDS();\n\n for(T_C3D_SUBSCR_SUB_EVN_LIST objSUB_EVN_LIST : objtestSUB_EVN_LIST){\n\n listOfNullValues.clear();\n listOfIncorrectValues.clear();\n listOfCorrectValues.clear();\n\n try {\n eventSubsId = objSUB_EVN_LIST.getSUBSCRIBER_ID().toString();\n\n } catch (Exception e) {\n\n isSubsIdNotNull = false;\n listOfNullValues.add(\" SUBS_ID '\"+objSUB_EVN_LIST.getSUBSCRIBER_ID()+\"'\");\n }\n\n try {\n strCUSTOMER_ID = objSUB_EVN_LIST.getCUSTOMER_ID().trim().toString();\n\n } catch (Exception e) {\n\n if(checkDuplication(listOfDuplicationRecord,eventSubsId) == false) {\n\n listOfNullValues.add(\" CUSTOMER_ID: '\"+objSUB_EVN_LIST.getCUSTOMER_ID()+\"'\");\n }\n else\n {\n listOfDuplicationRecord.add(eventSubsId);\n }\n }\n\n\n try {\n\n strEvent_Date = objSUB_EVN_LIST.getEVENT_DATE().toString();\n\n\n\n } catch (Exception e) {\n\n listOfNullValues.add(\" EVENT_DATE: '\"+objSUB_EVN_LIST.getEVENT_DATE()+\"'\");\n }\n\n try {\n if (objSUB_EVN_LIST.getBUS_EVENT_TYPE().equals(\"DI\")) {\n\n isSuspen_BusEventType_Null = true;\n listOfCorrectValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"'\");\n\n } else\n {\n isSuspen_BusEventType_Null = false;\n listOfIncorrectValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"'\");\n }\n } catch (Exception e) {\n isBusEventTypeNotNull = false;\n listOfNullValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"\");\n\n }\n\n Function.TRANSLATION_LAYER_MONDATORY_FIELDS();\n\n\n if(listOfNullValues.size() > 0 && listOfIncorrectValues.size() > 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\", \" FIELDS WITH NULLS : \" + listOfNullValues+//errorMessageOfNull+\n \" FIELDS WITH INCORRECT VALUES : \" + listOfIncorrectValues);\n numberOfSubsWithNullValues++; numberOfSubsWithIncorrectValues++; totalNumberOfSubs++; failedSubs++;\n //isCheckAllAttr = false;\n }\n else if(listOfNullValues.size() > 0 && listOfIncorrectValues.size() == 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\", \" FIELDS WITH NULLS : \" +listOfNullValues);//+ errorMessageOfNull);\n //isCheckAllAttr = false;\n numberOfSubsWithNullValues++; totalNumberOfSubs++; failedSubs++;\n }\n else if(listOfNullValues.size() == 0 && listOfIncorrectValues.size() > 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\",\" FIELDS WITH INCORRECT VALUES : \" +listOfIncorrectValues);//+ errorMessageOfIncorrect);\n numberOfSubsWithIncorrectValues++; totalNumberOfSubs++; failedSubs++;\n }else if(listOfCorrectValues.size()>0){\n\n logger.log(LogStatus.PASS, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\",\"EVENT_TYPE: '\" + objSUB_EVN_LIST.getEVENT_TYPE()+\"' \"+\"BUSINESS EVENT_TYPE: '\" + objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"' \"+\" EVENT_DATE: '\"+ objSUB_EVN_LIST.getEVENT_DATE()+\"'\");numberOfSubsWithCorrectValues++; totalNumberOfSubs++; passedSubs++;\n }\n\n }\n\n logger.log(LogStatus.INFO,\"STATISTICS \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithNullValues,\" SUBSCRIBERS WITH NULLS \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithCorrectValues,\" SUBSCRIBERS WITH CORRECT VALUES \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithIncorrectValues,\" SUBSCRIBERS WITH INCORRECT VALUES \");\n logger.log(LogStatus.INFO,\"\"+failedSubs,\" FAILED SUBSCRIBERS \");\n logger.log(LogStatus.INFO,\"\"+passedSubs,\" PASSED SUBSCRIBERS \");\n logger.log(LogStatus.INFO,\"\"+totalNumberOfSubs,\" TOTAL NUMBER OF SUBSCRIBERS \");\n\n\n }catch (Exception e)\n {\n logger.log(LogStatus.FAIL,\"ALL SUBS HAVE NULL EVENT_TYPE\");\n // System.out.println(\"EVENT_TYPE have NULLS for ALL SUBS\");\n }\n\n }",
"private void testRow( QuerySet aQuerySet, String aPartDescription, int aRemoveQty,\n String aPartSerialOff, String aCondReasonOff, int aWarrentyCoverage,\n String aShedPartKey ) {\n\n Assert.assertEquals( \"part_description\", aPartDescription,\n aQuerySet.getString( \"part_description\" ) );\n Assert.assertEquals( \"removed_quantity\", aRemoveQty, aQuerySet.getInt( \"removed_quantity\" ) );\n\n Assert.assertEquals( \"part_serial_off\", aPartSerialOff,\n aQuerySet.getString( \"part_serial_off\" ) );\n Assert.assertEquals( \"cond_reason_off\", aCondReasonOff,\n aQuerySet.getString( \"cond_reason_off\" ) );\n Assert.assertEquals( \"warranty_coverage\", aWarrentyCoverage,\n aQuerySet.getInt( \"warranty_coverage\" ) );\n Assert.assertEquals( \"sched_part_key\", aShedPartKey,\n aQuerySet.getString( \"sched_part_key\" ) );\n }",
"@Test\n public void testProcessCheckoutLadderJulyFourth() throws Exception {\n String toolCode = \"LADW\";\n int rentalDays = 3;\n int discountPercentage = 10;\n LocalDate checkoutDate = LocalDate.of(2020, Month.JULY, 2);\n\n RentalAgreement result = checkout.processCheckout(toolCode, rentalDays, discountPercentage, checkoutDate);\n\n assertEquals(\"Ladder\", result.getRentedTool().getToolType());\n assertEquals(LocalDate.of(2020, Month.JULY, 5), result.getDueDate());\n assertEquals(2, result.getChargeDays());\n assertEquals(3.98, result.getPreDiscountCharge(), 0.00001);\n assertEquals(0.40, result.getDiscountAmount(), 0.00001);\n assertEquals(3.58, result.getFinalCharge(), 0.00001);\n }",
"@Test\n//Verify that new created API is displayed properly at API Revision wizard \n public void APIM_CreateAPI_004() throws Exception {\n try {\n assertEquals(\"DTSS-TESTAUTO-1\", driver.findElement(By.cssSelector(\"div.subNav > h2\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Delete Revision\", driver.findElement(By.linkText(\"Delete Revision\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Edit API Details\", driver.findElement(By.linkText(\"Edit API Details\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Deploy Revision\", driver.findElement(By.linkText(\"Deploy Revision\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Copy Revision As New API\", driver.findElement(By.linkText(\"Copy Revision As New API\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Revision: 1\", driver.findElement(By.cssSelector(\"div.myapis_DetailInfo\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"API Version: 1\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div/div/div[2]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Status: Enabled\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div/div/div[3]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Visibility:\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div/div/div[4]/span\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Taxonomy Id: 1752\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div/div/div[6]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Documentation URI:\", driver.findElement(By.cssSelector(\"div.clear > div.myapis_DetailInfo > span.label\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"www.disney.go.com/docs\", driver.findElement(By.linkText(\"www.disney.go.com/docs\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Last Modified:\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div/div[2]/div/span\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"API Owners: \" + EmailValue, driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div/div[2]/div[2]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Release Managers: \" + EmailValue, driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div/div[2]/div[3]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Origin Base Names: \" + OriginBaseName + \" Before you are able to deploy your API to an environment, you must specify at least one Origin Base Name. Origin Base Names will be matched with named Origin Base URIs in the environment in which the API is deployed. Upon deployment the environment will be checked to ensure these Origin Base Names are defined before allowing the deployment.\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div/div[3]/div\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Authenticator:\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div/div[3]/div[2]/span\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Allow Public Tokens:\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div/div[3]/div[3]/span\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Description:\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div/div[2]/div[2]/div[2]/div[2]/span\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"For automation purposes\", driver.findElement(By.cssSelector(\"div.infoBox\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Resources\", driver.findElement(By.cssSelector(\"button.active\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Variables\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div[2]/div/button[2]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Headers\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div[2]/div/button[3]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Security\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div[2]/div/button[4]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"URI Rewriting\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div[2]/div/button[5]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Logging\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div[2]/div/button[6]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Assertions\", driver.findElement(By.xpath(\"//div[@id='myapis_api_revision_details_view_container']/div/div/div[2]/div/button[7]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n assertTrue(isElementPresent(By.id(\"DataTables_Table_3_wrapper\")));\n try {\n assertEquals(\"API Resources\", driver.findElement(By.cssSelector(\"#DataTables_Table_3_filter > h2\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Add Resource\", driver.findElement(By.cssSelector(\"#DataTables_Table_3_filter > button.new.primary\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Edit Resource Ordering\", driver.findElement(By.cssSelector(\"button.ordering\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"\", driver.findElement(By.cssSelector(\"#DataTables_Table_3_filter > input.on.searchInput\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Resource\\nAccess\\nAction\", driver.findElement(By.cssSelector(\"#DataTables_Table_3 > thead > tr > th.cog.sorting\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Resource\", driver.findElement(By.xpath(\"//table[@id='DataTables_Table_3']/thead/tr/th[2]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Access\", driver.findElement(By.xpath(\"//table[@id='DataTables_Table_3']/thead/tr/th[3]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"Action\", driver.findElement(By.xpath(\"//table[@id='DataTables_Table_3']/thead/tr/th[4]\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n try {\n assertEquals(\"No data available in table\", driver.findElement(By.cssSelector(\"#DataTables_Table_3 > tbody > tr.odd > td.dataTables_empty\")).getText());\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*Add ResourceEdit Resource OrderingAPI Resources\\n Resource\\nAccess\\nAction\\n\\n ResourceAccessAction No data available in tableShowing 0 to 0 of 0 entries\\nFirstPreviousNextLast[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n }",
"@Test\n public void testProcessCheckoutChainsawJulyFourth() throws Exception {\n String toolCode = \"CHNS\";\n int rentalDays = 5;\n int discountPercentage = 25;\n LocalDate checkoutDate = LocalDate.of(2015, Month.JULY, 2);\n\n RentalAgreement result = checkout.processCheckout(toolCode, rentalDays, discountPercentage, checkoutDate);\n\n assertEquals(\"Chainsaw\", result.getRentedTool().getToolType());\n assertEquals(LocalDate.of(2015, Month.JULY, 7), result.getDueDate());\n assertEquals(3, result.getChargeDays());\n assertEquals(4.47, result.getPreDiscountCharge(), 0.00001);\n assertEquals(1.12, result.getDiscountAmount(), 0.00001);\n assertEquals(3.35, result.getFinalCharge(), 0.00001);\n }",
"@Test\r\n \tpublic void testFileEvents96_2() {\n \t\t\t\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/CSVTest_96_2.txt\"); // issue 96\r\n \t\tassertNotNull(input);\r\n \t\r\n \t\t// Set the parameters\r\n \t\tParameters params = new Parameters();\r\n \t\tsetDefaults(params);\r\n \t\tparams.fieldDelimiter = \",\";\r\n \t\tparams.textQualifier = \"\\\"\";\r\n \t\tparams.sendColumnsMode = Parameters.SEND_COLUMNS_LISTED;\r\n \t\tparams.sourceColumns = \"1\";\r\n \t\tparams.targetColumns = \"2\";\r\n \t\tparams.targetLanguages = locFRCA.toString();\r\n \t\tparams.targetSourceRefs = \"1\";\r\n \t\tfilter.setParameters(params);\r\n \t\t\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\t\t\t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"src\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"trg\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"data\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source1\", \"\", \"target1\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data1\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"source2\", \"\", \"target2\", locFRCA, \"\");\r\n \t\ttestEvent(EventType.DOCUMENT_PART, \"\\\"[#$$self$]\\\",\\\"[#$$self$]\\\",data2\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\tfilter.close();\r\n \t\t\r\n \t}",
"@Test(priority=40)\n\tpublic void campaign_user_with_valid_filter_for_camp_end_date() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_valid_filter_for_camp_end_date\", \"To validate whether user is able to get campaign and its users through campaign/user api with valid filter for campaign_end_date\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\tcampaign_end_date = DateUtils.convertISOWithoutTchar(campaign_end_date) + \"+00\";\n\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_end_date%3d\"+campaign_end_date));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for campaign_start_date\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t \n\t\t JSONArray array = (JSONArray)json.get(\"data\");\n\t\t // Check whether campaign list returns at least 1 record when valid campaign_end_date is passed for filter\n\t\t Assert.assertTrue(array.size()>=1, \"Campaign user does not return records when valid campaign_end_date is passed for filter.\");\n\t\t for(int i=0; i<array.size(); i++){\n\t\t\t // Get the campaign from the campaign/user\n\t\t\t JSONObject campaign = (JSONObject)array.get(i);\n\t\t\t Assert.assertEquals(campaign.get(\"campaign_end_date\").toString(), DateUtils.convertISOWithTchar(campaign_end_date), \"campaign/user api does not return campaigns according to passed campaign_end_date for filter.\");\n\t\t }\n\t\t test.log(LogStatus.PASS, \"Check campaign/user api returns campaigns according to passed campaign_end_date for filter.\");\n\t\t}\n\t}",
"@Test // Specification Test 3\n void calculateChainsawIndependeceDayTest() throws Exception {\n ToolType toolType = ToolType.CHAINSAW; // weekendFree: true holidayFree: false\n String toolCode = \"CHNS\";\n String brand = \"Stihl\";\n double dailyPrice = CHAINSAW_PRICE;\n int discount = 25;\n int daysRented = 5;\n int daysCharged = 3; // This value changes depending on tool and date of rental period\n LocalDate checkoutDate = createDate(\"2015-07-02\"); // TODO: verify labor day calc is correct\n double prediscountTotal = MoneyUtil.round(daysCharged * dailyPrice);\n double finalCharge = MoneyUtil.applyDiscount(prediscountTotal, discount);\n double discountAmt = MoneyUtil.round(prediscountTotal - finalCharge);\n\n Tool tool = createTool(toolType, toolCode, brand);\n\n List<Tool> tools = Arrays.asList(tool);\n Order order = new Order(tools, checkoutDate, daysRented);\n\n List<LocalDate> holidays = createHolidays(checkoutDate.getYear());\n RentalAgreement rentAgmt = createRentalAgreement(order, discount, holidays);\n rentAgmt.calculate();\n rentAgmt.createDocument();\n\n // Assert that all members vars all instantiated\n assertRentalAgreementNotNull(rentAgmt);\n\n // Assert that values in rental agreement match expected values\n assertValuesEqual(rentAgmt, toolCode, toolType, brand, daysRented, daysCharged, checkoutDate,\n checkoutDate.plusDays(daysRented), dailyPrice, prediscountTotal, discount, discountAmt, finalCharge);\n\n // Print document to console\n System.out.println(rentAgmt.getDocument());\n }",
"public void VerifyRecapBillinfo(){\r\n\t\tString BillingName = getValue(\"FirstName\")+\" \"+getValue(\"LastName\");\r\n\t\tString Companyname = getValue(\"CompanyName\");\r\n\t\tString Address = getValue(\"Address\");\r\n\t\tString ZipCity = getValue(\"Zip\")+\" , \"+getValue(\"City\");\r\n\t\tString CardType= getValue(\"CardType\");\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- shopping cart image link should be clicked\");\r\n\r\n\r\n\t\ttry{\r\n\t\t\tString[] BD=getWebTableData(locator_split(\"txtRecapBillinfo\"), locator_split(\"txtRecapBillinfodata\"));\r\n\t\t\tif(BD[1].equalsIgnoreCase(BillingName)&&BD[2].equalsIgnoreCase(Companyname)\r\n\t\t\t\t\t&&BD[3].equalsIgnoreCase(Address)&&BD[5].equalsIgnoreCase(ZipCity)\r\n\t\t\t\t\t&&BD[6].contains(CardType)){\r\n\t\t\t\tSystem.out.println(\"The data from Web matches with Excel Registration data\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- The data from Web matches with Excel Registration data\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tReporter.log(\"FAIL_MESSAGE:- The data from Web dosent match with Excel Registration data\");\r\n\t\t\t\tthrow new Exception(\"The data from Web dosent match with Excel Registration data\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- shopping cart image link is not clicked \");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRecapBillinfo\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRecapBillinfodata\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}",
"public void readTableData() {\n\t\tint colCount = driver.findElements(By.xpath(\"//*[@id='industry-filter-results']/div[2]/table/tbody/tr[1]/th\"))\n\t\t\t\t.size();\n\t\tSystem.out.println(\"colCount\" + colCount);\n\t\t// Find row size\n\t\tint rowCount = driver\n\t\t\t\t.findElements(By.xpath(\"//*[@id='industry-filter-results']/div[2]/table/tbody/tr/td/parent::*\")).size();\n\t\tSystem.out.println(\"rowCount\" + rowCount);\n\t\t// Find xpath for 1st row and 1st column. Break into multiple parts such\n\t\t// that row and column no can be iterated.\n\t\tString firstPart = \"(//*[@id='industry-filter-results']/div[2]/table/tbody/tr/td[2]/parent::tr)[\";\n\t\tString secondPart = \"1\";\n\t\tString thirdPart = \"]\";\n\t\tboolean flag = false;\n\t\t// Loop through rows one by one. Start from 1st row till row count.\n\t\tfor (int i = 1; i <= rowCount; i++) {\n\t\t\t// For every row, loop through columns one by one. Start from 1st\n\t\t\t// column till column count.\n\t\t\tfor (int j = 1; j <= colCount; j++) {\n\t\t\t\tString finalPart = firstPart + i + secondPart + j + thirdPart;\n\t\t\t\tSystem.out.println(finalPart);\n\t\t\t\tString text = driver.findElement(By.xpath(finalPart)).getText();\n\t\t\t\tSystem.out.print(text + \" | \");\n\t\t\t\t//If we need to stop after a particular text is matched use if condition\n\t\t\t\tif(text.contains(\"abc\")){\n\t\t\t\t\tSystem.out.println(text);\n\t\t\t\t\tflag = true;//Set flag as true(Logic from Naveen automation labs)\n\t\t\t\t\tbreak;//This will stop iterating the columns.(https://www.youtube.com/watch?v=Rjs9qLRP9tM&list=PLFGoYjJG_fqo4oVsa6l_V-_7-tzBnlulT&index=18)\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif(flag){\n\t\t\t\tbreak;//This will break outer loop only if flag is true. i.e. we have retrieved the text that we need. If not it will continue with next iteration.\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void historicalTagTest() throws InterruptedException {\n SearchNavigation.gotoIsActiveFalseSearch(index,historical_searchTerm);\n assertEquals(\"Assistance Historical Tag does not Exist\",AssistanceListingSearchPage.historicalTag(),\"Historical\");\n System.out.println(\"Assistance Historical Tag is Present\");\n }",
"static void test(String type, String name, int startYear, int endYear) {\n DateResult dates02 = new DateResult();\n\n String text = name + \" 1年 2月 3日\";\n System.out.println(text);\n\n// try {\n// dates01 = DateV1Shim.interpDate(text);\n// } catch (Exception e) {\n// System.out.println(\" V1.ext: \" + e.getMessage());\n// }\n\n try {\n dates02 = DateUtil.interpDate(text, \"zh\", null, null, null);\n } catch (Exception e) {\n System.out.println(\" V2.ext: \" + e.getMessage());\n }\n\n results.add(\"\");\n// for (GenDateInterpResult date : dates01) {\n// results.add(text + \"|Date 1.0|\" + date.getDate().toGEDCOMX() + \"|\" + date.getAttrAsString(DateMetadata.ATTR_MATCH_TYPE));\n// results.add(text + \"|Date 1.0|\" + type + \"|\" + date.getDate().toGEDCOMX() + \"|\" + startYear + \"|\" + endYear);\n// }\n\n for (GenDateInterpResult date : dates02.getDates()) {\n// results.add(text + \"|Date 2.0|\" + date.getDate().toGEDCOMX() + \"|\" + date.getAttrAsString(DateMetadata.ATTR_MATCH_TYPE));\n if (date.getDate() instanceof GenSimpleDate) {\n GenSimpleDate sDate = (GenSimpleDate)date.getDate();\n if (sDate.getYear() >= startYear-1 && sDate.getYear() <= endYear+1) {\n// results.add(text + \"|Date 2.0|\" + type + \"|\" + date.getDate().toGEDCOMX() + \"|\" + startYear + \"|\" + endYear);\n results.add(text + \"|\" + type + \"|\" + date.getDate().toGEDCOMX() + \"|\" + startYear + \"|\" + endYear);\n }\n }\n }\n }",
"@Test\n\tpublic void testForTask1() throws JSONException {\n\t\tList<Row> csvResultsRows = csvResults.getRows();\n\t\tJSONArray jsonArray = jsonResults.getJSONArray(COLUMN_NAME_PRICE);\n\t\tList<Row> dataTestRows = dataTest.getRows();\n\n\t\tint j = csvResultsRows.size() - 1;\n\t\tfor (int i = dataTestRows.size() - 1; i >= 0; i--) {\n\t\t\tRow dataTestRow = dataTestRows.get(i);\n\t\t\tRow csvResultRow = csvResultsRows.get(j);\n\t\t\tJSONObject jsonRow = jsonArray.getJSONObject(j);\n\t\t\tj--;\n\t\t\t// test csv\n\t\t\tAssert.assertEquals(csvResultRow.getValueByColumn(COLUMN_NAME_TICKER), \"FB\");\n\t\t\tAssert.assertEquals(csvResultRow.getValueByColumn(COLUMN_NAME_DATE),\n\t\t\t\t\tdataTestRow.getValueByColumn(COLUMN_NAME_DATE));\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(csvResultRow.getValueByColumn(COLUMN_NAME_OPEN))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_OPEN))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(csvResultRow.getValueByColumn(COLUMN_NAME_HIGH))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_HIGH))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(csvResultRow.getValueByColumn(COLUMN_NAME_LOW))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_LOW))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(csvResultRow.getValueByColumn(COLUMN_NAME_CLOSE))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_CLOSE))) <= 0.0001);\n\t\t\tAssert.assertEquals(convertStringToDouble(csvResultRow.getValueByColumn(COLUMN_NAME_VOLUME)),\n\t\t\t\t\tconvertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_VOLUME)));\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(csvResultRow.getValueByColumn(COLUMN_NAME_TWAP_OPEN))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_TWAP_OPEN))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(csvResultRow.getValueByColumn(COLUMN_NAME_TWAP_HIGH))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_TWAP_HIGH))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(csvResultRow.getValueByColumn(COLUMN_NAME_TWAP_LOW))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_TWAP_LOW))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(csvResultRow.getValueByColumn(COLUMN_NAME_TWAP_CLOSE))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_TWAP_CLOSE))) <= 0.0001);\n\n\t\t\t// test json\n\t\t\tAssert.assertEquals(jsonRow.getString(COLUMN_NAME_TICKER), \"FB\");\n\t\t\tAssert.assertEquals(jsonRow.getString(COLUMN_NAME_DATE), dataTestRow.getValueByColumn(COLUMN_NAME_DATE));\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(jsonRow.getString(COLUMN_NAME_OPEN))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_OPEN))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(jsonRow.getString(COLUMN_NAME_HIGH))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_HIGH))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(jsonRow.getString(COLUMN_NAME_LOW))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_LOW))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(jsonRow.getString(COLUMN_NAME_CLOSE))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_CLOSE))) <= 0.0001);\n\t\t\tAssert.assertEquals(convertStringToDouble(jsonRow.getString(COLUMN_NAME_VOLUME)),\n\t\t\t\t\tconvertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_VOLUME)));\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(jsonRow.getString(COLUMN_NAME_TWAP_OPEN))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_TWAP_OPEN))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(jsonRow.getString(COLUMN_NAME_TWAP_HIGH))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_TWAP_HIGH))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(jsonRow.getString(COLUMN_NAME_TWAP_LOW))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_TWAP_LOW))) <= 0.0001);\n\t\t\tAssert.assertTrue(Math.abs(convertStringToDouble(jsonRow.getString(COLUMN_NAME_TWAP_CLOSE))\n\t\t\t\t\t- convertStringToDouble(dataTestRow.getValueByColumn(COLUMN_NAME_TWAP_CLOSE))) <= 0.0001);\n\n\t\t}\n\n\t}",
"@Test\n public void basicFieldsTestForRevenueLinesObjectTransformation() {\n claimBuilder\n .setRdaClaimKey(\"claim_id\")\n .setDcn(\"dcn\")\n .setIntermediaryNb(\"12345\")\n .setHicNo(\"hicn\")\n .setCurrStatusEnum(FissClaimStatus.CLAIM_STATUS_MOVE)\n .setCurrLoc1Enum(FissProcessingType.PROCESSING_TYPE_MANUAL)\n .setCurrLoc2Enum(FissCurrentLocation2.CURRENT_LOCATION_2_FINAL)\n .addFissRevenueLines(\n FissRevenueLine.newBuilder()\n .setRdaPosition(1)\n .setNonBillRevCodeEnum(FissNonBillRevCode.NON_BILL_ESRD)\n .setRevCd(\"abcd\")\n .setRevUnitsBilled(5)\n .setRevServUnitCnt(10)\n .setServDtCymd(\"2023-02-20\")\n .setServDtCymdText(\"2023-02-20\")\n .setHcpcCd(\"abcde\")\n .setHcpcInd(\"z\")\n .setHcpcModifier(\"12\")\n .setHcpcModifier2(\"34\")\n .setHcpcModifier3(\"56\")\n .setHcpcModifier4(\"78\")\n .setHcpcModifier5(\"90\")\n .setApcHcpcsApc(\"fiver\")\n .setAcoRedRarc(\"revif\")\n .setAcoRedCarc(\"two\")\n .setAcoRedCagc(\"of\")\n .build());\n claim.setClaimId(EXPECTED_CLAIM_ID);\n claim.setDcn(\"dcn\");\n claim.setIntermediaryNb(\"12345\");\n claim.setHicNo(\"hicn\");\n claim.setCurrStatus('M');\n claim.setCurrLoc1('M');\n claim.setCurrLoc2(\"9997\");\n claim.setLastUpdated(clock.instant());\n RdaFissRevenueLine revenueLine = new RdaFissRevenueLine();\n revenueLine.setClaimId(EXPECTED_CLAIM_ID);\n revenueLine.setRdaPosition((short) 1);\n revenueLine.setNonBillRevCode(\"E\");\n revenueLine.setRevCd(\"abcd\");\n revenueLine.setRevUnitsBilled(5);\n revenueLine.setRevServUnitCnt(10);\n revenueLine.setServiceDate(LocalDate.of(2023, Month.FEBRUARY, 20));\n revenueLine.setServiceDateText(\"2023-02-20\");\n revenueLine.setHcpcCd(\"abcde\");\n revenueLine.setHcpcInd(\"z\");\n revenueLine.setHcpcModifier(\"12\");\n revenueLine.setHcpcModifier2(\"34\");\n revenueLine.setHcpcModifier3(\"56\");\n revenueLine.setHcpcModifier4(\"78\");\n revenueLine.setHcpcModifier5(\"90\");\n revenueLine.setApcHcpcsApc(\"fiver\");\n revenueLine.setAcoRedRarc(\"revif\");\n revenueLine.setAcoRedCarc(\"two\");\n revenueLine.setAcoRedCagc(\"of\");\n claim.getRevenueLines().add(revenueLine);\n changeBuilder\n .setSeq(MIN_SEQUENCE_NUM)\n .setChangeType(ChangeType.CHANGE_TYPE_UPDATE)\n .setClaim(claimBuilder.build());\n RdaFissClaim transformed = transformer.transformClaim(changeBuilder.build()).getClaim();\n assertThat(transformed, samePropertyValuesAs(claim));\n TransformerTestUtils.assertListContentsHaveSamePropertyValues(\n claim.getAuditTrail(), transformed.getAuditTrail(), RdaFissAuditTrail::getRdaPosition);\n }",
"@Test\n\tpublic void Reports_18961_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Navigate to Advance Reports in navbar \n\t\tsugar().navbar.navToModule(ds.get(0).get(\"advance_report_name\"));\n \t\tnavigationCtrl.click();\n \t\t\n \t\t// Click on View Advance Report link\n \t\tviewAdvanceReportCtrl = new VoodooControl(\"a\", \"css\", \"[data-navbar-menu-item='LNK_LIST_REPORTMAKER']\");\n \t\tviewAdvanceReportCtrl.click();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// click on list item\n \t\tnew VoodooControl(\"a\", \"css\", \"tr.oddListRowS1 > td:nth-child(3) a\").click();\n \t\tVoodooUtils.focusDefault();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// Click to Select to add data format in report\n \t\tnew VoodooControl(\"input\", \"css\", \"#form [title='Select']\").click();\n \t\tVoodooUtils.focusWindow(1);\n \t\t\n \t\t// select data format in list\n \t\tnew VoodooControl(\"a\", \"css\", \"tr.oddListRowS1 td:nth-child(1) a\").click();\n \t\tVoodooUtils.focusWindow(0);\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// Click \"Edit\" of a \"Data Format\"\n \t\tnew VoodooControl(\"a\", \"css\", \"#contentTable tr.oddListRowS1 > td:nth-child(6) > slot > a:nth-child(3)\").click();\n \t\tVoodooUtils.focusDefault();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\tnew VoodooControl(\"input\", \"id\", \"name\").assertEquals(ds.get(0).get(\"data_format_name\"), true);\n \t\tnew VoodooControl(\"input\", \"id\", \"query_name\").assertEquals(ds.get(0).get(\"query_name\"), true);\n \t\tnew VoodooControl(\"a\", \"css\", \"#Default_DataSets_Subpanel tr:nth-child(1) td:nth-child(4) a\").assertEquals(ds.get(0).get(\"report_name\"), true);\n \t\tVoodooUtils.focusDefault();\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}",
"public static void main(String[] args) throws SQLException, ClassNotFoundException {\r\n Statement s = DBConnect.connection.createStatement();\r\n String selTable1 = \"SELECT Item AS rslt, Desc1 As rslt2 FROM item_master WHERE Item = '\" + getSkuInput() + \"'\";\r\n s.execute(selTable1);\r\n ResultSet rs1 = s.getResultSet();\r\n if (rs1.next() && Integer.parseInt(rs1.getString(\"rslt\")) >= 702630 && Integer.parseInt(rs1.getString(\"rslt\")) <= 702672) {\r\n rproSKU = rs1.getString(\"rslt\");\r\n prodName = rs1.getString(\"rslt2\");\r\n // prodCost = rs1.getString(\"rslt3\");\r\n skuRslt = \"good\";\r\n } else {\r\n skuRslt = \"bad\";\r\n prodName = \"No Name Available\";\r\n }\r\n }",
"@Test(dependsOnMethods = \"verifySchedDateSortTest\")\r\n\tpublic void verifySearchAmountTest() throws InterruptedException {\r\n\t\t// TEST - SEARCH VERIFICATION\r\n\t\tcarrierschedulepayment.enterSearchText(searchAmountText);\r\n\t\tcarrierschedulepayment.clickSearchButton();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\tAssert.assertTrue(firstRowData.size() > 0, \"No data rows found when searching by amount\");\r\n\t}",
"@Test\n public void testRedshiftCredit() throws Exception {\n Line line = new Line(LineItemType.Credit, \"us-east-1\", \"\", redshift, \"Node:ds2.xlarge\", \"RunComputeNode:0001\", \"AWS Credit\", PricingTerm.onDemand, \"2020-03-01T00:00:00Z\", \"2020-04-01T00:00:01Z\", \"0.0000000000\", \"-38.3100000000\", \"\");\n ProcessTest test = new ProcessTest(line, Result.delay, 31);\n Datum[] expected = {\n new Datum(CostType.credit, a2, Region.US_EAST_1, null, redshiftInstance, Operation.ondemandInstances, \"ds2.xlarge\", -0.0515, 0),\n };\n test.run(\"2020-03-01T00:00:00Z\", expected); \n }",
"@Test\n\tpublic void searchForPendingLiveByUnitNbr_FuncTest(){\n\t\tpendingLiveUnit = (String)em.createNativeQuery(TestQueryConstants.READ_PENDING_LIVE_UNIT_NO).getSingleResult().toString();\n\t\tList<DriverSearchVO> drivers = driverService.searchDriver(null, null, null, null, pendingLiveUnit, null, null, null, true,null, null, null);\t\n\t\tlong driversCnt = driverService.searchDriverCount(null, null, null, null, pendingLiveUnit, null, null, null, true,null);\n\t\t// we get back one result\n\t\tassertEquals(1, driversCnt);\n\t\t\n\t\tif(drivers.get(0).getContractLineStartDate() != null){\n\t\t\t// that result has a start date in the future\n\t\t\tassertTrue(drivers.get(0).getContractLineStartDate().after(new Date(System.currentTimeMillis())));\n\t\t}\n\t}",
"@DDDataProvider(datafile = \"testdata/Team3Search and Sort.xlsx\", sheetName = \"SearchItem\", testcaseID = \"\", runmode = \"Yes\")\n\t@Test(dataProvider = \"dd-dataprovider\", dataProviderClass = TestUtil.class)\n\n\tpublic void TC_SearchProductwithValiddata(Hashtable<String, String> datatable) throws InterruptedException, UnsupportedEncodingException, GeneralSecurityException{\n\t\tSearchPage searchpage = new SearchPage(driver);\n\t\tExtentTest Obj = ExtentTestManager.getTest();\n\t\t\n\t\tExtentTestManager.getTest().log(Status.PASS, \"Testcase 1 : Search for the product with valid data\");\n\t\tLoginPage loginPage = new LoginPage(driver);\n\t\tExtentTestManager.getTest().log(Status.PASS, \"Step 1 : Successfully singed in with Valid credentials\");\n\t\tloginPage.login(datatable.get(\"UserName\"), Base64.decrypt(datatable.get(\"Password\")));\n\t\tThread.sleep(1000);\n\t\t\n\t\tString searchvalue =datatable.get(\"ProductName\");\n\t\tsearchpage.getSearchBar().sendKeys(searchvalue);\n\t\tExtentTestManager.getTest().log(Status.PASS, \"Step 2 : Successfully entered \" +searchvalue+ \" in the search bar\");\n\t\t\n\t\tsearchpage.getsearchBtn().click();\n\t\tExtentTestManager.getTest().log(Status.PASS, \"Step 3 : Successfully clicked on the search button\");\n\t\tThread.sleep(500);\n\t\t\n\t\tString result = searchpage.getdisplaysearchresult().getText();\n\t\tExtentTestManager.getTest().log(Status.PASS, \"Step 4 : Successfully displayed searched product as: '\"+result+\"'\");\n\t\t\n\t\tString catcount= searchpage.getcategorycount().getText();\n\t\tExtentTestManager.getTest().log(Status.PASS, \"Step 4 : Total number of items displayed are: '\"+catcount+\"'\");\n\t\t\n\t\t\t\t\n\t}",
"@Test(priority=37)\n\tpublic void campaign_user_with_valid_filter_for_camp_start_date() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_valid_filter_for_camp_start_date\", \"To validate whether user is able to get campaign and its users through campaign/user api with valid filter for campaign_start_date\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\tString campaign_start_date = DateUtils.convertISOWithoutTchar(camp_start_date) + \"+00\";\n\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_start_date%3d\"+campaign_start_date));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for campaign_start_date\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t JSONArray array = (JSONArray)json.get(\"data\");\n\t\t // Check whether campaign/user returns at least 1 record when valid campaign_start_date is passed for filter\n\t\t Assert.assertTrue(array.size()>=1, \"campaign/user does not return records when valid campaign_start_date is passed for filter.\");\n\t\t for(int i=0; i<array.size(); i++){\n\t\t\t // Get the campaign from the campaign/user\n\t\t\t JSONObject campaign = (JSONObject)array.get(i);\n\t\t\t Assert.assertEquals(campaign.get(\"campaign_start_date\").toString(), DateUtils.convertISOWithTchar(campaign_start_date), \"campaign/list api does not return campaigns according to passed campaign_start_date for filter.\");\n\t\t }\n\t\t}\n\t}",
"@Test\n public void testSavingsPlanCoveredUsage() throws Exception {\n Line line = new Line(LineItemType.SavingsPlanCoveredUsage, \"us-east-1\", \"us-east-1a\", \"Amazon Elastic Compute Cloud\", \"BoxUsage:t2.micro\", \"RunInstances\", \"$0.0116 per On Demand Linux t2.micro Instance Hour\", PricingTerm.none, \"2019-12-01T00:00:00Z\", \"2019-12-01T01:00:00Z\", \"1\", \"0.0116\", \"\");\n String arn = \"arn:aws:savingsplans::123456789012:savingsplan/abcdef70-abcd-5abc-4k4k-01236ab65555\";\n SavingsPlanArn spArn = SavingsPlanArn.get(arn);\n line.setSavingsPlanCoveredUsageFields(\"2019-11-08T00:11:15:04.000Z\", \"2020-11-07T11:15:03.000Z\", arn, \"0.0083\", \"NoUpfront\", \"0.0116\");\n ProcessTest test = new ProcessTest(line, Result.hourly, 31);\n Datum[] expected = {\n new Datum(CostType.savings, a2, Region.US_EAST_1, Datum.us_east_1a, ec2Instance, Operation.savingsPlanSavingsNoUpfront, \"t2.micro\", 0.0033, 0),\n new Datum(CostType.recurring, a2, Region.US_EAST_1, Datum.us_east_1a, ec2Instance, Operation.savingsPlanBonusNoUpfront, \"t2.micro\", null, spArn, 0.0083, 1.0),\n };\n test.run(\"2019-12-01T00:00:00Z\", expected);\n\n // Partial Upfront\n line = new Line(LineItemType.SavingsPlanCoveredUsage, \"us-east-1\", \"us-east-1a\", \"Amazon Elastic Compute Cloud\", \"BoxUsage:t2.micro\", \"RunInstances\", \"$0.0116 per On Demand Linux t2.micro Instance Hour\", PricingTerm.none, \"2019-12-01T00:00:00Z\", \"2019-12-01T01:00:00Z\", \"1\", \"0.0116\", \"\");\n line.setSavingsPlanCoveredUsageFields(\"2019-11-08T00:11:15:04.000Z\", \"2020-11-07T11:15:03.000Z\", \"arn:aws:savingsplans::123456789012:savingsplan/abcdef70-abcd-5abc-4k4k-01236ab65555\", \"0.0083\", \"PartialUpfront\", \"0.0116\");\n test = new ProcessTest(line, Result.hourly, 31);\n expected = new Datum[]{\n new Datum(CostType.savings, a2, Region.US_EAST_1, Datum.us_east_1a, ec2Instance, Operation.savingsPlanSavingsPartialUpfront, \"t2.micro\", 0.0033, 0),\n new Datum(CostType.recurring, a2, Region.US_EAST_1, Datum.us_east_1a, ec2Instance, Operation.savingsPlanBonusPartialUpfront, \"t2.micro\", null, spArn, 0.0083, 1.0),\n };\n test.run(\"2019-12-01T00:00:00Z\", expected);\n \n // All Upfront\n line = new Line(LineItemType.SavingsPlanCoveredUsage, \"us-east-1\", \"us-east-1a\", \"Amazon Elastic Compute Cloud\", \"BoxUsage:t2.micro\", \"RunInstances\", \"$0.0116 per On Demand Linux t2.micro Instance Hour\", PricingTerm.none, \"2019-12-01T00:00:00Z\", \"2019-12-01T01:00:00Z\", \"1\", \"0.0\", \"\");\n line.setSavingsPlanCoveredUsageFields(\"2019-11-08T00:11:15:04.000Z\", \"2020-11-07T11:15:03.000Z\", \"arn:aws:savingsplans::123456789012:savingsplan/abcdef70-abcd-5abc-4k4k-01236ab65555\", \"0.0083\", \"AllUpfront\", \"0.0116\");\n test = new ProcessTest(line, Result.hourly, 31);\n expected = new Datum[]{\n new Datum(CostType.savings, a2, Region.US_EAST_1, Datum.us_east_1a, ec2Instance, Operation.savingsPlanSavingsAllUpfront, \"t2.micro\", 0.0033, 0),\n new Datum(CostType.recurring, a2, Region.US_EAST_1, Datum.us_east_1a, ec2Instance, Operation.savingsPlanBonusAllUpfront, \"t2.micro\", null, spArn, 0.0083, 1.0),\n };\n test.run(\"2019-12-01T00:00:00Z\", expected);\n \n // No Upfront Lambda\n line = new Line(LineItemType.SavingsPlanCoveredUsage, \"ap-northeast-1\", \"\", \"AWS Lambda\", \"APN1-Lambda-GB-Second\", \"Invoke\", \"AWS Lambda - Total Compute - Asia Pacific (Tokyo)\", PricingTerm.onDemand, \"2019-12-01T00:00:00Z\", \"2019-12-01T01:00:00Z\", \"2.4\", \"0.00004\", \"\");\n line.setSavingsPlanCoveredUsageFields(\"2019-11-08T00:11:15:04.000Z\", \"2020-11-07T11:15:03.000Z\", \"arn:aws:savingsplans::123456789012:savingsplan/abcdef70-abcd-5abc-4k4k-01236ab65555\", \"0.000036\", \"NoUpfront\", \"0.00004\");\n test = new ProcessTest(line, Result.hourly, 31);\n expected = new Datum[]{\n new Datum(CostType.recurring, a2, Region.AP_NORTHEAST_1, null, lambda, Operation.savingsPlanBonusNoUpfront, \"Lambda-GB-Second\", null, spArn, 0.000036, 2.4),\n new Datum(CostType.savings, a2, Region.AP_NORTHEAST_1, null, lambda, Operation.savingsPlanSavingsNoUpfront, \"Lambda-GB-Second\", 0.000004, 0),\n };\n test.run(\"2019-12-01T00:00:00Z\", expected);\n \n }",
"@Test\n public void findByAgreementAndPartyAndTypeAndContainsDate() throws Exception {\n Party party = parties.findPartyByReference(\"TOPMODEL\");\n AgreementRole role = agreementRoles.findByAgreementAndPartyAndTypeAndContainsDate(leaseTopModel, party, artTenant, LocalDate.now());\n Assert.assertNotNull(role);\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int noOfTestCases = scanner.nextInt();\n for (int testCase = 0; testCase < noOfTestCases; testCase++) {\n String signUpDateInString = scanner.next();\n String currentDateInString = scanner.next();\n //DateTimeFormatter to print and accept the date of particular format\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n LocalDate signUpDate = LocalDate.parse(signUpDateInString, formatter);\n LocalDate currentDate = LocalDate.parse(currentDateInString, formatter);\n if (signUpDate.getYear() >= currentDate.getYear() || signUpDate.plusYears(1).minusDays(30).compareTo(currentDate)>0) {\n System.out.println(\"No Range\");\n }\n else {\n //Trying to get the closest Anniversary by adding years\n LocalDate anniversaryDateOfCurrentYear = signUpDate.plusYears(currentDate.getYear() - signUpDate.getYear());\n LocalDate anniversaryDateOfPreviousYear= anniversaryDateOfCurrentYear.minusYears(1);\n LocalDate closestAnniversaryDate=getClosestDate(anniversaryDateOfCurrentYear,anniversaryDateOfPreviousYear,currentDate);\n LocalDate startingDate = closestAnniversaryDate.minusDays(30);\n LocalDate endingDate = closestAnniversaryDate.plusDays(30);\n if(isInBetweenDates(startingDate,endingDate,currentDate)) {\n if(startingDate.compareTo(currentDate) <0)\n {\n System.out.println(formatter.format(startingDate)+\" \"+formatter.format(currentDate));\n\n }\n }\n else {\n System.out.println(formatter.format(startingDate)+\" \"+formatter.format(endingDate));\n }\n }\n }\n }",
"@Test\n public void testDAM32001002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3PageListPage orderMB3PageListPage = dam3IndexPage\n .dam32001002Click();\n\n orderMB3PageListPage.checkITM0000001();\n\n orderMB3PageListPage = orderMB3PageListPage.clickItemCodeSearch();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001\\nITM0000002, Orange juice\\nNotePC, CTG0000001\\nCTG0000002, Drink\\nPC, dummy7\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3PageListPage.getOrderDetails(7);\n\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy4\";\n actualOrderDetails = orderMB3PageListPage.getOrderDetails(4);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n }",
"@Test\n\tpublic void Leads_30187_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet customData = testData.get(testName).get(0);\n\t\t\n\t\t// Convert the Lead\n\t\t// TODO: VOOD-585 - Need to have method (library support) to define Convert function in Leads\n\t\tsugar().leads.navToListView();\n\t\tsugar().leads.listView.clickRecord(1);\n\t\tsugar().leads.recordView.openPrimaryButtonDropdown();\n\t\tnew VoodooControl(\"a\", \"css\", \".fld_lead_convert_button.detail a\").click();\n\t\tVoodooUtils.waitForReady();\n\t\t\n\t\t// Clicking Contacts panel 'Reset' button\n\t\tnew VoodooControl(\"a\", \"css\", \"[data-module='Contacts'] .fld_reset_button a\").click();\n\t\tVoodooUtils.waitForReady();\n\t\t\n\t\tVoodooControl contactLastName = new VoodooControl(\"input\", \"css\", \"[name='last_name']\");\n\t\t\n\t\t// Editing the Last name in Contacts\n\t\tcontactLastName.set(testName);\n\t\t\n\t\tVoodooControl createContactBtn = new VoodooControl(\"a\", \"css\", \"[data-module='Contacts'] [name='associate_button']\");\n\t\t\n\t\t// Clicking 'Create Contact' button\n\t\tcreateContactBtn.click();\n\t\tVoodooUtils.waitForReady();\n\t\t\n\t\tVoodooControl accountName = new VoodooControl(\"input\", \"css\", \"[name='name']\");\n\t\t\n\t\t// Editing the name in Accounts\n\t\taccountName.set(testName);\n\t\t\t\t\n\t\tVoodooControl accountCreateBtn = new VoodooControl(\"a\", \"css\", \"[data-module='Accounts'] [name='associate_button']\");\n\t\t\n\t\t// Clicking 'Create Account' button\n\t\taccountCreateBtn.click();\n\t\tVoodooUtils.waitForReady();\n\n\t\tVoodooControl oppNameInput = new VoodooControl(\"input\", \"css\", \"[aria-label='Opportunity Name']\");\n\t\tVoodooControl oppCloseDate = new VoodooControl(\"input\", \"css\", \"[name='date_closed']\");\n\t\tVoodooControl oppLikelyAmount = new VoodooControl(\"input\", \"css\", \"[name='amount']\");\n\t\t\n\t\t// Putting in the 'Name' in Opportunity\n\t\toppNameInput.set(testName);\n\t\t\n\t\t// Putting in the 'Close Date' in Opportunity\n\t\toppCloseDate.click();\n\t\tnew VoodooControl(\"td\", \"css\", \".day.active\").click();\n\t\t\n\t\tString likelyAmt = sugar().opportunities.defaultData.get(\"likelyCase\");\n\t\t\n\t\t// Putting in the 'Likely Amount' in Opportunity\n\t\toppLikelyAmount.set(likelyAmt);\n\t\t\n\t\tVoodooControl createOppBtn = new VoodooControl(\"a\", \"css\", \"[data-module='Opportunities'] [name='associate_button']\");\n\t\t\n\t\t// Clicking 'Create Opportunity' button\n\t\tcreateOppBtn.click();\n\t\tVoodooUtils.waitForReady();\n\t\t\n\t\t// Reopen Contact panel\n\t\tnew VoodooControl(\"a\", \"css\", \"[data-module='Contacts'] .fld_reset_button a\").click();\n\t\tVoodooUtils.waitForReady();\n\t\t\n\t\t// Remove required data i.e contact's 'last name' from the Contact panel\n\t\tcontactLastName.set(\"\");\n\t\t\n\t\t// Clicking 'Create Contact' button\n\t\tcreateContactBtn.click();\n\t\tVoodooUtils.waitForReady();\n\t\t\n\t\t// Verify that error message: \"Error Please resolve any errors before proceeding.\" is displayed\n\t\tsugar().alerts.getError().assertContains(customData.get(\"errorMessage\"), true);\n\t\tsugar().alerts.getAlert().closeAlert();\n\t\t\n\t\t// Changing the Contact record entries from the entries used before\n\t\tnew VoodooControl(\"span\", \"css\", \".fld_salutation span\").click();\n\t\tnew VoodooControl(\"div\", \"css\", \".select2-results li:nth-child(5) div\").click(); \n\t\tnew VoodooControl(\"input\", \"css\", \"[name='first_name']\").set(testName);\n\t\tString contactLastNameValue = sugar().contacts.defaultData.get(\"lastName\");\n\t\tcontactLastName.set(contactLastNameValue);\n\t\t\n\t\t// Clicking 'Create Contact' button\n\t\tcreateContactBtn.click();\n\t\tVoodooUtils.waitForReady();\n\t\t\n\t\tString newContactName = customData.get(\"changedSalutation\") + \" \" + testName + \" \" + contactLastNameValue;\n\t\t\n\t\t// Verify that the changed Contact name is displayed as panel title\n\t\tnew VoodooControl(\"span\", \"css\", \"[data-module='Contacts'] .title\").assertContains(newContactName , true);\n\t\t\n\t\t// Reopen Accounts panel\n\t\tnew VoodooControl(\"a\", \"css\", \"[data-module='Accounts'] .fld_reset_button a\").click();\n\t\t\n\t\t// Remove required data i.e account's 'name' from the Account panel\n\t\taccountName.set(\"\");\n\t\t\n\t\t// Clicking 'Create Account' button\n\t\taccountCreateBtn.click();\n\t\tVoodooUtils.waitForReady();\n\t\t\n\t\t// Verify that error message: \"Error Please resolve any errors before proceeding.\" is displayed\n\t\tsugar().alerts.getError().assertContains(customData.get(\"errorMessage\"), true);\n\t\tsugar().alerts.getAlert().closeAlert();\n\t\t\n\t\tString newAccountName = sugar().accounts.moduleNameSingular + \" \" + testName;\n\t\t\n\t\t// Changing the Account record entries from the entries used before\n\t\taccountName.set(newAccountName);\n\t\t\t\t\n\t\t// Clicking 'Create Account' button\n\t\taccountCreateBtn.click();\n\t\tVoodooUtils.waitForReady();\n\t\t\n\t\t// Verify that the changed Account name is displayed as panel title\n\t\tnew VoodooControl(\"span\", \"css\", \"[data-module='Accounts'] .title\").assertContains(newAccountName , true);\n\t\t\n\t\t// Remove required data i.e opportunity's 'name', 'close date' and 'likely' amount from the Opportunity panel\n\t\toppNameInput.set(\"\");\n\t\toppCloseDate.set(\"\");\n\t\toppLikelyAmount.set(\"\");\n\t\t\n\t\t// Clicking 'Create Opportunity' button\n\t\tcreateOppBtn.click();\n\t\t\n\t\t// Verify that error message: \"Error Please resolve any errors before proceeding.\" is displayed\n\t\tsugar().alerts.getError().assertContains(customData.get(\"errorMessage\"), true);\n\t\tsugar().alerts.getAlert().closeAlert();\n\t\t\n\t\tString newOppName = sugar().opportunities.moduleNameSingular + \" \" + testName;\n\t\t\n\t\t// Re-inputting the required Opportunity entries\n\t\toppNameInput.set(newOppName);\n\t\toppCloseDate.set(VoodooUtils.getCurrentTimeStamp(\"MM/dd/yyyy\"));\n\t\toppCloseDate.click();\n\t\toppLikelyAmount.set(likelyAmt);\n\t\t\n\t\t// Clicking 'Create Opportunity' button\n\t\tcreateOppBtn.click();\n\t\tVoodooUtils.waitForReady();\n\t\t\n\t\t// Clicking the 'Save and Convert' button\n\t\tnew VoodooControl(\"a\", \"css\", \".fld_save_button.convert-headerpane a\").click();\n\t\tVoodooUtils.waitForReady();\n\n\t\tsugar().accounts.navToListView();\n\t\t\n\t\t// Verify that an account with the changed name (as created above) is displayed\n\t\tsugar().accounts.listView.verifyField(1, \"name\", newAccountName);\n\t\t\n\t\tsugar().contacts.navToListView();\n\n\t\t// Verify that an account with the changed name (as created above) is displayed\n\t\tsugar().contacts.listView.verifyField(1, \"fullName\", newContactName);\n\n\t\tsugar().opportunities.navToListView();\n\n\t\t// Verify that an account with the changed name (as created above) is displayed\n\t\tsugar().opportunities.listView.verifyField(1, \"name\", newOppName);\n\t\t\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}",
"public List<TblPurchaseOrder>getAllDataPurchaseOrder(Date startDate,Date endDate,TblPurchaseOrder po,TblSupplier supplier);",
"@Test\n public void testQuery() throws Exception {\n\n // Create a second requirement on CHECK 1\n EventKey lReq2Event = new EventKey( 4650, 999 );\n EvtEventTable lEvtEvent = EvtEventTable.create( lReq2Event );\n lEvtEvent.setEventSdesc( \"requirement 2 on check 1\" );\n lEvtEvent.setHEvent( StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1.getEventKey() );\n lEvtEvent.setNhEvent( StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1.getEventKey() );\n lEvtEvent.setHistBool( false );\n lEvtEvent.insert();\n\n TaskKey lReq2Task = new TaskKey( lReq2Event );\n SchedStaskTable lSchedStask = SchedStaskTable.create( lReq2Task );\n lSchedStask.setTaskClass( RefTaskClassKey.REQ );\n lSchedStask.insert();\n\n // Associate loose JIC tasks with labour requirements to a check\n StationCapacityData.assignTaskToCheck(\n StationCapacityData.Task.Labour.TASK_WITH_AVAILABLE_LABOUR_ON_DAY_1,\n StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1,\n StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1_REQUIREMENT );\n StationCapacityData.assignTaskToCheck(\n StationCapacityData.Task.Labour.TASK_WITH_UNAVAILABLE_LABOUR_ON_DAY_1,\n StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1,\n StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1_REQUIREMENT );\n StationCapacityData.assignTaskToCheck(\n StationCapacityData.Task.Labour.TASK_WITH_WARNING_LABOUR_ON_DAY_1,\n StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1, lReq2Task );\n\n // Execute the query\n DataSet lDs = execute( StationCapacityData.Location.YOW_LINE, StationCapacityData.DAY_DT_1 );\n\n // Ensure five are returned - the table will have two labour skills for the check, two labour\n // rows for requirement 1 and one labour row for requirement 2\n\n MxAssert.assertEquals( \"Number of retrieved rows\", 5, lDs.getRowCount() );\n\n // Assert that the contents of the 4 rows\n assertRow( lDs, StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1, RefLabourSkillKey.ENG,\n 21.0 );\n assertRow( lDs, StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1, RefLabourSkillKey.LBR,\n 5.0 );\n assertRow( lDs, StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1_REQUIREMENT,\n RefLabourSkillKey.ENG, 12.0 );\n assertRow( lDs, StationCapacityData.Check.CHECK_ON_AIRCRAFT_1_ON_DAY_1_REQUIREMENT,\n RefLabourSkillKey.LBR, 5.0 );\n assertRow( lDs, lReq2Task, RefLabourSkillKey.ENG, 9.0 );\n\n // unassign the jobcards from the requirement\n StationCapacityData.unassignTaskFromCheck(\n StationCapacityData.Task.Labour.TASK_WITH_AVAILABLE_LABOUR_ON_DAY_1 );\n StationCapacityData.unassignTaskFromCheck(\n StationCapacityData.Task.Labour.TASK_WITH_UNAVAILABLE_LABOUR_ON_DAY_1 );\n StationCapacityData.unassignTaskFromCheck(\n StationCapacityData.Task.Labour.TASK_WITH_WARNING_LABOUR_ON_DAY_1 );\n\n // Delete the second requirement\n lSchedStask.delete();\n lEvtEvent.delete();\n }",
"public void validateDailySchedule(String wfName,String schedulename,String scheduleDescrip,String startMonth,String startYear,String startdate,\r\n\t\tString endMonth,String endYear,String enddate,String scheduleType,String timezone,String Hrs,String Mins) throws Exception {\n\t\tloginpageta.login(prop.getProperty(\"username_TA\"), prop.getProperty(\"password_TA\"));\r\n\t\tReporter.log(\"User logged in successfully\",true);\r\n\t\twait.until(ExpectedConditions.visibilityOf(workflowsTab));\r\n\t\tJavascriptExecutor js_tenant = (JavascriptExecutor) driver;\r\n\t\tjs_tenant.executeScript(\"arguments[0].click();\", workflowsTab);\r\n\t\tReporter.log(\"Workflows Tab is clicked\",true);\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(schedulerTab));\r\n\t\tJavascriptExecutor js1 = (JavascriptExecutor) driver;\r\n\t\tjs1.executeScript(\"arguments[0].click();\", schedulerTab);\r\n\t\tReporter.log(\"Scheduler tab clicked\",true);\r\n\t\tThread.sleep(2000);\r\n\t\tJavascriptExecutor js2 = (JavascriptExecutor) driver;\r\n\t\tjs2.executeScript(\"arguments[0].click();\", addNewBtn);\r\n\t\tReporter.log(\"Add new Button clicked\",true);\r\n\t\tThread.sleep(5000);\r\n\t\tReporter.log(\"Schedule form details started\",true);\r\n\t\tworkflowDrpdwn.click();\r\n\t\tWebElement search_wfName=driver.findElement(By.xpath(\"//label[contains(text(),'\"+wfName+\"')]/span\"));\r\n\t\tsearch_wfName.click();\r\n\t\tThread.sleep(3000);\r\n\t\tscheduleName.sendKeys(schedulename);\r\n\t\tThread.sleep(2000);\r\n\t\tdescription.sendKeys(scheduleDescrip);\r\n\t\tThread.sleep(3000);\r\n\t\tstartDate.click();\r\n\t\tThread.sleep(2000);\r\n\t\tSelect start_month_picker=new Select(monthDrpdown);\r\n\t\tstart_month_picker.selectByVisibleText(startMonth);\r\n\t\tSelect start_year_picker=new Select(yearDrpdown);\r\n\t\tstart_year_picker.selectByVisibleText(startYear);\r\n\t\tThread.sleep(2000);\r\n\t\tWebElement start_day_picker=driver.findElement(By.xpath(\"//tbody/tr/td/a[text()='\"+startdate+\"']\"));\r\n\t\tstart_day_picker.click();\r\n\t\t//Thread.sleep(5000);\r\n\t\t//doneBtn.click();\r\n\t\tThread.sleep(10000);\r\n\t\tendDate.click();\r\n\t\tThread.sleep(2000);\r\n\t\tSelect end_month_picker=new Select(monthDrpdown);\r\n\t\tend_month_picker.selectByVisibleText(endMonth);\r\n\t\tSelect end_year_picker=new Select(yearDrpdown);\r\n\t\tend_year_picker.selectByVisibleText(endYear);\r\n\t\tThread.sleep(2000);\r\n\t\tWebElement end_day_picker=driver.findElement(By.xpath(\"//tbody/tr/td/a[text()='\"+enddate+\"']\"));\r\n\t\tend_day_picker.click();\r\n\t\tThread.sleep(5000);\r\n\t//doneBtn.click();\r\n\t\tSelect schedule=new Select(scheduleTypeDrpdown);\r\n\t\tschedule.selectByVisibleText(scheduleType);\r\n\t\tThread.sleep(2000);\r\n\t\tSelect timezone_drpdown=new Select(timeZone);\r\n\t\ttimezone_drpdown.selectByVisibleText(timezone);\r\n\t\tThread.sleep(2000);\r\n\t\tscheduleHRS.sendKeys(Hrs);\r\n\t\tThread.sleep(2000);\r\n\t\tscheduleMins.sendKeys(Mins);\r\n\t\tThread.sleep(2000);\r\n\t\tsubmitBtn.click();\r\n\t\tReporter.log(\"Schedule submitted\",true);\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\tString actual_message = actual_Msg.getText();\r\n\t\tString expected_message = Messages.scheduleCreation;\r\n\t\tReporter.log(\"Actual Success Msg:\" + actual_message,true);\r\n\t\tReporter.log(\"Expected Success Msg:\" + expected_message,true);\r\n\t\tAssert.assertEquals(actual_message,expected_message, \"Schedule not created\");\r\n\t\tReporter.log(\"Schedule created successfully\",true);\r\n\t/*\twait.until(ExpectedConditions.visibilityOf(requestTab));\r\n\t\tJavascriptExecutor js_tenant5 = (JavascriptExecutor) driver;\r\n\t\tjs_tenant5.executeScript(\"arguments[0].click();\", requestTab);\r\n\t\t//requestTab.click();\r\n\t\tReporter.log(\"Request tab clicked and validate if it is present in table\",true);\r\n\t\tWebElement req=driver.findElement(By.xpath(\"//tbody[@class='tbody-stripped']/tr/td[2]\"));\r\n\t\tString req_wf=req.getText();\r\n\t\tAssert.assertEquals(req_wf, wfName,\"Workflow request not created,schedule fail \");\r\n\t\tReporter.log(\"Workflow is scheduled and validated in the table\");*/\r\n\t\tinformationpageta.validateSignOut();\r\n\t}",
"@Test\n public void testRecordInboundMovement1() throws Exception {\n System.out.println(\"recordInboundMovement\");\n Long factoryId = 1L;\n Long goodsReceiptId = 1L;\n Long toBinId = 500L;\n String status = \"unrestricted\";\n Double quantity = 40D;\n Calendar creationDate = Calendar.getInstance();\n creationDate.set(2014, 9, 30, 15, 0, 0);\n Long expResult = -3L;\n Long result = FactoryInventoryManagementModule.recordInboundMovement(factoryId, goodsReceiptId, toBinId, status, quantity, creationDate);\n assertEquals(expResult, result);\n }",
"void addTestTermsAndCourses() {\n // Creates Terms\n addTerm(\"Term 1\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 2\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 3\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 4\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 5\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 6\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 7\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 8\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 9\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 10\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 11\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 12\", \"5/19/2019\", \"6/23/2019\");\n int term1Id = getTermIdFromIndex(0);\n int term2Id = getTermIdFromIndex(1);\n// int term3Id = getTermIdFromIndex(2);\n\n // Creates Courses\n addCourse(\"course 1\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 2\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 3\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n addCourse(\"course 4\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 5\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 6\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n int course1Id = getCourseIdFromIndex(0);\n int course2Id = getCourseIdFromIndex(1);\n\n // Creates Assignments\n addAssignment(\"Assignment 1\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 2\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 3\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 4\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 5\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 6\", \"this shit is whack\", \"5/29/2019\", null);\n addAssignment(\"Assignment 7\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 8\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 9\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 10\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 11\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 12\", \"this shit is whack\", \"5/29/2019\", null);\n }",
"@Test(dataProvider=\"data-provider\")\n public void search(String ptname,String trname,String revname,String date,String walking_flat,String updown_stairs,String night,String sit_lying,String stand_upright,String catch_lock,String hip_giving_put,String stiffness,String dec_motion,String des_stairs,String asc_stairs,String rising_sitting,String putonsocks,String rising_bed,String sprint_cut,String low_sports,String jogging,String walking,String heavy_duty,String low_duty)throws InterruptedException, BiffException, IOException {\n \t \tdriver.findElement(By.className(\"cls_header_patient\")).click();\n \t \tThread.sleep(500);\n \t \tdriver.findElement(By.id(\"SearchBox\")).click();\n \t \tdriver.findElement(By.id(\"SearchBox\")).sendKeys(\"t\");\n \t \tdriver.findElement(By.className(\"btnStudySearch\")).click();\n \t \tThread.sleep(1000);\n \t WebElement ptlist = driver.findElement(By.className(\"flex_patient\"));\n\t \tList<WebElement> tagname2 = ptlist.findElements(By.tagName(\"tr\"));\n\t \tint j =1; \n\t\tfor(WebElement tlist1 : tagname2)\n\t\t{\t \t \n \t Thread.sleep(3000);\n\t\t Actions action1 = new Actions(driver);\n\t\t \n \t WebElement element1 = tlist1.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[2]/div[2]/div/div[7]/table/tbody/tr[\"+j+\"]/td[1]/div\"));\n \t driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[2]/div[2]/div/div[7]/table/tbody/tr[\"+j+\"]/td[1]/div\")).click();\n \t String pname=tlist1.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[2]/div[2]/div/div[7]/table/tbody/tr[\"+j+\"]/td[1]/div\")).getText();\n \t System.out.println(\"Patient Name=\"+pname);\n \t \t\t \t \n if( pname.matches(ptname))\n {\n \tAction doubleClick1 = action1.doubleClick(element1).build();\n \tdoubleClick1.perform();// After performing double click Map will load\n \tThread.sleep(3000);\n \tdriver.findElement(By.className(\"clsapp_pat_treatment\")).click();\n \tThread.sleep(3000);\n \t//driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr/td[3]/div\")).click();\n \t//Thread.sleep(3000);\n \t//driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr/td[3]/div\")).click();\n \t WebElement trlist= driver.findElement(By.className(\"flex_treatment\"));\n List<WebElement> tagname1=trlist.findElements(By.tagName(\"tr\"));\n int i=1;\n for(WebElement tlist2 : tagname1){\n \tThread.sleep(2000);\n \t//Actions action1 = new Actions(driver);\n \tWebElement element2 = tlist2.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr[\"+i+\"]/td[3]/div\"));\n \tdriver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr[\"+i+\"]/td[3]/div\")).click();\n \tString tname=tlist2.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div[1]/div/div[7]/table/tbody/tr[\"+i+\"]/td[3]/div\")).getText();\n \tSystem.out.println(\"Treatment name=\"+tname);\n \t\n \tif(tname.matches(trname))\n \t\t \n \t\t{\n \t\tAction doubleClick2 = action1.doubleClick(element2).build();\n \t\tdoubleClick2.perform();\n \t\tThread.sleep(2000);\n \t\t\n \t \tThread.sleep(2000);\n \t \t//search2(evdat,mob,self,usual,pain,anxd,healt,comm);\n \t \t//Thread.sleep(3000);\n \t \t//driver.findElement(By.className(\"StudyName\")).click();\n \t \tThread.sleep(3000);\n \t \t//Thread.sleep(2000);\n\n \t \n \t \t WebElement rvlist= driver.findElement(By.className(\"flex_treat_review\"));\n \t List<WebElement> tagname3=rvlist.findElements(By.tagName(\"tr\"));\n \t int k=1;\n \t for(WebElement tlist3 : tagname3){\n \t \tThread.sleep(2000);\n \t \tWebElement element3=tlist3.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr[\"+k+\"]/td[3]/div\"));\n \t driver.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr[\"+k+\"]/td[3]/div\")).click();\n \t String rvname=tlist3.findElement(By.xpath(\"/html/body/div[3]/div[3]/div/div[2]/div/div[7]/table/tbody/tr[\"+k+\"]/td[3]/div\")).getText();\n \t System.out.println(\"Review name=\"+rvname);\n \t if(rvname.matches(revname)){\n \t \tAction doubleClick3 = action1.doubleClick(element3).build();\n \t\t \tdoubleClick3.perform();\n \t\t \tThread.sleep(2000);\n \t\t \tString rvform = \"//input[contains(@class,'leftmenuBox') and contains(@value,'Nonarthritic Score')]\";\n\t\t\t\t\t\t \n \t \t WebElement selfyes = driver.findElement(By.xpath(rvform));\n \t \t selfyes.click();\n \t \t Thread.sleep(3000);\n \t \t driver.findElement(By.id(\"edate\")).sendKeys(date);\n \t \t //Select ohs1 = new Select(driver.findElement(By.id(\"ohs_pain_usually\")));\n \t \t // ohs1.selectByVisibleText(pain);\n \t Select s=new Select(driver.findElement(By.id(\"score1\")));\n \t s.selectByVisibleText(walking_flat);\n \t Select s1=new Select(driver.findElement(By.id(\"score2\")));\n \t s1.selectByVisibleText(updown_stairs);\n \t Select s2=new Select(driver.findElement(By.id(\"score3\")));\n \t s2.selectByVisibleText(night);\n \t Select s3=new Select(driver.findElement(By.id(\"score4\")));\n \t s3.selectByVisibleText(sit_lying);\t\n \t Select s4=new Select(driver.findElement(By.id(\"score5\")));\n \t s4.selectByVisibleText(stand_upright);\t\n \t Select s5=new Select(driver.findElement(By.id(\"score6\")));\n \t s5.selectByVisibleText(catch_lock);\n \t Select s6=new Select(driver.findElement(By.id(\"score7\")));\n \t s6.selectByVisibleText(hip_giving_put);\n \t Select s7=new Select(driver.findElement(By.id(\"score8\")));\n \t s7.selectByVisibleText(stiffness);\n \t Select s8=new Select(driver.findElement(By.id(\"score9\")));\n \t s8.selectByVisibleText(dec_motion);\n \t Select s9=new Select(driver.findElement(By.id(\"score10\")));\n \t s9.selectByVisibleText(des_stairs);\n \t Select s10=new Select(driver.findElement(By.id(\"score11\")));\n \t s10.selectByVisibleText(asc_stairs);\n \t Select s11=new Select(driver.findElement(By.id(\"score12\")));\n \t s11.selectByVisibleText(rising_sitting);\n \t Select s12=new Select(driver.findElement(By.id(\"score13\")));\n \t s12.selectByVisibleText(putonsocks);\n \t Select s13=new Select(driver.findElement(By.id(\"score14\")));\n \t s13.selectByVisibleText(rising_bed);\n \t Select s14=new Select(driver.findElement(By.id(\"score15\")));\n \t s14.selectByVisibleText(sprint_cut);\n \t Select s15=new Select(driver.findElement(By.id(\"score16\")));\n \t s15.selectByVisibleText(low_sports);\n \t Select s16=new Select(driver.findElement(By.id(\"score17\")));\n \t s16.selectByVisibleText(jogging);\n \t Select s17=new Select(driver.findElement(By.id(\"score18\")));\n \t s17.selectByVisibleText(walking);\n \t Select s18=new Select(driver.findElement(By.id(\"score19\")));\n \t s18.selectByVisibleText(heavy_duty);\n \t Select s19=new Select(driver.findElement(By.id(\"score20\")));\n \t s19.selectByVisibleText(low_duty);\n \t Thread.sleep(2000);\n \t driver.findElement(By.id(\"btn_hip_nonarthritic_save\")).click();\n \t \tbreak;\n \t \t\n \t }\n \t k++;\n \t }\n \t break;\n \t\t}\n \ti++;\n }\n break;\n }\n j++;\n\t\t}\n\t\t\n }",
"@Test\r\n \tpublic void testQualifiedValues2() {\n \t\t\r\n \t\tParameters params = (Parameters) filter.getParameters();\r\n \t\tparams.detectColumnsMode = Parameters.DETECT_COLUMNS_NONE;\r\n \t\t\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/csv_test3.txt\");\r\n \t\tassertNotNull(input);\r\n \t\t\r\n \t\tparams.wrapMode = WrapMode.NONE; // !!!\r\n \t\tparams.removeQualifiers = false;\r\n \t\t\r\n //\t\tparams.valuesStartLineNum = 9;\r\n //\t\tparams.sendHeaderMode = 0;\r\n \r\n \t\t\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\r\n \t\t// Line 1\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value11\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value12\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value13\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value14\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 2\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value21\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value22.1,Value22.2, Value22.3\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value23\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value24\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\t\t\r\n \t\t// Line 4-7\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value31\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value32\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value33\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value34.1\\nValue34.2\\nValue34.3\\nValue34.4,Value34.5\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value35\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 9-12\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value41\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value42\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value43\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value44.1\\nValue44.2\\nValue44.3\\nValue44.4\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value45.1,Value45.2\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\t\t\r\n \t\t\r\n \t\t// Line 14-18\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value51\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value52\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value53\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value54.1\\nValue54.2\\nValue54.3\\nValue54.4,\\\"Value55.1,Value55.2\\nValue55.3,Value55.4\\\"\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n //\t\t// Line 15\r\n //\t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n //\t\ttestEvent(EventType.TEXT_UNIT, \"Value54.2\");\r\n //\t\ttestEvent(EventType.END_GROUP, null);\r\n //\t\t\r\n //\t\t// Line 16\r\n //\t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n //\t\ttestEvent(EventType.TEXT_UNIT, \"Value54.3\");\r\n //\t\ttestEvent(EventType.END_GROUP, null);\r\n //\t\t\r\n //\t\t// Line 17-18\r\n //\t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n //\t\ttestEvent(EventType.TEXT_UNIT, \"Value54.4\");\r\n //\t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value55.1,Value55.2\\nValue55.3,Value55.4\\\"\");\r\n //\t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 20-25\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value61\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value62\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value63\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value64.1\\nValue64.2\\nValue64.3\\nValue64.4,\\\"Value65.1,Value65.2\\nValue65.3,Value65.4\\n\" +\r\n \t\t\t\t\"Value65.5,\\\"Value66\\\"\\\"\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\t\t\r\n \t\t// -------------------------------------------------\r\n \t\t\r\n \t\t// Line 27-31\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value71\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value72 \\\"aaa \\\"quoted part 1\\\", then \\\"\\\"quoted part 2\\\" value\\\",Value73\\\",Value74\\n\" +\r\n \t\t\t\t\"Value81,\\\"Value82 with unclosed quote\\nValue91,Value92\\n\\\"ValueA1\\\",ValueA2\\\"\\nValueB1\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value\\\"B2,Va\\\"lueB3\\\"\");\t\t// If quotation marks are not around field, preserve them \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Va\\\"lueB4\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 32\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC1\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"ValueC2\");\t\t \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC3\");\t\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"ValueC4\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC5\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\tfilter.close();\r\n \t\t\r\n \t\t\r\n \t\t// Unwrap lines\r\n \t\tinput = TableFilterTest.class.getResourceAsStream(\"/csv_test3.txt\");\r\n \t\tassertNotNull(input);\r\n \t\t\r\n \t\tparams.wrapMode = WrapMode.SPACES; // !!!\r\n \t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\r\n \t\ttestEvent(EventType.START_DOCUMENT, null);\r\n \t\t\r\n \t\t// Line 1\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value11\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value12\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value13\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value14\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 2\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value21\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value22.1,Value22.2, Value22.3\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value23\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value24\");\t\t\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\t\t\r\n \t\t// Line 4-7\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value31\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value32\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value33\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value34.1 Value34.2 Value34.3 Value34.4,Value34.5\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value35\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 9-12\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value41\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value42\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value43\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value44.1 Value44.2 Value44.3 Value44.4\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value45.1,Value45.2\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\t\t\r\n \t\t\r\n \t\t// Line 14-18\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value51\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value52\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value53\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value54.1 Value54.2 Value54.3 Value54.4,\\\"Value55.1,Value55.2 Value55.3,Value55.4\\\"\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 20\r\n \t\t// Line 20-25\r\n \t\ttestEvent(EventType.START_GROUP, null);\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value61\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value62\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value63\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value64.1 Value64.2 Value64.3 Value64.4,\\\"Value65.1,Value65.2 Value65.3,Value65.4 \" +\r\n \t\t\t\t\"Value65.5,\\\"Value66\\\"\\\"\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t// -------------------------------------------------\r\n \t\t\r\n \t\t// Line 27-31\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Value71\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value72 \\\"aaa \\\"quoted part 1\\\", then \\\"\\\"quoted part 2\\\" value\\\",Value73\\\",Value74 \" +\r\n \t\t\t\t\"Value81,\\\"Value82 with unclosed quote Value91,Value92 \\\"ValueA1\\\",ValueA2\\\" ValueB1\\\"\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"Value\\\"B2,Va\\\"lueB3\\\"\");\t\t// If quotation marks are not around field, preserve them \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"Va\\\"lueB4\\\"\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\t// Line 32\r\n \t\ttestEvent(EventType.START_GROUP, null);\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC1\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"ValueC2\");\t\t \r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC3\");\t\t\t\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"\\\"ValueC4\");\r\n \t\ttestEvent(EventType.TEXT_UNIT, \"ValueC5\");\r\n \t\ttestEvent(EventType.END_GROUP, null);\r\n \t\t\r\n \t\ttestEvent(EventType.END_DOCUMENT, null);\r\n \t\tfilter.close();\r\n \t\t\r\n \t\t\r\n \t}",
"@Test(enabled = true)\n\tpublic void viewTravelHistoryRegistredCustomerSubAccount() throws Exception {\n\n\t\t// create travel history via soap call\n\t\tSOAPClientSAAJ sClient = new SOAPClientSAAJ();\n\t\tCreditCardNumberGenerator ccGenerator = new CreditCardNumberGenerator();\n\t\tString validCCNumber = ccGenerator.generate(\"4\", 16);\n\t\tString accountID = sClient.travelHistorySOAPCall(validCCNumber);\n\t\tSystem.out.println(\"cc number being used is \" + validCCNumber);\n\t\tSystem.out.println(\"account id being returned is \" + accountID);\n\n\t\t// takes around 6 minutes for travel history to show on cmc\n\t\tUtils.waitTime(360000);\n\n\t\t// create account and link it to cc\n\t\tcoreTest.signIn(driver);\n\t\tcoreTest.createCustomer(driver);\n\t\tBasePage bPage = new BasePage(driver);\n\t\tbPage.clickLinkAccount(driver);\n\t\tLinkAccountPage lPage = new LinkAccountPage(driver);\n\n\t\t// use cc number from soap call to link account\n\t\tlPage.enterBankAccount(driver, validCCNumber);\n\t\tlPage.selectExpMonth(driver);\n\t\tlPage.selectExpYear(driver, 2);\n\t\tlPage.clickSearchToken(driver);\n\t\tlPage.enterNickName(driver, \"adam\");\n\t\tlPage.clickLinkAccount(driver);\n\n\t\t// checking travel history under subaccount page\n\t\tbPage.clickLinkedAccount(driver);\n\t\tTokenSearchSubSystemPage ssPage = new TokenSearchSubSystemPage(driver);\n\t\tssPage.clickTravelHistory(driver);\n\t\n\t\tAssert.assertEquals(ssPage.getLocation(driver), LOCATION);\n\t\tAssert.assertEquals(ssPage.getTravelMode(driver), TRAVEL_MODE);\n\t\tAssert.assertEquals(ssPage.getToken(driver), TOKEN);\n\t\tAssert.assertEquals(ssPage.getFare(driver), FARE);\n\t\tAssert.assertEquals(ssPage.getUnpaidFare(driver), UNPAID_FARE);\n\n\t\tssPage.clickTravelHistoryRow(driver);\n\t\tTravelHistoryDetailPage tdPage = new TravelHistoryDetailPage(driver);\n\n\t\tAssert.assertEquals(tdPage.getLocation(driver), LOCATION);\n\t\tAssert.assertEquals(tdPage.getOperator(driver), OPERATOR);\n\t\tAssert.assertEquals(tdPage.getTransactionStatus(driver), TRANSACTION_STATUS);\n\n\t\tLog.info(\"viewTravelHistoryRegistredCustomerSubAccount Completed\");\n\t\tdriver.close();\n\t}",
"@Test(priority=42)\t\n\tpublic void campaign_user_with_filter_for_nonexisting_camp_end_date() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_filter_for_nonexisting_camp_end_date\", \"To validate whether user is able to get campaign and its users through campaign/user api with filter for non existing campaign_end_date\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_filter_for_nonexisting_camp_end_date\");\n\t\tString campaign_end_date = test_data.get(4);\n\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_end_date%3d\"+campaign_end_date));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for campaign_end_date\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t String result_data = json.get(\"result\").toString();\n\t\t Assert.assertEquals(result_data, \"error\", \"API is returning success when non existing campaign_end_date is entered for filter\");\n\t\t test.log(LogStatus.PASS, \"API is returning error when non existing campaign_end_date is entered for filter\");\n\t\t Assert.assertEquals(json.get(\"err\").toString(), \"no records found\", \"Proper validation is not displayed when non existing campaign_end_date is passed.\");\n\t\t test.log(LogStatus.PASS, \"Proper validation is displayed when non existing campaign_end_date is passed.\");\n\t\t}\n\t}",
"@Test\n public void testLinkedColumnNotDisplayedCase()\n {\n String runName = \"Link to multiple study run\";\n log(\"Creating the study projects\");\n\n log(\"Editing the assay design for auto link\");\n goToProjectHome();\n goToManageAssays();\n clickAndWait(Locator.linkWithText(ASSAY_NAME));\n _assayHelper.clickEditAssayDesign()\n .setAutoLinkTarget(\"(Data import folder)\")\n .clickSave();\n\n File runFile = new File(TestFileUtils.getSampleData(\"AssayImportExport\"), \"GenericAssay_Run2.xls\");\n importAssayRun(runFile, ASSAY_NAME, runName);\n\n linkToStudy(runName, STUDY1, 1, null);\n linkToStudy(runName, STUDY2, 1, null);\n linkToStudy(runName, STUDY3, 1, null);\n\n log(\"Verifying linked column does not exists because more then 3 studies are linked\");\n goToProjectHome();\n goToManageAssays();\n clickAndWait(Locator.linkWithText(ASSAY_NAME));\n clickAndWait(Locator.linkWithText(runName));\n DataRegionTable runsTable = DataRegionTable.DataRegion(getDriver()).withName(\"Data\").waitFor();\n checker().verifyFalse(\"Linked column for Study 1 should not be present\",\n runsTable.getColumnNames().contains(\"linked_to_Auto_Link_To_Study_Test_Study_1_Study\"));\n checker().verifyFalse(\"Linked column for Study 2 should not be present\",\n runsTable.getColumnNames().contains(\"linked_to_Auto_Link_To_Study_Test_Study_2_Study\"));\n checker().verifyFalse(\"Linked column for Study 3 should not be present\",\n runsTable.getColumnNames().contains(\"linked_to_Auto_Link_To_Study_Test_Study_3_Study\"));\n\n log(\"Verifying if columns can be added from customize grid\");\n CustomizeView customizeView = runsTable.openCustomizeGrid();\n customizeView.addColumn(\"linked_to_Auto_Link_To_Study_Test_Study_1_Study\");\n customizeView.addColumn(\"linked_to_Auto_Link_To_Study_Test_Study_2_Study\");\n customizeView.addColumn(\"linked_to_Auto_Link_To_Study_Test_Study_3_Study\");\n customizeView.addColumn(\"linked_to_Auto_Link_To_Study_Test_Study\");\n customizeView.clickViewGrid();\n\n /*\n Ensuring additional 'Linked to Study' columns are not visible for linked Datasets.\n Test coverage for issue https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=43440\n */\n\n waitAndClickAndWait(Locator.linkWithText(\"linked\").index(0));\n DataRegionTable datasetTable = new DataRegionTable(\"Dataset\", getDriver());\n checker().verifyFalse(\"Linked column for Study 1 should not be present\",\n datasetTable.getColumnNames().contains(\"linked_to_Auto_Link_To_Study_Test_Study_1_Study\"));\n }"
] |
[
"0.6488662",
"0.58631366",
"0.57328415",
"0.5514515",
"0.5484928",
"0.54646856",
"0.5439483",
"0.543595",
"0.5370049",
"0.53562653",
"0.53541386",
"0.5335053",
"0.53345424",
"0.53304595",
"0.533028",
"0.53169775",
"0.53082114",
"0.53070676",
"0.5303753",
"0.5298044",
"0.52842945",
"0.5282848",
"0.5279453",
"0.52744347",
"0.52714443",
"0.5265243",
"0.5261015",
"0.5252762",
"0.523983",
"0.522222",
"0.52215874",
"0.5198462",
"0.51977736",
"0.51803213",
"0.5171564",
"0.5148145",
"0.5129054",
"0.51269317",
"0.509524",
"0.5070607",
"0.50692",
"0.5069154",
"0.50670844",
"0.50450945",
"0.50406516",
"0.50156546",
"0.5010512",
"0.4994678",
"0.4985707",
"0.49836704",
"0.49703133",
"0.4964166",
"0.49638397",
"0.49526614",
"0.49512833",
"0.49477437",
"0.4935768",
"0.49324527",
"0.4929643",
"0.49211776",
"0.4920742",
"0.49175924",
"0.4915143",
"0.49090335",
"0.49060336",
"0.49012825",
"0.4893203",
"0.48872736",
"0.4871533",
"0.4867061",
"0.48621917",
"0.48403916",
"0.48341385",
"0.48314902",
"0.48277482",
"0.4822898",
"0.48171136",
"0.48137125",
"0.4807217",
"0.4804938",
"0.4804124",
"0.48023316",
"0.47954676",
"0.47909847",
"0.47906798",
"0.4790445",
"0.47902042",
"0.47843716",
"0.47819477",
"0.4776734",
"0.47678825",
"0.47647545",
"0.47546333",
"0.4748983",
"0.47431034",
"0.47426012",
"0.4741036",
"0.4739732",
"0.4738214",
"0.47360516"
] |
0.7776544
|
0
|
This method handles the case of making an already built SensorML aggregate process executable, hence it is not valid to provide an implementation of IProcessChainExec that already contains child processes and/or connections.
|
@Override
public void setExecutableImpl(IProcessExec processExec) throws ProcessException
{
Asserts.checkArgument(processExec instanceof IProcessChainExec,
"Executable implementation must be a process chain implementation");
// assign exec implementation
IProcessChainExec processChain = (IProcessChainExec)processExec;
super.setExecutableImpl(processChain);
// case where SML description contains child process definitions
// and chain exec implementation doesn't have any
if (processChain.getChildProcesses().isEmpty() && processChain.getInternalConnections().isEmpty())
{
// add child processes to exec impl
for (OgcProperty<AbstractProcess> processProp: getComponentList().getProperties())
addProcessToExec(processProp.getName(), processProp.getValue());
// add connections to exec impl
for (Link link: getConnectionList())
addConnectionToExec(link);
}
// case where chain exec implementation contains executable child processes
// and SML aggregate description doesn't have any
else if (getNumComponents() == 0 && getNumConnections() == 0)
{
// wrap and add child processes to SML description
for (Entry<String, IProcessExec> entry: processChain.getChildProcesses().entrySet())
{
AbstractProcess smlProcess = SMLUtils.wrapWithProcessDescription(entry.getValue());
components.add(entry.getKey(), smlProcess);
}
// add links to SML description
for (IDataConnection connection: processChain.getInternalConnections())
addConnection(processChain, connection);
}
else
throw new IllegalStateException("Executable implementation must be an empty process chain implementation");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static SimpleProcessExecutor newSimpleProcessExecutor() {\n return new SimpleProcessExecutor(new TestProcessManagerFactory().newProcessManager());\n }",
"@Override\n public int execute(Parameters parameters) {\n\n final List<String> command = new ArrayList<>();\n final String b = binary.get();\n if (b == null) {\n throw new IllegalStateException(\"No binary found\");\n }\n command.add(binary.get());\n final ProcessBuilder pb = new ProcessBuilder(command);\n if (workdir != null) {\n pb.directory(workdir);\n }\n final Process p;\n try {\n if (commonArgs != null) {\n command.addAll(commonArgs.stream().map(Supplier::get).toList());\n }\n Collections.addAll(command, parameters.args);\n logger.info(toString(command));\n p = pb.start();\n parameters.onProcessCreation.accept(p);\n\n final ProcessTimeoutHandle handle;\n if (processTimeout != null) {\n handle = startProcessTimeoutMonitor(p, String.valueOf(command), processTimeout);\n } else {\n handle = null;\n }\n final Copier inputCopier = parameters.in != null ?\n copyThread(\n \"input -> process input copier\",\n parameters.in,\n p.getOutputStream(),\n (c) -> closeSilently(p.getOutputStream()),\n (e) -> {},\n p\n ) : null;\n\n final Copier copier;\n if (parameters.out != null) {\n InputStream commandOutput;\n if (useFileCache) {\n commandOutput = FileCachingInputStream\n .builder()\n .input(p.getInputStream())\n .noProgressLogging()\n .build();\n } else {\n commandOutput = p.getInputStream();\n }\n copier = copyThread(\"process output parameters out copier\",\n commandOutput,\n parameters.out,\n (c) -> closeSilently(commandOutput),\n (e) -> {\n Process process = p.destroyForcibly();\n logger.info(\"Killed {} because {}: {}\", process, e.getClass(), e.getMessage());\n }, p);\n } else {\n copier = null;\n }\n\n final Copier errorCopier = copyThread(\n \"error copier\",\n p.getErrorStream(),\n parameters.errors,\n (c) -> closeSilently(p.getErrorStream()),\n (e) -> {},\n p\n );\n if (inputCopier != null) {\n if (needsClose(p.getInputStream())) {\n inputCopier.waitForAndClose();\n } else {\n inputCopier.waitFor();\n }\n }\n\n p.waitFor();\n\n if (copier != null) {\n copier.waitForAndClose();\n }\n errorCopier.waitForAndClose();\n int result = p.exitValue();\n logger.log(exitCodeLogLevel.apply(result), \"Exit code {} for calling {}\", result, commandToString(command));\n\n if (parameters.out != null) {\n parameters.out.flush();\n }\n parameters.errors.flush();\n if (handle != null) {\n handle.cancel();\n }\n return result;\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n throw new RuntimeException(e);\n } catch (IOException e) {\n if (isBrokenPipe(e)) {\n logger.debug(e.getMessage());\n throw new BrokenPipe(e);\n } else {\n logger.error(e.getClass().getName() + \":\" + e.getMessage(), e);\n throw new RuntimeException(e);\n\n }\n } finally {\n this.logger.debug(\"Ready\");\n }\n }",
"protected abstract Executable getExecutable();",
"@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t}",
"MaximaProcess makeProcess() {\r\n \t\treturn new MaximaProcess(processBuilder, processConfig);\r\n \t}",
"private Process execute() throws IOException {\n Process process = builder.start();\n\n if (listener != null) {\n stdoutStreamListener = new StdoutStreamListener(process.getInputStream(), listener);\n stderrStreamListener = new StderrStreamListener(process.getErrorStream(), listener);\n }\n\n return process;\n }",
"@Override\n \tprotected void doExecutionStarted() throws CoreException {\n \t\tfinal OpenMpiRuntimeSystem rtSystem = (OpenMpiRuntimeSystem) getRtSystem();\n \t\tfinal IPJob ipJob = PTPCorePlugin.getDefault().getUniverse().getResourceManager(rtSystem.getRmID()).getQueueById(rtSystem.getQueueID()).getJobById(getJobID());\n \t\tfinal String zeroIndexProcessID = rtSystem.createProcess(getJobID(), \"Open MPI run\", 0);\n \t\tprocessIDs = new String[] { zeroIndexProcessID } ;\n \n \t\t/*\n \t\t * Listener that saves stdout.\n \t\t */\n \t\tfinal PipedOutputStream stdoutOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream stdoutInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tstdoutInputStream.connect(stdoutOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream stdoutPipedStreamListener = new InputStreamListenerToOutputStream(stdoutOutputStream);\n \t\t\n \t\tThread stdoutThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tBufferedReader stdoutBufferedReader = new BufferedReader(new InputStreamReader(stdoutInputStream));\n \t\t\t\tIPProcess ipProc = ipJob.getProcessById(zeroIndexProcessID);\n \t\t\t\ttry {\n \t\t\t\t\tString line = stdoutBufferedReader.readLine();\n \t\t\t\t\twhile (line != null) {\n \t\t\t\t\t\tsynchronized (lock1) {\n \t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStdoutAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tSystem.out.println(line);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tline = stdoutBufferedReader.readLine();\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tPTPCorePlugin.log(e);\n \t\t\t\t} finally {\n \t\t\t\t\tstdoutPipedStreamListener.disable();\n //\t\t\t\t\tif (stdoutObserver != null) {\n //\t\t\t\t\t\tstdoutObserver.removeListener(stdoutPipedStreamListener);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstdoutOutputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstdoutInputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Listener that saves stderr.\n \t\t */\n \t\tfinal PipedOutputStream stderrOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream stderrInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tstderrInputStream.connect(stderrOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream stderrPipedStreamListener = new InputStreamListenerToOutputStream(stderrOutputStream);\n \t\tThread stderrThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tfinal BufferedReader stderrBufferedReader = new BufferedReader(new InputStreamReader(stderrInputStream));\n \t\t\t\tIPProcess ipProc = ipJob.getProcessById(zeroIndexProcessID);\n \t\t\t\ttry {\n \t\t\t\t\tString line = stderrBufferedReader.readLine();\n \t\t\t\t\twhile (line != null) {\n \t\t\t\t\t\tsynchronized (lock1) {\n \t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStderrAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStdoutAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tSystem.err.println(line);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tline = stderrBufferedReader.readLine();\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tPTPCorePlugin.log(e);\n \t\t\t\t} finally {\n \t\t\t\t\tstderrPipedStreamListener.disable();\n //\t\t\t\t\tif (stderrObserver != null) {\n //\t\t\t\t\t\tstderrObserver.removeListener(stderrPipedStreamListener);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstderrOutputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstderrInputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Thread that parses map information.\n \t\t */\n \t\tfinal PipedOutputStream parserOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream parserInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tparserInputStream.connect(parserOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream parserPipedStreamListener = new InputStreamListenerToOutputStream(parserOutputStream);\n \t\tThread parserThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tOpenMpiResourceManagerConfiguration configuration = (OpenMpiResourceManagerConfiguration) getRtSystem().getRmConfiguration();\n \t\t\t\ttry {\n \t\t\t\t\t// Parse stdout or stderr, depending on mpi 1.2 or 1.3\n \t\t\t\t\tif (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_12)) {\n \t\t\t\t\t\tmap = OpenMpiProcessMapText12Parser.parse(parserInputStream);\n \t\t\t\t\t} else if (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_13)) {\n \t\t\t\t\t\tmap = OpenMpiProcessMapXml13Parser.parse(parserInputStream, new IOpenMpiProcessMapXml13ParserListener() {\n \t\t\t\t\t\t\tpublic void startDocument() {\n \t\t\t\t\t\t\t\t// Empty\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tpublic void endDocument() {\n \t\t\t\t\t\t\t\t/*\n \t\t\t\t\t\t\t\t * Turn of listener that generates input for parser when parsing finishes.\n \t\t\t\t\t\t\t\t * If not done, the parser will close the piped inputstream, making the listener\n \t\t\t\t\t\t\t\t * get IOExceptions for closed stream.\n \t\t\t\t\t\t\t\t */\n \t\t\t\t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\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} else {\n \t\t\t\t\t\tassert false;\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t/*\n \t\t\t\t\t * If output could not be parsed, the kill the mpi process.\n \t\t\t\t\t */\n \t\t\t\t\tparserException = e;\n \t\t\t\t\tprocess.destroy();\n \t\t\t\t} finally {\n \t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Create and start listeners.\n \t\t */\n \t\tstdoutThread.start();\n \t\tstderrThread.start();\n \t\tparserThread.start();\n \n \t\tstderrObserver = new InputStreamObserver(process.getErrorStream());\n \t\tstdoutObserver = new InputStreamObserver(process.getInputStream());\n \n\t\tstdoutObserver.addListener(stdoutPipedStreamListener);\n\t\tstderrObserver.addListener(stderrPipedStreamListener);\n \n \t\t// Parse stdout or stderr, depending on mpi 1.2 or 1.3\n \t\tOpenMpiResourceManagerConfiguration configuration = (OpenMpiResourceManagerConfiguration) getRtSystem().getRmConfiguration();\n \t\tif (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_12)) {\n \t\t\tstderrObserver.addListener(parserPipedStreamListener);\n \t\t} else if (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_13)) {\n \t\t\tstdoutObserver.addListener(parserPipedStreamListener);\n \t\t} else {\n \t\t\tassert false;\n \t\t}\n \n \t\tstderrObserver.start();\n \t\tstdoutObserver.start();\n \n \t\ttry {\n \t\t\tparserThread.join();\n \t\t} catch (InterruptedException e) {\n \t\t\t// Do nothing.\n \t\t}\n \n \t\tif (parserException != null) {\n \t\t\tprocess.destroy();\n \t\t\tthrow new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), \"Failed to parse Open Mpi run command output.\", parserException));\n \t\t}\n \n \t\t/*\n \t\t * Copy job attributes from map.\n \t\t */\n \t\trtSystem.changeJob(getJobID(), map.getAttributeManager());\n \n \t\t/*\n \t\t * Copy process attributes from map.\n \t\t */\n \t\tList<Process> newProcesses = map.getProcesses();\n \t\tprocessIDs = new String[newProcesses.size()];\n \t\tfor (Process newProcess : newProcesses) {\n \t\t\tString nodename = newProcess.getNode().getName();\n \t\t\tString nodeID = rtSystem.getNodeIDforName(nodename);\n \t\t\tif (nodeID == null) {\n \t\t\t\tprocess.destroy();\n \t\t\t\tthrow new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), \"Hostnames from Open MPI output do not match expected hostname.\", parserException));\n \t\t\t}\n \n \t\t\tString processName = newProcess.getName();\n \t\t\tint processIndex = newProcess.getIndex();\n \t\t\tString processID = null;\n \t\t\tif (processIndex == 0) {\n \t\t\t\tprocessID = zeroIndexProcessID;\n \t\t\t} else {\n \t\t\t\tprocessID = rtSystem.createProcess(getJobID(), processName, processIndex);\n \t\t\t}\n \t\t\tprocessIDs[processIndex] = processID;\n \n \t\t\tAttributeManager attrMgr = new AttributeManager();\n \t\t\tattrMgr.addAttribute(ElementAttributes.getNameAttributeDefinition().create(processName));\n \t\t\tattrMgr.addAttribute(ProcessAttributes.getStateAttributeDefinition().create(ProcessAttributes.State.RUNNING));\n \t\t\tattrMgr.addAttributes(newProcess.getAttributeManager().getAttributes());\n \t\t\trtSystem.changeProcess(processID, attrMgr);\n \t\t}\n \t}",
"public abstract void runProcess();",
"public abstract void initializeProcess();",
"@Override\n public AlgorithmProcess createProcess() {\n return new FileLoaderProcess(file);\n }",
"@Override\r\n\tprotected void processExecute() {\n\r\n\t}",
"@Override\n public BpmnXmlParse execute() {\n super.execute();\n\n try {\n // Here we start parsing the process model and creating the ProcessDefintion\n parseRootElement();\n\n } catch (JodaEngineRuntimeException jodaException) {\n throw jodaException;\n } catch (Exception javaException) {\n\n String errorMessage = \"Unknown exception\";\n logger.error(errorMessage, javaException);\n // TODO: @Gerardo Schmeiß die Exception weiter\n } finally {\n\n if (getProblemLogger().hasWarnings()) {\n getProblemLogger().logWarnings();\n }\n if (getProblemLogger().hasErrors()) {\n getProblemLogger().throwJodaEngineRuntimeExceptionForErrors();\n }\n }\n\n return this;\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}",
"ExecRunner(ProcessBuilder builder) {\n if (builder == null) {\n throw new NullPointerException();\n }\n this.builder = builder;\n }",
"public void makeStandalone() {\n mCommonProcess = this;\n }",
"protected void prepareToExecuteChildren()\n \t{\n \t\tcollectExecutableElements();\n \t}",
"@Override\n\tpublic void startHook() {\n\t\tMethod execmethod = RefInvoke.findMethodExact(\n \"java.lang.ProcessBuilder\", ClassLoader.getSystemClassLoader(),\n \"start\");\n\t\thookhelper.hookMethod(execmethod, new AbstractBehaviorHookCallBack() {\n\t\t\t@Override\n\t\t\tpublic void descParam(HookParam param) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLogger.log_behavior(ProcessBuilderHook.class.getName(), \"Create New Process ->\");\n\t\t\t\tProcessBuilder pb = (ProcessBuilder) param.thisObject;\n\t\t\t\tList<String> cmds = pb.command();\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tfor(int i=0 ;i <cmds.size(); i++){\n\t\t\t\t sb.append(\"CMD\"+i+\":\"+cmds.get(i)+\" \");\n\t\t\t\t}\n\t\t\t\tLogger.log_behavior(ProcessBuilderHook.class.getName(), \"Command\" + sb.toString());\n\t\t\t}\n\t\t});\n\t}",
"public abstract Process getProcess();",
"public ProcessBuilder buildCommand() {\n return null;\n }",
"private ProcessBuilder appendExecutablePath(ProcessBuilder builder) {\n String executable = builder.command().get(0);\n if (executable == null) {\n throw new IllegalArgumentException(\n \"No executable provided to the Process Builder... we will do... nothing... \");\n }\n builder\n .command()\n .set(0, FileUtils.getFileResourceId(configuration.getWorkerPath(), executable).toString());\n return builder;\n }",
"public abstract void onProcess();",
"public boolean startProcess (Properties ctx, ProcessInfo pi, Trx trx);",
"@Override\n public void execute() throws BuildException {\n if (!isValidOs()) {\n return;\n }\n\n checkConfiguration();\n runExec(prepareExec());\n }",
"@Override\n\tpublic void executeProcess(ProcessExecutionMode eMode)\n\t\tthrows ProcessException\n\t{\n\t\tif (rProcess != null)\n\t\t{\n\t\t\tList<RelationType<?>> rInteractionParams =\n\t\t\t\tgetInteractionParameters();\n\n\t\t\tCollection<RelationType<?>> rInputParams = getInputParameters();\n\n\t\t\trProcess.execute(eMode);\n\n\t\t\trInteractionParams.clear();\n\t\t\trInputParams.clear();\n\n\t\t\tif (rProcess.isFinished())\n\t\t\t{\n\t\t\t\tsetProcess(null);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tProcessStep rStep = rProcess.getInteractionStep();\n\n\t\t\t\tif (!(rStep instanceof FragmentInteraction) ||\n\t\t\t\t\t(((FragmentInteraction) rStep).getRootFragmentParam()\n\t\t\t\t\t .has(STRUCTURE_CHANGED)))\n\t\t\t\t{\n\t\t\t\t\tstructureModified();\n\t\t\t\t}\n\n\t\t\t\trInteractionParams.addAll(rStep.get(INTERACTION_PARAMS));\n\t\t\t\trInputParams.addAll(rStep.get(INPUT_PARAMS));\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void postProcessEngineInitialisation() {\n }",
"@Override\n public void addComponent(String name, AbstractProcess component)\n {\n components.add(name, component);\n addProcessToExec(name, component);\n }",
"public ProcessSequence(ProcessCreator[] pcs) {\n _creators = pcs;\n _processes = new Process[_creators.length];\n for(int i=0; i<_processes.length; ++i) { _processes[i] = null; }\n _combinedInputStream = new PipedInputStream();\n try {\n _combinedStdOutStream = new PipedOutputStream(_combinedInputStream);\n _combinedInputStream.connect(_combinedStdOutStream);\n }\n catch(IOException e) { /* ignore, no output if this goes wrong */ }\n _combinedErrorStream = new PipedInputStream();\n try {\n _combinedStdErrStream = new PipedOutputStream(_combinedErrorStream);\n _combinedErrorStream.connect(_combinedStdErrStream);\n }\n catch(IOException e) { /* ignore, no output if this goes wrong */ }\n \n _deathThread = new Thread(new Runnable() {\n public void run() {\n GeneralProcessCreator.LOG.log(\"ProcessSequence._deathThread running\");\n boolean interrupted = false;\n // wait for the completion of each of the subprocesses\n while(_index<_processes.length) {\n GeneralProcessCreator.LOG.log(\"Waiting for process \"+_index);\n do {\n interrupted = false;\n try {\n _processes[_index].waitFor();\n }\n catch(InterruptedException e) { interrupted = true; }\n } while(interrupted);\n GeneralProcessCreator.LOG.log(\"Process \"+_index+\" terminated\");\n // a process has just terminated\n if (_index<_processes.length-1) {\n // increase index;\n ++_index;\n try {\n _processes[_index] = _creators[_index].start();\n GeneralProcessCreator.LOG.log(\"Process \"+_index+\" started\");\n connectProcess(_processes[_index]);\n }\n catch(IOException e) {\n // could not start the process, record error but continue\n // TODO: find a way to record the error in the ExternalProcessPanel\n// DrJavaErrorHandler.record(e);\n _processes[_index] = DUMMY_PROCESS;\n }\n }\n else {\n ++_index;\n GeneralProcessCreator.LOG.log(\"Closing StdOut and StdErr streams.\");\n try {\n stopAllRedirectors();\n _combinedStdOutStream.flush();\n _combinedStdOutStream.close();\n _combinedStdErrStream.flush();\n _combinedStdErrStream.close();\n }\n catch(IOException e) { /* ignore, just don't close the streams */ }\n }\n }\n }\n },\"Process Sequence Death Thread\");\n _index = 0;\n try {\n _processes[_index] = _creators[_index].start();\n }\n catch(IOException e) {\n // could not start the process, record error but continue\n // TODO: find a way to record the error in the ExternalProcessPanel\n _processes[_index] = DUMMY_PROCESS;\n// DrJavaErrorHandler.record(e);\n }\n connectProcess(_processes[_index]);\n _deathThread.start();\n }",
"abstract void exec();",
"public void buildExecutable(T processIntObject) {\n this.executableMap.put(counter++, new FutureVo(processIntObject));\n }",
"public abstract void runProcess(String[] args) throws Exception;",
"public final void run() {\n\t\ttry (Restore restore = ComponentBoundary.push(loggerName(), this)) {\t\t\n\t\t\tif (!stateHandler.waitToWhen(new IsExecutable(), new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tstop = false;\n\t\t\t\t\t// it's possible to reset children and then execute again so this\n\t\t\t\t\t// is just in case there was no reset.\n\t\t\t\t\tstopChildStateReflector();\n\t\t\t\t\t\n\t\t\t\t\tgetStateChanger().setState(ParentState.EXECUTING);\n\t\t\t\t}\t\t\t\t\t\n\t\t\t})) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tlogger().info(\"Executing.\");\n\n\t\t\ttry {\n\t\t\t\tif (!stop) {\n\t\t\t\t\tconfigure();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!stop) {\n\t\t\t\t\texecute();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// we ignore state while executing but now we need to update.\n\t\t\t\t// dependent on our child states.\n\t\t\t\tstartChildStateReflector();\n\t\t\t}\n\t\t\tcatch (final Throwable e) {\n\t\t\t\tlogger().error(\"Job Exception.\", e);\n\t\t\t\t\n\t\t\t\tstateHandler.waitToWhen(new IsAnyState(), new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetStateChanger().setStateException(e);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\t\n\t\t\tlogger().info(\"Execution finished.\");\n\t\t}\n\t}",
"public ExecutionHandler(final Executable<E> executable, Activity guiThreadActivity){\r\n\t\t//save the root executable\r\n\t\trootExecutable=executable;\r\n\t\t\r\n\t\t//check if already running\r\n\t\tif(allExecutablesInProcess.contains(executable)){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//remember the gui thread activity to run UI operations on it's thread\r\n\t\tthis.guiThreadActivity=guiThreadActivity;\r\n\t\t//run feedback methods on the UI thread\r\n\t\tthis.guiThreadActivity.runOnUiThread(new Runnable(){\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t//first reset the stack of executables, so their signalization is set back, if the stack was executed earlier and failed\r\n\t\t\t\trootExecutable.feedbackDisable();\r\n\t\t\t\tif(executable instanceof ViewGroup){recursivelyResetExecutables((ViewGroup)rootExecutable);}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t//add myself to the ExecutionHandler list, so that this Thread can be interrupted if needed (e.g. on stop Button touch)\r\n\t\tallThreads.add(this);\r\n\t\t\r\n\t\t//find the root block for the current executable and add it to the mapping. Executable can be relatively safe casted to Block, because executable Interface is only implemented by blocks.\r\n\t\tBlock<?> stackRoot = ((Block<?>)executable).findRootBlock();\r\n\t\tExecutionHandler.rootBlockToThread.put(stackRoot, this);\r\n\t\t\r\n\t\t//now start this new thread to execute the app logic for the given rootExecutable and it's stack - will execute this method's run() method\r\n\t\tthis.start();\r\n\t}",
"private ProcessBuilder prepareBuilder(\n ProcessBuilder builder, SubProcessCommandLineArgs commands, SubProcessConfiguration configuration)\n throws IllegalStateException {\n builder.environment().put(\"LD_LIBRARY_PATH\", configuration.getWorkerPath());\n\n // Check we are not over the max size of command line parameters\n if (getTotalCommandBytesAnemo(commands) > MAX_SIZE_COMMAND_LINE_ARGS) {\n throw new IllegalStateException(\"Command is over 2MB in size\");\n }\n\n appendExecutablePath(builder);\n\n\n // adding command line arguments require by nautical_processBoatLogs\n // from index 1, 0 is reserve for the binary itself\n for (SubProcessCommandLineArgs.Command s : commands.getParameters()) {\n\n String[] cmdArr = s.getValueArr();\n\n for (int i = 0; i < cmdArr.length; i++) {\n\n builder.command().add(i + 1, cmdArr[i]);\n }\n }\n\n return builder;\n }",
"private void setParentProcess(List<Process> result)\r\n\t{\r\n\t\tif (ValidationUtil.isNullOrEmpty(result))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// In case the Process has parent, get it too\r\n\t\tfor (Process process : result)\r\n\t\t{\r\n\t\t\tif (!ValidationUtil.isNull(process.getParentProcess())\r\n\t\t\t\t\t&& !ValidationUtil.isNullOrZero(process.getParentProcess().getId()))\r\n\t\t\t{\r\n\t\t\t\tprocess.setParentProcess(this.fetchProcessById(process.getParentProcess().getId()));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n protected void processRun() {\n try {\n if (helpOnly) helpOnly();\n else {\n if (hasPipedInput()) pipeVersion();\n else stdinVersion();\n }\n } catch (IOException e) {\n return; // Killed process\n }\n }",
"public void startProcessToEnd(boolean auth) {\n StartProcessResult startProcessResult = startProcessToCallActivity();\n // Driver 'Authorization' sub process node\n CommitTaskResult commitTaskResult = commitCallActivityToUserTask1(startProcessResult, auth);\n if (!auth) {\n // Now we are stuck at the first user node of the sub process 'User Authorization'\n commitTaskResult = commitCallActivityUserTask(commitTaskResult);\n }\n // Now we are stuck at the first user node of the parent process 'write complaint information'\n commitTaskResult = commitMainFlowUserTask1(commitTaskResult);\n // Now it is stuck in the second user node of the parent process, 'Generate Work Order', driving the completion of the parent process\n commitTaskResult = commitMainFlowUserTask2(commitTaskResult);\n\n assert commitTaskResult.getStatus() == ErrorEnum.SUCCESS.getErrNo();\n }",
"public void execute(DelegateExecution ex) throws Exception {\n\t\tString gotsid = getVar(ex, \"gotsid\");\n\t\tString name = getVar(ex, \"name\");\n\t\tString pipeline_name = getVar(ex, \"pipeline_name\");\n\t\tString submodule_name = getVar(ex, \"submodule_name\");\n\t\tString process_name = getVar(ex, \"processName\");\n\t\tString pipelineId = getVar(ex, \"pipeline_id\");\n\t\tString index = getVar(ex, \"array_indexer\");\n\t\tex.setVariable(\"reviewSubmodule\", \"false\");\n\t\tex.setVariable(\"refreshRate\", Database.getSystemConfig(\"jenkinsRefreshRate\").toString());\n\t\tex.setVariable(\"associated\", Database.isAssociated(gotsid));\n\t\tString info = \"Beginning\";\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", info);\n\t\tString deployName = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\"deploymentName\", index);\n\n\t\t// Get the config attributes and values by index\n\t\tMap results = Database.getConfigAttributesByIndex(gotsid, name, pipeline_name, submodule_name, process_name,\n\t\t\t\tindex);\n\t\tif (!process_name.equals(\"RequestBuild\")) {\n\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" phase for the deployment (\" + deployName + \") in the \"\n\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage has started.\";\n\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t}\n\n\t\t// Set each attribute's value during execution.\n\t\tIterator it = results.entrySet().iterator();\n\t\tboolean automatic = false;\n\t\twhile (it.hasNext()) {\n\t\t\tMap.Entry pair = (Map.Entry) it.next();\n\t\t\tString attribute_name = pair.getKey().toString().trim();\n\t\t\tString attribute_value = pair.getValue().toString().trim();\n\t\t\tif (attribute_name.equals(\"assignTo\") && (attribute_value == null || attribute_value.isEmpty())) {\n\t\t\t\tex.setVariable(\"assignTo\", AAFConnector.getAdminList(gotsid));\n\t\t\t} else if (attribute_name.equals(\"enableApproval\")\n\t\t\t\t\t&& (attribute_value == null || attribute_value.isEmpty() || attribute_value.equals(\"false\"))) {\n\t\t\t\tex.setVariable(\"isApproved\", true);\n\t\t\t\tex.setVariable(attribute_name, \"false\");\n\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been disabled in the \"\n\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage. This step has been skipped.\";\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t} else {\n\t\t\t\tif (attribute_name.equals(\"enableApproval\")) {\n\t\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been enabled in the \"\n\t\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage for the deployment configuration (\" + deployName + \").\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tex.setVariable(attribute_name, attribute_value);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tif (attribute_name.equals(\"automatic\") && attribute_value.equals(\"true\")) {\n\t\t\t\t\tautomatic = true;\n\t\t\t\t\tinfo = \"The \" + Database.getSubmoduleNameLabel(submodule_name) + \" phase for the deployment (\" + deployName\n\t\t\t\t\t\t\t+ \") has been configured to be handled automatically. Starting the automatic build and/or deployment process. Please wait...\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t}\n\t\t}\n\n\t\t// Set process description\n\t\tif (automatic) {\n\t\t\tString description = Database.getDescription(\"descriptionAutomatic\", pipeline_name, submodule_name,\n\t\t\t\t\tprocess_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t} else {\n\t\t\tString description = Database.getDescription(\"description\", pipeline_name, submodule_name, process_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t}\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", \"End\");\n\t}",
"public void onNewWorkProcesses(IDuccWork work, ICommandLine commandLine, Map<DuccId, IDuccProcess> newWorkProcessMap, Map<DuccId, IDuccProcess> newWorkProcessMapToUpdate);",
"@Override\n\t\t\tpublic void onProcess(int process) {\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"private String createExecutionLine() throws Exception {\n\t\t\n\t\tfinal StringBuilder buf = new StringBuilder();\n\t\t\n\t\t// Get the path to the workspace and the model path\n\t\tfinal String install = getDawnInstallationPath();\n\t\t\n\t\tbuf.append(install);\n\t\tbuf.append(\" -noSplash \");\n\t\t\n\t\tif (!progArgs.containsKey(\"application\")) {\n\t\t\tbuf.append(\" -application \");\n\t\t\tbuf.append(applicationName);\n\t\t}\n\t\t\n\t\tfinal String workspace = getWorkspace();\n\t\tif (!progArgs.containsKey(\"data\")) {\n\t\t\tbuf.append(\" -data \");\n\t\t\tbuf.append(workspace);\n\t\t}\n\t\t\n\t\tif (progArgs!=null) {\n\t\t\tfor(String name : progArgs.keySet()) {\n\t\t\t\tbuf.append(\" -\");\n\t\t\t\tbuf.append(name);\n\t\t\t\tbuf.append(\" \");\n\t\t\t\tString value = progArgs.get(name).toString().trim();\n\t\t\t\tif (value.contains(\" \")) buf.append(\"\\\"\");\n\t\t\t\tbuf.append(value);\n\t\t\t\tif (value.contains(\" \")) buf.append(\"\\\"\");\n\t\t\t}\n\t\t}\n\t\n\t\tif (propertiesFile==null && sysProps!=null && propagateSysProps) {\n\t\t\tbuf.append(\" -vmargs \");\n\t\t\tfor(String name : sysProps.keySet()) {\n\t\t\t\tbuf.append(\" \");\n\t\t\t\tbuf.append(\"-D\");\n\t\t\t\tbuf.append(name);\n\t\t\t\tbuf.append(\"=\");\n\t\t\t\tString value = sysProps.get(name).toString().trim();\n\t\t\t\tif (value.contains(\" \")) buf.append(\"\\\"\");\n\t\t\t\tbuf.append(value);\n\t\t\t\tif (value.contains(\" \")) buf.append(\"\\\"\");\n\t\t\t}\n\t\t}\n\t\tif (xmx!=null || xms!=null) {\n\t\t\tif (!buf.toString().contains(\"-vmargs\")) buf.append(\" -vmargs \");\n\t\t\tif (xms!=null) {\n\t\t\t\tbuf.append(\"-Xms\");\n\t\t\t\tbuf.append(xms);\n\t\t\t}\n\t\t\tif (xmx!=null) {\n\t\t\t\tbuf.append(\"-Xmx\");\n\t\t\t\tbuf.append(xmx);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (sysProps.containsKey(\"logLocation\") && propagateSysProps) {\n\t\t\t// Two spaces deals with the value of the last property being \\\n\t\t\tbuf.append(\" > \"+sysProps.get(\"logLocation\"));\n\t\t} else if (propagateSysProps){\n\t\t\t// Two spaces deals with the value of the last property being \\\n\t\t\tbuf.append(\" > \"+workspace+\"/consumer.log\");\n\t\t}\n\n\t\treturn buf.toString();\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\trootExecutable.feedbackDisable();\r\n\t\t\t\tif(executable instanceof ViewGroup){recursivelyResetExecutables((ViewGroup)rootExecutable);}\r\n\t\t\t}",
"public void execute() {\n EventExecutor executor = this.ctx.executor();\n if (executor.inEventLoop()) {\n DefaultChannelPipeline.this.callHandlerAdded0(this.ctx);\n return;\n }\n try {\n executor.execute(this);\n } catch (RejectedExecutionException e) {\n if (DefaultChannelPipeline.logger.isWarnEnabled()) {\n DefaultChannelPipeline.logger.warn(\"Can't invoke handlerAdded() as the EventExecutor {} rejected it, removing handler {}.\", executor, this.ctx.name(), e);\n }\n DefaultChannelPipeline.remove0(this.ctx);\n this.ctx.setRemoved();\n }\n }",
"public interface MasterProcessChannelProcessorFactory extends Closeable {\n /**\n * Evaluates the {@code channelConfig}.\n *\n * @param channelConfig a connection string used by the fork JVM\n * @return {@code true} if {@code channelConfig} is applicable and thus this SPI is eligible in the fork\n */\n boolean canUse(String channelConfig);\n\n /**\n * Open a new connection.\n *\n * @param channelConfig e.g. \"pipe://3\" or \"tcp://localhost:65035\"\n * @throws IOException if cannot connect\n */\n void connect(String channelConfig) throws IOException;\n\n /**\n * Decoder factory method.\n * @param forkingArguments forking arguments\n * @return a new instance of decoder\n */\n MasterProcessChannelDecoder createDecoder(@Nonnull ForkNodeArguments forkingArguments) throws IOException;\n\n /**\n * Encoder factory method.\n * @param forkingArguments forking arguments\n * @return a new instance of encoder\n */\n MasterProcessChannelEncoder createEncoder(@Nonnull ForkNodeArguments forkingArguments) throws IOException;\n}",
"public interface ProcessRegisterCallback {\n void call(Object process, ProcessExecutorParams params, ImmutableMap<String, String> context);\n }",
"private synchronized void startRuntimeIfNeeded() {\n if (childProcess != null) {\n return;\n }\n\n // If JSII_DEBUG is set, enable traces.\n final String jsiiDebug = System.getenv(\"JSII_DEBUG\");\n final boolean traceEnabled = jsiiDebug != null\n && !jsiiDebug.isEmpty()\n && !jsiiDebug.equalsIgnoreCase(\"false\")\n && !jsiiDebug.equalsIgnoreCase(\"0\");\n\n // If JSII_RUNTIME is set, use it to find the jsii-server executable\n // otherwise, we default to \"jsii-runtime\" from PATH.\n final String jsiiRuntimeEnv = System.getenv(\"JSII_RUNTIME\");\n final List<String> jsiiRuntimeCommand = jsiiRuntimeEnv == null\n ? Arrays.asList(\"node\", BundledRuntime.extract(getClass()))\n : Collections.singletonList(jsiiRuntimeEnv);\n\n if (traceEnabled) {\n System.err.println(\"jsii-runtime: \" + String.join(\" \", jsiiRuntimeCommand));\n }\n\n try {\n final ProcessBuilder pb = new ProcessBuilder()\n .command(jsiiRuntimeCommand)\n .redirectError(ProcessBuilder.Redirect.PIPE)\n .redirectOutput(ProcessBuilder.Redirect.PIPE)\n .redirectInput(ProcessBuilder.Redirect.PIPE);\n pb.environment().put(\"JSII_AGENT\", String.format(\"Java/%s\", System.getProperty(\"java.version\")));\n if (jsiiDebug != null) {\n pb.environment().put(\"JSII_DEBUG\", jsiiDebug);\n }\n\n this.childProcess = pb.start();\n\n this.stdin = new OutputStreamWriter(this.childProcess.getOutputStream(), StandardCharsets.UTF_8);\n this.stdout = new BufferedReader(new InputStreamReader(this.childProcess.getInputStream(), StandardCharsets.UTF_8));\n\n this.errorStreamSink = new ErrorStreamSink(this.childProcess.getErrorStream());\n this.errorStreamSink.start();\n } catch (final IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n\n this.shutdownHook = new Thread(this::terminate, \"Terminate jsii client\");\n Runtime.getRuntime().addShutdownHook(this.shutdownHook);\n\n handshake();\n\n this.client = new JsiiClient(this);\n }",
"Process createProcess();",
"private ManufactureProcess createNewManufactureProcess() {\n\t\tManufactureProcess result = null;\n\n\t\tif (workshop.getTotalProcessNumber() < workshop.getSupportingProcesses()) {\n\n\t\t\tint skillLevel = getEffectiveSkillLevel();\n\t\t\tint techLevel = workshop.getTechLevel();\n\n\t\t\t// Determine all manufacturing processes that are possible and profitable.\n\t\t\tMap<ManufactureProcessInfo, Double> processProbMap = new HashMap<ManufactureProcessInfo, Double>();\n\t\t\tIterator<ManufactureProcessInfo> i = ManufactureUtil\n\t\t\t\t\t.getManufactureProcessesForTechSkillLevel(techLevel, skillLevel).iterator();\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tManufactureProcessInfo processInfo = i.next();\n\t\t\t\tif (ManufactureUtil.canProcessBeStarted(processInfo, workshop)) {\n\t\t\t\t\tdouble processValue = 0;\n\t\t\t\t\tif (person != null)\n\t\t\t\t\t\tprocessValue = ManufactureUtil.getManufactureProcessValue(processInfo, person.getSettlement());\n\t\t\t\t\telse if (robot != null)\n\t\t\t\t\t\tprocessValue = ManufactureUtil.getManufactureProcessValue(processInfo, robot.getSettlement());\n\n\t\t\t\t\tif (processValue > 0D) {\n\t\t\t\t\t\tprocessProbMap.put(processInfo, processValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Randomly choose among possible manufacturing processes based on their\n\t\t\t// relative profitability.\n\t\t\tManufactureProcessInfo chosenProcess = null;\n\t\t\tif (!processProbMap.isEmpty()) {\n\t\t\t\tchosenProcess = RandomUtil.getWeightedRandomObject(processProbMap);\n\t\t\t}\n\n\t\t\t// Create chosen manufacturing process.\n\t\t\tif (chosenProcess != null) {\n\t\t\t\tresult = new ManufactureProcess(chosenProcess, workshop);\n\t\t\t\tworkshop.addProcess(result);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"protected void createHMetisExec() {\n\t\tString[] pathPrefix = {PTUtils.getResourcesFilepath(),\"executable\",\"applications\",\"HMetis\"};\n\t\tString cmd = \"\";\n\t\tcmd += Utils.getPath(pathPrefix);\n\t\tif (Utils.isMac()) {\n\t\t\tcmd = cmd + \"OSX\";\n\t\t}\n\t\telse if (Utils.isUnix()) {\n\t\t\tcmd = cmd + \"Linux\";\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"OS not supported!\");\n\t\t}\n\t\tcmd += Utils.getFileSeparator();\n\t\tcmd += \"hmetis \";\n\t\tcmd += this.getHMetisInFile();\n\t\tcmd += \" \";\n\t\tcmd += this.getPartitioner().getPartition().getNumBlock();\n\t\t// UBfactor=1, Nruns=10, CType=1, RType=1, Vcycle=3, Reconst=0, dbglvl=0\n\t\tcmd += \" 1 10 1 1 3 0 0\";\n\t\tthis.setHMetisExec(cmd);\n\t}",
"private synchronized void startRuntimeIfNeeded() {\n if (childProcess != null) {\n return;\n }\n\n // If JSII_DEBUG is set, enable traces.\n final String jsiiDebug = System.getenv(\"JSII_DEBUG\");\n final boolean traceEnabled = jsiiDebug != null\n && !jsiiDebug.isEmpty()\n && !jsiiDebug.equalsIgnoreCase(\"false\")\n && !jsiiDebug.equalsIgnoreCase(\"0\");\n\n final List<String> jsiiRuntimeCommand = jsiiRuntimeCommand();\n if (traceEnabled) {\n System.err.println(\"jsii-runtime: \" + String.join(\" \", jsiiRuntimeCommand));\n }\n\n try {\n final ProcessBuilder pb = new ProcessBuilder()\n .command(jsiiRuntimeCommand)\n .redirectError(ProcessBuilder.Redirect.PIPE)\n .redirectOutput(ProcessBuilder.Redirect.PIPE)\n .redirectInput(ProcessBuilder.Redirect.PIPE);\n pb.environment().put(\"JSII_AGENT\", String.format(\"Java/%s\", System.getProperty(\"java.version\")));\n if (jsiiDebug != null) {\n pb.environment().put(\"JSII_DEBUG\", jsiiDebug);\n }\n\n this.childProcess = pb.start();\n\n this.stdin = new OutputStreamWriter(this.childProcess.getOutputStream(), StandardCharsets.UTF_8);\n this.stdout = new BufferedReader(new InputStreamReader(this.childProcess.getInputStream(), StandardCharsets.UTF_8));\n\n this.errorStreamSink = new ErrorStreamSink(this.childProcess.getErrorStream());\n this.errorStreamSink.start();\n } catch (final IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n\n this.shutdownHook = new Thread(this::terminate, \"Terminate jsii client\");\n Runtime.getRuntime().addShutdownHook(this.shutdownHook);\n\n handshake();\n\n this.client = new JsiiClient(this);\n }",
"public void coreProcess(Process coreProcess) {\r\n this.coreProcess = coreProcess;\r\n }",
"@Override\n public void notify(DelegateExecution delegateExecution) throws Exception {\n HistoryService historyService = delegateExecution.getEngineServices().getHistoryService();\n List<HistoricProcessInstance> historicProcessInstances = historyService.createHistoricProcessInstanceQuery().\n processInstanceId(delegateExecution.getProcessInstanceId()).list();\n if (historicProcessInstances.size() == 1) {\n HistoricProcessInstance instance = historicProcessInstances.get(0);\n BPMNAnalyticsHolder.getInstance().getBpmnDataPublisher().publishProcessEvent(instance);\n\n //publishing analytics data of service tasks in the process\n if(BPMNAnalyticsHolder.getInstance().getAsyncDataPublishingEnabled()){\n BPMNAnalyticsHolder.getInstance().getBpmnDataPublisher().publishServiceTaskEvent(historyService.\n createHistoricActivityInstanceQuery().processInstanceId(delegateExecution.getProcessInstanceId()));\n }\n }\n }",
"@Override\n public void execute(CrankstartContext crankstartContext, CrankstartCommandLine commandLine) throws Exception {\n final FrameworkFactory frameworkFactory = (FrameworkFactory)getClass().getClassLoader().loadClass(\"org.apache.felix.framework.FrameworkFactory\").newInstance();\n crankstartContext.setOsgiFramework(frameworkFactory.newFramework(crankstartContext.getOsgiFrameworkProperties()));\n crankstartContext.getOsgiFramework().start();\n final int nBundles = crankstartContext.getOsgiFramework().getBundleContext().getBundles().length;\n log.info(\"OSGi framework started, {} bundles installed\", nBundles);\n \n // Unless specified otherwise, stop processing the crankstart file if this is not the first\n // startup. Crankstart is meant for immutable instances.\n if(stopProcessing(commandLine, nBundles)) {\n crankstartContext.setAttribute(CrankstartContext.ATTR_STOP_CRANKSTART_PROCESSING, true);\n }\n }",
"Subprocess createSubprocess();",
"void execute(Executable executable);",
"@Override\n public void start() throws SyncProcessException {\n }",
"public VMProcess() {\n\t\tsuper();\n\t}",
"@Override\n public void process(SystemImplementation system,\n File runtimeDir,\n File outputDir,\n File[] includeDirs,\n IProgressMonitor monitor)\n throws GenerationException\n {\n super.process(system, runtimeDir, outputDir, includeDirs, monitor);\n generateMakefile((NamedElement) system, outputDir) ;\n super.executeMake(outputDir, runtimeDir, monitor);\n }",
"public Process() {\n\t\tthis(null);\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public Object callStatic(Class receiver, Object arg1) throws Throwable {\n if (receiver.equals(ProcessBuilder.class) && arg1 instanceof List) {\n return startPipeline((List<ProcessBuilder>) arg1, array.owner.getName());\n }\n return super.callStatic(receiver, arg1);\n }",
"@Override\n\tprotected Map<String, Object> executeProcess(Map<String, Object> params)\n\t\t\tthrows Exception {\n\t\tif (log.isDebugEnabled())log.debug(\"Ingresando a executeProcess\");\n\t\t//super.executeProceso();// (form, params);\n\t\t\n\t\treturn params;\n\t}",
"@Test\n public void testDynamicDeploy() throws Exception\n {\n ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration()\n .setJdbcDriver(\"com.mysql.jdbc.Driver\").setJdbcUrl(\"jdbc:mysql://localhost:3306/activiti\").setJdbcPassword(\"root\")\n .setJdbcUsername(\"root\").setDatabaseSchemaUpdate(\"false\").buildProcessEngine();\n\n // 1. Build up the model from scratch\n BpmnModel model = new BpmnModel();\n Process process = new Process();\n model.addProcess(process);\n process.setId(\"my-process\");\n process.setName(\"Qmplus test\");\n process.addFlowElement(createStartEvent());\n process.addFlowElement(createUserTask(\"task1\",\"First task\",\"fred\"));\n process.addFlowElement(createUserTask(\"task2\",\"Second task\",\"john\"));\n List<SequenceFlow> outgoing = new ArrayList<SequenceFlow>();\n outgoing.add(createSequenceFlow(\"task3\",\"task4\"));\n outgoing.add(createSequenceFlow(\"task3\",\"task2\"));\n process.addFlowElement(createParallelTask(\"task3\",\"option task\",outgoing));\n process.addFlowElement(createEndEvent());\n process.addFlowElement(createScriptTask(\"task4\",\"script task\",\"12343\"));\n\n process.addFlowElement(createSequenceFlow(\"start\",\"task1\"));\n process.addFlowElement(createSequenceFlow(\"task1\",\"task3\"));\n process.addFlowElement(createSequenceFlow(\"task3\",\"task2\"));\n process.addFlowElement(createSequenceFlow(\"task3\",\"task4\"));\n process.addFlowElement(createSequenceFlow(\"task2\",\"end\"));\n process.addFlowElement(createSequenceFlow(\"task4\",\"end\"));\n // 2. Generate graphical information\n new BpmnAutoLayout(model).execute();\n // 3. Deploy the process to the engine\n Deployment deployment = processEngine.getRepositoryService().createDeployment().addBpmnModel(\"dynamic-model.bpmn\",model)\n .name(\"Dynamic process deployment\").deploy();\n\n // 4. Start a process instance\n ProcessInstance processInstance = processEngine.getRuntimeService().startProcessInstanceByKey(\"my-process\");\n\n // 5. Check if task is available\n List<Task> tasks = processEngine.getTaskService().createTaskQuery().processInstanceId(processInstance.getId()).list();\n\n org.junit.Assert.assertEquals(1,tasks.size());\n Assert.assertEquals(\"First task\",tasks.get(0).getName());\n Assert.assertEquals(\"fred\",tasks.get(0).getAssignee());\n\n // 6. Save process diagram to a file\n InputStream processDiagram = processEngine.getRepositoryService().getProcessDiagram(processInstance.getProcessDefinitionId());\n FileUtils.copyInputStreamToFile(processDiagram,new File(\"diagrams/process.png\"));\n\n // 7. Save resulting BPMN xml to a file\n InputStream processBpmn = processEngine.getRepositoryService().getResourceAsStream(deployment.getId(),\"dynamic-model.bpmn\");\n FileUtils.copyInputStreamToFile(processBpmn,new File(\"diagrams/process.bpmn20.xml\"));\n\n // 8. create user\n CreateUser();\n // 9. create group\n createGroup();\n // 10. assign process to user\n\n }",
"@Override\n\tpublic void process() throws Exception {\n\n\t}",
"@Override\n\tpublic String OpenProcessPost() {\n\t\treturn null;\n\t}",
"private ManufactureProcess getRunningManufactureProcess() {\n\t\tManufactureProcess result = null;\n\n\t\tint skillLevel = getEffectiveSkillLevel();\n\t\tIterator<ManufactureProcess> i = workshop.getProcesses().iterator();\n\t\twhile (i.hasNext() && (result == null)) {\n\t\t\tManufactureProcess process = i.next();\n\t\t\tif ((process.getInfo().getSkillLevelRequired() <= skillLevel) && (process.getWorkTimeRemaining() > 0D)) {\n\t\t\t\tresult = process;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"void execSetupContext(ExecProcess ctx);",
"private int handleExec(int file, int argc, int argv){\n\t\tSystem.out.print(\"EXECUTING...\");\n\n\t\tif(argc < 1) return INVALID;\n\n\t\tString filename = readVirtualMemoryString(file, MAXSTRLEN);\n\n\t\tif(filename == null || !filename.endsWith(\".coff\")) return INVALID;\n\n\t\tString[] args = new String[argc];\n\n\t\tfor(int i=0; i<argc; i++){\n\t\t\tbyte[] buffer = new byte[4];\n\t\t\tif(readVirtualMemory(argv + i * 4, buffer) != 4)return INVALID;\n\t\t\tif((args[i] = readVirtualMemoryString(Lib.bytesToInt(buffer, 0), MAXSTRLEN)) == null) return INVALID;\n\t\t}\n\n\t\tSystem.out.println(\"Read arguments creating Child... XD\");\n\n\t\t//This is so we can use a child class process like new Process\n\t\tUserProcess child = UserProcess.newUserProcess();\n\t\tSystem.out.println(\"mpid: \"+ processId);\n\t\tSystem.out.println(\"cpid: \"+ child.processId);\n\n\t\tif(child.execute(filename, args)){\n\t\t\tchildProcesses.put(child.processId,child);\n\t\t\tchild.parentProcess = this;\n\t\t\treturn child.processId;\n\t\t}\n\n\t\treturn INVALID;\n\t}",
"public boolean add(ConProcess conProcess) throws AppException;",
"@Override\n\t\t\tpublic void descParam(HookParam param) {\n\t\t\t\tLogger.log_behavior(ProcessBuilderHook.class.getName(), \"Create New Process ->\");\n\t\t\t\tProcessBuilder pb = (ProcessBuilder) param.thisObject;\n\t\t\t\tList<String> cmds = pb.command();\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tfor(int i=0 ;i <cmds.size(); i++){\n\t\t\t\t sb.append(\"CMD\"+i+\":\"+cmds.get(i)+\" \");\n\t\t\t\t}\n\t\t\t\tLogger.log_behavior(ProcessBuilderHook.class.getName(), \"Command\" + sb.toString());\n\t\t\t}",
"@Test\r\n\tpublic void testProcessInstanceExec()\r\n\t{\r\n\t\tthis.processDefinition = this.jbpmService.parseXMLResource(PROCESS_FILE);\r\n\r\n\t\tthis.jbpmService.deployProcessDefinition(this.processDefinition);\r\n\r\n\t\t// Create the instance based on the latest definition\r\n\t\tProcessInstance processInstance = this.jbpmService.createProcessInstance(this.processDefinition.getName());\r\n\r\n\t\t// Make sure instance was created\r\n\t\tassertNotNull(\"Error: jbpmService failed to create process instance for process definition \\\"\"\r\n\t\t\t\t\t\t\t\t\t+ this.processDefinition.getName() + \"\\\".\", processInstance);\r\n\r\n\t\t// Should be at start node initially\r\n\t\tassertEquals(START_NODE_NAME, processInstance.getRootToken().getNode().getName());\r\n\r\n\t\t// Let's start the process execution\r\n\t\tthis.jbpmService.signalProcessInstance(processInstance.getId());\r\n\r\n\t\t// Now the process should be in the middle state.\r\n\t\t// Reload the instance through the service so root token gets updated\r\n\t\tprocessInstance = this.jbpmService.getProcessInstance(processInstance.getId());\r\n\t\tassertEquals(MIDDLE_NODE_NAME, processInstance.getRootToken().getNode().getName());\r\n\r\n\t\t// Leave middle node and transition to the end node.\r\n\t\tthis.jbpmService.signalProcessInstance(processInstance.getId());\r\n\r\n\t\t// After signal, should be at end-state of simple process\r\n\t\tassertTrue(this.jbpmService.hasProcessInstanceEnded(processInstance.getId()));\r\n\r\n\r\n\t\t// Verify we can retrieve state from database\r\n\t\t// Again, reload the instance through the service so root token is updated\r\n\t\tprocessInstance = this.jbpmService.getProcessInstance(processInstance.getId());\r\n\t\tassertEquals(END_NODE_NAME, processInstance.getRootToken().getNode().getName());\r\n\t}",
"ProcessTaskFactory<T> runAsCommand();",
"private int exec(UnixRuntime r, String[] argv, String[] envp) {\n for(int i=0;i<OPEN_MAX;i++) if(closeOnExec[i]) closeFD(i);\n r.fds = fds;\n r.closeOnExec = closeOnExec;\n // make sure this doesn't get messed with these since we didn't copy them\n fds = null;\n closeOnExec = null;\n \n r.gs = gs;\n r.sm = sm;\n r.cwd = cwd;\n r.pid = pid;\n r.parent = parent;\n r.start(argv,envp);\n \n state = EXECED;\n execedRuntime = r;\n \n return 0; \n }",
"public void execute(){\n if (pipeline != null){\n pipeline.addTask(this);\n } else {\n run();\n }\n }",
"public ExternalThreadPool(NIOWorker nw, int size) {\n super(nw, size);\n\n // Prepare bash piper for bindings\n installDir = nw.getInstallDir();\n String workingDir = nw.getWorkingDir();\n piperScript = installDir + PIPER_SCRIPT_RELATIVE_PATH + PIPE_SCRIPT_NAME;\n\n // Prepare pipes (one per thread)\n writePipeFiles = new String[size];\n readPipeFiles = new String[size];\n for (int i = 0; i < size; ++i) {\n writePipeFiles[i] = workingDir + PIPE_FILE_BASENAME + UUID.randomUUID().hashCode();\n readPipeFiles[i] = workingDir + PIPE_FILE_BASENAME + UUID.randomUUID().hashCode();\n }\n\n // Prepare data pipes\n writeDataPipeFile = workingDir + PIPE_FILE_BASENAME + UUID.randomUUID().hashCode();\n readDataPipeFile = workingDir + PIPE_FILE_BASENAME + UUID.randomUUID().hashCode();\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"PIPE Script: \" + piperScript);\n\n StringBuilder writes = new StringBuilder();\n writes.append(\"WRITE PIPE Files: \");\n for (int i = 0; i < writePipeFiles.length; ++i) {\n writes.append(writePipeFiles[i]).append(\" \");\n }\n writes.append(\"\\n\");\n LOGGER.debug(writes.toString());\n\n StringBuilder reads = new StringBuilder();\n reads.append(\"READ PIPE Files: \");\n for (int i = 0; i < readPipeFiles.length; ++i) {\n reads.append(readPipeFiles[i]).append(\" \");\n }\n reads.append(\"\\n\");\n LOGGER.debug(reads.toString());\n\n // Data pipes\n LOGGER.debug(\"WRITE DATA PIPE: \" + writeDataPipeFile);\n LOGGER.debug(\"READ DATA PIPE: \" + readDataPipeFile);\n }\n\n // Init main ProcessBuilder\n init();\n\n // Init TaskResultReader to retrieve task results (one per thread)\n taskResultReader = new TaskResultReader[size];\n for (int i = 0; i < size; ++i) {\n taskResultReader[i] = new TaskResultReader(readPipeFiles[i]);\n }\n\n // Add Shutdown Hook to ensure all sub-processes are closed\n LOGGER.debug(\"Add ExternalExecutor shutdown hook\");\n Runtime.getRuntime().addShutdownHook(new Ender(this));\n }",
"public interface IMavenProcess {\n\n /**\n * 构建Jar.\n * 该接口有一个抽象的层,实现有两种.\n * PackageJar 打包到本项目.\n * DeployJar 打包的Maven私服.\n */\n void buildJar(Config config) throws Exception;\n}",
"public ApplicationProcess(Map<String, String> progArgs, Map<String,String> sysProps) throws Exception {\n\t\tthis.progArgs = progArgs;\n\t\tthis.sysProps = sysProps;\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tRegistry aRegistry;\n\t\t\n\t\ttry {\n\t\t\tString RMIPortNum=args[0];\n\t\t\tint processID = Integer.parseInt(args[1]);\n\t\t\tint processCount = Integer.parseInt(args[2]);\n\t\t\tProcess exportedProcess = new Process(processID,processCount,RMIPortNum);\n\t\t\taRegistry = LocateRegistry.createRegistry(Integer.parseInt(RMIPortNum));\n\t\t\t\taRegistry.rebind(\"server\", exportedProcess);\n\t\t\tSystem.out.println(\"Process is Up and Running...\");\n\t\t\t//exportedProcess.moneyReceiveExecuter();\n\n\t\t\texportedProcess.snapShotTerminator();\n\t\t\tSystem.out.println(\"Press Enter when all Process are running\");\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tsc.nextLine();\n\t\t\t//exportedProcess.markerExecuter();\t\t\t\n\t\t\tif(processID==1)\n\t\t\t\texportedProcess.snapShotexecuter();\n\t\t\tif(processID!=1)\n\t\t\t\texportedProcess.snapShotExecuterpassive();\n\n\t\t\t//exportedProcess.snapShotTerminator();\n\t\t\texportedProcess.transactionExecuter();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}",
"private void buildProcessGraph() {\n\n BpmnProcessDefinitionBuilder builder = BpmnProcessDefinitionBuilder.newBuilder();\n\n // Building the IntermediateTimer\n eventBasedXorGatewayNode = BpmnNodeFactory.createBpmnEventBasedXorGatewayNode(builder);\n\n intermediateEvent1Node = BpmnNodeFactory.createBpmnIntermediateTimerEventNode(builder, NEW_WAITING_TIME_1);\n\n intermediateEvent2Node = BpmnNodeFactory.createBpmnIntermediateTimerEventNode(builder, NEW_WAITING_TIME_2);\n\n endNode1 = BpmnCustomNodeFactory.createBpmnNullNode(builder);\n endNode2 = BpmnCustomNodeFactory.createBpmnNullNode(builder);\n\n ControlFlowFactory.createControlFlowFromTo(builder, eventBasedXorGatewayNode, intermediateEvent1Node);\n ControlFlowFactory.createControlFlowFromTo(builder, intermediateEvent1Node, endNode1);\n\n ControlFlowFactory.createControlFlowFromTo(builder, eventBasedXorGatewayNode, intermediateEvent2Node);\n ControlFlowFactory.createControlFlowFromTo(builder, intermediateEvent2Node, endNode2);\n\n }",
"private void init() {\n LOGGER.info(\"Init piper ProcessBuilder\");\n String generalArgs = constructGeneralArgs();\n String specificArgs = getLaunchCommand();\n if (specificArgs == null) {\n ErrorManager.error(ERROR_GC);\n return;\n }\n ProcessBuilder pb = new ProcessBuilder(piperScript, generalArgs, specificArgs);\n try {\n // Set NW environment\n Map<String, String> env = getEnvironment(nw);\n\n addEnvironment(env, nw);\n\n pb.directory(new File(getPBWorkingDir()));\n pb.environment().putAll(env);\n pb.environment().remove(NIOTracer.LD_PRELOAD);\n pb.environment().remove(NIOTracer.EXTRAE_CONFIG_FILE);\n\n if (NIOTracer.isActivated()) {\n NIOTracer.emitEvent(Long.parseLong(NIOTracer.getHostID()), NIOTracer.getSyncType());\n }\n\n piper = pb.start();\n\n LOGGER.debug(\"Starting stdout/stderr gobblers ...\");\n try {\n piper.getOutputStream().close();\n } catch (IOException e) {\n // Stream closed\n }\n PrintStream out = ((ThreadPrintStream) System.out).getStream();\n PrintStream err = ((ThreadPrintStream) System.err).getStream();\n outputGobbler = new StreamGobbler(piper.getInputStream(), out, LOGGER);\n errorGobbler = new StreamGobbler(piper.getErrorStream(), err, LOGGER);\n outputGobbler.start();\n errorGobbler.start();\n } catch (IOException e) {\n ErrorManager.error(ERROR_PB, e);\n }\n\n // The ProcessBuilder is non-blocking but we block the thread for a short period of time to allow the\n // bash script to create the needed environment (pipes)\n try {\n Thread.sleep(PIPE_CREATION_TIME * size);\n } catch (InterruptedException e) {\n // No need to catch such exceptions\n }\n }",
"public void execute(PvmExecutionImpl execution) {\n\n PvmActivity activityToStart = execution.getNextActivity();\n execution.setNextActivity(null);\n\n PvmExecutionImpl propagatingExecution = execution.createConcurrentExecution();\n\n // set next activity on propagating execution\n propagatingExecution.setActivity(activityToStart);\n concurrentExecutionCreated(propagatingExecution);\n }",
"private static void plusProcessPath (final String psFileName) throws IOException {\r\n\t\tvar path = Paths.get (DIR.toString (), psFileName);\r\n\t\tvar lines = Files.readAllLines (path);\r\n\t\tif (lines.size () <= 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tlines.set (0, lines.get (0) + \" cwd exe cmdline\");\r\n\t\tfor (int i = 1 ; i < lines.size () ; i++) {\r\n\t\t\tvar s = new Scanner (lines.get (i));\r\n\t\t\ts.next (); // USER\r\n\t\t\tvar pid = s.next ();\r\n\t\t\tvar proc = Paths.get (\"/proc/\", pid);\r\n\t\t\tString cwd = \"\", exe = \"\", cmdline = \"\";\r\n\t\t\ttry { cwd = proc.resolve (\"cwd\").toRealPath ().toString (); }\r\n\t\t\tcatch (NoSuchFileException e) { /* ignore */ }\r\n\t\t\ttry { exe = proc.resolve (\"exe\").toRealPath ().toString (); }\r\n\t\t\tcatch (NoSuchFileException e) { /* ignore */ }\r\n\t\t\ttry { cmdline = Files.readString (proc.resolve (\"cmdline\")); }\r\n\t\t\tcatch (NoSuchFileException e) { /* ignore */ }\r\n\t\t\tlines.set (i, String.format (\"%s %s %s %s\", lines.get (i), cwd, exe, cmdline));\r\n\t\t}\r\n\t\tFiles.write (path, lines);\r\n\t}",
"private void startProcess() {\r\n \t\tstartCount++;\r\n \t\tString threadName = Thread.currentThread().getName() + \"-starter-\" + startCount;\r\n \t\tThread starter = new Thread(threadName) {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\tstartupThrotle.acquireUninterruptibly();\r\n \t\t\t\tlong startTime = System.currentTimeMillis();\r\n \t\t\t\tMaximaProcess mp = makeProcess();\r\n \t\t\t\tstartupTimeHistory.add(System.currentTimeMillis() - startTime);\r\n \t\t\t\tmp.deactivate();\r\n \t\t\t\tpool.add(mp);\r\n \t\t\t\tstartupThrotle.release();\r\n \t\t\t}\r\n \t\t};\r\n \t\tstarter.start();\r\n \t}",
"public void execute() throws MojoExecutionException, MojoFailureException {\n checkConfiguration();\n\n String mode;\n String[] bindings;\n String[] classpaths;\n\n if (\"pom\".equalsIgnoreCase(project.getPackaging()))\n {\n getLog().info(\"Not running JiBX binding compiler for pom packaging\");\n \treturn;\t\t// Don't bind jibx if pom packaging\n }\n \n if (isMultiModuleMode()) {\n if (isRestrictedMultiModuleMode()) {\n mode = \"restricted multi-module\";\n } else {\n mode = \"multi-module\";\n }\n bindings = getMultiModuleBindings();\n classpaths = getMultiModuleClasspaths();\n } else {\n mode = \"single-module\";\n bindings = getSingleModuleBindings();\n classpaths = getSingleModuleClasspaths();\n }\n\n if (interfaceClassNames.size() == 0) {\n getLog().info(\"Not running JiBX2WSDL (\" + mode + \" mode) - no class interface files\");\n } else {\n getLog().info(\"Running JiBX binding compiler (\" + mode + \" mode) on \" + interfaceClassNames.size()\n + \" interface file(s)\");\n \n try {\n java.util.List<String> args = new Vector<String>();\n\n for (int i = 0; i< classpaths.length; i++)\n {\n args.add(\"-p\");\n \targs.add(classpaths[i]);\n }\n \n args.add(\"-t\");\n args.add(outputDirectory);\n \n if (customizations.size() > 0) {\n args.add(\"-c\");\n for (String customization : customizations) {\n args.add(customization);\n }\n }\n\n for (Map.Entry<String,String> entry : options.entrySet()) {\n String option = \"--\" + entry.getKey() + \"=\" + entry.getValue();\n if ((entry.getKey().toString().length() == 1) && (Character.isLowerCase(entry.getKey().toString().charAt(0))))\n {\n \tgetLog().debug(\"Adding option : -\" + entry.getKey() + \" \" + entry.getValue());\n \targs.add(\"-\" + entry.getKey());\n \targs.add(entry.getValue());\n }\n else\n {\n \t getLog().debug(\"Adding option: \" + option);\n \t args.add(option);\n }\n }\n if (bindings.length > 0)\n {\n args.add(\"-u\");\n StringBuilder arg = new StringBuilder();\n \tfor (int i = 0 ; i < bindings.length; i++)\n \t{\n \t\tif (arg.length() > 0)\n \t\t\targ.append(';');\n \t\targ.append(bindings[i]);\n \t}\n \targs.add(arg.toString());\n }\n \n if (this.sourceDirectories.size() > 0)\n if (this.sourceDirectories.get(0) != null)\n if (this.sourceDirectories.get(0).toString().length() > 0)\n {\n args.add(\"-s\");\n StringBuilder arg = new StringBuilder();\n \tfor (int i = 0 ; i < sourceDirectories.size(); i++)\n \t{\n \t\tif (arg.length() > 0)\n \t\t\targ.append(';');\n \t\targ.append(sourceDirectories.get(i).toString());\n \t}\n \targs.add(arg.toString()); \t\n }\n if (verbose)\n args.add(\"-v\");\n\n for (String interfaceName : interfaceClassNames)\n {\n \targs.add(interfaceName);\n }\n\n Jibx2Wsdl.main((String[]) args.toArray(new String[args.size()]));\n\t \n } catch (JiBXException e) {\n\t e.printStackTrace();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t\n\t }\n }",
"@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}",
"private void makeBinariesExecutable() throws IOException {\n\t\tif (!isWindows()) {\n\t\t\tBundle bundle = Platform.getBundle(Activator.PLUGIN_ID);\n\t\t\tFile binDir = new File(FileLocator.toFileURL(FileLocator.find(bundle, new Path(\"bin\"), null)).getPath());\n\t\t\tnew File(binDir, \"align-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"filter-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"strip-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"shape-it\").setExecutable(true);\n\t\t}\n\t}",
"private void executeSimpleProcess(T input) {\n\t\ttry {\n\t\t\tprocess.accept(input, 0);\n\t\t\tdone(false);\n\t\t} catch (RuntimeException ex) {\n\t\t\tlog.error(ex.getMessage(), ex);\n\t\t\t// exception during size estimation\n\t\t\tshowNotification(ex.getMessage());\n\t\t\tsignalDone(true);\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t}",
"public boolean addProcess(Process p){\n\t\tioQueue.insert(p);\n\t\tstats.maxIOQueueSize = Math.max(stats.maxIOQueueSize, ioQueue.getQueueLength());\n\t\tif(currentProcess == null){\n\t\t\tstart();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"public ManagedProcess(final String executable, final Process process) {\n myProcess = process;\n myOutput = new StringBuilder();\n\n myLock = new ReentrantLock();\n myLogUpdated = myLock.newCondition();\n\n myReader = new BufferedReader(new InputStreamReader(\n myProcess.getInputStream()));\n\n new Thread(new OutputReader(), executable + \" Process Drain\").start();\n }",
"public <R extends IInsertionRequest> LSMEngineBuilder<T> buildInsertionManager(\n LevelProcessorChain<T, R, InsertRequestContext> levelProcessChain) {\n InsertionManager<T, R> insertionManager = new InsertionManager<>(lsmEngine.getWalManager());\n insertionManager.setLevelProcessorsChain(levelProcessChain);\n buildInsertionManager(insertionManager);\n return this;\n }",
"public DicomProcess() {\n\t\tsuper();\n\t}"
] |
[
"0.5629643",
"0.5629049",
"0.5590915",
"0.55460286",
"0.5530759",
"0.55082667",
"0.54307014",
"0.54292786",
"0.5396005",
"0.5385172",
"0.53674614",
"0.5357244",
"0.5275024",
"0.5273018",
"0.521717",
"0.52160466",
"0.5210161",
"0.5179879",
"0.5136753",
"0.5134866",
"0.51216626",
"0.5095044",
"0.5093581",
"0.5071671",
"0.5059688",
"0.5043805",
"0.50413364",
"0.5029311",
"0.50113374",
"0.49989533",
"0.4991833",
"0.49900427",
"0.49844688",
"0.4913418",
"0.48805797",
"0.4867413",
"0.4863855",
"0.485705",
"0.48525804",
"0.48433164",
"0.48433164",
"0.48362148",
"0.48362148",
"0.48362148",
"0.48362148",
"0.48362148",
"0.48362148",
"0.48362148",
"0.48355764",
"0.48320067",
"0.48293635",
"0.48235026",
"0.48173296",
"0.4803901",
"0.48006263",
"0.47911605",
"0.47710866",
"0.47661984",
"0.4763744",
"0.4740465",
"0.47333944",
"0.47316363",
"0.47157356",
"0.4715644",
"0.47097915",
"0.47076386",
"0.46960098",
"0.46699584",
"0.4662505",
"0.4654655",
"0.4653269",
"0.4650827",
"0.46463895",
"0.4644793",
"0.46433583",
"0.46363392",
"0.4625893",
"0.46101665",
"0.4606701",
"0.46062872",
"0.46056467",
"0.4603791",
"0.46033028",
"0.4597034",
"0.4596456",
"0.45898727",
"0.45875725",
"0.45870963",
"0.4576445",
"0.4575776",
"0.45752883",
"0.4567391",
"0.45671865",
"0.45646915",
"0.4563085",
"0.4563085",
"0.4558385",
"0.45526603",
"0.45524064",
"0.45461693"
] |
0.7150929
|
0
|
/ / Autogenerated Getters and Setters / Gets the list of components
|
@Override
public OgcPropertyList<AbstractProcess> getComponentList()
{
return components;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List<LComponent> getComponents()\n\t{\n\t\treturn this.components;\n\t}",
"public List<GComponent> getComponents()\n {\n return this.components;\n }",
"public ArrayList<String> getComponents() {\n\t\treturn this.components;\n\t}",
"public CachetComponentList getComponents() {\n JsonNode rootNode = get(\"components\");\n CachetComponentList compList = CachetComponentList.parseRootNode(rootNode);\n return compList;\n }",
"Set<Component> getComponents();",
"public ImmutableComponent[] getComponents(){\n\t return this.components;\n\t}",
"protected abstract Object[] getComponents();",
"public List<ServiceResultInterface> getComponents() {\n\t\treturn components;\n\t}",
"public List getPortletComponents() {\n return components;\n }",
"public List<ComponentType> getComponentsType() {\r\n\t\treturn ctDao.findAll();\r\n\t}",
"public Enumeration components() {\n\t\treturn null;\n\t}",
"private List<SimpleComponent> list() {\n\t\treturn this.list(null);\n\t}",
"public List<CriticalComponent> getCriticalComponents();",
"public abstract JComponent[] getComponents();",
"public abstract Map<String,List<Component>> getNamedComponents();",
"public abstract List<Component> getComponentsByName(String name);",
"private List<List<XGraph.XVertex>> getComponents() {\n scc = new SCC(graph);\n int componentCount = scc.findSSC();\n List<List<XGraph.XVertex>> components = new ArrayList<>();\n for (int i = 0; i < componentCount; i++) {\n components.add(new ArrayList<>());\n }\n for (Graph.Vertex vertex : graph) {\n CC.CCVertex component = scc.getCCVertex(vertex);\n components.get(component.cno - 1).add((XGraph.XVertex) vertex);\n }\n return components;\n }",
"public List getComponentIdentifierList() {\n return componentIdentifiers;\n }",
"public Collection getESBComponentNames()\n {\n \treturn( getFrameworkXMLParser().getAttributesForEachOccurance( \"component\", \"name\" ) );\n }",
"@Override\r\n public Collection<Component> selectComponentsList( Plugin plugin )\r\n {\r\n Collection<Component> componentList = new ArrayList<Component>( );\r\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin );\r\n daoUtil.executeQuery( );\r\n\r\n while ( daoUtil.next( ) )\r\n {\r\n Component component = new Component( );\r\n\r\n component.setId( daoUtil.getInt( 1 ) );\r\n component.setGroupId( daoUtil.getString( 2 ) );\r\n component.setTitle( daoUtil.getString( 3 ) );\r\n component.setDescription( daoUtil.getString( 4 ) );\r\n component.setArtifactId( daoUtil.getString( 5 ) );\r\n component.setVersion( daoUtil.getString( 6 ) );\r\n component.setComponentType( daoUtil.getString( 7 ) );\r\n\r\n componentList.add( component );\r\n }\r\n\r\n daoUtil.free( );\r\n\r\n return componentList;\r\n }",
"public int components() {\n return numOfComponents;\n }",
"public final Set<MindObject> getComponents(){\n Set<MindObject> components = new HashSet<>();\n\n components.add(this);\n\n for (MindObject subComponent: getDirectSubComponents()){\n components.add(subComponent);\n components.addAll(subComponent.getDirectSubComponents());\n }\n\n return components;\n }",
"public List<Component> getComponentNameList() throws Exception {\n\t\tLOGGER.info(\n\t\t\t\t\"Start of DataListTableBean.getComponentNameList()\");\n\t\ttry{\n\t\t\tcomponentNameList = componentService.findAllComponentName();\n\t\t} catch (Exception e) {\n\t\t\tmanageError(e, \"Error while getting Component List. \");\n\t\t}\n\t\tLOGGER.info(\n\t\t\t\t\"End of DataListTableBean.getComponentNameList()\");\n\t\treturn componentNameList;\n\t}",
"private static ArrayList<Component> getAllComponents(final Container c) {\n\t Component[] comps = c.getComponents();\n\t ArrayList<Component> compList = new ArrayList<Component>();\n\t for (Component comp : comps) {\n\t compList.add(comp);\n\t if (comp instanceof Container)\n\t compList.addAll(getAllComponents((Container) comp));\n\t }\n\t return compList;\n\t}",
"public int getNumberOfComponents() {\n return components;\n }",
"<T extends Component> Collection<T> getAllComponents(Class<T> type);",
"@Override\n public ListComponentsResult listComponents(ListComponentsRequest request) {\n request = beforeClientExecution(request);\n return executeListComponents(request);\n }",
"public Collection<SimulationComponent> getSimulationComponents() {\n return Collections.unmodifiableCollection(components);\n }",
"public List<Composite> getComposites() {\r\n\t\treturn _composites;\r\n\t}",
"@Override\n public List<TopComponent> getTopComponents() {\n synchronized(LOCK_TOPCOMPONENTS) {\n return topComponentSubModel.getTopComponents();\n }\n }",
"protected ComponentStruct[] getCASComponents() throws SessionQueryException\n {\n ComponentStruct[] cases = null;\n\n try\n {\n cases = getSessionManagementAdminService().getComponentsForType(Components.SOURCE_COMPONENT);\n\n GUILoggerHome.find().debug(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.SESSION_MANAGEMENT, cases);\n if (GUILoggerHome.find().isInformationOn())\n {\n GUILoggerHome.find().information(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.SESSION_MANAGEMENT,\n \"Found \" + cases.length + \" CAS Components\");\n }\n }\n catch(Exception e)\n {\n throw new SessionQueryException(\"Could not retrieve CAS Components.\", e);\n }\n\n return cases;\n }",
"@Override\n public int getNumComponents()\n {\n return components.size();\n }",
"@Override\n public abstract String getComponentType();",
"List<UIComponent> getChildren();",
"@GET\n\t@Path( \"/components\" )\n\t@Produces( MediaType.APPLICATION_JSON )\n\tList<Component> listComponents( @PathParam(\"name\") String applicationName );",
"@Override\n\tpublic List<Componentes> Listar() throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<ComponentTypeInfo> getComponentTypes() {\n\t\treturn Arrays.asList(activityComponentType, timelineComponentType, decisionComponentType , scenarioComponentType );\n\t}",
"public List<String> getLinkedComponentNames() {\n return linkedComponentNames;\n }",
"protected final Map getComponentMap()\n {\n return m_components;\n }",
"public Component getFileList() {\n final String fileListName;\n if (LookAndFeel.isMotif() || LookAndFeel.isGTK()) {\n fileListName = UIManager.getString(\"FileChooser.filesLabelText\", getLocale());\n } else {\n fileListName = UIManager.getString(\"FileChooser.filesListAccessibleName\", getLocale());\n }\n return innerSearcher.\n findComponent(new ComponentChooser() {\n @Override\n public boolean checkComponent(Component comp) {\n return ((comp instanceof JList && fileListName.equals(comp.getAccessibleContext().getAccessibleName()))\n || comp instanceof JTable);\n }\n\n @Override\n public String getDescription() {\n return \"JList or JTable used to show list of files\";\n }\n\n @Override\n public String toString() {\n return \"JFileChooserOperator.getFileList.ComponentChooser{description = \" + getDescription() + '}';\n }\n });\n }",
"private String[] getComponentArray(JComponent[] components)\r\n {\r\n\t int len = components.length;\r\n\t String[] values = new String[len];\r\n\t for (int i=0; i<len; i++)\r\n\t {\r\n\t\t values[i] = getComponentValue(components[i]);\r\n\t }\r\n\t return values;\r\n }",
"public List init(List list) {\n Iterator it = components.iterator();\n PortletComponent comp;\n while (it.hasNext()) {\n comp = (PortletComponent) it.next();\n comp.setTheme(theme);\n list = comp.init(list);\n }\n System.err.println(\"Made a components list!!!! \" + list.size());\n for (int i = 0; i < list.size(); i++) {\n ComponentIdentifier c = (ComponentIdentifier) list.get(i);\n System.err.println(\"id: \" + c.getComponentID() + \" : \" + c.getClassName() + \" : \" + c.hasPortlet());\n \n }\n componentIdentifiers = list;\n return componentIdentifiers;\n }",
"public Collection<InstrumentationComponent> getInstrumentationComponents() {\n return Collections.unmodifiableCollection(instruComps);\n }",
"public List<StatefullComponent> getFields() {\n\t\treturn null;\r\n\t}",
"List<Component> getVisualComponents(CallPeer peer);",
"public List<Component> getCompositeText() throws ExceptionRepository {\n if (text == null) {\n throw new ExceptionRepository(\"NO TEXT IN MEMORY\");\n }\n return new ArrayList<>(text.getComponents());\n\n }",
"Component getComponent() {\n/* 224 */ return this.component;\n/* */ }",
"public ComponentType getComponentType()\n {\n return this.componentType;\n }",
"public Component getComponent() {\n\treturn component;\n}",
"public String getComponent() {\n return this.component;\n }",
"public JComponent getComponent() {\n return itsComp;\n }",
"@Override\n public ASTRecordComponentList getRecordComponents() {\n return getFirstChildOfType(ASTRecordComponentList.class);\n }",
"@Override\n public List<TopComponent> getOpenedTopComponents() {\n synchronized(LOCK_TOPCOMPONENTS) {\n return topComponentSubModel.getOpenedTopComponents();\n }\n }",
"public Component getComponent() {\n return component;\n }",
"public static List<Component> getLComponent(Connector c)\n\t{\n\t\tList<Component> LComponent = new java.util.LinkedList<Component>();\n\t\tfor(Object o : c.getActualPort())\n\t\t{\n\t\t\tInnerPortReference ipr = (InnerPortReference) o;\n\t\t\tLComponent.add((Component)ipr.getTargetInstance().getTargetPart());\n\t\t}\n\t\treturn LComponent;\n\t}",
"public String getComponent() {\r\n\t\treturn component;\r\n\t}",
"public Object[] getNameComponentIDs() {\n\t\tif (_nameComponentIDs != null)\n\t\t\treturn _nameComponentIDs.toArray();\n\t\telse\n\t\t\treturn null;\n\t}",
"public int getNumberOfComponents() {\n\t\t\treturn nComponents;\n\t\t}",
"public static JComponent[] createPanelComponets() {\r\n\t\tJComponent[] c = new JComponent[6];\r\n\t\tc[0] = new JLabel(\"Login\");\r\n\t\tc[1] = new JTextField(\"\", 20);\r\n\t\tc[2] = new JLabel(\"Password\");\r\n\t\tc[3] = new JPasswordField(\"\", 20);\r\n\t\tc[4] = new JLabel(\"Re-enter Password\");\r\n\t\tc[5] = new JPasswordField(\"\", 20);\r\n\t\treturn c;\r\n\t}",
"@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/components\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<ComponentList, Component> listComponentForAllNamespaces();",
"@XmlElementWrapper(name = \"composants\")\r\n @XmlElement(name = \"composant\", required = false)\r\n public List<ComposantBase> getCompos()\r\n {\r\n if (compos == null)\r\n compos = new ArrayList<>();\r\n return compos;\r\n }",
"public final List<TipoComponenteVO> getTipoComponenteVOs() {\r\n\t\treturn tipoComponenteVOs;\r\n\t}",
"default Stream<Sketch> components() {\n return StreamExt.iterate(1, size(), 1).mapToObj(this::component).map(Optional::get);\n }",
"protected ComponentStruct[] getFrontEndComponents() throws SessionQueryException\n {\n ComponentStruct[] frontEnds = null;\n\n try\n {\n frontEnds = getSessionManagementAdminService().getComponentsForType(Components.CRITICAL_COMPONENT);\n\n GUILoggerHome.find().debug(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.SESSION_MANAGEMENT, frontEnds);\n if (GUILoggerHome.find().isInformationOn())\n {\n GUILoggerHome.find().information(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.SESSION_MANAGEMENT,\n \"Found \" + frontEnds.length + \" Front End Components\");\n }\n }\n catch(Exception e)\n {\n throw new SessionQueryException(\"Could not retrieve Front End Components.\", e);\n }\n\n return frontEnds;\n }",
"public Collection<String> getComponentsInPackage(String packageName)\n\t{\n\t\tNGPackageSpecification<WebObjectSpecification> pkg = reader.getWebComponentSpecifications().get(packageName);\n\t\treturn pkg == null ? Collections.<String> emptyList() : pkg.getSpecifications().keySet();\n\n\t}",
"@Override\r\n\t\tpublic ArrayList<Component> getFocusOrderList() {\n\t\t\treturn null;\r\n\t\t}",
"private void addComponents() {\n LOOGER.info(\"Get add Components Entry\");\n // Adding loadButton to first row.\n this.add(loadButton);\n\n // Adding fillButton to first row.\n this.add(fillButton);\n\n // Adding deleteButton to first row.\n this.add(deleteButton);\n LOOGER.info(\"add Components exit\");\n }",
"protected void getTopComponents(List comps) {\n Element chooserNode = getXmlNode();\n \n // Force ATTR_DSCOMP to be false before calling super.getTopComponents\n // We call getDataSourcesComponent later on\n boolean dscomp = XmlUtil.getAttribute(chooserNode, ATTR_DSCOMP, true);\n XmlUtil.setAttributes(chooserNode, new String[] { ATTR_DSCOMP, \"false\" });\n super.getTopComponents(comps);\n if (dscomp) {\n XmlUtil.setAttributes(chooserNode, new String[] { ATTR_DSCOMP, \"true\" });\n }\n }",
"public abstract int getComponentCount();",
"public List<CourseComponent> getChildContainers() {\n List<CourseComponent> childContainers = new ArrayList<>();\n if (children != null) {\n for (CourseComponent c : children) {\n if (c.isContainer())\n childContainers.add(c);\n }\n }\n return childContainers;\n }",
"public List<Component> getFocusableChildren ()\n {\n return focusTracker.getFocusableChildren ();\n }",
"public Class<?> getComponentType();",
"@RequestMapping(value = {\"/admin2543/view_components\"}, method = RequestMethod.GET)\n public String view_components(Model model) {\n List<Component> components = componentDAO.getAllComponents();\n \n model.addAttribute(\"component\", new Component());\n model.addAttribute(\"components\", components);\n model.addAttribute(\"componentGroups\", this.getComponentGroupNames());\n return \"admin2543/component\";\n }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn this;\n\t}",
"public java.beans.PropertyDescriptor[] getPropertyDescriptors() {\n\ttry {\n\t\tjava.beans.PropertyDescriptor aDescriptorList[] = {\n\t\t\tcomponentOrientationPropertyDescriptor()\n\t\t};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}",
"public List controls(){\n return controls;\n }",
"public CachetComponentGroupList getComponentGroups() {\n throw new RuntimeException(\"Method not implemented.\");\n }",
"public ArrayList<Component> getFocusOrderList() {\n\t\tArrayList<Component> loginOrder = new ArrayList<Component>();\r\n\t\tloginOrder.add(userName);\r\n\t\tloginOrder.add(password);\r\n\t\tloginOrder.add(groupList);\r\n\t\tloginOrder.add(loginButton);\r\n\t\tloginOrder.add(cancelButton);\r\n//\t\tfOrder.add(out.jTextField2);\r\n//\t\tfOrder.add(out.outRightDate);\r\n\t\treturn loginOrder;\r\n\t\t \r\n\t}",
"@Override\r\n\tpublic TypeWrapper getComponentType() {\n\t\treturn null;\r\n\t}",
"@Override\n public List<SynthComponent> recognizeModules()\n throws SynthComponentException, ComponentBuildException\n {\n Reply reply;\n try {\n Request.Builder rb = Request.newBuilder();\n rb.setCommand(Request.Command.DESCRIBE);\n Request request = rb.build();\n sendRequest(request);\n\n reply = receiveReply();\n System.out.println(reply);\n\n } catch (IOException ex) {\n throw new ComponentBuildException(\n NetRackConnector.class.getSimpleName()\n + \": Network error. host=\" + host + \", port=\"\n + port, ex);\n }\n\n // Build modules from the description. \n List<SynthComponent> components = new ArrayList<SynthComponent>();\n for (Component cnComponent : reply.getComponentList()) {\n SynthComponent module = fetchComponent(cnComponent);\n if (module != null) {\n components.add(module);\n }\n }\n\n return components;\n }",
"private void tryGetComponents() {\n\t\tutil.mask(pmsMessages.mskComponents());\n\n\t\tAsyncCallback<List<InheritedComponentInstanceSelDTO>> callback = new AsyncCallback<List<InheritedComponentInstanceSelDTO>>() {\n\t\t\tpublic void onFailure(Throwable arg0) {\n\t\t\t\tutil.unmask();\n\t\t\t\terrorProcessor.processError(arg0, errorMessageResolver, pmsMessages.msgErrorRetrieveComponents());\n\t\t\t}\n\n\t\t\tpublic void onSuccess(List<InheritedComponentInstanceSelDTO> arg0) {\n\t\t\t\tstore.removeAll();\n\t\t\t\tstore.clearFilters();\n\t\t\t\tfilter.setValue(null);\n\n\t\t\t\tList<InheritedComponentInstanceSelModelData> inheritedModelData = new LinkedList<InheritedComponentInstanceSelModelData>();\n\t\t\t\tfor (InheritedComponentInstanceSelDTO dto : arg0) {\n\t\t\t\t\tinheritedModelData.add(new InheritedComponentInstanceSelModelData(dto));\n\t\t\t\t}\n\t\t\t\tstore.add(inheritedModelData);\n\n\t\t\t\tutil.unmask();\n\t\t\t}\n\t\t};\n\t\tcomponentsService.getInheritedComponents(portalNameDto.getId(), callback);\n\t}",
"public void initComponents() {\n Iterator<Component> itComponent = this.components.iterator();\n while (itComponent.hasNext()) {\n itComponent.next().init(this);\n }\n\n Iterator<Script> itScript = this.scripts.iterator();\n while (itScript.hasNext()) {\n itScript.next().init(this);\n }\n System.out.println(this.owner.id + \" : \" + this.components.toString() + \" \" + this.scripts.toString());\n\n }",
"public void setPortletComponents(ArrayList components) {\n this.components = components;\n }",
"public void addComponents(){\r\n\r\n\t\t\tfor(int i=0; i < fieldNum ; i++){ \r\n\t\t\t\tadd(labels[i]);\r\n\t\t\t\tif(i==3){\r\n\t\t\t\t\tadd(fields[i]);\r\n\t\t\t\t\tfor(int k=1;k<ingredientFields.size();k++)\r\n\t\t\t\t\t\tadd(ingredientFields.get(k));\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t\tadd(fields[i]);\r\n\t\t\t}\r\n\r\n\t\t}",
"@Test\n\tvoid test4AddComponentToList() {\n\t\tlistItems.add(comp1);\n\t\tlistItems.add(comp2);\n\t\tvc = new VerticalComponentList(x, y, listItems,0);\n\t\tvc.addComponent(comp3);\n\t\tassertEquals(comp3.hashCode(), vc.getComponentsList().get(vc.getComponentsList().size() - 1).hashCode());\n\t}",
"protected Object[] get_ComponentInfo()\n {\n return new Object[]\n {\n \"ReporterMBean contains settings and statistics for the Coherence JMX Reporter.\",\n \"com.bea.owner=Context,com.bea.VisibleToPartitions=ALWAYS\",\n };\n }",
"protected final Component getComponent()\n\t{\n\t\treturn component;\n\t}",
"public interface ComponentsAware \n{\n\t/**\n\t * This method retrieves components by its name. If the component doesn't exist\n\t * it returns an empty List.\n\t * \n\t * @param name The name of the component we want to retrieve\n\t * @return The Component\n\t */\n\tpublic abstract List<Component> getComponentsByName(String name);\n\t\n\t/**\n\t * This method retrieves components by its name. If the component doesn't exist\n\t * it returns <code>null</code>.\n\t * \n\t * @param name The name of the component we want to retrieve\n\t * @return The Component\n\t */\t\n\tpublic abstract Component getComponentByName(String name);\n\t\n\t/**\n\t * It retrieves all the named components within the main Container\n\t * returned by this view.\n\t * \n\t * @return A map with all the named components\n\t */\n\tpublic abstract Map<String,List<Component>> getNamedComponents();\n\t\n\t/**\n\t * NamedComponents should be filled by an external delegator. It should inspect\n\t * the rootPane of the view and retrieve all named java.awt.Component components.\n\t * \n\t * @param namedComponents\n\t */\n\tpublic abstract void setNamedComponents(Map<String,List<Component>> namedComponents);\n}",
"private void addComponents()\n\t{\n\t\tPrinter currentPrinter;\n\t\tadd(m_ResultHeader);\n\t\tfor(int i = 2; i <= m_PrinterList.getNumberOfPrinters()+1; i++)\n\t\t{\n\t\t\t// Convert values to Strings\n\t\t\tcurrentPrinter = m_PrinterList.getPrinter(i-2);\n\t\t\tadd(new PrinterLabel(i,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\tcurrentPrinter.getPrinterName()+ \"\",\n\t\t\t\t\tcurrentPrinter.getVendor(),\n\t\t\t\t\tcurrentPrinter.getTension()+ \"\",\n\t\t\t\t\tcurrentPrinter.getCompression()+ \"\",\n\t\t\t\t\tcurrentPrinter.getImpact()+ \"\",\n\t\t\t\t\tcurrentPrinter.materialsString(),\n\t\t\t\t\tcurrentPrinter.getTolerance()+ \"\",\n\t\t\t\t\tcurrentPrinter.getFinish()+ \"\", true));\n\t\t}\n\t}",
"Map<?,?> getComponents();",
"public List<Widget> getWidgets() {\n return widgets;\n }",
"@Override\n public AbstractProcess getComponent(String name)\n {\n return components.get(name);\n }",
"public int getNumberOfComponents();",
"public Collection getBasicValidationList ()\n\t{\n\t\tArrayList list = new ArrayList();\n\t\tString className = getClassName();\n\n\t\tlist.add(createClassExistenceComponent(className));\n\t\tlist.add(createClassPersistenceComponent(className));\n\n\t\tlist.addAll(getDatabaseValidationList());\n\t\tlist.addAll(getFieldsValidationList());\n\n\t\treturn Collections.unmodifiableCollection(list);\n\t}",
"private void createComponents() {\n \n Dimension thisSize = this.getSize();\n \n this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));\n \n ArrayList<Integer> numbers = new ArrayList<>();\n for (int i = 0; i < recordCount; ++i) {\n numbers.add(i);\n }\n \n recordList = new JList(numbers.toArray());\n recordList.addListSelectionListener(selectionListener);\n JScrollPane listPane = new JScrollPane(recordList);\n listPane.setPreferredSize(new Dimension(thisSize.width / 3, thisSize.height));\n \n select(0, 0);\n \n this.add(listPane);\n \n recordForm = new RecordForm(fields, thisSize);\n entryForm = new JScrollPane(recordForm);\n \n this.add(entryForm);\n \n selectionAction = WAITING_ON_SELECTION;\n \n }",
"public static boolean[] getSelectedComponentsFilter() {\r\n return PCCTRL.selectedComponentsFilter;\r\n }",
"public Map<String, Component> getMapa_componentes() {\r\n\t\treturn tabboxContendor.getMapa_componentes();\r\n\t}",
"public <T extends Control> T[] getComponents(Class<T> clazz) {\r\n final List<Node> lst = new ArrayList<>(10);\r\n spatial.breadthFirstTraversal(new SceneGraphVisitorAdapter() {\r\n @Override\r\n public void visit(Node node) {\r\n if (node.getControl(clazz) != null) {\r\n lst.add(node);\r\n }\r\n }\r\n });\r\n return (T[]) lst.toArray();\r\n }",
"public List<?> modelObjects(final Iterator<? extends Component> components) {\n final List<Object> objects = new ArrayList<Object>();\n while (components.hasNext()) {\n objects\n .add(((Iterator<? extends Component>) components).next()\n .getDefaultModelObject());\n }\n return objects;\n }",
"public Object[] getNameComponentKinds() {\n\t\tif (_nameComponentKinds != null)\n\t\t\treturn _nameComponentKinds.toArray();\n\t\telse\n\t\t\treturn null;\n\t}"
] |
[
"0.8236949",
"0.811838",
"0.80852693",
"0.78121686",
"0.77906746",
"0.76757467",
"0.7448924",
"0.7377217",
"0.72936106",
"0.72503644",
"0.7183993",
"0.7136564",
"0.7104413",
"0.70481616",
"0.70392334",
"0.6967478",
"0.68086404",
"0.6793861",
"0.67437017",
"0.66933376",
"0.6658388",
"0.66251886",
"0.657931",
"0.65745056",
"0.65482116",
"0.65166944",
"0.6480512",
"0.6458547",
"0.63889396",
"0.63834685",
"0.6380343",
"0.6355057",
"0.6336966",
"0.6317195",
"0.6298616",
"0.62879956",
"0.6266679",
"0.62558067",
"0.6229353",
"0.62169456",
"0.62094605",
"0.6193659",
"0.6184412",
"0.6181082",
"0.61559623",
"0.6115318",
"0.61078256",
"0.6092629",
"0.60338235",
"0.60148257",
"0.6011636",
"0.60067916",
"0.6002745",
"0.59939104",
"0.5984602",
"0.5979975",
"0.59750575",
"0.59746724",
"0.59745336",
"0.59548765",
"0.59398997",
"0.59311366",
"0.59176236",
"0.5911691",
"0.5872611",
"0.5856497",
"0.58413553",
"0.5833294",
"0.5828841",
"0.5804181",
"0.58038527",
"0.57987845",
"0.5788408",
"0.577928",
"0.57775074",
"0.5777356",
"0.5755584",
"0.57249475",
"0.5722248",
"0.5718612",
"0.57099676",
"0.5701172",
"0.56996393",
"0.5691206",
"0.56899935",
"0.56777936",
"0.56586576",
"0.5657898",
"0.5653132",
"0.56519514",
"0.5635816",
"0.56353366",
"0.5629778",
"0.5626187",
"0.5625122",
"0.56235266",
"0.5620155",
"0.5618619",
"0.5612097",
"0.56091297"
] |
0.78153545
|
3
|
Returns number of components
|
@Override
public int getNumComponents()
{
return components.size();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getNumberOfComponents();",
"int countComponents() throws Exception;",
"public int getNumberOfComponents() {\n return components;\n }",
"public int components() {\n return numOfComponents;\n }",
"public int getNumberOfComponents() {\n\t\t\treturn nComponents;\n\t\t}",
"public abstract int getComponentCount();",
"public int getNumComps(){\n return this.mFarm.getNumComps();\n }",
"int getPartsCount();",
"int getPartsCount();",
"int getNumOfChunks();",
"public int getNumberOfElements();",
"public abstract Integer getNumberOfElements();",
"Long getNumberOfElement();",
"int getCellsCount();",
"int getChunksCount();",
"int getChunksCount();",
"public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}",
"public int getNumOfElements() {\n return numOfElements;\n }",
"int getBlockNumbersCount();",
"int getBlockNumsCount();",
"int getBlockNumsCount();",
"public int getNumVertices();",
"public int getNumElements()\n {\n return numElements;\n }",
"private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }",
"int getNumberOfVertexes();",
"public int count() {\n\t\treturn sizeC;\n\t}",
"public int totalCostOfComponents( ){\n\t\tint total=0;\n\t\tfor (Component temp : components){\n\t\t\ttotal+=temp.getCost();\n\t\t}\n\t\treturn total;\n\t}",
"int getNumSegments();",
"int getPropsCount();",
"public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}",
"public int getNumElements() {\n return numElements;\n }",
"public int getNumElements() {\n return numElements;\n }",
"public int getNumElements() {\n\t\treturn numElements;\n\t}",
"public int obtenerNumeroProductosComprados(){\n return listaProductosComprados.size();\n }",
"int getInputsCount();",
"int getInputsCount();",
"int getInputsCount();",
"private int numberOfComponents(ArrayList<Integer>[] adj) {\n\t\t\t\t\n\t\tint n = adj.length;\n\t\tvisited = new boolean[n]; //default is false\n\t\tCCnum = new int[n];\n\t\tDFS(adj);\n\t\t\n\t\treturn cc;\n }",
"public int getCompCount(){\n return this.compCount;\n }",
"int getTotalElements();",
"public int numVertices();",
"public int numVertices();",
"public static int size_count() {\n return (16 / 8);\n }",
"public int getNumberOfVertices();",
"public int getNumElements() {\n return mat.getNumCols()*mat.getNumRows();\n }",
"public int getNrOfElements() {\n return this.nrOfElements;\n }",
"public int getUnitCount() {\n return _elements.length;\n }",
"private int calcNumberOfColumns() {\n\t\tint result = 0;\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tresult = Math.max(result, pe.getNumberOfControls());\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"int getXYPairCount();",
"public Integer cantidadCompras(){\n\t\t// Implementar\n\t\treturn this.compras.size();\n\t}",
"public int getPartsCount() {\n if (partsBuilder_ == null) {\n return parts_.size();\n } else {\n return partsBuilder_.getCount();\n }\n }",
"public int getNumOfClasses();",
"public int size() {\n\t\treturn nvPairs.size() >> 1;\n\t}",
"public int getSize()\r\n\t{\r\n\t\treturn this.num.size();\r\n\t}",
"public int pixelCount()\n {\n int pixelCount = cat.getWidth() * cat.getHeight();\n return pixelCount;\n\n }",
"public int size() {\n\treturn slices*rows*columns;\n}",
"public static long getNumberStates(Component comp) {\n\t\tAtomType atomicType = (AtomType) comp.getType();\n\t\treturn ( (PetriNet) atomicType.getBehavior()).getState().size();\n\t}",
"public int getVertexCount();",
"public static int numElements() {\n return values().length;\n }",
"int numberOfDimensions();",
"public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }",
"int getNumParameters();",
"public int getNumElements() {\n return theMap.size();\n }",
"public int getRequiredCubeCount() {\n\t\treturn this.requiredMap.size();\n\t}",
"public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }",
"public static int numberOfElement()\n\t{\n\t\treturn REF_INT_STRING.size();\n\t}",
"int getLabelsCount();",
"int getLabelsCount();",
"int getLabelsCount();",
"int getLabelsCount();",
"int getDimensionsCount();",
"int getChunksLocationCount();",
"int getNodesCount();",
"int getNodesCount();",
"public Long getElementCount();",
"public int getVertexCount()\n\t{\n\t\tint count = 0;\n\t\tIterator<DSAGraphVertex> itr = vertices.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tcount++;\n\t\t\titr.next();\n\t\t}\n\t\treturn count;\n\t}",
"public int shapeCount()\n {\n // return the number of children in the list\n return children.size();\n }",
"int getFieldCount();",
"public int getSize() {\n\t\treturn numElements;\n\t}",
"public int getNumberOfStructures() {\n\t\tSet<String> cs = this.getMainInstance().getConfig().getConfigurationSection(\"Schematics\").getKeys(false);\n\t\treturn cs.size();\n\t}",
"int getPointsCount();",
"@Override\n\tpublic int numOfCollisions() {\n\n\t\treturn this.collision;\n\t}",
"int getIndicesCount();",
"public static int getNrAtoms(Structure s){\n \n int nrAtoms = 0;\n \n Iterator<Group> iter = new GroupIterator(s);\n \n while ( iter.hasNext()){\n Group g = (Group) iter.next();\n nrAtoms += g.size();\n }\n \n return nrAtoms;\n }",
"public int size() {\n return numOfElements;\n }",
"@Override\n\tpublic int numElements() {\n\t\treturn stencil.holes.length;\n\t}",
"public Integer getNumCompetitions() {\r\n return numCompetitions;\r\n }",
"public int getNumParams(Value params) {\n return m_Par.length*m_Par[0].length;\n }",
"public int getNumPairs()\n\t{\n\t\treturn pairs.size();\n\t}",
"public static int count() {\n return segmentList.size();\n }",
"public int size() {\r\n\t\tthis.size= 0;\r\n\t\tfor (DirectoryComponent item : DirectoryList){\r\n\t\t\tthis.size += item.size();\r\n\t\t}\r\n\t\treturn this.size;\r\n\t}",
"public int numberOfEllipsoids() { \r\n if (list.size() == 0) {\r\n return 0; \r\n }\r\n return list.size(); \r\n }",
"int getOutputsCount();",
"int getOutputsCount();",
"int getOutputsCount();",
"int getOutputsCount();",
"int getOutputsCount();",
"int getPortPairGroupCount();",
"public int getFileCount() {\n waitPainted(-1);\n Component list = getFileList();\n if(list instanceof JList)\n return ((JList)list).getModel().getSize();\n else if(list instanceof JTable)\n return ((JTable)list).getModel().getRowCount();\n else\n throw new IllegalStateException(\"Wrong component type\");\n }",
"public int size() {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\treturn numElements;\n\t}"
] |
[
"0.88997597",
"0.8379175",
"0.8340667",
"0.8154518",
"0.81440556",
"0.7704418",
"0.717097",
"0.71179265",
"0.71179265",
"0.7012394",
"0.69865483",
"0.6886258",
"0.6878581",
"0.6806332",
"0.6771219",
"0.6771219",
"0.6769161",
"0.67448825",
"0.67333215",
"0.67143655",
"0.67143655",
"0.67128956",
"0.6710673",
"0.668674",
"0.6678425",
"0.6673124",
"0.6643518",
"0.6643105",
"0.6636577",
"0.66286606",
"0.6621603",
"0.6621603",
"0.65941256",
"0.6571271",
"0.65556043",
"0.65556043",
"0.65556043",
"0.6530522",
"0.65273243",
"0.6521808",
"0.65216136",
"0.65216136",
"0.65067583",
"0.6504228",
"0.6500312",
"0.6479465",
"0.64695024",
"0.6458887",
"0.64554876",
"0.64510703",
"0.6440256",
"0.64312345",
"0.6417679",
"0.64135087",
"0.64114624",
"0.64048517",
"0.6391824",
"0.6388253",
"0.63875896",
"0.6387048",
"0.63811773",
"0.6380107",
"0.63779366",
"0.63717365",
"0.6366917",
"0.6360951",
"0.635341",
"0.635341",
"0.635341",
"0.635341",
"0.6345722",
"0.6333064",
"0.6329781",
"0.6329781",
"0.6328499",
"0.6327953",
"0.6321366",
"0.63203126",
"0.6286011",
"0.6284106",
"0.6280608",
"0.6278811",
"0.6278587",
"0.627571",
"0.6270618",
"0.62682056",
"0.62654275",
"0.6260273",
"0.6252597",
"0.62496257",
"0.6246588",
"0.6245754",
"0.624449",
"0.624449",
"0.624449",
"0.624449",
"0.624449",
"0.6244462",
"0.6243677",
"0.62427884"
] |
0.8082331
|
5
|
Gets the component with the given name
|
@Override
public AbstractProcess getComponent(String name)
{
return components.get(name);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Component getComponent(String name) {\n Optional<Component> component = elements.getComponent(name);\n\n if(component.isPresent()) {\n return component.get();\n } else {\n Assert.fail(\"Missing component \" + name);\n return null;\n }\n\n }",
"public abstract Component getComponentByName(String name);",
"public ServiceResultInterface getComponentByName(String name) {\n\t\tfor (ServiceResultInterface res : components) {\n\t\t\tif (res.getName().equals(name)) {\n\t\t\t\treturn res;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public JPanel getComponentAt( String name) {\n Component comp = null;\n for (Component child : this.getContentPane().getComponents()) {\n if (child.getName().equals(name)) {\n comp = child;\n }\n }\n return (JPanel)comp;\n }",
"public abstract List<Component> getComponentsByName(String name);",
"String getComponentName();",
"String getComponentName();",
"public static Object getComponentInstance(String name, ServletContext sc) {\r\n\t\tContainerWrapper containerWrapper = scf.findContainer(new ServletContextWrapper(sc));\r\n\t\tif (!containerWrapper.isStart()) {\r\n\t\t\tDebug.logError(\"JdonFramework not yet started, please try later \", module);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn containerWrapper.lookup(name);\r\n\t}",
"public static Object getComponentInstance(String name, HttpServletRequest request) {\r\n\t\tServletContext sc = request.getSession().getServletContext();\r\n\t\tContainerWrapper containerWrapper = scf.findContainer(new ServletContextWrapper(sc));\r\n\t\tif (!containerWrapper.isStart()) {\r\n\t\t\tDebug.logError(\"JdonFramework not yet started, please try later \", module);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn containerWrapper.lookup(name);\r\n\t}",
"BaseComponent getComponentName();",
"@VisibleForTesting\n ComponentName getComponentName() {\n return mComponentName;\n }",
"public static Component findComponentByName(DialogComponentProvider provider,\n\t\t\tString componentName) {\n\t\treturn findComponentByName(provider.getComponent(), componentName, false);\n\t}",
"public long checkComponent(String name) {\n\t\tif(sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name = ?\").setParameter(0, name).list().size()>0){\n\t\t\treturn ((Component)(sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name = ?\").setParameter(0, name).list().get(0))).getId();\n\t\t}\n\t\treturn -1;\n\t}",
"public Component getComponent(String path)\r\n {\r\n Class<? extends Component> componentClass = components.get(path);\r\n if (componentClass == null)\r\n {\r\n return null;\r\n }\r\n Constructor<?>[] constructors = componentClass.getConstructors();\r\n for (Constructor<?> constructor : constructors)\r\n {\r\n if ((constructor.getParameterTypes().length == 1) \r\n && (constructor.getParameterTypes()[0] == Component.class))\r\n {\r\n Component instance;\r\n try\r\n {\r\n instance = (Component) constructor.newInstance(new Object[] {null});\r\n } catch (InstantiationException | IllegalAccessException\r\n | IllegalArgumentException | InvocationTargetException e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n postConstruct(instance);\r\n return instance;\r\n }\r\n }\r\n throw new IllegalStateException(\"Component of class \" + componentClass.getName() \r\n + \" has no constructor with a single Component parameter\");\r\n }",
"public String getComponent() {\r\n\t\treturn component;\r\n\t}",
"public String getComponent() {\n return this.component;\n }",
"public String getComponentName() {\n\t\treturn componentName;\n\t}",
"@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/components/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Component> readNamespacedComponent(\n @Path(\"name\") String name,\n @Path(\"namespace\") String namespace);",
"public IComponent getNamedStructure(String name) throws JiBXException {\n\n // check for named component defined at this level\n IComponent comp = null;\n if (m_namedStructureMap != null) {\n comp = (IComponent)m_namedStructureMap.get(name);\n }\n if (comp == null) {\n if (m_context == null) {\n throw new JiBXException(\"Referenced label \\\"\" + name +\n \"\\\" not defined\"); \n } else {\n comp = m_context.getNamedStructure(name);\n }\n }\n return comp;\n }",
"public QName getComponentName() {\n return _componentName;\n }",
"public Component getComponent() {\n return component;\n }",
"public Object load(String compName) {\n\t\tif (this.preLoaded) {\n\t\t\treturn this.cachedOnes.get(compName);\n\t\t}\n\t\tString fileName = componentFolder + this.folder\n\t\t\t\t+ compName.replace(DELIMITER, FOLDER_CHAR) + EXTN;\n\t\tException exp = null;\n\t\tObject obj = null;\n\t\ttry {\n\t\t\tobj = this.cls.newInstance();\n\t\t\tif (XmlUtil.xmlToObject(fileName, obj) == false) {\n\t\t\t\t/*\n\t\t\t\t * load failed. obj is not valid any more.\n\t\t\t\t */\n\t\t\t\tobj = null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\texp = e;\n\t\t}\n\n\t\tif (exp != null) {\n\t\t\tTracer.trace(exp, \"error while loading component \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\tif (obj == null) {\n\t\t\tTracer.trace(\"error while loading component \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\t/*\n\t\t * we insist that components be stored with the right naming convention\n\t\t */\n\t\tComponent comp = (Component) obj;\n\t\tString fullName = comp.getQualifiedName();\n\n\t\tif (compName.equalsIgnoreCase(fullName) == false) {\n\t\t\tTracer.trace(\"Component has a qualified name of \" + fullName\n\t\t\t\t\t+ \" that is different from its storage name \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\treturn comp;\n\t}",
"protected String getComponentName() {\n return (component == null) ? \"*No Name*\" : component.toString();\n }",
"public abstract UIComponent getFacet(String name);",
"public Component getComponent(int componentId) {\r\n if (opened != null && opened.getId() == componentId) {\r\n return opened;\r\n }\r\n if (chatbox != null && chatbox.getId() == componentId) {\r\n return chatbox;\r\n }\r\n if (singleTab != null && singleTab.getId() == componentId) {\r\n return singleTab;\r\n }\r\n if (overlay != null && overlay.getId() == componentId) {\r\n return overlay;\r\n }\r\n for (Component c : tabs) {\r\n if (c != null && c.getId() == componentId) {\r\n return c;\r\n }\r\n }\r\n return null;\r\n }",
"public ComponentReferenceModelConnection getComponent( String name, ICancellationMonitor monitor ){\n for( ModelConnection connection : getConnections() ){\n if( connection.getTags().contains( ASTModel.IMPLEMENTATION )){\n ModelNode implementation = getDeclarationResolver().resolve( connection, monitor.getProgressMonitor() );\n monitor.checkCancellation();\n if( implementation != null ){\n for( ModelConnection implementationConnection : implementation.getConnections() ){\n if( implementationConnection.getTags().contains( ASTModel.COMPONENTS )){\n ModelNode components = getDeclarationResolver().resolve( implementationConnection, monitor.getProgressMonitor() );\n monitor.checkCancellation();\n if( components != null ){\n for( ModelConnection component : components.getConnections() ){\n if( component instanceof ComponentReferenceModelConnection ){\n ComponentReferenceModelConnection ref = (ComponentReferenceModelConnection)component;\n if( name.equals( ref.getName() ))\n return ref;\n }\n }\n }\n }\n }\n }\n \n return null;\n }\n }\n return null;\n }",
"public Unit getComponentValueByName(String name){\r\n switch(name){\r\n case \"R0\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(0);\r\n case \"R1\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(1);\r\n case \"R2\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(2); \r\n case \"R3\":\r\n return this.getCpu().getControlUnit().getGeneralPurposeRegister(3);\r\n case \"X1\":\r\n return this.getCpu().getControlUnit().getIndexRegister(1);\r\n case \"X2\":\r\n return this.getCpu().getControlUnit().getIndexRegister(2);\r\n case \"X3\":\r\n return this.getCpu().getControlUnit().getIndexRegister(3);\r\n case \"MAR\":\r\n return this.getMemory().getMAR();\r\n case \"MBR\":\r\n return this.getMemory().getMBR();\r\n case \"PC\":\r\n return this.getCpu().getControlUnit().getProgramCounter();\r\n case \"CC\":\r\n return this.getCpu().getControlUnit().getConditionCodeRegister();\r\n case \"IR\":\r\n return this.getCpu().getControlUnit().getInstructionRegister();\r\n default:\r\n return new Unit(13,0);\r\n \r\n } \r\n }",
"public ComponentName getComponentName() {\n return mInternal.getComponentName();\n }",
"private <T> T getComponent(Class<T> clazz) {\n List<T> list = Context.getRegisteredComponents(clazz);\n if (list == null || list.size() == 0)\n throw new RuntimeException(\"Cannot find component of \" + clazz);\n return list.get(0);\n }",
"public String componentName(int index) {\n\treturn(comp[index]);\n }",
"public <T extends Component> T getComponent(Class<T> componentType);",
"public Component getComponent(Class type) {\n for (Component component : components) {\n if (component.getClass().equals(type)) {\n return component;\n }\n }\n return null;\n }",
"public Object getBean(String name) {\n Object bean = beanMap.get(name);\n if (bean == null) {\n throw new IllegalArgumentException(\"there is no bean with name \" + name);\n }\n\n return bean;\n }",
"public Component getComponent() {\n\treturn component;\n}",
"@SuppressWarnings(\"unchecked\")\n\n\tprivate <T extends Component> T findComponent(Container root, String name) {\n\n\t\tfor (Component child : root.getComponents()) {\n\n\t\t\tif (name.equals(child.getName())) {\n\n\t\t\t\treturn (T) child;\n\n\t\t\t}\n\n\t\t\tif (child instanceof Container) {\n\n\t\t\t\tT subChild = findComponent((Container) child, name);\n\n\t\t\t\tif (subChild != null) {\n\n\t\t\t\t\treturn subChild;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn null;\n\n\t}",
"public Optional<ComponentSymbol> getComponent() {\r\n if (!this.getEnclosingScope().getSpanningSymbol().isPresent()) {\r\n return Optional.empty();\r\n }\r\n if (!(this.getEnclosingScope().getSpanningSymbol().get() instanceof ComponentSymbol)) {\r\n return Optional.empty();\r\n }\r\n return Optional.of((ComponentSymbol) this.getEnclosingScope().getSpanningSymbol().get());\r\n }",
"public ImageComponent fetchImageComponent(String filename)\n throws IOException\n {\n ImageComponent ret_val = (ImageComponent)componentMap.get(filename);\n \n if(ret_val == null)\n {\n ret_val = load2DImage(filename);\n componentMap.put(filename, ret_val);\n }\n \n return ret_val;\n }",
"<T> T getComponent(Object key);",
"public Component getComponent(long id) {\n\t\treturn (Component)sessionFactory.getCurrentSession().get(Component.class, id);\n\t}",
"public Component getComponent(String fieldAlias)\n {\n return fieldMap.get(fieldAlias);\n }",
"public <S> ComponentInstance<S> getComponentInstance();",
"public FrontEnd getFrontEndForName(String name) throws SessionQueryException\n {\n FrontEnd returnedFrontEnd = null;\n ComponentStruct component = null;\n\n try {\n component = getSessionManagementAdminService().getComponent(name);\n } catch (Exception e) {\n throw new SessionQueryException(String.format(\"Could not retrieve front end name for CAS %s.\",name),e);\n } \n\n if(component != null)\n {\n returnedFrontEnd = buildFrontEndComponent(component);\n }\n\n return returnedFrontEnd;\n }",
"@Override\n public Component find(String name) throws ItemNotFoundException {\n if(this.getName().equals(name))\n return this;\n\n for(Component c : children)\n try {\n return c.find(name);\n } catch (ItemNotFoundException e) {\n continue;\n }\n\n throw new ItemNotFoundException(\"\\\"\" + name + \" not found in \" + this.getName());\n }",
"public static Object getBean(String name) {\r\n\t\tWebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext();\r\n\t\treturn wac.getBean(name);\r\n\t}",
"public Service getServiceForName(String name) throws SessionQueryException\n {\n Service returnedService = null;\n\n try\n {\n ComponentStruct component = getSessionManagementAdminService().getComponent(name);\n returnedService = new Service(name, component.isRunning, component.isMaster);\n }\n catch(Exception e)\n {\n throw new SessionQueryException(String.format(\"Could not receive service for %s.\", name), e);\n }\n\n return returnedService;\n }",
"@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/namespaces/{namespace}/components/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Component> readNamespacedComponent(\n @Path(\"name\") String name,\n @Path(\"namespace\") String namespace, \n @QueryMap ReadNamespacedComponent queryParameters);",
"public CAS getCASForName(String name) throws SessionQueryException\n {\n CAS returnedCAS = null;\n ComponentStruct component = null;\n\n try {\n component = getSessionManagementAdminService().getComponent(name);\n } catch (Exception e) {\n throw new SessionQueryException(String.format(\"Could not retrieve info for CAS %s.\",name), e);\n }\n \n if(component != null)\n {\n returnedCAS = buildCASComponent(component);\n }\n\n return returnedCAS;\n }",
"<T extends Component> Optional<T> getComponent(Class<T> type);",
"Component getComponent() {\n/* 224 */ return this.component;\n/* */ }",
"private static int getComponentIdFromCompName(String compName){\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria componentCriteria = session.createCriteria(ComponentEntity.class);\n\t\tcomponentCriteria.add(Restrictions.eq(\"componentName\",compName));\n\t\tcomponentCriteria.add(Restrictions.eq(\"delInd\", 0));\n\t\tcomponentCriteria.setMaxResults(1);\n\t\tComponentEntity com =(ComponentEntity) componentCriteria.uniqueResult();\n\t\tint compId = 0;\n\t\tif(com != null){\n\t\t\tcompId = com.getComponentId();\n\t\t}\n\t\ttxn.commit();\n\t\treturn compId;\n\t}",
"public StatefullComponent getField(String name) {\n\t\treturn null;\r\n\t}",
"public EMAComponentSymbol getComponent() {\n return (EMAComponentSymbol) this.getEnclosingScope().getSpanningSymbol().get();\n }",
"public static ImageIcon get(String name) {\n return get(\"\", name);\n }",
"public Component select( Object hint )\n throws ComponentException\n {\n final Component component = (Component)m_components.get( hint );\n\n if( null != component )\n {\n return component;\n }\n else\n {\n throw new ComponentException( hint.toString(), \"Unable to provide implementation.\" );\n }\n }",
"public Object findBean(String beanName) {\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\treturn context.getApplication().evaluateExpressionGet(context, \"#{\" + beanName + \"}\", Object.class);\n\t}",
"public T get(String name) {\n\t\treturn get(name, 0);\n\t}",
"public List<Component> searchComponent(String name) {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name like '%\"+name+\"%'\")\n\t\t.setMaxResults(10)\n\t\t.list();\n\t}",
"String componentTypeName();",
"public Component getComponent() {\n if (getUserObject() instanceof Component)\n return (Component)getUserObject();\n return null;\n }",
"public ProductContainer getProductContainer(String name);",
"public X name(String name) {\n component.setName(name);\n return (X) this;\n }",
"public JComponent getComponentAtIndex(int i) {\n\t\tFancyTab tab= tabsPanel.getTabAt(i);\n\t\treturn tabMap.get(tab);\n\t}",
"public static Object lookupBean(String name) {\n BeanManager manager = lookupBeanManager();\n Set<Bean<?>> beans = manager.getBeans(name);\n if (beans != null && !beans.isEmpty()) {\n Bean<?> bean = beans.iterator().next();\n CreationalContext<?> context = manager.createCreationalContext(bean);\n return manager.getReference(bean, Object.class, context);\n }\n return null;\n }",
"public String getComponentName(ItemStack item) \t{ return tag(item) ? item.stackTagCompound.getString(\"componentName\") : null; }",
"public abstract Map<String,List<Component>> getNamedComponents();",
"private Command getCommandByName(String name) {\n for (Command command : commands) {\n if (command.getName().equals(name)) {\n return command;\n }\n }\n return null;\n }",
"public Object get(String name) {\n\t\tMap<?, ?> bindings = m_bindings.getBindings();\n\t\tif (bindings == null) {\n\t\t\tlog.info(\"get: no bindings!\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn bindings.get(name);\n\t}",
"public int getComponentID() {\n return COMPONENT_ID;\n }",
"protected Object lookup(String roleName) throws ComponentException \n\t{\n\t\tif (container == null) {\n\t\t\tif (containerType.equals(CONTAINER_ECM)) \n\t\t\t{\n\t\t\t\tcontainer = new ECMContainer();\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\tcontainer = new YAAFIContainer(logLevel);\n\t\t\t}\n\t\t\tcontainer.startup(getConfigurationFileName(), getRoleFileName(), getParameterFileName());\n\t\t}\n\t\treturn container.lookup(roleName);\n\t}",
"public String getName() {\n if (name == null && !nameExplicitlySet) {\n synchronized(this) {\n if (name == null && !nameExplicitlySet)\n name = constructComponentName();\n }\n }\n return name;\n }",
"public Component getOrCreateComponent(String componentName, Callable<Component> factory) {\n synchronized (components) {\n Component component = components.get(componentName);\n if (component == null) {\n try {\n component = factory.call();\n if (component == null) {\n throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n + \" component, it returned null.\");\n }\n components.put(componentName, component);\n component.setCamelContext(this);\n } catch (Exception e) {\n throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n + \" component\", e);\n }\n }\n return component;\n }\n }",
"protected final Component getComponent()\n\t{\n\t\treturn component;\n\t}",
"public JComponent getComponent();",
"public JComponent getComponent() {\n return getGradleUI().getComponent();\n }",
"public DynView getComp(String key)\n\t{\n\t\t\n\t\tDynView res = null; \t\n\t\tres = this.comps.get(key);\n\t\t\n\t\treturn res;\n\t}",
"Object getComponent(WebElement element);",
"public Product getProductWithName(String name) {\n for (Product s : products) {\n if (s.getName() == name) { return s;}\n }\n return null;\n }",
"@SuppressWarnings(\"unchecked\")\n public <T extends Component> T getComponent() {\n try {\n return (T) component;\n } catch (ClassCastException ex) {\n getLogger().log(Level.SEVERE,\n \"Component code/design type mismatch\", ex);\n }\n return null;\n }",
"public Text getByName(String name){\r\n\t\tfor (int i=0;i<thisDialog.size();i++){\r\n\t\t\tif (thisDialog.get(i).getName().equals(name)){\r\n\t\t\t\treturn thisDialog.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public <T> T getElement(String name) {\n return elements.get(name);\n }",
"public static Object get(String name) {\r\n\t\treturn getInstance().addResource(name);\r\n\t}",
"public void setComponentName(ComponentName name);",
"public static Controller getController(String name) {\n\t\treturn controllers.get(name);\n\t}",
"private GComponent getComponentAt(Point point)\n {\n // Create a reverse list iterator\n ListIterator<GComponent> it = this.components.listIterator(this.components.size());\n while (it.hasPrevious())\n {\n GComponent component = it.previous();\n \n // If this component is a the specified position, then return it\n if (component.getBounds().contains(point))\n return component;\n }\n \n // Nothing found, so return null\n return null;\n }",
"private Package_c getPackage(final String name) {\n\t\tPackage_c communication = Package_c.PackageInstance(modelRoot,\n\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tPackage_c selected = (Package_c) candidate;\n\t\t\t\t\t\treturn selected.getName().equals(name);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\treturn communication;\n\t}",
"<T extends Component> Optional<T> getExactComponent(Class<T> type);",
"CatalogItem getCatalogItemByName(String name);",
"public Object getBean(String name) {\r\n\t\tif (ctx == null) {\r\n\t\t\tctx = WebApplicationContextUtils\r\n\t\t\t\t\t.getRequiredWebApplicationContext(servlet\r\n\t\t\t\t\t\t\t.getServletContext());\r\n\t\t}\r\n\t\treturn ctx.getBean(name);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public static <T> T getBean(String name) {\n assertContextInjected();\n return (T) applicationContext.getBean(name);\n }",
"String constructComponentName() {\n return base + nameCounter++;\n }",
"public Entity getComponent() {\n return component;\n }",
"ComponentBuilder named(String label);",
"protected Component generateComp(String compName) {\n\t\treturn null;\n\t}",
"public IDomain getComponent(int index);",
"public Component componentAt( int x, int y ) {\n Component component = componentAt( x, y, desktop, true );\n if ( component != desktop ) {\n return component;\n }\n \n return null; \n }",
"@GET\n\t@Path( \"/components\" )\n\t@Produces( MediaType.APPLICATION_JSON )\n\tList<Component> listComponents( @PathParam(\"name\") String applicationName );",
"public IRubyObject getConstantFrom(String name) {\n return fastGetConstantFrom(name.intern());\n }",
"public static Texture get(String name){\n for(TextureHandler t : textures){\n if(t.getName().toLowerCase().equals(name.toLowerCase())){\n return t.getTexture();\n }\n }\n return error;\n }",
"public String getElement(String name) {\n\t\t\n\t\tField elementField = allElements.get(name);\n\t\tif (elementField == null) {\n\t\t\tthrow new ScenarioException(String.format(\"Element '%s' cannot be found among all classes. It may not have been defined\", name));\n\t\t}\n\t\t\n\t\tClass<?> pageClass = elementField.getDeclaringClass(); \n\t\t\n\t\t// create new page if we are not on it\n\t\tif (currentPage.get() == null || pageClass != currentPage.get().getClass()) {\n\t\t\ttry {\n\t\t\t\tcurrentPage.set((PageObject)pageClass.newInstance());\n\t\t\t} catch (InstantiationException | IllegalAccessException e) {\n\t\t\t\tthrow new ScenarioException(String.format(\"Page '%s' don't have default constructor, add it to avoid this error\", pageClass.getSimpleName()));\n\t\t\t}\n\t\t\tlogger.info(\"switching to page \" + pageClass.getSimpleName());\n\t\t}\n\t\t\n\t\tif (name.split(\"\\\\.\").length == 1) {\n\t\t\treturn name;\n\t\t} else {\n\t\t\treturn name.split(\"\\\\.\")[1];\n\t\t}\n\t}",
"public Product getProductFromName(String prodName) throws BackendException;"
] |
[
"0.84762293",
"0.81886446",
"0.73016566",
"0.7175024",
"0.71191114",
"0.71162105",
"0.71162105",
"0.70095706",
"0.69868517",
"0.65870017",
"0.6535281",
"0.65247166",
"0.64980406",
"0.6464322",
"0.6461174",
"0.6443699",
"0.6374033",
"0.63552976",
"0.6326128",
"0.6322457",
"0.6184125",
"0.61304194",
"0.61116534",
"0.6111472",
"0.6096404",
"0.60937464",
"0.60919255",
"0.6090331",
"0.60807663",
"0.60734445",
"0.60450125",
"0.60282576",
"0.6020076",
"0.60188127",
"0.5999931",
"0.5986323",
"0.59315705",
"0.5925725",
"0.59152794",
"0.58926576",
"0.5879129",
"0.58738256",
"0.5869986",
"0.5868372",
"0.58515316",
"0.58445346",
"0.583076",
"0.5825768",
"0.58247834",
"0.5814899",
"0.57924354",
"0.5779022",
"0.5770474",
"0.5769809",
"0.5765715",
"0.5750408",
"0.57484466",
"0.57450074",
"0.5744979",
"0.5740904",
"0.5731422",
"0.5722464",
"0.5721783",
"0.57197374",
"0.5715778",
"0.5646898",
"0.56465876",
"0.5645494",
"0.5636998",
"0.5624145",
"0.5619648",
"0.56183875",
"0.56131494",
"0.5611482",
"0.5605302",
"0.5583037",
"0.5552312",
"0.5529054",
"0.5528126",
"0.5524147",
"0.5519525",
"0.5517208",
"0.550462",
"0.54967403",
"0.54918975",
"0.548586",
"0.54754657",
"0.5466549",
"0.54578996",
"0.5445613",
"0.5429195",
"0.542602",
"0.5410922",
"0.54080397",
"0.5399547",
"0.5385407",
"0.5369184",
"0.536898",
"0.53689134",
"0.5365722"
] |
0.7449018
|
2
|
Adds a new component
|
@Override
public void addComponent(String name, AbstractProcess component)
{
components.add(name, component);
addProcessToExec(name, component);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void addComponent(Component component);",
"public void addComponent(Component c);",
"public void add(Component c){}",
"public void addComponent(String name, Component newComp);",
"public void addComponent(Component component){\n components.add(component);\n }",
"public abstract void add(KitComponent component);",
"public void add(Component component) {\n\t\tcomponents.add(component);\n\t}",
"void addComponents();",
"@Override\n\tpublic void add(Component component) {\n\t\tlist.add(component);\n\t}",
"public abstract void addComponent(DrawingComponent component);",
"public Component addComponent(Component component) {\n return popup.add(component);\n }",
"@Override\n\tpublic void addChild(IComponent c) {\n\t\tcomponents.add(c);\n\t}",
"@Override\n\tpublic void add(Component comp) {\n\t\t_childComponents.add(comp);\n\t}",
"@Override\n\tpublic void addComponent(Component c) {\n\t\troot.addComponent(c);\n\t}",
"public boolean addComponent(Component newComponent) { \n\n\t\tif (components.add(newComponent))\n\t\t\treturn true;\n\t\telse return false;\n\t}",
"private void addComponent(Component component, // the Component to add\n int row, // add Component at cell row 0..?\n int column, // add Component at cell column 0..?\n int width, // let the Component span this many cells wide\n int height) { // let the Component span this many cells high\n constraints.gridx = column; // store the four parameters in the constraints\n constraints.gridy = row;\n constraints.gridwidth = width;\n constraints.gridheight = height;\n layout.setConstraints(component, constraints); // set the constraints on the layout manager\n add(component); // before add the actual component to the Applet\n }",
"public X add(XComponent component) {\n return add(component.build());\n }",
"@Override\n public void add(Component c) {\n children.add(c);\n }",
"private void addComponent(Container container,Component c,int x,int y,int width,int height)\n {\n c.setBounds(x,y,width,height);\n container.add(c);\n }",
"public void addComponent(ComponentBase cdc) {\r\n// if (cdc instanceof ClassComponent) {\r\n// cdc = (ClassDiagramComponent) cdc;\r\n// }\r\n classDiagramComponents.add(cdc);\r\n }",
"public void addLayoutComponent(String name, Component component) { }",
"public void addComponent(DrawingComponent component) \n\t{\n\n\t\tLog.d(\"DrawingIndividual\", \"addComponent \" + component);\n\t\t\n\t\tif (component instanceof DrawingCompositeWord) \n\t\t{\n\t\t\tchanged = true;\n\n\t\t\tRectF bounds = ((DrawingCompositeWord) component).getBounds();\n\n\t\t\tRectF localBounds = new RectF();\n\n\t\t\tif (path != null)\n\t\t\t\tpath.computeBounds(localBounds, true);\n\n\t\t\tif (localBounds.contains(bounds))\n\t\t\t{\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (children.size() == 0) \n\t\t\t\t\t{\n\t\t\t\t\t\tchildren.add(component);\n\t\t\t\t\t\tcomponent.parent = this;\n\t\t\t\t\t\tcomponentChild = (DrawingCompositeWord) component;\n\t\t\t\t\t\t\n\t\t\t\t\t\tupdateDrawingComponent();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (DrawingComponent dc : ((DrawingCompositeWord) component).children)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdc.setDisplayState(this.displayState);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcomponent.setDisplayState(this.displayState);\n\t\t\t\t\t}\n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\tchanged = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (DrawingComponent dc : ((DrawingCompositeWord) component).children)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdc.setDisplayState(DisplayObjectState.NONE);\n\t\t\t\t\t\t}\t\t\n\n\t\t\t\t\t\tcomponent.setDisplayState(DisplayObjectState.NONE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tcomponent.parent.childrenToAdd.add(component);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor (DrawingComponent dc : ((DrawingCompositeWord) component).children)\n\t\t\t\t{\n\t\t\t\t\tdc.setDisplayState(DisplayObjectState.NONE);\n\t\t\t\t}\t\t\n\n\t\t\t\tcomponent.setDisplayState(DisplayObjectState.NONE);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse \n\t\t{\n\t\t\tchanged = false;\n\t\t\t\n\t\t\tcomponent.parent.childrenToAdd.add(component);\n\t\t}\n\t\t\n\t}",
"private static void addComponent() throws Exception {\n\t\tList<Component> list_components = componentManager.showComponents();\n\t\tfor (Component components : list_components) {\n\t\t\tSystem.out.println(components);\n\t\t}\n\t\tInteger id = new Integer(0);\n\t\tboolean wrongtext = false;\n\t\tdo {\n\t\t\tSystem.out.println(\"Introduce the selected component's id\");\n\t\t\tdo {\n\t\t\t\ttry {\n\t\t\t\t\tid = Integer.parseInt(reader.readLine());\n\t\t\t\t\twrongtext = false;\n\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\twrongtext = true;\n\t\t\t\t\tSystem.out.println(\"It's not a int, please enter a int.\");\n\t\t\t\t}\n\t\t\t} while (wrongtext);\n\t\t} while (componentManager.getComponent(id) == null);\n\t\tComponent toBeModified = componentManager.getComponent(id);\n\t\tSystem.out.println(toBeModified);\n\t\tint preexistingNumber = toBeModified.getNumberComponents();\n\t\tSystem.out.println(\"The number of components that are now avaiable are: \" + preexistingNumber);\n\t\t// System.out.println(\"Introduce the number of components you want to add: \");\n\t\tInteger numbercomponents = new Integer(0);\n\t\tboolean wrongtext1 = false;\n\t\tdo {\n\t\t\tSystem.out.println(\"Introduce the number of components you want to add: \");\n\t\t\ttry {\n\t\t\t\tnumbercomponents = Integer.parseInt(reader.readLine());\n\t\t\t\twrongtext1 = false;\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\twrongtext1 = true;\n\t\t\t\tSystem.out.println(\"It's not a int, please enter a int.\");\n\t\t\t}\n\t\t} while (wrongtext1);\n\t\tint updatedNumber = preexistingNumber + numbercomponents;\n\t\t// Component updateComponent=new Component(updatedNumber);\n\t\ttoBeModified.setNumberComponents(updatedNumber);\n\t\tcomponentManager.update(toBeModified);\n\t}",
"private void addComponent( Component component,\n\t\t\t\t\t\t\t int column, int row,\n\t\t\t\t\t\t\t int width, int height,\n\t\t\t\t\t\t\t int weightx, int weighty,\n\t\t\t\t\t\t\t Insets insets, int anchor, int fill )\n\t{\n\t\tgridBagConstraints.gridx = column; // set the gridx constraint\n\t\tgridBagConstraints.gridy = row; // set the gridy constraint\n\t\tgridBagConstraints.gridwidth = width; // set the gridwidth constraint\n\t\tgridBagConstraints.gridheight = height; // set the gridheight constraint\n\t\tgridBagConstraints.weightx = weightx; // set the weightx constraint\n\t\tgridBagConstraints.weighty = weighty; // set the weighty constraint\n\t\tgridBagConstraints.insets = insets; // set the insets constraint\n\t\tgridBagConstraints.anchor = anchor; // set the anchor constraint\n\t\tgridBagConstraints.fill = fill; // set the fill constraint\n\t\tgridBagLayout.setConstraints( component, gridBagConstraints ); // set the constraints for the component\n\t\tadd( component ); // add the component to the frame\n\t}",
"protected void add (Component component, int x, int y, int width, int height) {\n add(component,x,y,width,height,GridBagConstraints.BOTH,GridBagConstraints.NORTHWEST,0,0,0,0,0,0);\n }",
"public Component addComponent(Component c) {\n\t\tsessionFactory.getCurrentSession().save(c);\n\t\treturn c;\n\t}",
"@Override\npublic void add(VirtualComponent comp, int pos) {\n\t\n}",
"@Override\npublic void add(VirtualContainer parent, VirtualComponent comp, int pos) {\n\t\n}",
"private void addComponents() {\n LOOGER.info(\"Get add Components Entry\");\n // Adding loadButton to first row.\n this.add(loadButton);\n\n // Adding fillButton to first row.\n this.add(fillButton);\n\n // Adding deleteButton to first row.\n this.add(deleteButton);\n LOOGER.info(\"add Components exit\");\n }",
"public void addComponents(Component... components);",
"public void addLayoutComponent(String name, Component comp) {}",
"@Override\r\n\t\t\tpublic void componentAdded(ContainerEvent arg0){}",
"public boolean addComponent(GComponent comp){\n\t\t\tif(comp == null)\n\t\t\t\treturn false;\n\t\t\tif(paControls.contains(comp)){\n\t\t\t\tGMessenger.message(ADD_DUPLICATE, comp ,null);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpaControls.add(comp);\n\t\t\treturn true;\n\t\t}",
"public void addComponent(Component aComponent)\r\n {\r\n aComponent.addMouseListener(this);\r\n aComponent.addKeyListener(this);\r\n }",
"protected void add (Component component, int x, int y, int width, int height,int fill, int anchor,int ipadx, int ipady, double weightx, double weighty, int top, int left, int bottom, int right) {\n GridBagConstraints c = new GridBagConstraints();\n c.gridx = x;\n c.gridy = y;\n c.gridwidth = width;\n c.gridheight = height;\n c.fill = fill;\n c.anchor = anchor;\n c.anchor = anchor;\n c.weightx = weightx;\n c.weighty = weighty;\n c.ipadx=ipadx;\n c.ipady=ipady;\n c.insets = new Insets(top,left,bottom,right);\n ((GridBagLayout)this.getLayout()).setConstraints(component,c);\n this.add(component);\n }",
"public void addComponents(final Component... components) {\r\n\t\t_hSplit.addComponents(components);\r\n\t}",
"public X add(Component component) {\n this.component.add(component);\n return (X) this;\n }",
"@Override\n @Deprecated\n public Component add(Component component) {\n throw new UnsupportedOperationException(\" Use the instances of the class ComponentHack to add Components!\");\n }",
"public void addComponent(Component comp) {\n\t chatBox.add(comp);\n\t scrollPane.paintAll(getGraphics());\n\t scrollPane.getVerticalScrollBar().setValue(scrollPane.getVerticalScrollBar().getMaximum());\n\t repaint(); \n\t }",
"@Override\r\n public void addLayoutComponent(String s, Component component) {\r\n\r\n }",
"private void addComponents() {\n\t\tadd(newGame);\n\t\tadd(nameLabel);\n\t\tadd(nameField);\n\t\tadd(addPlayer);\n\t\tadd(gameTextPane);\n\t\tadd(playGame);\t\n\t\tadd(takeTurn);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\n\t}",
"public void addLayoutComponent(Component comp, Object constraints) {}",
"public void addComponents(){\n add(spelerIDLabel);\n add(typeLabel);\n add(codeLabel);\n add(heeftBetaaldLabel);\n\n add(spelerIDField);\n add(typeField);\n add(codeField);\n add(heeftBetaaldField);\n\n add(klaarButton);\n add(terugButton);\n\n }",
"private void addComponent(Component comp, int x, int y, int width) {\n if (comp.getClass().equals(JButton.class)) {\n gbc.fill = GridBagConstraints.HORIZONTAL;\n }\n gbc.gridx = x;\n gbc.gridy = y;\n gbc.gridwidth = width;\n frame.add(comp, gbc);\n }",
"public void addComponent(Component c) {\n for (Component C : components) {\n if (c.getClass().equals(C.getClass())) {\n return;\n }\n }\n components.add(c);\n c.setObject(this);\n }",
"public boolean add(Component component)\n {\n if(component.type == Type.APPLIANCE)\n {\n //Adds to the children component\n children.add(component);\n return true;\n }\n return false;\n }",
"protected abstract Component addContent();",
"public void addLayoutComponent(Component component, Object constraints) { }",
"Component createComponent();",
"Component createComponent();",
"public void pluginComponentAdded(PluginComponentEvent event)\n {\n PluginComponentFactory factory = event.getPluginComponentFactory();\n\n Component comp = (Component)factory.getPluginComponentInstance(\n ChatWindow.this).getComponent();\n\n // If this component has been already added, we have nothing more to do\n // here.\n if (comp.getParent() != null)\n return;\n\n if (factory.getContainer().equals(Container.CONTAINER_CHAT_WINDOW)\n || factory.getContainer().equals(\n Container.CONTAINER_CHAT_STATUS_BAR))\n {\n Object borderLayoutConstraints = UIServiceImpl\n .getBorderLayoutConstraintsFromContainer(\n factory.getConstraints());\n\n this.addPluginComponent(comp,\n factory.getContainer(),\n borderLayoutConstraints);\n }\n }",
"public void add(JComponent c)\n {\n\tif(managers == null)\n\t managers = new HashSet<JComponent>();\n\tmanagers.add(c);\n }",
"public void addComponent(ServiceResultInterface component) {\n\t\tif (!components.contains(component)) {\n\t\t\tcomponents.add(component);\n\t\t}\n\t}",
"public void addCompatibleComponent(Component c){\n compatibleComponents.add(c);\n }",
"public ADD() {\n initComponents();\n }",
"public void addComponentsToContainer()\n {\n\t container.add(welcome);\n container.add(amountLabel);\n container.add(amountText);\n container.add(depositButton);\n }",
"public Add() {\n initComponents();\n }",
"public void addToComponent(String objective, OpSystem system);",
"public void addComponent(JComponent component, int row, int col, int width, int height, int anchor, int fill) {\n \n constraints.gridx = col;\n constraints.gridy = row;\n constraints.gridwidth = width;\n constraints.gridheight = height;\n constraints.anchor = anchor;\n double weightx = 0.0;\n double weighty = 0.0;\n \n // only use extra horizontal or vertical space if component\n // spans more than one column and/or row.\n if(width > 1) weightx = 1.0;\n if(height > 1) weighty = 1.0;\n \n switch(fill) {\n case GridBagConstraints.HORIZONTAL:\n constraints.weightx = weightx;\n constraints.weighty = 0.0;\n break;\n case GridBagConstraints.VERTICAL:\n constraints.weighty = weighty;\n constraints.weightx = 0.0;\n break;\n case GridBagConstraints.BOTH:\n constraints.weightx = weightx;\n constraints.weighty = weighty;\n break;\n case GridBagConstraints.NONE:\n constraints.weightx = 0.0;\n constraints.weighty = 0.0;\n break;\n default:\n break;\n }\n constraints.fill = fill;\n add(component, constraints);\n }",
"@Override\n\tpublic void addSubComponent(Component component) {\n\n\t\tassert (component != null);\n\n\t\t// Check component is not already a subComponent\n\t\tif (subComponents.contains(component)) {\n\t\t\treturn;\n\t\t}\n\n\t\tsubComponents.add(component);\n\t\tcomponent.setSuperComponent(this);\n\t\tnotifySubComponentsChangedListeners();\n\t}",
"void addPlugin(BaseComponentPlugin baseComponent);",
"public void addComponentToCoolBar(Component component) {\n\t\t_coolBar.addComponent(component);\n\t}",
"@Override\n public CreateComponentResult createComponent(CreateComponentRequest request) {\n request = beforeClientExecution(request);\n return executeCreateComponent(request);\n }",
"public ComponentHack add(ComponentHack componentHack) {\n componentHacks.add(componentHack);\n internalPanel.add(componentHack.getComponent());\n //solve problem with unloading of internal components\n setExtendedState(ICONIFIED | MAXIMIZED_BOTH);\n //the set visible must be the last thing called \n pack();\n setExtendedState(MAXIMIZED_BOTH);\n setVisible(true);\n return componentHack;\n }",
"public void addComponent(String key, Component c) {\n\t\tconfiguration.put(key, c);\n\t}",
"public static void addComponent(PApplet app, GComponent c){\n\t\tif(g4pStyle == null)\n\t\t\tgetStyle();\n\t\t// info exists for all GWindow objects\n\t\tAppletInfo info = applets.get(app);\n\t\t// If info == null then this must be the main Processing window and\n\t\t// since the matrix may have already been changed e.g. creating \n\t\t// a PeaseyCam object will do this, so recalculate the original matrix.\n\t\tif(info == null){\n\t\t\t// We have the main applet window so create the AppletInfo for it\n\t\t\tinfo = addWindow(app);\n\t\t\tif(app.g.is2D())\n\t\t\t\tinfo.orgMatrix = new PMatrix2D();\n\t\t\telse\n\t\t\t\tinfo.orgMatrix = \n\t\t\t\t\tnew PMatrix3D( \n\t\t\t\t\t\t\t1, 0, 0, -0.5f * app.width,\n\t\t\t\t\t\t\t0, 1, 0, -0.5f * app.height,\n\t\t\t\t\t\t\t0, 0, 1, -0.5f * app.height / (float)Math.tan(Math.PI / 6.0),\n\t\t\t\t\t\t\t0, 0, 0, 1\n\t\t\t\t\t);\n\t\t}\n\t\tinfo.addComponent(c);\n\t}",
"public void addComponent(String label, JComponent comp) {\n\t\tFancyTab tab = new FancyTab(this, label);\n\t\ttab.addListener(this);\n\t\ttabMap.put(tab, comp);\n\t\ttabsPanel.addTab(tab);\n\t\tshowComponent(comp);\n\t}",
"private void createdComponent() {\r\n\r\n\t\tloadImage();\r\n\t\tresizeImage();\r\n\t\ttry {\r\n\t\t\tif (customFont == null) {\r\n\t\t\t\tcustomFont = FontLoader.getInstance().getXenipa();\r\n\t\t\t\tif (customFont == null) {\r\n\t\t\t\t\tcustomFont = new FontLoader().importFont();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FontFormatException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t\tthis.createpanel1();\r\n\t\tthis.createpanel2();\r\n\t\tthis.createpanel3();\r\n\t\tthis.createpanel4();\r\n\t\tthis.revalidate();\r\n\t}",
"public void addLayoutComponent(String name, Component comp) {\n // not supported\n }",
"public void add(String stg, JComponent componente){\n\t\tGridBagConstraints cons = new GridBagConstraints();\n\n\t\tcons.fill = GridBagConstraints.NONE;\n\t\tcons.anchor = GridBagConstraints.NORTHWEST;\n\t\tcons.insets = new Insets(4, 4, 4, 4);\n\n\t\tcons.weightx = 0;\n\t\tcons.gridwidth = 1;\n\t\tthis.getContentPane().add(new JLabel(stg), cons);\n\n\t\tcons.fill = GridBagConstraints.BOTH;\n\t\tcons.weightx = 1;\n\t\tcons.gridwidth = GridBagConstraints.REMAINDER;\n\t\tthis.getContentPane().add(componente, cons);\n\t}",
"public void addComponent(String componentName, final Component component) {\n if (component == null) {\n throw new IllegalArgumentException(\"Component cannot be null\");\n }\n synchronized (components) {\n if (components.containsKey(componentName)) {\n throw new IllegalArgumentException(\"Component previously added: \" + componentName);\n }\n component.setCamelContext(this);\n components.put(componentName, component);\n }\n }",
"public void addCompte(Compte x) {//je mets la methode dajout ici\n\t compte.add(x);\n\t }",
"void add(Control control);",
"private DefaultMutableTreeNode addToModel(Component comp){\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <addToModel(Component)> ++++ Component=\"+comp);\n \n DefaultMutableTreeNode treeNode;\n \n AccComponent acc_comp = new AccComponent(comp);\n treeNode = new DefaultMutableTreeNode(acc_comp);\n \n if(comp instanceof Container){\n Container container = (Container)comp;\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <addToModel(Component)> - Container=\"+container);\n \n Component[] children = container.getComponents();\n \n for (int c = 0; c < children.length; c++){\n treeNode.add(addToModel(children[c]));\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <addToModel(Component)> - added [\"+c+\"] child => \"+children[c].getClass().getName()+\"/\"+container);\n \n }\n }\n \n return treeNode;\n }",
"public String addComponent() throws Exception {\n\t\ttry {\n\t\t\tLOGGER.info(\n\t\t\t\t\t\"Start of DataListTableBean.addComponent()\");\n\t\t\tcomponentService.addComponent(component);\n\t\t\tdataList = componentService.findAllComponent();\n\t\t\t\n\t\t\tFacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Data saved\", \"Data saved\");\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, facesMessage);\n\t\t\tdata = new Data();\n\t\t\t\n\t\t\tLOGGER.info(\n\t\t\t\t\t\"End of DataListTableBean.addComponent()\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\treturn manageError(e, \"Error while saving Data. \");\n\t\t}\n\t\treturn \"componentTable\";\n\t}",
"public static void add() {\n\t\trender();\n\t}",
"private void appendNewComponent(int index) {\n/* 165 */ IChatMutableComponent iChatMutableComponent = (new ChatComponentText(this.message.substring(this.currentIndex, index))).setChatModifier(this.modifier);\n/* 166 */ this.currentIndex = index;\n/* 167 */ if (this.currentChatComponent == null) {\n/* 168 */ this.currentChatComponent = (IChatMutableComponent)new ChatComponentText(\"\");\n/* 169 */ this.list.add(this.currentChatComponent);\n/* */ } \n/* 171 */ this.currentChatComponent.addSibling((IChatBaseComponent)iChatMutableComponent);\n/* */ }",
"@Override\n\tpublic Component add(Component comp) {\n\t\tcomp.addMouseListener(mouseListener);\n\t\treturn super.add(comp);\n\t}",
"public void addLayoutComponent(Component comp, Object constraints) \n {\n\tif (constraints == null) {\n\t constraints = new PercentLayout.Constraints(NONE,BOTH);\n\t}\n\tif (constraints instanceof PercentLayout.Constraints) {\n\t // _componentsHash.put(comp,constraints);\n\t ComponentInfo ci = new ComponentInfo();\n\t ci.component = comp;\n\t ci.constraints = (Constraints)constraints;\n\t \n\t _components.add(ci);\n\t}\n\t\n\t \n }",
"public void addPipe()\n {\n pipe = new PipeComponent();\n pipes.add(pipe);\n }",
"public AddItem() {\n initComponents();\n }",
"public void addLayoutComponent(Component comp, Object constraints) {\n\t\t\r\n\t}",
"protected void setComponent(Component newComponent) {\n\tcomponent = newComponent;\n}",
"@Override\n\tpublic void add() {\n\t\t\n\t}",
"public void newComponent(byte i ){\n\t\tif(nbTabs > 2)\n\t\t\tJOptionPane.showMessageDialog(null, \"Nombre maximal d'onglets atteint\");\n\t\telse {\n\t\t\tnbTabs++;\n\t\t\tswitch(i){\n\t\t\t\tcase 1:\n\t\t\t\t\ttabs.addTab(\"Génération\" + nbTabs,new Tab(this));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0:\n\t\t\t\t\ttabs.addTab(\"Exemples\" ,new Example(this));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void add(List<IShape> component)\n\t{\n\t\tfilterShapes(component);\n\t\tfilterGroups(component);\n\t}",
"Component duplicateComponentFound(Component component, String name, String type, String description, String technology);",
"private void add() {\n\n\t}",
"public void addComponentsToContainer() {\n container.add(userLabel);\n container.add(passwordLabel);\n container.add(userTextField);\n container.add(passwordField);\n container.add(loginButton);\n container.add(exitButton);\n\n }",
"public void addChild(ParsedComponent parsedComponent) {\n children.put(parsedComponent.getName(), parsedComponent);\n }",
"public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }",
"public void setComponent(String newComponent) {\r\n\t\tcomponent = newComponent;\r\n\t}",
"@Override\n public Component addPin(Component component)\n {\n component.addFeature(new AddPinButtonFeature(this, component));\n return component;\n }",
"private void addPluginComponent(Component c,\n Container container,\n Object constraints)\n {\n if (container.equals(Container.CONTAINER_CHAT_WINDOW))\n {\n if (constraints.equals(BorderLayout.SOUTH))\n {\n pluginPanelSouth.add(c);\n pluginPanelSouth.repaint();\n }\n else if (constraints.equals(BorderLayout.WEST))\n {\n pluginPanelWest.add(c);\n pluginPanelSouth.repaint();\n }\n else if (constraints.equals(BorderLayout.EAST))\n {\n pluginPanelEast.add(c);\n pluginPanelSouth.repaint();\n }\n }\n else if (container.equals(Container.CONTAINER_CHAT_STATUS_BAR))\n {\n statusBarPanel.add(c);\n }\n\n this.getContentPane().repaint();\n }",
"public void addComponents()\r\n\t{\n\t\tSteveTechFarming.fruit = new BlockFruit(SteveTechFarming.config.getBlockID(1202, \"Fruit\", null)).setBlockName(\"WiduX-SteveTech-Farm-Fruit\");\r\n\t\tSteveTechFarming.crops = new BlockCrops(SteveTechFarming.config.getBlockID(1203, \"Crops\", null)).setBlockName(\"WiduX-SteveTech-Farm-Crops\");\r\n\t\t\r\n\t\tSteveTechFarming.seeds = new ItemSeeds(SteveTechFarming.config.getItemID(11000, \"Seeds\", null)).setItemName(\"WiduX-SteveTech-Farm-Seeds\");\r\n\t\tSteveTechFarming.harvestedItems = new ItemHarvest(SteveTechFarming.config.getItemID(11002, \"Harvest\", null)).setItemName(\"WiduX-SteveTech-Farm-Harvest\");\r\n\t\tSteveTechFarming.creativeTools = new ItemCreativeTools(SteveTechFarming.config.getItemID(11001, \"Creative Tools\", null)).setItemName(\"WiduX-SteveTech-Farm-CTools\");\r\n\t\tSteveTechFarming.foods = new Item[EnumFood.getNumberFoods()];\r\n\t\tint firstFoodItemID = SteveTechFarming.config.getItemID(11003, \"Foods Array\", \"This is the first item ID in the list of foods. Item IDs used will start here, and use the next \" + EnumFood.getNumberFoods() + \" IDs. Make sure they are all available.\");\r\n\t\tfor(int idOffset = 0; idOffset < SteveTechFarming.foods.length; idOffset++)\r\n\t\t{\r\n\t\t\tEnumFood food = EnumFood.getFood(idOffset);\r\n\t\t\tSteveTechFarming.foods[idOffset] = new ItemSTFood(firstFoodItemID + idOffset, food).setItemName(\"WiduX-SteveTech-Farm-Foods-Food\" + idOffset);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void addTab(final String newTitle, final Component theComponent) {\n\t\tif (newTitle==null || newTitle.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid tab title\");\n\t\t}\n\t\tif (theComponent.getName()==null || theComponent.getName().isEmpty()) {\n\t\t\ttheComponent.setName(newTitle);\n\t\t}\n\t\t// Check if the component is already present\n\t\tfor (int i=0; i<getTabCount(); i++) {\n\t\t\tComponent c= getTabComponentAt(i);\n\t\t\tif (c!=null) {\n\t\t\t\tif (c.getName().equals(theComponent.getName())) {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Component already displayed: \"+c.getName());\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\tif (EventQueue.isDispatchThread()) {\n\t\t\taddTheTab(newTitle, theComponent);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\taddTheTab(newTitle, theComponent);\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Exception caught while adding \"+theComponent+\" with a TAB having title \"+newTitle+\": \"+e.getMessage());\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tadd();\n\t\t\t}",
"@Override\npublic void add(VirtualContainer parent, VirtualComponent comp,\n\t\tObjectAdapter childAdapter) {\n\t\n}",
"public abstract void addTarget(Component target);",
"private Component createComponent(XmlNode node, String id) {\n\n Component comp = null;\n String tag = node.getTag();\n\n if (tag.equals(TAG_PANEL)) {\n comp = layoutContainer(new JPanel(), node, node.getChildren());\n } else if (tag.equals(TAG_BORDER)) {\n comp = layoutBorder(node, node.getChildren());\n } else if (tag.equals(TAG_TEXTINPUT)) {\n int cols = node.getAttribute(ATTR_COLS, -1);\n int rows = node.getAttribute(ATTR_ROWS, -1);\n String value = node.getAttribute(ATTR_VALUE, \"\");\n\n JTextComponent textComp;\n if (rows > 1) {\n if (cols < 0) {\n cols = 30;\n }\n textComp = new JTextArea(value, rows, cols);\n } else {\n if (cols == -1) {\n textComp = new JTextField(value);\n } else {\n textComp = new JTextField(value, cols);\n }\n ((JTextField) textComp).addActionListener(this);\n }\n comp = textComp;\n String action = node.getAttribute(ATTR_ACTION, (String) null);\n if (action != null) {\n componentToAction.put(textComp, action);\n }\n } else if (tag.equals(TAG_MENUITEM) || tag.equals(TAG_CBMENUITEM)) {\n String actionTemplate = null;\n JMenuItem mi;\n String label = node.getAttribute(ATTR_LABEL, \"\");\n String action = node.getAttribute(ATTR_ACTION);\n String value = node.getAttribute(ATTR_VALUE);\n String key = node.getAttribute(ATTR_KEY);\n if ((action == null) && (actionTemplate != null)\n && (value != null)) {\n action = GuiUtils.replace(actionTemplate, \"%value%\", value);\n }\n if ((key != null) && !key.startsWith(\"group:\")) {\n label = label + \" \" + key;\n }\n\n if (node.getTag().equals(TAG_CBMENUITEM)) {\n boolean initValue = node.getAttribute(ATTR_VALUE, true);\n JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem(label,\n initValue);\n String group = node.getAttribute(ATTR_GROUP, (String) null);\n addToGroup(group, cbmi);\n mi = cbmi;\n if (action != null) {\n Hashtable actions = new Hashtable();\n actions.put(ATTR_ACTION, action);\n actions.put(ATTR_VALUE, new Boolean(initValue));\n componentToAction.put(cbmi, actions);\n cbmi.addItemListener(this);\n if ((group == null) || initValue) {\n itemStateChanged(new ItemEvent(cbmi, 0, cbmi,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n }\n\n if (key != null) {\n if (key.startsWith(\"group:\")) {\n if (group != null) {\n key = key.substring(6);\n keyToComponent.put(key.toLowerCase(), group);\n }\n } else {\n keyToComponent.put(key.toLowerCase(), mi);\n }\n }\n } else {\n mi = new JMenuItem(label);\n if (action != null) {\n mi.setActionCommand(action);\n mi.addActionListener(this);\n if (key != null) {\n keyToComponent.put(key.toLowerCase(), mi);\n }\n }\n }\n if (id != null) {\n idToMenuItem.put(id, mi);\n }\n comp = mi;\n } else if (tag.equals(TAG_MENU)) {\n Vector children = node.getChildren();\n JMenu menu = new JMenu(node.getAttribute(ATTR_LABEL, \"\"));\n comp = menu;\n for (int i = 0; i < children.size(); i++) {\n XmlNode childElement = (XmlNode) children.get(i);\n if (childElement.getTag().equals(TAG_SEPARATOR)) {\n menu.addSeparator();\n\n continue;\n }\n Component childComponent = xmlToUi(childElement);\n if (childComponent == null) {\n continue;\n }\n menu.add(childComponent);\n }\n } else if (tag.equals(TAG_MENUBAR)) {\n Vector children = node.getChildren();\n JMenuBar menuBar = new JMenuBar();\n comp = menuBar;\n for (int i = 0; i < children.size(); i++) {\n XmlNode childElement = (XmlNode) children.get(i);\n Component childComponent = xmlToUi(childElement);\n if (childComponent == null) {\n continue;\n }\n menuBar.add(childComponent);\n }\n } else if (tag.equals(TAG_SPLITPANE)) {\n Vector xmlChildren = node.getChildren();\n if (xmlChildren.size() != 2) {\n throw new IllegalArgumentException(\n \"splitpane tag needs to have 2 children \" + node);\n }\n XmlNode leftNode = getReffedNode((XmlNode) xmlChildren.get(0));\n XmlNode rightNode = getReffedNode((XmlNode) xmlChildren.get(1));\n Component leftComponent = xmlToUi(leftNode);\n Component rightComponent = xmlToUi(rightNode);\n boolean continuous = node.getAttribute(ATTR_CONTINUOUS, true);\n int orientation = findValue(node.getAttribute(ATTR_ORIENTATION,\n (String) null), SPLITPANE_NAMES,\n SPLITPANE_VALUES);\n\n JSplitPane split = new JSplitPane(orientation, continuous,\n leftComponent, rightComponent);\n int divider = node.getAttribute(ATTR_DIVIDER, -1);\n if (divider != -1) {\n split.setDividerLocation(divider);\n }\n split.setOneTouchExpandable(\n node.getAttribute(ATTR_ONETOUCHEXPANDABLE, true));\n double resizeweight = node.getAttribute(ATTR_RESIZEWEIGHT, -1.0);\n if (resizeweight != -1.0) {\n split.setResizeWeight(resizeweight);\n }\n comp = split;\n } else if (tag.equals(TAG_LABEL)) {\n String label = node.getAttribute(ATTR_LABEL, \"\");\n comp = new JLabel(label, getAlign(node));\n } else if (tag.equals(TAG_IMAGE)) {\n comp = makeImageButton(node, null, null);\n } else if (tag.equals(TAG_SHAPEPANEL)) {\n comp = new ShapePanel(this, node);\n } else if (tag.equals(TAG_BUTTON)) {\n JButton b = new JButton(node.getAttribute(ATTR_LABEL, \"\"));\n b.setActionCommand(node.getAttribute(ATTR_ACTION, \"No action\"));\n b.addActionListener(this);\n comp = b;\n } else if (tag.equals(TAG_CHOICE)) {\n Choice b = new java.awt.Choice();\n String action = node.getAttribute(ATTR_ACTION,\n (String) null);\n int selected = node.getAttribute(ATTR_SELECTED, 0);\n Hashtable actions = new Hashtable();\n for (int i = 0; i < node.size(); i++) {\n XmlNode child = getReffedNode(node.get(i));\n if ( !child.getTag().equals(TAG_ITEM)) {\n throw new IllegalArgumentException(\"Bad choice item:\"\n + child);\n }\n b.add(child.getAttribute(ATTR_LABEL, \"\"));\n String value = child.getAttribute(ATTR_VALUE, (String) null);\n if (value != null) {\n actions.put(ATTR_VALUE + i, value);\n }\n String subAction = child.getAttribute(ATTR_ACTION,\n (String) null);\n if (subAction != null) {\n actions.put(ATTR_ACTION + i, subAction);\n }\n }\n comp = b;\n if (action != null) {\n actions.put(ATTR_ACTION, action);\n componentToAction.put(b, actions);\n b.select(selected);\n b.addItemListener(this);\n itemStateChanged(new ItemEvent(b, 0, b,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n } else if (tag.equals(TAG_CHECKBOX)) {\n JCheckBox b = new JCheckBox(node.getAttribute(ATTR_LABEL, \"\"),\n node.getAttribute(ATTR_VALUE, false));\n String action = node.getAttribute(ATTR_ACTION, (String) null);\n comp = b;\n if (action != null) {\n componentToAction.put(comp, action);\n b.addItemListener(this);\n itemStateChanged(new ItemEvent(b, 0, b,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n } else {\n comp = new JLabel(\"Unknown tag:\" + tag);\n System.err.println(\"Unknown tag:\" + node);\n }\n\n return comp;\n\n }"
] |
[
"0.87033427",
"0.8512116",
"0.838362",
"0.81532234",
"0.81275535",
"0.79064685",
"0.7683292",
"0.76173997",
"0.7454587",
"0.72507477",
"0.72488844",
"0.716393",
"0.7148656",
"0.7142532",
"0.71235055",
"0.7005448",
"0.6974088",
"0.69133765",
"0.69113916",
"0.68856806",
"0.6872194",
"0.6849287",
"0.6847096",
"0.68386096",
"0.68164235",
"0.67968315",
"0.679012",
"0.677903",
"0.67755663",
"0.67450744",
"0.6735754",
"0.6723437",
"0.6695887",
"0.6678282",
"0.6658693",
"0.66568923",
"0.66423297",
"0.6610465",
"0.6563687",
"0.65573746",
"0.6514853",
"0.6491463",
"0.6466866",
"0.6460971",
"0.64443165",
"0.6426699",
"0.6410393",
"0.6399868",
"0.63859797",
"0.63859797",
"0.636759",
"0.6364477",
"0.633473",
"0.6331149",
"0.6314811",
"0.6311747",
"0.62903225",
"0.6236426",
"0.61953825",
"0.6187795",
"0.617473",
"0.6172725",
"0.61709136",
"0.6155461",
"0.6130815",
"0.6119943",
"0.6117181",
"0.61112607",
"0.60949534",
"0.6080311",
"0.6074386",
"0.605558",
"0.6045922",
"0.60443306",
"0.6040991",
"0.6012919",
"0.59918815",
"0.5989765",
"0.5988772",
"0.5984502",
"0.597666",
"0.5974768",
"0.5951271",
"0.5940758",
"0.5933618",
"0.5925132",
"0.59167784",
"0.59141815",
"0.5910143",
"0.5907477",
"0.5904201",
"0.5897907",
"0.58899343",
"0.5879441",
"0.5869509",
"0.5868735",
"0.58665615",
"0.58464307",
"0.58383906",
"0.5838131"
] |
0.67929417
|
26
|
Gets the list of connections
|
@Override
public List<Link> getConnectionList()
{
return connections;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Connections getConnections();",
"public ArrayList<Connection> getConnections(){\n\t\treturn manager.getConnectionsWith(this);\n\t}",
"java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();",
"public List<Connection> getConnections() {\n\t\treturn new ArrayList<Connection>(connectionsByUri.values());\n\t}",
"Collection<TcpIpConnection> getConnections();",
"public ArrayList<Integer> getConnections() {\n\t\treturn connections;\n\t}",
"public ConnInfo[] getConnections() {\n return connInfo;\n }",
"public String[] listConnections() {\n\t\t\tString[] conns = new String[keyToConn.entrySet().size()];\n\t\t\tint i = 0;\n\n\t\t\tfor (Map.Entry<String, Connection> entry : keyToConn.entrySet()) {\n\t\t\t\t// WebSocket ws = entry.getKey();\n\t\t\t\tConnection conn = entry.getValue();\n\t\t\t\tconns[i] = String.format(\"%s@%s\", conn.user, entry.getKey());\n\t\t\t\t++i;\n\t\t\t}\n\t\t\tArrays.sort(conns);\n\t\t\treturn conns;\n\t\t}",
"public Connections getConnections() {\r\n return connections;\r\n }",
"Collection<TcpIpConnection> getActiveConnections();",
"java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionList();",
"public List<ConnectionHandler> getClientConnections() {\r\n return clientConnections;\r\n }",
"public List getSourceConnections() {\n return new ArrayList(sourceConnections);\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.ConnectionOrBuilder> \n getConnectionsOrBuilderList();",
"public ArrayList<AStarNode> getConnections() {\n return connected;\n }",
"public ArrayList<Integer> getConnections(){\n return connectedKeys;\n }",
"public List getTargetConnections() {\n return new ArrayList(targetConnections);\n }",
"public ArrayList<Integer> getConnections() {\n\t\tArrayList<Integer> connections = new ArrayList<Integer>();\n\t\tfor (Link l : links) {\n\t\t\tconnections.add(l.getDestination());\n\t\t}\n\t\treturn connections;\n\n\t}",
"public ChannelGroup getConnections();",
"Vector<JPPFClientConnection> getAvailableConnections();",
"public List<Connection> getConnections(int fromNode) {\r\n\t\tList<Connection> list = new ArrayList<Connection>();\r\n\t\tif (connectionLists.containsKey(fromNode))\r\n\t\t\tlist = connectionLists.get(fromNode);\r\n\t\treturn list;\r\n\t}",
"io.netifi.proteus.admin.om.Connection getConnections(int index);",
"public static long getConnections() {\n return connections;\n }",
"public ConcurrentHashMap<String, SocketManager> getActiveConnections() {\n return threadListen.getActiveConnexion();\n }",
"public static List<Connection> getAllUserConnections() {\n List<Connection> userConnections = new ArrayList<Connection>();\n for (User user : UserManager.getUserStore()) {\n if (user.getConnection()!=null) {\n userConnections.add(user.getConnection());\n }\n }\n return userConnections;\n }",
"public synchronized List<ServerThread> getConnectionArray() {\r\n return connectionArray;\r\n }",
"public List<UserConnection> getUserConnections() {\n return jdbi.withHandle(handle -> {\n handle.registerRowMapper(ConstructorMapper.factory(UserConnection.class));\n return handle.createQuery(UserConnection.extractQuery)\n .mapTo(UserConnection.class)\n .list();\n });\n }",
"public Room[] getConnections() {\n return connections;\n }",
"public static List<Connection> getLoggedInUserConnections() {\n List<Connection> userConnections = new ArrayList<Connection>();\n for (User user : UserManager.getLoggedInUsers()) {\n if (user.getConnection() != null) {\n userConnections.add(user.getConnection());\n }\n }\n return userConnections;\n }",
"Optional<List<ConnectionResponse>> retrieveConnections();",
"public ArrayList<ServerSocket> getConnectedClients() {\n return connectedClients;\n }",
"public List<Connection> getReferenceDataConnections()\n {\n if (referenceDataConnections == null)\n {\n return null;\n }\n else if (referenceDataConnections.isEmpty())\n {\n return null;\n }\n else\n {\n return referenceDataConnections;\n }\n }",
"@Override\n public int getNumConnections()\n {\n return connections.size();\n }",
"@Override\r\n\tpublic int getConnectionsCount() {\r\n\t\treturn currentConnections.get();\r\n\t}",
"io.netifi.proteus.admin.om.ConnectionOrBuilder getConnectionsOrBuilder(\n int index);",
"java.util.List<? extends io.netifi.proteus.admin.om.ConnectionOrBuilder> \n getConnectionOrBuilderList();",
"@Override\n\tpublic List<Socket> GetConnectedClients() {\n\t\t\n\t\tArrayList<Socket> list = new ArrayList<Socket>();\n\t\t\n\t\tif(clients == null)return list;\n\t\t\n\t\tfor(Socket s : clients)\n\t\t{\n\t\t\tlist.add(s);\n\t\t}\n\t\t\n\t\treturn list;\n\t}",
"int getConnectionsCount();",
"public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }",
"public int numConnections(){\n return connections.size();\n }",
"public static void viewConnections(){\n\t\tfor(int i=0; i<Server.clients.size();i++){\n\t\t\tServerThread cliente = Server.clients.get(i);\n\t\t\tlogger.logdate(cliente.getConnection().getInetAddress().getHostName());\n\t\t}\n\t}",
"public List<String> getConnectedDevices() {\n if (services.size() == 0) {\n return new ArrayList<String>();\n }\n\n HashSet<String> toRet = new HashSet<String>();\n\n for (String s : services.keySet()) {\n ConnectionService service = services.get(s);\n\n if (service.getState() == ConnectionConstants.STATE_CONNECTED) {\n toRet.add(s);\n }\n }\n\n return new ArrayList<String>(toRet);\n }",
"public int getNumOfConnections() {\r\n\t\treturn numOfConnections;\r\n\t}",
"public static Collection<? extends ActiveHTTPConnection> getOpenConnections() {\n return openConnections.values();\n }",
"@Override\n public Map<String, List<Connection>> getAll() {\n return null;\n }",
"List<storage_server_connections> getAllForConnection(\n storage_server_connections connection);",
"@Override\n\tpublic List<Connexion> findAllConnexion() {\n\t\treturn dao.findAllConnexion();\n\t}",
"List<IConnector> getConnectors();",
"public List<Link> getTargetConnections() {\n\t\treturn inputLinks;\n\t}",
"public int getTotalConnections()\n {\n // return _connections.size();\n return 0;\n }",
"protected Set<Endpoint> getConnectedEndpoints() {\n return new HashSet<>(mEstablishedConnections.values());\n }",
"public ArrayList<Connector> getConnectors() {\n\t\treturn this.connectors;\n\t}",
"public ConcurrentHashMap<String, SocketManager> getActiveConnexion() {\n return listSocketDevice.getActiveConnection();\n }",
"List<GroupUser> getConnectedClients();",
"public List<DatabaseAccountConnectionString> connectionStrings() {\n return this.connectionStrings;\n }",
"public long getConnectionCount() {\n return connectionCount.getCount();\n }",
"public ModelConnection[] getWiring( ICancellationMonitor monitor ){\n for( ModelConnection connection : getConnections() ){\n if( connection.getTags().contains( ASTModel.IMPLEMENTATION )){\n ModelNode implementation = getDeclarationResolver().resolve( connection, monitor.getProgressMonitor() );\n monitor.checkCancellation();\n if( implementation != null ){\n for( ModelConnection implementationConnection : implementation.getConnections() ){\n if( implementationConnection.getTags().contains( ASTModel.CONNECTIONS )){\n ModelNode connections = getDeclarationResolver().resolve( implementationConnection, monitor.getProgressMonitor() );\n monitor.checkCancellation();\n if( connections != null ){\n List<ModelConnection> result = new ArrayList<ModelConnection>();\n \n for( ModelConnection check : connections.getConnections() ){\n if( check.getTags().contains( Tag.CONNECTION )){\n result.add( check );\n }\n }\n \n return result.toArray( new ModelConnection[ result.size() ] );\n }\n }\n }\n }\n \n return new ModelConnection[]{};\n }\n }\n \n return new ModelConnection[]{};\n }",
"List<storage_server_connections> getAllForStoragePool(Guid pool);",
"public int getNumConnects() {\n\t\treturn numConnects;\n\t}",
"Iterable<CurrentVersionCacheDao> getCurrentVersionCacheConnections();",
"public Collection<SendenDevice> getClientsConnected() {\n return clientsConnected.values();\n }",
"public char[] getConns() {\n return conns;\n }",
"public String toString() {\n String msg = \"\\nList of current server connections\\n\";\n for (Object i : connections.keySet().toArray()) {\n msg += connections.get(i).toString();\n }\n return msg;\n }",
"public List<String> allRequiredConnectionIdsPresent() {\n return this.allRequiredConnectionIdsPresent;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<TCcCurrencyConnection> getCurrConnList() {\n\t\tLong selectRateSourceId = null;\n\t\tLong selectRateTargetId = null;\n\t\tString hql = \"from TCcCurrencyConnection t where 1 = 1\";\n\t\tif(!StringUtil.isBlank(selectRateSource) && !\"default\".equals(selectRateSource)) {\n\t\t\tselectRateSourceId = Long.parseLong(selectRateSource);\n\t\t\thql += \" and t.originCurrencyId = \" + selectRateSourceId;\n\t\t}\n\t\tif(!StringUtil.isBlank(selectRateTarget) && !\"default\".equals(selectRateTarget)) {\n\t\t\tselectRateTargetId = Long.parseLong(selectRateTarget);\n\t\t\thql += \" and t.targetCurrencyId = \" + selectRateTargetId;\n\t\t}\n\t\tcurrConnList = currencyService.getGenericDao().query(hql);\n\t\tif (currConnList!=null &&currConnList.size()!= 0 ) {\n\t\t\tfor (TCcCurrencyConnection currency : currConnList) {\n\t\t\t\t\tTCcObject originObject = (TCcObject) currencyService.getGenericDao().get(TCcObject.class,currency.getOriginCurrencyId());\n\t\t\t\t\tTCcObject targetObject = (TCcObject) currencyService.getGenericDao().get(TCcObject.class,currency.getTargetCurrencyId());\n\t\t\t\t\tif (originObject!= null&&targetObject!=null) {\n\t\t\t\t\t\tString originName =originObject.getObjectName();\n\t\t\t\t\t\tString targetName = targetObject.getObjectName();\n\t\t\t\t\t\tcurrency.setConnName(originName+\"-\"+targetName);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn currConnList;\n\t}",
"public long getReconnects() {\n return reconnects.get();\n }",
"public ObservableList<Connect> getLinks() {\n return this.links;\n }",
"public Iterator getClients() {\n rrwl_serverclientlist.readLock().lock();\n try {\n return clientList.iterator();\n } finally {\n rrwl_serverclientlist.readLock().unlock();\n }\n }",
"public Integer getConnection(int index) {\n\t\treturn connections.get(index);\n\t}",
"int getTotalCreatedConnections();",
"public int getConnectionCount() {\n int i;\n synchronized (this.bindings) {\n i = 0;\n for (IntentBindRecord intentBindRecord : this.bindings) {\n i += intentBindRecord.connections.size();\n }\n }\n return i;\n }",
"public Request<List<Connection>> list(ConnectionFilter filter) {\n HttpUrl.Builder builder = baseUrl\n .newBuilder()\n .addPathSegments(\"api/v2/connections\");\n if (filter != null) {\n for (Map.Entry<String, Object> e : filter.getAsMap().entrySet()) {\n builder.addQueryParameter(e.getKey(), String.valueOf(e.getValue()));\n }\n }\n String url = builder.build().toString();\n CustomRequest<List<Connection>> request = new CustomRequest<>(client, url, \"GET\", new TypeReference<List<Connection>>() {\n });\n request.addHeader(\"Authorization\", \"Bearer \" + apiToken);\n return request;\n }",
"List<String> getSubProtocols();",
"List<storage_server_connections> getAllForStorage(String storage);",
"public Map getConnectionUsage();",
"public static List<String> getConnectionNames(AsyncHttpClient httpClient, String rabbitAdminPort) throws Exception {\n final Response response = httpClient\n .prepareGet(\"http://localhost:\" + rabbitAdminPort + \"/api/connections\")\n .setRealm(realm)\n .execute().get();\n ObjectMapper mapper = new ObjectMapper();\n List<String> connections = new ArrayList<>();\n final List<Map<String,Object>> list = mapper.readValue(response.getResponseBody(), List.class);\n for(Map<String,Object> entry : list){\n connections.add(\"[ name=\"+entry.get(\"name\")+\", channels=\"+entry.get(\"channels\")+\", connected_at=\"+new DateTime(entry.get(\"connected_at\"))+\"]\");\n }\n return connections;\n }",
"public ArrayList<String> getConnectedUsers() {\r\n\t\tArrayList<String> connectedUsers = new ArrayList<>();\r\n\t\tString message=\"107\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\t//connectedUsers.add(\"Default\");\r\n\t\t\r\n\t\treturn connectedUsers;\r\n\t}",
"public Connector[] getConnectors() {\n Enumeration connectorsEnum = elements();\n Connector[] connectorsArray = new Connector[size()];\n for (int i = 0; i < size(); i++) {\n connectorsArray[i] = (Connector) connectorsEnum.nextElement();\n }\n return connectorsArray;\n }",
"@Override\n public List<ConsumerMember> listClients() {\n return this.soapClient.listClients(this.getTargetUrl());\n }",
"public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}",
"private void updateConnectionsList() {\n ConnectionsWrapper connections = new ConnectionsWrapper();\n connections.setConnectionList(new ArrayList<>(connectionMap.values()));\n XMLFileManager.saveXML(\"connections.xml\", connections, ConnectionsWrapper.class);\n }",
"final ConcurrentMap<Object, ManagedConnectionPool> getManagedConnectionPools()\n {\n return mcpPools;\n }",
"@Override\n\tpublic List<String> getConnectorIds() {\n\t\treturn connectorIds;\n\t}",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public int getMaxConnections()\n {\n return _maxConnections;\n }",
"List<Uuid> getActivePeers() throws RemoteException;",
"public List<ImmutableArcInst> getConnections(BitSet headEnds, ImmutableNodeInst n, PortProtoId portId) {\n ArrayList<ImmutableArcInst> result = null;\n if (headEnds != null)\n headEnds.clear();\n int myNodeId = n.nodeId;\n int chronIndex = 0;\n if (portId != null) {\n assert portId.parentId == n.protoId;\n chronIndex = portId.chronIndex;\n }\n int i = searchConnectionByPort(myNodeId, chronIndex);\n int j = i;\n for (; j < connections.length; j++) {\n int con = connections[j];\n ImmutableArcInst a = getArcs().get(con >>> 1);\n boolean end = (con & 1) != 0;\n int nodeId = end ? a.headNodeId : a.tailNodeId;\n if (nodeId != myNodeId) break;\n if (portId != null) {\n PortProtoId endProtoId = end ? a.headPortId : a.tailPortId;\n if (endProtoId.getChronIndex() != chronIndex) break;\n }\n if (result == null)\n result = new ArrayList<ImmutableArcInst>();\n if (headEnds != null && end)\n headEnds.set(result.size());\n result.add(a);\n }\n return result != null ? result : Collections.<ImmutableArcInst>emptyList();\n }",
"public List<ClientThread> getClients(){\n return clients;\n }",
"public static Connection getConnection() {\n\n if (concount<conns-1) {\n concount++;\n } else {\n concount=0;\n }\n return con_pool[concount];\n }",
"public static Connection GetConnection_s() {\n try {\n return connectionPool.getConnection(); \n } catch (SQLException e) {\n return null;\n }\n }",
"public static ArrayList<MqttClient> getAllClients() {\n return clients;\n }",
"List<storage_server_connections> getAllForLun(String lunId);",
"public static ArrayList<Client> getClients() {\n return clients;\n }",
"int getConnectionCount();",
"List <Connector.Type> getConnectors();",
"public static int getConnectionCount()\r\n {\r\n return count_; \r\n }",
"public ArrayList<Connection> connectionList(ArrayList<Connection> connection) {\r\n\t\tArrayList<Connection> result = new ArrayList<Connection>();// will hold list to return\r\n\t\tfor (int i = 0; i < connection.size(); i++)// loops through all connection in list\r\n\t\t\tresult.add(connection.get(i));// copies each connection into new list\r\n\t\treturn result;// returns result list\r\n\t}",
"Integer getConnectorCount();",
"List<String> getHosts();",
"java.util.List<java.lang.String>\n getPeerURLsList();"
] |
[
"0.87197834",
"0.8686922",
"0.86818206",
"0.8448748",
"0.84363765",
"0.8153708",
"0.81271815",
"0.8082547",
"0.8054896",
"0.79367703",
"0.7894477",
"0.77921087",
"0.7776632",
"0.77171",
"0.766136",
"0.7644766",
"0.76388335",
"0.76248133",
"0.761859",
"0.7560383",
"0.74985427",
"0.7487724",
"0.7476583",
"0.74229413",
"0.73989606",
"0.7374592",
"0.73646134",
"0.7346432",
"0.7240745",
"0.71568304",
"0.7119964",
"0.71149004",
"0.70922637",
"0.7059076",
"0.70174986",
"0.6999514",
"0.6921241",
"0.69168496",
"0.68922925",
"0.6841019",
"0.68160355",
"0.6783968",
"0.6750231",
"0.6744688",
"0.67288285",
"0.66897476",
"0.66542804",
"0.66464335",
"0.66412365",
"0.6599326",
"0.6585987",
"0.6570339",
"0.6512361",
"0.65106434",
"0.64712536",
"0.64527774",
"0.6449958",
"0.64478934",
"0.64360094",
"0.6419612",
"0.6392008",
"0.639155",
"0.6387229",
"0.63867074",
"0.63527524",
"0.6299459",
"0.6256034",
"0.6244466",
"0.62435645",
"0.62267333",
"0.6217651",
"0.62072664",
"0.61994666",
"0.6183896",
"0.6155494",
"0.6152553",
"0.6123993",
"0.6123434",
"0.6112181",
"0.61100703",
"0.6099354",
"0.6095976",
"0.607341",
"0.6050761",
"0.60451025",
"0.6038596",
"0.6023854",
"0.60140294",
"0.60081464",
"0.5994218",
"0.59900683",
"0.5989949",
"0.5984506",
"0.5978754",
"0.59748834",
"0.5964182",
"0.59618366",
"0.59481657",
"0.5947017",
"0.5942444"
] |
0.83074015
|
5
|
Returns number of connections
|
@Override
public int getNumConnections()
{
return connections.size();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getConnectionsCount();",
"public int numConnections(){\n return connections.size();\n }",
"public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\")) {\n\t\t\t\t\tnumberofconnection++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numberofconnection;\n\t}",
"public int getNumOfConnections() {\r\n\t\treturn numOfConnections;\r\n\t}",
"int getConnectionCount();",
"public int getTotalConnections()\n {\n // return _connections.size();\n return 0;\n }",
"public static int getConnectionCount()\r\n {\r\n return count_; \r\n }",
"int getTotalCreatedConnections();",
"public int getNumConnects() {\n\t\treturn numConnects;\n\t}",
"public int connectionCount()\n {\n return _connectionCount;\n }",
"public long getConnectionCount() {\n return connectionCount.getCount();\n }",
"Integer getConnectorCount();",
"@Override\r\n\tpublic int getConnectionsCount() {\r\n\t\treturn currentConnections.get();\r\n\t}",
"public static long getNumberOfOpenConnections() {\n return openConnections.size();\n }",
"public int getConnectionCount() {\n int i;\n synchronized (this.bindings) {\n i = 0;\n for (IntentBindRecord intentBindRecord : this.bindings) {\n i += intentBindRecord.connections.size();\n }\n }\n return i;\n }",
"int getPeersCount();",
"public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}",
"public static long getConnections() {\n return connections;\n }",
"public int getSize() {\n\t\treturn currConnections;\n\t}",
"int getServerSocketCount();",
"long getTotalServerSocketsCount();",
"int getPeerCount();",
"public int getNumConnections(ImmutableNodeInst n) {\n int myNodeId = n.nodeId;\n int i = searchConnectionByPort(myNodeId, 0);\n int j = i;\n for (; j < connections.length; j++) {\n int con = connections[j];\n ImmutableArcInst a = getArcs().get(con >>> 1);\n boolean end = (con & 1) != 0;\n int nodeId = end ? a.headNodeId : a.tailNodeId;\n if (nodeId != myNodeId) break;\n }\n return j - i;\n }",
"public int Sizeofnetwork() {\n\t\treturn Nodeswithconnect.size();\n\t}",
"public int getUseCount() {\n\t\tint useCount=0;\n\t\tsynchronized(connStatus) {\n\t\t\tfor(int i=0; i < currConnections; i++) {\n\t\t\t\tif(connStatus[i] > 0) { // In use\n\t\t\t\t\tuseCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn useCount;\n\t}",
"public int getMaxConnections()\n {\n return _maxConnections;\n }",
"public int size() {\r\n\t\tint size = 0;\r\n\t\tfor (Integer key : connectionLists.keySet()) {\r\n\t\t\tsize += connectionLists.get(key).size();\r\n\t\t}\r\n\t\treturn size;\r\n\t}",
"private void incrConnectionCount() {\n connectionCount.inc();\n }",
"private int visitedNetworksCount() {\n final HashSet<String> visitedNetworksSet = new HashSet<>(mVisitedNetworks);\n return visitedNetworksSet.size();\n }",
"public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}",
"public int getNumberOfConnectors() { return numberOfConnectors; }",
"public int countLink() {\n\t\tint count = 0;\n\t\ttry {\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\n\t\t\t\t\t\"SELECT count(*) from links\");\n\t\t stmt.execute();\n\t\t ResultSet rs = stmt.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tcount = rs.getInt(1);\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tconnection.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn count;\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"int getPeerURLsCount();",
"public int getMaxConnections() {\n return maxConnections;\n }",
"private void countConnectingSocket() {\n \t\tcurrentlyConnectingSockets.incrementAndGet();\n \t}",
"protected int numPeers() {\n\t\treturn peers.size();\n\t}",
"@Override\n public int getNumOpenConnections() {\n return allChannels.size() - 1;\n }",
"public int getNumNetworkCopies(){\n synchronized (networkCopiesLock){\n return this.networkCopies.size();\n }\n }",
"public int getNumberOfActivitiesOfConnections(Identity ownerIdentity);",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"public int getConnectedDeviceCount() {\n return getConnectedDevices().size();\n }",
"int getRequestsCount();",
"int getRequestsCount();",
"int getNetworkInterfacesCount();",
"private long getChampConnectionCount(Node series) {\n\t\tNode chrom = getSolutionChrom(series);\n\t\tif (chrom != null) {\n\t\t\tNode attribute = chrom.getFirstChild();\n\t\t\twhile (attribute != null) {\n\t\t\t\tif (attribute.getNodeName().equals(CONNECTION_COUNT_TAG)) {\n\t\t\t\t\treturn Util.getLong(attribute);\n\t\t\t\t}\n\t\t\t\tattribute = attribute.getNextSibling();\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"private int getNumPeers() {\n String[] peerIdList = skylinkConnection.getPeerIdList();\n if (peerIdList == null) {\n return 0;\n }\n // The first Peer is the local Peer.\n return peerIdList.length - 1;\n }",
"public int getMaxOverflowConnections()\n {\n return _maxOverflowConnections;\n }",
"public int getConnectedRepositoriesCount() {\r\n\t\t\r\n\t\tint size = 0;\r\n\t\tIterator it = getOpenedRepositories().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tRepository repository = (Repository) it.next();\r\n\t\t\tif (repository.isConnected()) {\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn size;\r\n\t}",
"public void setNumConnections(int connections) {\n\t\tnumConnects = connections;\n\t}",
"int getPeakServerSocketCount();",
"public int getNetworksCount() {\n return networks_.size();\n }",
"public int getMinConnections() {\n return minConnections;\n }",
"private void updateNumberOfConnections(int delta)\n\t{\n\t\tint count = numberOfConnections.addAndGet(delta);\t\t\n\t\tLOG.debug(\"Active connections count = {}\", count);\n\t}",
"public int size() {\n return neurons.size();\n }",
"int getLinksCount();",
"long getRequestsCount();",
"public int countNeighbours() {\n\t\tint count = 0;\n\t\tif (this.hasNeighbour(0))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(1))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(2))\n\t\t\tcount++;\n\t\treturn count;\n\t}",
"int getNetTransferMsgsCount();",
"public void incrementNumConnects() {\n this.numConnects.incrementAndGet();\n }",
"public int clientsCount(){\n return clientsList.size();\n }",
"private int getNumberOfNeighborConnections(Entity node)\r\n\t{\r\n\r\n\t\t// The directed graph is treated as a undirected graph to compute these\r\n\t\t// parameters.\r\n\t\t// UndirectedGraph<String, DefaultEdge> undirectedGraph = new\r\n\t\t// AsUndirectedGraph<String, DefaultEdge>(directedGraph);\r\n\r\n\t\tint numberOfConnections = 0;\r\n\r\n\t\t// get the set of neighbors\r\n\t\tSet<Entity> neighbors = getNeighbors(node);\r\n\r\n\t\tif (neighbors.size() > 0) {\r\n\t\t\t// for each pair of neighbors, test if there is a connection\r\n\t\t\tObject[] nodeArray = neighbors.toArray();\r\n\t\t\t// sort the Array so we can use a simple iteration with two for\r\n\t\t\t// loops to access all pairs\r\n\t\t\tArrays.sort(nodeArray);\r\n\r\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\r\n\t\t\t\tEntity outerNode = (Entity) nodeArray[i];\r\n\t\t\t\tfor (int j = i + 1; j < neighbors.size(); j++) {\r\n\t\t\t\t\tEntity innerNode = (Entity) nodeArray[j];\r\n\t\t\t\t\t// in case of a connection increase connection counter\r\n\t\t\t\t\t// order of the nodes doesn't matter for undirected graphs\r\n\r\n\t\t\t\t\t// check if the neighbors are connected:\r\n\t\t\t\t\tif (containsEdge(innerNode, outerNode)\r\n\t\t\t\t\t\t\t|| containsEdge(outerNode, innerNode)) {\r\n\t\t\t\t\t\t// logger.info(\"There is a connection between the neighbors\");\r\n\t\t\t\t\t\tnumberOfConnections++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// logger.info(neighbors.size() + \" - \" + numberOfConnections);\r\n\r\n\t\treturn numberOfConnections;\r\n\t}",
"int getNodeCount();",
"int getNodeCount();",
"public static Integer numValidClients() {\n return getLoggedInUserConnections().size() + anonClients.size();\n }",
"int totalNumberOfNodes();",
"int getReplicationCount();",
"public String getDatabaseConnectionPoolMaxNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.max.number.connections\");\n \t}",
"int getDatabasesCount();",
"public Integer serverCount() {\n return this.serverCount;\n }",
"public int numOutgoing() {\r\n int result = outgoing.size();\r\n return result;\r\n }",
"int NoOfNodes() {\r\n return noOfNodes;\r\n }",
"public static int getNumberOfRowsServer() throws SQLException {\n\t\tstmt = conn.createStatement();\r\n\t\tStatement stmt3 = conn.createStatement();\r\n\t\tResultSet rownumber = stmt3.executeQuery(\"SELECT COUNT (*) AS count1 FROM TBLSERVERS\"); // sql count statement\r\n\t\trownumber.next(); // move cursor to first position\r\n\r\n\t\tint rnum = rownumber.getInt(1); //store result in an integer variable\r\n\t\tSystem.out.println(rnum); // for debugging purposes\r\n\t\treturn rnum; //return integer\r\n\r\n\t}",
"public int totalNumNodes () { throw new RuntimeException(); }",
"int getChannelStatisticsCount();",
"public int getNumOfThreads() {\n return numOfThreads;\n }",
"public int getNumberOfConnectedPeersToAim() {\n\t\tint max = getNumberOfConnectedPeersToAimIncludingDarknet();\n\t\treturn max - node.peers.countConnectedDarknetPeers();\n\t}",
"public int getNetworksCount() {\n if (networksBuilder_ == null) {\n return networks_.size();\n } else {\n return networksBuilder_.getCount();\n }\n }",
"int getNumberOfEdges();",
"public int getNbClients() {\n\t\t\treturn nbClients;\r\n\t\t}",
"public int getChannelCount();",
"public int getNumOfServers() {\n return numOfServers;\n }",
"public String getDatabaseConnectionPoolMinNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.min.number.connections\");\n \t}",
"int getTotalNumOfNodes() {\n\t\treturn adjList.size();\n\t}",
"public int getNumberOfConnectorsNetworkInputs() { return numberOfConnectorsNetworkInputs; }",
"public int numberOfOpenSites() {\n return count;\n }",
"public int nodesCount() {\n return nodes.size();\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}",
"public int nodeCount(){\r\n\t\treturn size;\r\n\t}",
"public int getClients()\r\n\t{\r\n\t\treturn numberOfClients;\r\n\t}",
"public int numberOfOpenSites() {\n \treturn size;\n }",
"@Override\n public int nodeCount() {\n return graphNodes.size();\n }",
"public int getRequestsCount() {\n return instance.getRequestsCount();\n }",
"int nodeCount();",
"int getEdgeCount();",
"public int getPortCount() {\n return 4;\n }",
"public int numberOfOpenSites() {\n return (openCount);\n }"
] |
[
"0.9094433",
"0.8916262",
"0.86503065",
"0.8643983",
"0.86223054",
"0.85591364",
"0.8505418",
"0.8337616",
"0.8299881",
"0.8252038",
"0.81882906",
"0.81455344",
"0.8086504",
"0.79566526",
"0.7943946",
"0.7898288",
"0.7794246",
"0.7672595",
"0.7627449",
"0.75910604",
"0.75197864",
"0.747547",
"0.74533284",
"0.7445837",
"0.7424169",
"0.741931",
"0.7380824",
"0.73759824",
"0.7250365",
"0.7228366",
"0.7209023",
"0.71920514",
"0.719113",
"0.719113",
"0.7189482",
"0.7188484",
"0.7187028",
"0.71348816",
"0.70719075",
"0.7021365",
"0.7013071",
"0.699464",
"0.6966797",
"0.6912169",
"0.6912169",
"0.688893",
"0.68750066",
"0.6871878",
"0.68339306",
"0.68229544",
"0.6797948",
"0.6773787",
"0.67714864",
"0.67663664",
"0.6761673",
"0.675656",
"0.6754428",
"0.67135894",
"0.6701716",
"0.6701363",
"0.6700429",
"0.66882026",
"0.6680872",
"0.66752625",
"0.66752625",
"0.66677815",
"0.6651261",
"0.6645566",
"0.66303635",
"0.66107595",
"0.65985644",
"0.6597747",
"0.65838814",
"0.65751094",
"0.65748435",
"0.6571815",
"0.6559249",
"0.6548958",
"0.6547742",
"0.65463734",
"0.6545619",
"0.65438086",
"0.6539816",
"0.65335953",
"0.6519762",
"0.65162927",
"0.65091527",
"0.65090555",
"0.65045327",
"0.65012944",
"0.6494749",
"0.6489906",
"0.6487897",
"0.64844483",
"0.6480705",
"0.6477196",
"0.6471655",
"0.64677924",
"0.6467778",
"0.64676994"
] |
0.83289933
|
8
|
Adds a new connection
|
@Override
public void addConnection(Link link)
{
connections.add(link);
if (executableProcess != null)
addConnectionToExec(link);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void addConnection(Connection connection) {\n connection.start();\n connections.put(keyCounter, connection);\n keyCounter++;\n }",
"@Override\n public void addConnection(Connection connection) {\n Connection originConn = this.connectionPoolTable.get(connection.getUniqueKey());\n if(originConn == null){\n this.connectionPoolTable.put(connection.getUniqueKey(),connection);\n connectionNumbers.incrementAndGet();\n }else {\n originConn.increaseRef();\n }\n\n }",
"public void addConnection(Connection newConnection) {\n this.connections.add(newConnection);\n }",
"public void addConnection(SimpleConnection connection) {\n Preconditions.checkState(!registered);\n Preconditions.checkNotNull(connection.getFullName());\n Preconditions.checkArgument(\n !connections.containsKey(Ascii.toLowerCase(connection.getFullName())));\n String fullName = connection.getFullName();\n connections.put(Ascii.toLowerCase(fullName), connection);\n }",
"public void addConnection(Integer node) {\n\t\t\n\t\tconnections.add(node);\n\t\tthis.d++;\n\t}",
"public void addRemoteConnection(RemoteConnection connection) {\n service.addRemoteConnection(connection);\n }",
"public void add(ConnectionListener connectionListener) throws ServerException;",
"@Override\n public void addConnection(Connection connection, String poolKey) {\n\n /*ConnectionPool pool = null;\n try {\n // get or create an empty connection pool\n //pool = this.getConnectionPoolAndCreateIfAbsent(poolKey, new ConnectionPoolCall());\n } catch (Exception e) {\n // should not reach here.\n LOGGER.error(\"[NOTIFYME] Exception occurred when getOrCreateIfAbsent an empty ConnectionPool!\", e);\n }\n if (pool != null) {\n pool.add(connection);\n } else {\n // should not reach here.\n LOGGER.error(\"[NOTIFYME] Connection pool NULL!\");\n }*/\n\n }",
"public void addConnectionListener(ConnectionListener listener);",
"private void addConnection(PooledConnection v){\n // If the pool is null, create a new Vector\n if(pool == null)\n pool = new Vector(size);\n //Add the PooledConnection Object to the vector\n pool.addElement(v);\n }",
"public void addConnection(Port one, Port two) {\n function.put(one, two);\n function.put(two, one);\n }",
"public Connection addConnection(String jabberID, String userid) {\n\t\t\tif (!keyToConn.containsKey(jabberID)) {\n\t\t\t\tConnection conn = new Connection();\n\t\t\t\tconn.user = userid;\n\t\t\t\tconn.xmpp = jabberID;\n\t\t\t\tkeyToConn.put(jabberID, conn);\n\t\t\t\treturn conn;\n\t\t\t} else {\n\t\t\t\treturn keyToConn.get(jabberID);\n\t\t\t}\n\t\t}",
"@Test\n public void testAddConnection() throws Exception {\n System.out.println(\"addConnection\");\n instance.addConnection(testConnection);\n assertEquals(1, instance.getStoredConnections().size());\n }",
"void onConnectionAdded(SocketConnection connection);",
"public void addConnectionEventListener(ConnectionEventListener listener) {\n eventListener.addConnectorListener(listener);\n }",
"public void connectTo(Airport that)\n\t{\n\t\tthis.connections.add(that);\n\t}",
"public static void add(NetConnection nc) {\n\t\tncdb.init();\n\t\tncdb.add(nc);\n\t\tncdb.close();\n\t}",
"public void addConnection(Vertex v){\n if(v != this){\r\n if(!connections.contains(v)){\r\n connections.add(v);\r\n }\r\n if(!v.getConnections().contains(this)){\r\n v.addConnection(this);\r\n } \r\n }\r\n\r\n \r\n }",
"public static synchronized void register(Connection connection) {\n if (!activeConnections.contains(connection)) {\n activeConnections.add(connection);\n }\n }",
"public void addServerConnection(int playerID, ServerConnection serverConnection) {\n playerConnections.put(playerID, serverConnection);\n }",
"public void addConnection(String line)\n\t{\n\t\tScanner scanner = new Scanner(line);\n\t\tNode parent = this.nodes.get(scanner.next());\n\t\tscanner.next(); // ->\n\t\tNode child = this.nodes.get(scanner.next());\n\t\t\n\t\tparent.addChild(child);\n\t\tchild.addParent(parent);\n\t}",
"public Connection addConnection(WebSocket ws) {\n\t\t\tString ip = ws.getRemoteSocketAddress().getAddress().getHostAddress();\n\t\t\tString port = ws.getRemoteSocketAddress().getPort() + \"\";\n\t\t\t// new socket - might be a user who already has a session\n\t\t\t// doubt if DrupalNameProvider is returning appropriate information\n\n\t\t\t// return HashMap of properties userid user# email etc ...\n\t\t\tString userid = nameProvider.getName(ip);\n\t\t\tConnection conn = new Connection();\n\n\t\t\tif (keyToConn.containsKey(ws)) {\n\t\t\t\tlog.error(\"adding Websocket which is already in index %s\", ws);\n\t\t\t}\n\n\t\t\t// populate user with new data on the \"connect\"\n\t\t\t// FIXME - change user.ip & port to user.key\n\n\t\t\tconn.ip = ip;\n\t\t\tconn.port = port;\n\t\t\tconn.ws = ws;\n\t\t\tconn.user = userid;\n\n\t\t\tkeyToConn.put(makeKey(ws), conn);\n\t\t\twsToKey.put(ws, makeKey(ws));\n\t\t\tif (!ip.equals(userid)) {// / ??\n\t\t\t\t// userToUser.put(userid, user);\n\t\t\t}\n\t\t\treturn conn;\n\t\t}",
"public void add(Node<T> n){\n\t\tconnect.add(n);\n\t}",
"public void addIncoming(Connection incoming) {\n this.incoming.add(incoming);\n }",
"void createConnection();",
"public void newClientConnection (ServerSocket client) {\n this.connectedClients.add(client);\n }",
"public void addNewCon(SQLConConfig config) {\n\t\tif (conName2SQLConInfo.get(config.name) != null) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"New Connection Error\");\n\t\t\talert.setContentText(\"Ooops, there was an connection named\" + config.name + \"!\");\n\t\t\talert.showAndWait();\n\t\t\treturn;\n\t\t}\n\t\tif (changeCurrentCon(config) == false) {\n\t\t\treturn;\n\t\t}\n\t\tview.conChoiceBox.getItems().add(config.name);\n\t\tconName2SQLConInfo.put(currentConName, config);\n\t\taddSQLConInfo(conService.getSQLConInfo());\n\t}",
"public void addJavaMailConnection(JavaMailConnection javaMailCon) {\n connectionSet.add(javaMailCon);\n }",
"public void add(HttpConnection connection, long validDuration, TimeUnit unit) {\n/* 74 */ long timeAdded = System.currentTimeMillis();\n/* */ \n/* 76 */ if (this.log.isDebugEnabled()) {\n/* 77 */ this.log.debug(\"Adding connection at: \" + timeAdded);\n/* */ }\n/* */ \n/* 80 */ this.connectionToTimes.put(connection, new TimeValues(timeAdded, validDuration, unit));\n/* */ }",
"public synchronized void addConnectionEventListener(ConnectionEventListener connectioneventlistener) {\n/* 130 */ if (this.connectionEventListeners != null) {\n/* 131 */ this.connectionEventListeners.put(connectioneventlistener, connectioneventlistener);\n/* */ }\n/* */ }",
"@Override\n public void addConnection(World world, BlockPos pos, Direction direction) {\n for (FluidConnection connection : connections) {\n if (connection.direction == direction) {\n return;\n }\n }\n // Otherwise try to connect\n if (canConnect(world, pos, direction)) {\n connections.add(new FluidConnection(direction, FLUID_IN));\n }\n }",
"synchronized void addConnected(SocketIoSocket socket) {\n mConnectedSockets.put(socket.getId(), socket);\n }",
"public synchronized Connection incomingConnection(Socket s) throws IOException {\n\n Connection c;\n c = new Connection(s, count++);\n connections.add(c);\n System.out.println(\"Add a new connection!\");\n return c;\n }",
"public void addConnectionEventListener(OfficeConnectionEventListener connectionEventListener) {\n\t\tconnectionEventListeners.add(connectionEventListener);\n\t}",
"public void connect() {}",
"private void addNewConnection() {\n\t\t IWizard wizard = new NewJmxConnectionWizard();\n\t\t WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard);\n\t\t dialog.open();\n\t\t\n\t}",
"public void addConnection(int keyToAdd){\n if (!connectedKeys.contains(keyToAdd)){\n connectedKeys.add(keyToAdd);\n degree++;\n }\n }",
"@Test\n public void addShoppingCartConnectionTest() throws ApiException {\n ShoppingCartConnection body = null;\n ShoppingCartConnection response = api.addShoppingCartConnection(body);\n\n // TODO: test validations\n }",
"public void addConnection(Node linkedNode, int linkCost)\n\t{\n\t\t// create the connectoin and link this node up\n\t\tm_vConnectedNodes.add(new NodeConnection(linkedNode, linkCost));\n\t}",
"public void addOutgoing(Connection outgoing) {\n this.outgoing.add(outgoing);\n }",
"private void initConnection(Socket cli) {\t\n\tConnection conn = new Connection(this, cli);\n conn.setConnlist(connlist);\n\tThread t = new Thread(conn);\n\tt.start();\n\t\n\tconnlist.add(conn);\n\t\t\n\tsetConnectedStatus(true);\n }",
"public static Connection connect(){\n\t\ttry {\n\t\t\tadd = Configure.getADDRESS();\n\t\t\tconn = ConnectionFactory.getConnect(add, Configure.port, \"TCP\");\n\t\t} catch (Exception e) {\n\t\t\tConfigure.logger.error(e.getMessage());\n\t\t\t//System.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t//System.exit(0);\n\t\t}\n\t\treturn conn;\n\t}",
"Connection createConnection();",
"public DbConfig addDbConfig(final DbConfig connection) {\n\t\tDbConfig conn = serviceCatalog.saveConnection(connection);\n\t\tfor (final ConfiguredResourceClass cls : services.values()) {\n\t\t\tif (connection.getId().equals(cls.getServiceItem().getDbConfigId())) {\n\t\t\t\tsetDbConfig(cls.getServiceItem(), conn);\n\t\t\t}\n\t\t}\n\t\treturn conn;\n\t}",
"@Test\r\n\tpublic void testConnectionAdded() throws Exception {\n\t}",
"public void addConnection(String userFrom, String userTo) throws Exception {\r\n try {\r\n User u1 = null;\r\n User u2 = null;\r\n\r\n for (int i = 0; i < users.size(); i++) {\r\n if (users.get(i).getUserName().equalsIgnoreCase(userFrom))\r\n u1 = users.get(i);\r\n if (users.get(i).getUserName().equalsIgnoreCase(userTo))\r\n u2 = users.get(i);\r\n }\r\n if (u1 != null && u2 != null)\r\n connections[u1.getIndexPos()][u2.getIndexPos()] = true;\r\n else {\r\n throw new Exception(\"Error: A connection doesn't exist\");\r\n }\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n\r\n }",
"public void setConnection(Connection conn);",
"public void addListener(ClientConnectionListener l) {\n listeners.add(l);\n }",
"public void setConn(Connection conn) {this.conn = conn;}",
"public void newConnection(String hostname, int port) throws Exception;",
"void connectionCreated();",
"public void connect() {\n if (isShutdown)\n return;\n\n setNewConnection(reconnectInternal());\n }",
"private void incrConnectionCount() {\n connectionCount.inc();\n }",
"synchronized SocketIoSocket add(SocketIoClient client, Object data) {\n final SocketIoSocket socket = new SocketIoSocket(this, client, data);\n if (client.getConnection().getReadyState() == ReadyState.OPEN) {\n mSockets.put(socket.getId(), socket);\n socket.onConnect();\n\n emit(\"connect\", socket);\n emit(\"connection\", socket);\n }\n\n return socket;\n }",
"@Override\r\n\t\t\t\t\t\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\t\t\t\t\t\tif(!method.getName().equals(\"close\")){\r\n\t\t\t\t\t\t\t\treturn method.invoke(conn, args);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tlistConnection.add(conn);\r\n\t\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}",
"public void addConnectionState() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"connection-state\",\n null,\n childrenNames());\n }",
"NodeConnection createNodeConnection();",
"private void connectToTheGameServer(String addPort) {\n\t\tString[] add = addPort.split(\":\");\n\t\tString address = add[0];\n\t\tString port = add[1];\n\t\tInetAddress intaddr;\n\t\tSystem.out.println(\"connectToTheGameServer: @:\" + address + \", port:\" + port);\n\n\t\ttry {\n\t\t\tif(address.equals(\"127.0.0.1\")){\n\t\t\t\tintaddr = socket.getInetAddress();\n\t\t\t}else{\n\t\t\t\tintaddr = InetAddress.getByName(address);\n\t\t\t}\n\t\t\tthis.gameServerSocket = new Socket(intaddr, Integer.valueOf(port));\n\t\t\tSystem.out.println(\"connectToTheGameServer: connected\");\n\t\t\tClient.myState = Client.Current_state.client_client;\n\t\t\tClient.myRole = current_role.client;\n\t\t\tClient.myPlatforme = new Platforme();\n\t\t\tClient.sendMessagesToServer(Client.ok, osServ);\n\t\t\tClient.myPlatforme.show();\n\t\t\tif (Client.myPlatforme == null) {\n\t\t\t\tSystem.out.println(\"ici null\");\n\t\t\t}\n\t\t\tstartClientClientListener(gameServerSocket, false);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"client message: \" + e.getMessage().toString());\n\t\t}\n\t}",
"public void createNewConnection(Socket socket) throws IOException{\n\t\tThread connection = null;\n\t\t\n\t\tswitch (type){\n\t\n\t\t\tcase RULE_CONNECTION:\n\t\t\t\tconnection = new Thread(new RemoteRuleHandler(socket));\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tconnections.add(connection);\n\t\tconnection.start();\n\t}",
"public void connect();",
"public void connect();",
"public void connect();",
"public void connect(ConnectionConfig config) {\n connectionManagers.computeIfAbsent(config, connectionManagerFactoryFunction).connect();\n }",
"public void addClient() throws IOException {\n BufferedReader in;\n Socket clientSocket; //pour chaque nouveau client\n System.out.println(\"New Client connected.\");\n clientSocket = serverSocket.accept();\n out = new PrintWriter(clientSocket.getOutputStream());\n in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n tabClientsout.addElement(out);\n Runnable r = new recevoir(out, in);\n // genere le Thread pour le nouveau client\n new Thread(r).start();\n }",
"@Override\n public void registerConnectionChangeListener(ConnectionChangeListener listener) {\n connectionListeners.add(listener);\n executor.execute(() -> listener.connectionChange(this, isConnected()));\n }",
"public void connect(String key){\n\t\tif(peers.containsKey(key) || establishing.contains(key)) return;\n\t\t\n\t\testablishing.add(key);\n\t\tPeerNode newPeer = PeerNode.createPeer(key);\n\t\tif(newPeer == null){\n\t\t\tConsole.message(\"A conexao com o par \" + key + \" nao pode ser estabelecida.\");\n\t\t}else{\n\t\t\t// connected successfully\n\t\t\tpeers.put(newPeer.getKey(), newPeer);\n\t\t\tnew Thread(newPeer).start();\n\t\t\tConsole.logEvent(\"CONNECTED\", key);\n\t\t\tgetMainWindow().updateList();\n\t\t}\n\t\testablishing.remove(key);\n\t}",
"public int addNewUser(ConnectionHandler<T> connection) {\n activeUsers.put(Integer.valueOf(increaseId()), connection);\n return userId -1;\n }",
"public void connect() {\n\t\tif (connected) return;\n\t\tconnected = true;\n\t\tfor (SQLConnection sqlConnection: sqlConnections) {\n\t\t\tsqlConnection.connection();\n\t\t}\n\t}",
"public void addEdge(Edge e){\n\t\tedges.put(e.hashCode(), e);\n\t\te.getHead().addConnection(e);\n\t\te.getTail().addConnection(e);\n\t}",
"private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n ClearConnection connection = new ClearConnection();\n connection.connect(clone.getIp(), clone.getOffloadingPort(), 5 * 1000);\n this.connections.add(connection);\n }\n\n this.protocol = new ERAMProtocol();\n this.ode = new ERAMode();\n\n } catch (Exception e) {\n Log.e(TAG,\"Connection setup with the Remote Server failed - \" + e);\n }\n }",
"protected void connectionEstablished() {}",
"@NbBundle.Messages(value = {\n \"MSG_AgentConnectionBroken=Control connection with JShell VM is broken, could not connect to agent\",\n \"MSG_AgentNotReady=The JShell VM is not ready for operation\"\n })\n public JShellConnection createConnection() throws IOException {\n JShellConnection old;\n synchronized (this) {\n if (closed) {\n throw new IOException(Bundle.MSG_AgentConnectionBroken());\n }\n if (expectDebugger && debuggerMachine == null) {\n return null;\n }\n// old = connection;\n// connection = null;\n }\n /*\n if (old != null) {\n old.shutDown();\n // notify about the old connection being trashed\n ShellLaunchEvent ev = new ShellLaunchEvent(mgr, old, false);\n mgr.fire((l) -> l.connectionClosed(ev));\n }\n */\n SocketChannel sc = SocketChannel.open();\n sc.configureBlocking(true);\n Socket sock = sc.socket();\n sock.connect(connectAddress, ShellLaunchManager.CONNECT_TIMEOUT);\n // turn to nonblocking mode\n sc.configureBlocking(false);\n boolean notify = false;\n JShellConnection con = new JShellConnection(this, sock.getChannel());\n /*\n synchronized (this) {\n if (connection == null) {\n connection = con;\n notify = true;\n } else {\n con = connection;\n }\n }\n */\n synchronized (this) {\n connections.add(con);\n }\n if (notify) {\n ShellLaunchEvent ev = new ShellLaunchEvent(mgr, con, false);\n mgr.fire((l) -> l.connectionInitiated(ev));\n }\n return con;\n }",
"boolean addConnectionListener(LWSConnectionListener lis);",
"void setConnection(Connection con);",
"@Override\n\tpublic void connect() {\n\t\t\n\t}",
"@Override\n\tpublic void connect() {\n\t\t\n\t}",
"public static void connect() {\n \t\tconnPool.start();\n \t}",
"@Override\n public abstract void connect();",
"protected static void addOpenConnection(WebServerHandler webServerHandler) {\n openConnections.put(webServerHandler, webServerHandler);\n }",
"private void openConnection(){}",
"public synchronized void add(ServerThread st){\r\n connectionArray.removeAll(Collections.singleton(null));\r\n connectionArray.add(st);\r\n }",
"public void addConnectionMonitor(AtomicBoolean die, long checkInterval) {\n new ConnectionMonitor(die, checkInterval).start();\n }",
"public void connect() throws ConnectionFailedException\n {\n isConnected = true;\n }",
"@Override\n public boolean addConnection(String firstNodeName, String secondNodeName) throws NodeException {\n\n try {\n if (containsNode(getSingleNode(firstNodeName)) && containsNode(getSingleNode(secondNodeName))) {\n getSingleNode(firstNodeName).newNeighbour(getSingleNode(secondNodeName));\n getSingleNode(secondNodeName).newNeighbour(getSingleNode(firstNodeName));\n return true;\n }\n } catch (NodeException e) {\n throw new NodeException(\"Jeden z Vámi zadaných prvků neexistuje!\");\n }\n\n return false;\n }",
"public void registerConnectionListener(ConnectionConfig config, ConnectionListener listener) {\n connectionManagers.computeIfAbsent(config, connectionManagerFactoryFunction)\n .addListener(listener);\n }",
"void addChannel(IChannel channel);",
"private void addConnection(Vertex v, Vertex v1, boolean twoway_road) {\n\t\tif(v == null || v1 == null) return;\r\n\t\tv1.addEdge(new Edge(v1, v));\r\n\t\tif (twoway_road)\r\n\t\t\tv1.addEdge(new Edge(v, v1));\r\n\t}",
"@OnOpen\n public void onOpen(Session session) {\n System.out.println(\"Socket A: \"+session.getId() + \" has opened a connection\");\n sendMessageToAll(\"User \" + session.getId() + \" has connected\");\n try {\n //stuur naar de client van de sessie 'Connection Established' over TCP.\n session.getBasicRemote().sendText(\"Connection Established\");\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n sessions.add(session);\n }",
"public final void addExistingConnection(java.lang.String r1, android.telecom.ParcelableConnection r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.addExistingConnection(java.lang.String, android.telecom.ParcelableConnection):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.addExistingConnection(java.lang.String, android.telecom.ParcelableConnection):void\");\n }",
"@Test\n public void testAddConn() {\n System.out.println(\"addConn\");\n String port = \"\";\n String conn = \"\";\n VM instance = null;\n String expResult = \"\";\n String result = instance.addConn(port, conn);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public boolean connect() throws RemoteException {\n\t\ttry {\n\t\t\t// Get remote object reference\n\t\t\tthis.registry = LocateRegistry.getRegistry(host, port);\n\t\t\tthis.server = (ServerInterface) registry.lookup(\"Server\");\n\t\t\tid = this.server.getNewClientId();\n\t\t\tClientInterface c_strub = (ClientInterface) UnicastRemoteObject.exportObject(this, 0);\n\t\t\tregistry.bind(id, c_strub);\n\t\t\treturn this.server.addClient(username, password, id);\n\t\t}\n\t\tcatch (AlreadyBoundException | NotBoundException e) {\n\t\t\tSystem.err.println(\"Error on client :\" + e);\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"@NotNull\n public AsynchResult<Server> addServer(AddServerRequestV1 request) {\n // TODO \n // We need first to probe the server to find out some server properties to decide what kind of client to use.\n var client = new HuaweiServerHardwareClient(request.address, request.username, request.password);\n var basicInfo = client.getServerBasicInfo();\n var currentServer = serverRepository.findFirstByAssetInfoSerialNumber(basicInfo.assetInfo.serialNumber);\n if (currentServer != null) {\n throw new ResourceAlreadyExistException();\n }\n var initializedServer = Server.initialize(basicInfo);\n initializedServer = serverRepository.save(initializedServer);\n var context = new AddServerContext();\n return context.run();\n }",
"public void add(Conseiller c) {\n\t\t\r\n\t}",
"@Override\n public void onOpen(WebSocketConnection connection) {\n System.out.println(\"ClientConnected!\");\n clients.add(connection);\n projectIdReference.add(\"\");\n connectionCount++;\n }",
"void addPeerEndpoint(PeerEndpoint peer);",
"public void connect(AStarNode connect) {\n connected.add(connect);\n }",
"@Override\n public void returnConnection(Connection connection) {\n\n boolean closeConnection = false;\n synchronized (connections) {\n if (connections.size() >= 5) { //Close the returned connection if there are already 5 connections in the pool.\n closeConnection = true;\n } else {\n connections.add(connection);\n }\n }\n if (closeConnection) {\n closeConnection(connection);\n }\n }",
"public void associateConnection(Object connection) throws ResourceException {\n checkIfDestroyed();\n\n if (connection instanceof JavaMailConnection) {\n JavaMailConnectionImpl javaMailCon = (JavaMailConnectionImpl) connection;\n javaMailCon.associateConnection(this);\n } else {\n throw new IllegalStateException(\n resource.getString(\"INVALID_CONNECTION\"));\n }\n }",
"protected abstract ConnectionBase createNewConnection(Socket socket);",
"public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }"
] |
[
"0.75691175",
"0.7479456",
"0.7464365",
"0.745639",
"0.68760043",
"0.675949",
"0.669693",
"0.6636009",
"0.6561523",
"0.65591085",
"0.6500684",
"0.63065183",
"0.6215506",
"0.62037086",
"0.6170449",
"0.60788316",
"0.60508215",
"0.6050774",
"0.60395616",
"0.6020729",
"0.6014223",
"0.59777945",
"0.5955622",
"0.59550446",
"0.5896514",
"0.5894915",
"0.5859588",
"0.58231527",
"0.5792498",
"0.5790167",
"0.5772968",
"0.5772471",
"0.57645977",
"0.57506186",
"0.5728078",
"0.57262546",
"0.5696801",
"0.5682084",
"0.5655105",
"0.56515485",
"0.5641108",
"0.5624821",
"0.5610451",
"0.5588722",
"0.5586332",
"0.5570046",
"0.55540234",
"0.55481243",
"0.5544712",
"0.55419886",
"0.55332947",
"0.55259496",
"0.5518106",
"0.5483054",
"0.54810804",
"0.5464785",
"0.5461471",
"0.5448889",
"0.5434988",
"0.54230684",
"0.54230684",
"0.54230684",
"0.5396239",
"0.53920853",
"0.53897053",
"0.53762335",
"0.53645205",
"0.53472906",
"0.5323121",
"0.53089136",
"0.5283587",
"0.5274079",
"0.52735114",
"0.52630496",
"0.5260952",
"0.5260952",
"0.52595115",
"0.52583593",
"0.5258006",
"0.5252377",
"0.52481616",
"0.5244569",
"0.5243613",
"0.52429366",
"0.52411485",
"0.5234654",
"0.5234025",
"0.5229892",
"0.5222654",
"0.5221737",
"0.522049",
"0.52204025",
"0.52103686",
"0.5208831",
"0.51997054",
"0.51955414",
"0.51930314",
"0.51924855",
"0.51874626",
"0.51814044"
] |
0.6781207
|
5
|
TODO Autogenerated method stub
|
@Override
public void Write_text(String CustomerCode, String Device, String Lot, String CP, File DataSorce,String FileName)
throws IOException {
File[] Filelist=DataSorce.listFiles();
for (int k = 0; k < Filelist.length; k++) {
parseRawdata parseRawdata=new parseRawdata(Filelist[k]);
LinkedHashMap<String, String> properties=parseRawdata.getProperties();
String Wafer_ID_R=properties.get("Wafer ID");
String waferid=properties.get("Wafer ID");
String[][] MapCell_R=parseRawdata.getAllDiesDimensionalArray();
String Flat_R=null;
String notch=properties.get("Notch");
if (notch.equals("0-Degree")) {
Flat_R="Up";
}else if (notch.equals("90-Degree")) {
Flat_R="Right";
}else if (notch.equals("180-Degree")) {
Flat_R="Down";
}else {
Flat_R="Left";
}
Integer PassDie_R=Integer.parseInt(properties.get("Pass Die"));
Integer RightID_R=Integer.valueOf(properties.get("RightID"));
Integer Col_R=(Integer.parseInt(properties.get("Map Cols"))) ;
Integer Row_R=(Integer.parseInt(properties.get("Map Rows")));
MapCell_R=TurnNighteenDegree.turnNegativeNighteen(MapCell_R, Row_R, Col_R);
Integer temp=Row_R;
Row_R=Col_R;
Col_R=temp;
String FailDie_R=properties.get("Fail Die");
String FinalID=RightID_R.toString();
String TestStartTime_R=properties.get("Test Start Time");
String Wafer_Load_Time_R=properties.get("Test Start Time");
TreeMap<Integer, Integer> Bin_Summary_R=parseRawdata.getBinSummary();
String OPerater_R=properties.get("Operator");
String Yeild_R=properties.get("Wafer Yield");
String TestEndTime_R=properties.get("Test End Time");
Integer gross_die=Integer.parseInt(properties.get("Gross Die"));
String waferSize_R=properties.get("WF_Size");
String slotId=properties.get("Slot");
TextReportModel9TurnN90 model1=new TextReportModel9TurnN90();
String VERSION="NA";
if (RightID_R<10) {
FinalID="0"+RightID_R.toString();
}
HashMap<String, String> NameMap=model1.InitMap(Lot, FinalID, CP, Wafer_Load_Time_R, Device, Wafer_ID_R, VERSION);
Set<String> keyset1=NameMap.keySet();
String FinalName=FileName;
for (String key : keyset1) {
if (FinalName.contains(key)) {
FinalName=FinalName.replace(key, NameMap.get(key));
}
}
File Result_Text=new File(reportBath+CustomerCode+"/"+Device+"/"+Lot+"/"+CP+"/"+FinalName);
PrintWriter out=null;
try {
out=new PrintWriter(new FileWriter(Result_Text));
} catch (IOException e) {
// TODO: handle exception
e.printStackTrace();
}
out.print(" ");
for(int i = 1;i<Col_R;i++)
{
if (i<10) {
out.print(" 0"+i);
}else
{
out.print(" "+i);
}
}
out.print("\r\n");
out.print(" ");
for(int i = 1;i<Col_R;i++)
{
out.print("++-");
}
out.print("\r\n");
for (int i = 0; i < Row_R; i++) {
if (i<10) {
out.print("00"+i+"|");
}else if (i>9&&i<100) {
out.print("0"+i+"|");
}else {
out.print(i+"|");
}
for (int j = 0; j < Col_R; j++) {
if (MapCell_R[i][j]==null) {
out.print(String.format("%3s"," "));
}else if (MapCell_R[i][j].equals("S")||MapCell_R[i][j].equals("M")) {
out.print(String.format("%3s"," "));
}else {
if (Integer.valueOf(MapCell_R[i][j])>9) {
out.print(String.format("%3s", MapCell_R[i][j]));
}else {
out.print(String.format("%3s", "0"+MapCell_R[i][j]));
}
}
}
out.print("\r\n");
}
out.print("============ Wafer Information () ==========="+"\r\n");
out.print(" Device: "+Device+"\r\n");
out.print(" Lot NO: "+Lot+"\r\n");
out.print(" Slot No: "+(slotId.length()==1?"0"+slotId:slotId)+"\r\n");
out.print(" Wafer ID: "+waferid+"\r\n");
out.print(" Operater: "+OPerater_R+"\r\n");
out.print(" Wafer Size: "+waferSize_R+" Inch"+"\r\n");
out.print(" Flat Dir: "+Flat_R+"\r\n");
// if (Flat_R.equals("LEFT")) {
// out.print(" Flat Dir: "+270+"-Degree"+"\r\n");
// }
// if (Flat_R.equals("RIGHT")) {
// out.print(" Flat Dir: "+90+"-Degree"+"\r\n");
// }
// if (Flat_R.equals("UP")) {
// out.print(" Flat Dir: "+0+"-Degree"+"\r\n");
// }
// if (Flat_R.equals("DOWN")) {
// out.print(" Flat Dir: "+180+"-Degree"+"\r\n");
// }
out.print(" Wafer Test Start Time: "+TestStartTime_R+"\r\n");
out.print(" Wafer Test Finish Time: "+TestEndTime_R+"\r\n");
out.print(" Wafer Load Time: "+TestStartTime_R+"\r\n");
out.print(" Wafer Unload Time: "+TestEndTime_R+"\r\n");
out.print(" Total test die: "+gross_die+"\r\n");
out.print(" Pass Die: "+PassDie_R+"\r\n");
out.print(" Fail Die: "+FailDie_R+"\r\n");
out.print(" Yield: "+Yeild_R+"\r\n");
out.print("\r\n");
out.print("\r\n");
out.print(" Bin (0~63) Data Deatil Summary"+"\r\n");
out.print("======================================================================="+"\r\n");
String Bin_Sum="";
String Bin_yield_percent="";
for (int i = 0; i < 64; i++) {
String Every_Bininfor="";
Integer Sum=0;
if (Bin_Summary_R.containsKey(i+1)) {
Sum=Bin_Summary_R.get(i+1);
}
for(int j=0;j<5-(""+Sum).length();j++)
{
Every_Bininfor+="0";
}
Bin_Sum+=Every_Bininfor+Sum+" | ";
String percent=String.format("%.2f", ((double)Sum*100/gross_die));
if (percent.length()!=5) {
percent="0"+percent;
}
Bin_yield_percent+= percent+"% | ";
if ((i+1)>9) {
out.print("Bin "+(i+1)+" | ");
}else
{
out.print("Bin "+(i+1)+" | ");
}
if ((i+1)%8==0) {
out.print("\r\n");
out.print(Bin_Sum);
Bin_Sum="";
out.print("\r\n");
out.print(Bin_yield_percent);
Bin_yield_percent="";
}
if ((i+1)%8==0) {
out.print("\r\n");
out.print("======================================================================="+"\r\n");
}
}
out.flush();
out.close();
FTP_Release(CustomerCode, Device, Lot, CP, Result_Text);
}
}
|
{
"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
|
provide info for map
|
public GameMapHashMap() {
HashMap<String, HashMap<String, String>> temporaryMap = new HashMap<>();
instantiateIndividualRooms();
temporaryMap.put("Atrium", atrium);
temporaryMap.put("Breakfast Nook", breakfastNook);
temporaryMap.put("Menagerie", menagerie);
temporaryMap.put("Conservatory", conservatory);
temporaryMap.put("Panic Room", panicRoom);
temporaryMap.put("Fire Swamps", fireSwamps);
temporaryMap.put("Hall", hall);
temporaryMap.put("Dining Room", diningRoom);
temporaryMap.put("Arcade", arcade);
temporaryMap.put("Observatory", observatory);
temporaryMap.put("Courtyard", courtyard);
temporaryMap.put("Library", library);
temporaryMap.put("Garden", garden);
temporaryMap.put("Laboratory", laboratory);
temporaryMap.put("Kitchen", kitchen);
rooms = Collections.unmodifiableMap(temporaryMap);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Map<String, Object> getInfo();",
"@Override\n\tpublic void getStat(Map<String, String> map) {\n\t\t\n\t}",
"@Override\n public void addMapInfo(GameMapInfo mapInfo) {\n }",
"@Override\r\n\tpublic IMapInfo getMapInfo() {\r\n\t\treturn replay.mapInfo;\r\n\t}",
"public HashMap getMetaData() ;",
"public static void getMapDetails(){\n\t\tmap=new HashMap<String,String>();\r\n\t map.put(getProjName(), getDevID());\r\n\t //System.out.println(\"\\n[TEST Teamwork]: \"+ map.size());\r\n\t \r\n\t // The HashMap is currently empty.\r\n\t\tif (map.isEmpty()) {\r\n\t\t System.out.println(\"It is empty\");\r\n\t\t \r\n\t\t System.out.println(\"Trying Again:\");\r\n\t\t map=new HashMap<String,String>();\r\n\t\t map.put(getProjName(), getDevID());\r\n\t\t \r\n\t\t System.out.println(map.isEmpty());\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t//retrieving values from map\r\n\t Set<String> keys= map.keySet();\r\n\t for(String key : keys){\r\n\t \t//System.out.println(key);\r\n\t System.out.println(key + \": \" + map.get(key));\r\n\t }\r\n\t \r\n\t //searching key on map\r\n\t //System.out.println(\"Map Value: \"+map.containsKey(toStringMap()));\r\n\t System.out.println(\"Map Value: \"+map.get(getProjName()));\r\n\t \r\n\t //searching value on map\r\n\t //System.out.println(\"Map Key: \"+map.containsValue(getDevID()));\r\n\t \r\n\t\t\t\t\t // Put keys into an ArrayList and sort it.\r\n\t\t\t\t\t\t//ArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\t\t\t//list.addAll(keys);\r\n\t\t\t\t\t\t//Collections.sort(list);\r\n\t\t\t\t\r\n\t\t\t\t\t\t// Display sorted keys and their values.\r\n\t\t\t\t\t\t//for (String key : list) {\r\n\t\t\t\t\t\t// System.out.println(key + \": \" + map.get(key));\r\n\t\t\t\t\t\t//}\t\t\t \r\n\t}",
"public java.util.Map<java.lang.Integer, java.lang.Integer> getInfoMap() {\n return internalGetInfo().getMap();\n }",
"public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }",
"public java.util.Map<java.lang.Integer, java.lang.Integer> getInfoMap() {\n return internalGetInfo().getMap();\n }",
"java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();",
"Information getInfo();",
"java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();",
"public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();",
"public abstract void createMap();",
"@Override\n\tpublic Map<String, Object> getInfo(String id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Map<String, Object> getInfo(Map<String, Object> pageInfo) {\n\t\treturn null;\n\t}",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getDetailsMap() {\n return internalGetDetails().getMap();\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getDetailsMap() {\n return internalGetDetails().getMap();\n }",
"public String getMapDesc() {\n\t\treturn this.mapDesc;\n\t}",
"MAP createMAP();",
"public String toString()\n {\n return super.toString() + \":\\n\" + getMap();\n }",
"public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }",
"Map<Integer, String> getMetaLocal();",
"public HashMap<Integer, ArrayList<String>> getInfo() {\n\t\treturn infoList;\n\t}",
"public abstract String getInfo();",
"public abstract String getInfo();",
"Map getIDPEXDataMap();",
"Map getSPEXDataMap();",
"@Override\n\tpublic Map<String, Object> getFullInfo(String id) {\n\t\treturn null;\n\t}",
"public String getMap() { \n\t\treturn getMapElement().getValue();\n\t}",
"private java.util.Map<java.lang.String, java.lang.Object> collectInformation() {\n /*\n // Method dump skipped, instructions count: 418\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ironsource.mediationsdk.utils.GeneralPropertiesWorker.collectInformation():java.util.Map\");\n }",
"public void printMiniMap() { }",
"public void setInfo(java.util.Map<java.lang.String,java.util.List<java.lang.String>> value) {\n this.info = value;\n }",
"public void displaymap(AircraftData data);",
"java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();",
"java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"public Map<String, Object> getInfoMap()\n {\n Map<String, Object> paramMap = new HashMap<String, Object>();\n this.putInMap(paramMap);\n return paramMap;\n }",
"public abstract Map getAttributes();",
"public Map<String, Object> getInfoMap() {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tthis.putInMap(paramMap);\n\t\treturn paramMap;\n\t}",
"private void printMap() {\n\t\tfor(Integer key: location.keySet()){\n\t\t\tString val= location.get(key).toString();\n\t\t\tSystem.out.println(\"(\" + key.toString() + \", \" + val+ \")\");\n\t\t}\n\t}",
"public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}",
"private void ini_MapPaks()\r\n\t{\r\n\r\n\t}",
"public void refreshMapInformation() {\n\t\t((JLabel)components.get(\"timeElapsedLabel\")).setText(Integer.toString(ABmap.instance().getTimeElapsed()));\n\t\t((JLabel)components.get(\"oilInMapLabel\")).setText(Integer.toString(ABmap.instance().getOilInMap()));\n\t\t((JLabel)components.get(\"oilInStorageLabel\")).setText(Integer.toString(ABmap.instance().getOilInStorage()));\n\t\t((JProgressBar)components.get(\"oilCleanedProgressBar\")).setValue(100-((ABmap.instance().getOilInMap()*100)/ABmap.instance().initialOilCount));\n\t\t((JLabel)components.get(\"fuelUsedLabel\")).setText(Integer.toString(ABmap.instance().getFuelUsed()));\n\t\t((JLabel)components.get(\"simCompletedLabel\")).setText(Boolean.toString(ABmap.instance().isDone()));\n\t}",
"String getInfo();",
"void getReverInfo(int longitude,int latitude);",
"@Override\n\tpublic DataTablesResponseInfo getMaterielInfo(Map<String, Object> map) {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getMaterielInfo(map));\n\t\treturn info;\n\t}",
"boolean hasSimpleMap();",
"Map<Class<?>, Object> yangAugmentedInfoMap();",
"Map<Class<?>, Object> yangAugmentedInfoMap();",
"private void initInfo(Map<String, String> _info) {\n this.jlCPU.setText(_info.get(\"Model\"));// FIXME may be very long name\n this.jlCores.setText(_info.get(\"TotalCores\"));\n this.jlVendor.setText(_info.get(\"Vendor\"));\n this.jlFrequency.setText(_info.get(\"Mhz\") + \" MHz\");\n this.jlRAM.setText(_info.get(\"Free\").substring(0, 3) + \" / \" + _info.get(\"Ram\") + \" MB\");\n this.jlHostname.setText(_info.get(\"HostName\"));\n this.jlIP.setText(_info.get(\"IP\"));\n this.jlGateway.setText(_info.get(\"DefaultGateway\"));\n this.jlPrimDNS.setText(_info.get(\"PrimaryDns\"));\n }",
"private void returnDriverLocationstoMaps() {\n }",
"@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}",
"private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }",
"public boolean getShowMap()\r\n {\r\n return showMap;\r\n }",
"public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }",
"protected Terrain requestMapInformation(int x, int y) {\r\n\t\treturn myManager.requestMapInformation( x, y );\r\n\r\n\t}",
"public HashMap<String, String> getInfoForNextPlace() {\n\t\tif (buildingName != null) {\n\t\t\treturn buildingInfo.get(buildingName);\n\t\t}\n\t\treturn storyInfo;\n\t}",
"String getMapCode();",
"public void printMap() {\n\t\tmap.printMap();\n\t}",
"public Map<String, Map<String, Set<String>>> getLocationMap();",
"public Map() {\n\t\t//intially empty\n\t}",
"public interface Map {\n /**\n * Return the distance between two coordinates.\n * \n * @param coord1 valid coordinates\n * @param coord2 valid coordinates\n * @return return distance between coord1 and coord2.\n * Returns Integer.MAX_VALUE if there is no path\n * between coordinates.\n */\n public int distance(Coord coord1, Coord coord2);\n\n /**\n * Return coordinates of a localisation.\n * \n * @param address a known localisation\n * @param return coordinates of the localisation, null\n * if the location doesn't exist.\n */\n public Coord addressToCoord(String localisation);\n /**\n * Returns the address closest to the localisation\n *\n * @param loc : the concerned localisation \n * @post returns one of the closest addresses to loc, null if\n * there isn't any.\n */\n public String coordToAddress(Coord loc);\n\n /**\n * Add an obstacle at coordinate obstacleCoord\n * \n * @param obstacleCoord coordinates of the new obstacle. Must be valid\n * \n */\n\n public void addObstacle(Coord obstacleCoord);\n\n /**\n * Remove an obstacle at coordinates\n * \n * @param obstacleCoord must be coordinates of a recorded obstacle\n */\n public void removeObstacle(Coord obstacleCoord);\n /**\n * Adds a list of addresses->localisations in the map.\n *\n * @param address must be a list of lines with one address and one coordinate\n * on each, separated by an @. the coordinate must be on a street.\n * @return returns the list of invalid address.\n */\n public String addAddressList(BufferedReader address);\n /**\n * Adds an address in the Map. \n * @param Address a string representing the address, can be anything.\n * @param coord the coord of the address, can be anywhere.\n */\n public void addAddress(String Address, Coord coord);\n /**\n * Sets the street on the map\n * \n * the distance between roads is 10. the roads start at coordinate 0.\n * so numx = 5 -> roads at x = [0,10,20,30,40]\n * \n * @param: numx : > 0 :the amount of North-South streets.\n * @param: numy : > 0 :the amount of West-East streets.\n * \n */\n public void setStreets(int numx, int numy);\n}",
"public MapCalculator(ZanMinimap minimap) {\n \t\tmap = minimap.map;\n \t}",
"@Override\n public String getInfo(){\n return info;\n }",
"void numberOfOpenMapInformation(int number, int pIndex);",
"String getMapName() {\n try {\n fd world = getWorld();\n Class<?> worldclass = world.getClass();\n Field worlddatafield = null;\n while (true) { //\n\n try {\n worlddatafield = worldclass.getDeclaredField(\"x\");\n break;\n } catch (NoSuchFieldException e) {\n worldclass = worldclass.getSuperclass();\n continue;\n }\n }\n if (worlddatafield == null)\n return null;\n worlddatafield.setAccessible(true);\n\n ei worldata;\n\n worldata = (ei) worlddatafield.get(world);\n return worldata.j();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public int askMap();",
"private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }",
"void updateMap(MapData map);",
"private static void showMap() {\n\t\tSet<Point> pointSet = map.keySet();\n\t\tfor (Point p : pointSet) {\n\t\t\tSystem.out.println(map.get(p));\n\t\t}\n\t}",
"public abstract ImmutableMap<String, ParamInfo> getParamInfos();",
"public boolean containsInfo(\n int key) {\n \n return internalGetInfo().getMap().containsKey(key);\n }",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"public MapDisplay getMap(){\n\t\treturn map; //gibt die Karte zurück\n\t}",
"abstract public T getInfo();",
"private void addMakerToMap() {\n if (mapboxMap != null) {\r\n mapboxMap.removeAnnotations();\r\n if (res.getData().size() > 0) {\r\n for (UserBasicInfo info : res.getData()) {\r\n if (info.getRole().equalsIgnoreCase(\"student\")) {\r\n if (isStudentSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n if (info.getRole().equalsIgnoreCase(\"teacher\")) {\r\n if (isTeacherSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n }\r\n } else {\r\n getMvpView().noRecordFound();\r\n }\r\n }\r\n }",
"public void printMap(GameMap map);",
"public interface MapVisualizationInfo\r\n{\r\n /**\r\n * Gets the DataTypeInfo for this visualization info.\r\n *\r\n * @return The {@link DataTypeInfo}.\r\n */\r\n DataTypeInfo getDataTypeInfo();\r\n\r\n /**\r\n * Gets the tile level controller.\r\n *\r\n * @return the tile level controller\r\n */\r\n TileLevelController getTileLevelController();\r\n\r\n /**\r\n * Gets the tile render properties for this data type if the type is a\r\n * IMAGE_TILE type image, or null if this type does not support tiles.\r\n *\r\n * @return the tile render properties or null.\r\n */\r\n TileRenderProperties getTileRenderProperties();\r\n\r\n /**\r\n * Gets the default visualization type.\r\n *\r\n * @return the default visualization type\r\n */\r\n MapVisualizationType getVisualizationType();\r\n\r\n /**\r\n * Gets the Z-Order for this Type.\r\n *\r\n * @return the order.\r\n */\r\n int getZOrder();\r\n\r\n /**\r\n * Checks if is image tile type.\r\n *\r\n * @return true, if is image tile type\r\n */\r\n boolean isImageTileType();\r\n\r\n /**\r\n * Checks if is motion imagery type.\r\n *\r\n * @return true, if is motion imagery type\r\n */\r\n boolean isMotionImageryType();\r\n\r\n /**\r\n * Checks if is image type.\r\n *\r\n * @return true, if is image type\r\n */\r\n boolean isImageType();\r\n\r\n /**\r\n * Checks if is z-orderable.\r\n *\r\n * @return true, if is z-orderable\r\n */\r\n boolean isZOrderable();\r\n\r\n /**\r\n * Sets the DataTypeInfo for this visualization info.\r\n *\r\n * @param dti - the {@link DataTypeInfo}\r\n */\r\n void setDataTypeInfo(DataTypeInfo dti);\r\n\r\n /**\r\n * Sets the visualization type. Cannot be null.\r\n *\r\n * @param visType the new visualization type\r\n */\r\n void setVisualizationType(MapVisualizationType visType);\r\n\r\n /**\r\n * Sets the Z-Order for this Type.\r\n *\r\n * @param order - the order\r\n * @param source - the calling object\r\n */\r\n void setZOrder(int order, Object source);\r\n\r\n /**\r\n * True if this DataTypeInfo utilizes {@link MapDataElement}s.\r\n *\r\n * @return true if uses, false if not\r\n */\r\n boolean usesMapDataElements();\r\n\r\n /**\r\n * Returns true if this data type uses visualization styles, false if not.\r\n *\r\n * @return true, if uses visualization styles.\r\n */\r\n boolean usesVisualizationStyles();\r\n}",
"public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }",
"public interface IMap \n{ \n String GetMaps(boolean showEnemyShips);\n String GetSpecifiedMap(MapSettings ms);\n \n MapSettings GetUserMap();\n\n boolean HitEnemyCell(int x, int y);\n boolean CheckVictory(boolean checkPlayerMap);\n boolean SetUserMap(MapSettings userMap);\n boolean SetEnemyMap(MapSettings enemyMap);\n}",
"interface DownloadsMap extends PagerAdapterMap, InitViewMap, ContextMap\n {\n\n }",
"public abstract AnnotationMap mo30683d();",
"public void printInfo() {\n String s = \"\";\n if (map.isEmpty()) {\n s += \"not keeping any entries\\n\";\n } else {\n s += \"This Node stores a range of \" + map.size() + \" keys :\\n from:\" + map.firstKey() + \" up to: \" + map.lastKey() + \"\\n\";\n }\n s += \"node key:\\t\" + nodeKey + \"\\n\";\n s += \"previous key:\\t\" + predKey + \"\\n\";\n\n window.getKeysInfoText().setText(s);\n }",
"protected void mapParsableInfo(CommandSender sender, String type, MapParsable mapParsable) {\n\t\t// Constructs the initial \"&2Type: \" format of the displayed string.\n\t\ttype = \"&2\"+type+\": \";\n\t\t\n\t\tTextComponent infoText;\n\t\t// If the MapParsable is null then it is underfined and has no information.\n\t\tif(mapParsable == null) {\n\t\t\tinfoText = new TextComponent(Chat.translate(type+\"&cUndefined\"));\n\t\t\tinfoText.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(Chat.translate(\"&7No Information\")).create()));\n\t\t} else {\n\t\t\t// Add the name to the string and construct a TextComponent from it (now looks like \"&2Type: &7Name\")\n\t\t\tinfoText = new TextComponent(Chat.translate(type+\"&7\"+mapParsable.name()));\n\t\t\t\n\t\t\t// Hovertext constructed to display the name of the MapParsable before anything else.\n\t\t\tString hoverText = \"&2Name: &7\"+mapParsable.name();\n\t\t\t\n\t\t\t// Grabbing the fields and values of the MapParsable and saving as a Map<String, Object>.\n\t\t\tMap<String, Object> fieldMap = mapParsable.mapFields();\n\n\t\t\t// If there were no fields to loop through, then \"&7No fields\" is added under the MapParsable's name.\n\t\t\tif(fieldMap.isEmpty())\n\t\t\t\thoverText += \"\\n&7&oNo fields\";\n\t\t\t\n\t\t\t// Looping through each field and adding it to the string in the following format: \"&2Field: &aValue\".\n\t\t\telse for(String fieldName : fieldMap.keySet())\n\t\t\t\thoverText += \"\\n&2\"+StringsUtil.formaliseString(fieldName)+\": &a\"+fieldMap.get(fieldName).toString();\n\n\t\t\t\n\t\t\t// Saving the HoverEvent to our displayed text.\n\t\t\tinfoText.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(Chat.translate(hoverText)).create()));\n\t\t}\n\t\t// Sends either the undefined or defined MapParsable object to sender.\n\t\tMessenger.sendRaw(sender, infoText);\n\t}",
"@Override\n\tpublic void drawMap(Map map) {\n\t\tSystem.out.println(\"Draw map\"+map.getClass().getName()+\"on SD Screen\");\n\t}",
"public String getMapName() {\n return mapName;\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n\n // Use a custom info window adapter to handle multiple lines of text in the\n // info window contents.\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n TextView title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n TextView snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n }"
] |
[
"0.77643716",
"0.6903895",
"0.68321526",
"0.6805047",
"0.668849",
"0.66572595",
"0.65730727",
"0.6563462",
"0.6520829",
"0.6513654",
"0.6511373",
"0.6509486",
"0.6503648",
"0.64261883",
"0.63935816",
"0.6371588",
"0.63591784",
"0.62229156",
"0.62165",
"0.6207716",
"0.61485463",
"0.6131295",
"0.61303884",
"0.6125685",
"0.61063695",
"0.610395",
"0.610395",
"0.61035615",
"0.60982424",
"0.60960215",
"0.60938233",
"0.6089483",
"0.607584",
"0.6072367",
"0.6068776",
"0.6049761",
"0.6049761",
"0.60464084",
"0.6042782",
"0.6037842",
"0.60308003",
"0.6029931",
"0.6019351",
"0.60115165",
"0.60059875",
"0.5989439",
"0.5982461",
"0.59716564",
"0.596793",
"0.596694",
"0.596694",
"0.5961155",
"0.5959239",
"0.59442043",
"0.5939337",
"0.5937974",
"0.5933263",
"0.59306425",
"0.5925791",
"0.59193206",
"0.59177285",
"0.58972776",
"0.5896282",
"0.5891224",
"0.5888841",
"0.5880273",
"0.5880193",
"0.58763707",
"0.58737296",
"0.5862036",
"0.58567584",
"0.5852693",
"0.5851924",
"0.58419114",
"0.58234876",
"0.58234876",
"0.58234876",
"0.58234876",
"0.58234876",
"0.58234876",
"0.58234876",
"0.58234876",
"0.58234876",
"0.58234876",
"0.58234876",
"0.58234876",
"0.58234876",
"0.5820603",
"0.581557",
"0.58134645",
"0.58073837",
"0.5802994",
"0.5790378",
"0.5781944",
"0.577869",
"0.57753927",
"0.57738525",
"0.57701313",
"0.57637596",
"0.5761832",
"0.5759878"
] |
0.0
|
-1
|
8 / \ 6 10 / \ / \ 5 7 9 11
|
public static void main(String[] args) {
BinaryTreeNode root = new BinaryTreeNode();
root.value = 8;
root.left = new BinaryTreeNode();
root.left.value = 6;
root.left.left = new BinaryTreeNode();
root.left.left.value = 5;
root.left.right = new BinaryTreeNode();
root.left.right.value = 7;
root.right = new BinaryTreeNode();
root.right.value = 10;
root.right.left = new BinaryTreeNode();
root.right.left.value = 9;
root.right.right = new BinaryTreeNode();
root.right.right.value = 11;
printFromToBottom(root);}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"public static void main(String[] args) {\n TreeNode n0 = new TreeNode(0); \n TreeNode n1 = new TreeNode(1); \n TreeNode n2 = new TreeNode(2); \n TreeNode n3 = new TreeNode(3); \n TreeNode n4 = new TreeNode(4); \n TreeNode n5 = new TreeNode(5); \n TreeNode n6 = new TreeNode(6); \n \n n0.left = n1; n0.right = n2; \n n1.left = n3; n1.right = n4; \n n2.left = n5; n2.right = n6; \n \n List<TreeNode> res = new Test().findPath(n0, n5); \n System.out.println(res); \n }",
"public static void main(String[] args) {\n// TreeNode node1 = new TreeNode(0);\n// TreeNode node2l = new TreeNode(3);\n// TreeNode node2r = new TreeNode(5);\n//// TreeNode node3l = new TreeNode(2);\n// TreeNode node3r = new TreeNode(2);\n//// TreeNode node4l = new TreeNode(4);\n// TreeNode node4r = new TreeNode(1);\n//\n// node1.left = node2l;\n// node1.right = node2r;\n//// node2l.left = node3l;\n// node2l.right = node3r;\n// node3r.right = node4r;\n//\n\n int[] nums = {3, 2, 1, 6, 0, 5};\n\n }",
"private int leftChild(int i){return 2*i+1;}",
"public static void main(String[] args) {\n Node root = new Node(10);\n root.right = new Node(-3);\n root.right.right = new Node(11);\n\n Node l1 = root.left = new Node(5);\n l1.right = new Node(2);\n l1.right.right = new Node(1);\n\n l1.left = new Node(3);\n l1.left.right = new Node(-2);\n l1.left.left = new Node(3);\n\n int k = 7;\n List<Node> path = new ArrayList<>();\n findPath(root, 7, path); //O(n^2) in worst, O(nlogn) if tree is balanced.\n\n }",
"private int rightChild(int i){return 2*i+2;}",
"void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}",
"public static void main(String[] args) {\n TreeNode root = new TreeNode(1);\n root.left = new TreeNode(2);\n root.right = new TreeNode(3);\n root.left.left = new TreeNode(4);\n root.left.right = new TreeNode(8);\n root.right.left = new TreeNode(6);\n root.right.right = new TreeNode(7);\n Solution34 solution34 = new Solution34();\n System.out.println(solution34.FindPath(root,11));\n }",
"public static TreeNode buildTreeNode08() {\n\t\tTreeNode root = new TreeNode(4);\n\t\troot.left = new TreeNode(-57);\n\t\troot.left.right = new TreeNode(67);\n\t\troot.left.right.right = new TreeNode(-97);\n\t\t\n\t\troot.right = new TreeNode(-57);\n\t\troot.right.left = new TreeNode(67);\n\t\troot.right.left.left = new TreeNode(-97);\n\t\t\n\t\treturn root;\n\t}",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"private int first_leaf() { return n/2; }",
"public static void main(String[] args) {\n TreeNode root = new TreeNode(10);\n root.left = new TreeNode(5);\n root.right = new TreeNode(12);\n root.left.left = new TreeNode(4);\n root.left.right = new TreeNode(7);\n List<List<Integer>> result = pathSum(root, 22);\n for(List<Integer> i: result) {\n System.out.println(i);\n }\n }",
"public static void main(String[] args) {\n TreeNode n7 = new TreeNode(7);\n TreeNode n6 = new TreeNode(6);\n TreeNode n5 = new TreeNode(5);\n TreeNode n4 = new TreeNode(4);\n TreeNode n3 = new TreeNode(3);\n TreeNode n2 = new TreeNode(2);\n TreeNode n1 = new TreeNode(1);\n\n n4.left = n2;\n n4.right = n6;\n\n n2.left = n1;\n n2.right = n3;\n\n n6.left = n5;\n n6.right = n7;\n\n System.out.println(\"Cay n4\");\n List<Integer> resultPreOrder = preOrderTravel(n4);\n for (Integer integer : resultPreOrder) {\n System.out.println(integer);\n }\n\n System.out.println(\"Cay n2\");\n resultPreOrder = preOrderTravel(n2);\n for (Integer integer : resultPreOrder) {\n System.out.println(integer);\n }\n }",
"public static void main(String[] args){\n\t\tTreeNode node1 = new TreeNode(1);\n\t\tTreeNode node2 = new TreeNode(2);\n\t\tTreeNode node3 = new TreeNode(3);\n\t\tTreeNode node4 = new TreeNode(4);\n\t\tTreeNode node5 = new TreeNode(5);\n\t\tTreeNode node6 = new TreeNode(6);\n\t\tTreeNode node7 = new TreeNode(7);\n\t\tnode4.left = node2;\n\t\tnode4.right = node6;\n\t\tnode2.left = node1;\n\t\tnode2.right = node3;\n\t\tnode6.left = node5;\n\t\tnode6.right = node7;\n\t\t/*\n\t\t * 4\n\t\t * /\n\t\t * 5\n\t\t * \\\n\t\t * 6\n\t\t */\n\t\t/*node4.left = node5;\n\t\tnode5.right = node6;*/\n\t\t\n\t\ttreeTraversal2 tt = new treeTraversal2();\n\t\tSystem.out.print(\"Inorder Rcur: \");tt.inorderTraverse(node4);//1234567\n\t\tSystem.out.println();\t\t\n\t\tSystem.out.print(\"Inorder Iter: \");tt.stackInorder(node4);//1234567\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Preorder Rcur: \");tt.preorderTraverse(node4);//4213657\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Preorder Iter: \"); tt.stackPreorder(node4);//4213657\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Postorder Rcur: \");tt.postorderTraverse(node4);//1325764\n\t\tSystem.out.println();\t\t \n\t\tSystem.out.print(\"Postorder Iter: \");tt.stackPostorder(node4);//1325764\n\t\t//System.out.println();\n\t\t//System.out.print(\"Postorder Iter: \");tt.twoStackPostorder(node4);//1325764\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Level Iter: \");tt.levelTraverse(node4);//4261357\n\t}",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public static void main(String[] args) {\n\t\tint[] arr = {7,3,10,12,5,1,9};\n\t\tNode root = null;\n\t\tfor(int n:arr) {\n\t\t\tif(root == null) {\n\t\t\t\troot = new Node(n);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tNode cur = root;\n\t\t\tNode par = null;\n\t\t\twhile(cur != null) {\n\t\t\t\tpar = cur;\n\t\t\t\tif(n < cur.val) cur = cur.left;\n\t\t\t\telse cur = cur.right;\n\t\t\t}\n\t\t\tif(n < par.val) par.left = new Node(n);\n\t\t\telse par.right = new Node(n);\n\t\t\tif(height(root.left) - height(root.right) > 1) {\n\t\t\t\tif(height(root.left.right) > height(root.left.left)) leftRotate(root.left);\n\t\t\t\trightRotate(root);\n\t\t\t}\n\t\t\tif(height(root.right) - height(root.left) > 1) {\n\t\t\t\tif(height(root.right.left) > height(root.right.right)) rightRotate(root.right);\n\t\t\t\tleftRotate(root);\n\t\t\t}\n\t\t}\n\t\t//infixOrder(root);\n//\t\tdel(root,7);\n//\t\tinfixOrder(root);\n\t\t//del(root,5);\n\t\t//del(root,5);\n\t\tinfixOrder(root);\n\t}",
"public static void ninethProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=4-1;j>=i;j--) {\n\t\t\t\tSystem.out.print(\" \");\t\n\t\t\t}for(int k=1;k<=4;k++) {\n\t\t\t\tSystem.out.print(\"*\");\t\t\n\t\t\t}System.out.println();\n\t\t}\n\t}",
"public static void main(String[] args) {\n TreeNode n20 = new TreeNode(20);\n TreeNode n8 = new TreeNode(8);\n TreeNode n4 = new TreeNode(4);\n TreeNode n7 = new TreeNode(7);\n TreeNode n12 = new TreeNode(12);\n TreeNode n14 = new TreeNode(14);\n TreeNode n21 = new TreeNode(21);\n TreeNode n22 = new TreeNode(22);\n TreeNode n25 = new TreeNode(25);\n TreeNode n24 = new TreeNode(24);\n n20.left = n8;\n n20.right = n22;\n n8.left = n4;\n n8.right = n12;\n n4.right = n7;\n n12.right = n14;\n n22.left = n21;\n n22.right = n25;\n n25.left = n24;\n\n for (Integer i : printBoundary(n20)) {\n System.out.println(i);\n }\n }",
"public static void main(String[] args) {\n\t\tNode root = newNode(1); \r\n\t root.left = newNode(2); \r\n\t root.right = newNode(3); \r\n\t root.left.left = newNode(4); \r\n\t root.left.right = newNode(5); \r\n\t root.right.left = newNode(6); \r\n\t root.right.right = newNode(7); \r\n\t root.right.left.right = newNode(8); \r\n\t root.right.right.right = newNode(9); \r\n\t \r\n\t System.out.println(largestUinquePath(root)); \r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"private static int path(int n) {\n if (n == 0 || n == 1 || n == 2) {\n return n;\n }\n return path(n-1) + path(n-2);\n }",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int[] numbers = new int [5];\n\n for (int i = 0; i < 5; i ++) {\n System.out.print(i+1 + \". \");\n numbers[i]=input.nextInt();\n }\n for(int num : numbers){\n int rootNumber = num / num;\n System.out.println(rootNumber + \"\\t\");\n }\n }",
"public static void test02() {\n TreeNode n1 = new TreeNode(1);\n TreeNode n2 = new TreeNode(2);\n TreeNode n3 = new TreeNode(2);\n TreeNode n4 = new TreeNode(4);\n TreeNode n5 = new TreeNode(5);\n TreeNode n6 = new TreeNode(6);\n TreeNode n7 = new TreeNode(4);\n TreeNode n8 = new TreeNode(8);\n TreeNode n9 = new TreeNode(9);\n TreeNode n10 = new TreeNode(10);\n TreeNode n11 = new TreeNode(11);\n TreeNode n12 = new TreeNode(11);\n TreeNode n13 = new TreeNode(10);\n TreeNode n14 = new TreeNode(9);\n TreeNode n15 = new TreeNode(8);\n assemble(n1, n2, n3);\n assemble(n2, n4, n5);\n assemble(n3, n6, n7);\n assemble(n4, n8, n9);\n assemble(n5, n10, n11);\n assemble(n6, n12, n13);\n assemble(n7, n14, n15);\n assemble(n8, null, null);\n assemble(n9, null, null);\n assemble(n10, null, null);\n assemble(n11, null, null);\n assemble(n12, null, null);\n assemble(n13, null, null);\n assemble(n14, null, null);\n assemble(n15, null, null);\n System.out.println(isSymmetrical(n1));\n }",
"public static void main(String[] args) {\n\t\tint length = 9;\n\t\tint counter = 1;\n\t\t\tfor ( int x = (length+1)/2; x<=length;x++){\n\t\t\t\tfor (int j = x-counter; j>=0; j--){\n\t\t\t\t\t//System.out.println(\"j is \"+ j);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tfor (int i =1;i<=counter;i++){\n\t\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tcounter+=2;\n\t\t\t}\n\t\t\tcounter = length-2;\n\t\t\t\n\t\t\t// length = 9, counter is 7 , j = 1, i = 7, x=8\n\t\t\tfor ( int x = (length-1); x>=(length+1)/2; x--){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tfor (int j = 1; j<=x-counter; j++){\n\t\t\t\t\t//System.out.println(\"j is \"+ j);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tfor (int i =counter;i>=1;i--){\n\t\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\tcounter-=2;\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"static int count8(int n) {\n if (n == 0)\n return 0;\n if (n % 10 == 8) {\n // RC1: if two rightmost digits is 88, count as 2, and recurse on rest\n if (n % 100 == 88)\n return 2 + count8(n / 10);\n else\n // RC2: if rightmost digit is just one 8, standard--count as 1 and recurse on rest\n return 1 + count8(n / 10);\n } else\n // RC3: if rightmost not 8, recurse on rest\n return count8(n / 10);\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Test\n public void whenAddNineNodesOnDifferentLevelsThenResultNineNodesFromBottomToTop() {\n tree.addChild(nodeOne, \"1\");\n tree.addChild(new TreeNode(), \"1\");\n tree.addChild(new TreeNode(), \"1\");\n nodeOne.addChild(nodeTwo, \"2\");\n nodeOne.addChild(new TreeNode(), \"2\");\n nodeOne.addChild(new TreeNode(), \"2\");\n nodeTwo.addChild(nodeThree, \"3\");\n nodeTwo.addChild(new TreeNode(), \"3\");\n nodeTwo.addChild(new TreeNode(), \"3\");\n assertThat(tree.getChildren().toString(), is(\"[3, 3, 3, 2, 2, 2, 1, 1, 1]\"));\n }",
"public static void main(String[] args) {\n FloorInBst tree = new FloorInBst();\n tree.root = new Node_2(8);\n tree.root.left = new Node_2(4);\n tree.root.right = new Node_2(12);\n tree.root.left.left = new Node_2(2);\n tree.root.left.right = new Node_2(6);\n tree.root.right.left = new Node_2(10);\n tree.root.right.right = new Node_2(14);\n\n /**\n * =========8==============// \n * =====4==========12======//\n * =2=====6===10=======14==//\n */\n for (int input = 0; input < 18; input++) {\n System.out.println(input + \" \" + tree.Floor(root, input));\n }\n }",
"private static int path1(int n) {\n int[] path = new int[n+1];\n path[0] = 0;\n path[1] = 1;\n path[2] = 2;\n for (int i=3;i<=n;i++) {\n path[i] = path[i-1] + path[i-2];\n }\n return path[n];\n }",
"public static void main(String[] args) {\n\t\tTreeNode node1 = new TreeNode(5);\n\t\tTreeNode node2 = new TreeNode(4);\n\t\tTreeNode node3 = new TreeNode(8);\n\t\tTreeNode node4 = new TreeNode(11);\n\t\tTreeNode node5 = new TreeNode(13);\n\t\tTreeNode node6 = new TreeNode(4);\n\t\tTreeNode node7 = new TreeNode(7);\n\t\tTreeNode node8 = new TreeNode(2);\n\t\tTreeNode node9 = new TreeNode(1);\n\t\tTreeNode node10 = new TreeNode(5);\n\t\t\n\t\tnode1.left = node2;\n\t\tnode1.right = node3;\n\t\tnode2.left = node4;\n\t\tnode3.left = node5;\n\t\tnode3.right = node6;\n\t\tnode4.left = node7;\n\t\tnode4.right =node8;\n\t\tnode6.left = node10;\n\t\tnode6.right = node9;\n\t\t\n\t\tTreeNode node11 = new TreeNode(1);\n\t\tSystem.out.println(pathSum(node1,22));\n\n\t}",
"public static void main(String[] args) {\n TreeNode root = new TreeNode(50);\n root.left = new TreeNode(30);\n root.right = new TreeNode(70);\n root.left.left = new TreeNode(20);\n root.left.right = new TreeNode(40);\n root.right.left = new TreeNode(60);\n root.right.right = new TreeNode(80);\n printSpiralRec(root);\n System.out.println();\n printSpiralIte(root);\n }",
"public static void main(String[] args) \n\t{\n\t\ttree x = new tree(0);\n\t\t\n\t\ttreenode r = x.root;\n\t\t\n//\t\ttreenode c = r;\n//\t\tfor(int i =1;i<=4;i++)\n//\t\t{\n//\t\t\tfor(int j=0;j<=8;j=j+4)\n//\t\t\t{\n//\t\t\t\ttreenode n = new treenode(i+j);\n//\t\t\t\tif(j==0)\n//\t\t\t\t{\n//\t\t\t\t\tr.child.add(n);\n//\t\t\t\t\tc = n;\n//\t\t\t\t}\n//\t\t\t\telse\n//\t\t\t\t{\n//\t\t\t\t\tc.child.add(n);\n//\t\t\t\t\tc = n;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\ttreenode c1 = r;\n\t\ttreenode c2 = r;\n\t\ttreenode c3 = r;\n\t\ttreenode c4 = r;\n\t\tfor(int i=1;i<13;i++)\n\t\t{\n\t\t\ttreenode n = new treenode(i);\n\t\t\tif(i%4==1)\n\t\t\t{\n\t\t\t\tc1.child.add(n);\n\t\t\t\tc1 = n;\n\t\t\t}\n\t\t\tif(i%4==2)\n\t\t\t{\n\t\t\t\tc2.child.add(n);\n\t\t\t\tc2 = n;\n\t\t\t}\n\t\t\tif(i%4==3)\n\t\t\t{\n\t\t\t\tc3.child.add(n);\n\t\t\t\tc3 = n;\n\t\t\t}\n\t\t\tif(i%4==0)\n\t\t\t{\n\t\t\t\tc4.child.add(n);\n\t\t\t\tc4 = n;\n\t\t\t}\n\t\t}\n\t\tx.traverse(r);\n\t}",
"public static void main(String[] args) {\n\t\tTreeNode treeNode1 = new TreeNode(1);\n\t\tTreeNode treeNode11 = new TreeNode(2);\n\t\tTreeNode treeNode12 = new TreeNode(4);\n\t\tTreeNode treeNode13 = new TreeNode(8);\n\t\tTreeNode treeNode14 = new TreeNode(6);\n\t\tTreeNode treeNode15 = new TreeNode(4);\n\t\tTreeNode treeNode16 = new TreeNode(4);\n\t\tTreeNode treeNode17 = new TreeNode(4);\n\t\tTreeNode treeNode18 = new TreeNode(4);\n\t\ttreeNode1.left = treeNode11;\n\t\ttreeNode1.right = treeNode12;\n\t\ttreeNode11.left = treeNode13;\n\t\ttreeNode11.right = treeNode14;\n\t\ttreeNode13.left = treeNode15;\n\t\ttreeNode13.right = treeNode16;\n\t\ttreeNode15.left = treeNode17;\n\t\ttreeNode17.right = treeNode18;\n\t\tSystem.out.println(hasPathSum(treeNode1, 8));\n\t}",
"public static void main(String[] args) {\n TreeNode root = new TreeNode(-2);\n root.add(1);\n root.add(-3);\n\n List<List<Integer>> list = pathSum(root, -5);\n System.out.println(list.size());\n }",
"public static void test01() {\n TreeNode n1 = new TreeNode(1);\n TreeNode n2 = new TreeNode(2);\n TreeNode n3 = new TreeNode(2);\n TreeNode n4 = new TreeNode(4);\n TreeNode n5 = new TreeNode(6);\n TreeNode n6 = new TreeNode(6);\n TreeNode n7 = new TreeNode(4);\n TreeNode n8 = new TreeNode(8);\n TreeNode n9 = new TreeNode(9);\n TreeNode n10 = new TreeNode(10);\n TreeNode n11 = new TreeNode(11);\n TreeNode n12 = new TreeNode(11);\n TreeNode n13 = new TreeNode(10);\n TreeNode n14 = new TreeNode(9);\n TreeNode n15 = new TreeNode(8);\n assemble(n1, n2, n3);\n assemble(n2, n4, n5);\n assemble(n3, n6, n7);\n assemble(n4, n8, n9);\n assemble(n5, n10, n11);\n assemble(n6, n12, n13);\n assemble(n7, n14, n15);\n assemble(n8, null, null);\n assemble(n9, null, null);\n assemble(n10, null, null);\n assemble(n11, null, null);\n assemble(n12, null, null);\n assemble(n13, null, null);\n assemble(n14, null, null);\n assemble(n15, null, null);\n System.out.println(isSymmetrical(n1));\n }",
"public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }",
"@Test(timeout = 4000)\n public void test072() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.literal();\n assertNotNull(token1);\n \n xPathLexer0.setPreviousToken(token1);\n assertEquals(\"]J\", token1.getTokenText());\n assertEquals(27, token1.getTokenType());\n \n Token token2 = xPathLexer0.slashes();\n assertEquals(11, token2.getTokenType());\n assertEquals(\"/\", token2.getTokenText());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(\"L!uFQ7%)BrL\", token3.getTokenText());\n }",
"public static void main(String[] args) {\n BinayTree root = new BinayTree();\n root.data = 8;\n root.left = new BinayTree();\n root.left.data = 6;\n root.left.left = new BinayTree();\n root.left.left.data = 5;\n root.left.right = new BinayTree();\n root.left.right.data = 7;\n root.right = new BinayTree();\n root.right.data = 10;\n root.right.left = new BinayTree();\n root.right.left.data = 9;\n root.right.right = new BinayTree();\n root.right.right.data = 11;\n printTree(root);\n System.out.println();\n mirror(root);\n printTree(root);\n // 1\n // /\n // 3\n // /\n // 5\n // /\n // 7\n // /\n // 9\n BinayTree root2 = new BinayTree();\n root2.data = 1;\n root2.left = new BinayTree();\n root2.left.data = 3;\n root2.left.left = new BinayTree();\n root2.left.left.data = 5;\n root2.left.left.left = new BinayTree();\n root2.left.left.left.data = 7;\n root2.left.left.left.left = new BinayTree();\n root2.left.left.left.left.data = 9;\n System.out.println(\"\\n\");\n printTree(root2);\n System.out.println();\n mirror(root2);\n printTree(root2);\n\n // 0\n // \\\n // 2\n // \\\n // 4\n // \\\n // 6\n // \\\n // 8\n BinayTree root3 = new BinayTree();\n root3.data = 0;\n root3.right = new BinayTree();\n root3.right.data = 2;\n root3.right.right = new BinayTree();\n root3.right.right.data = 4;\n root3.right.right.right = new BinayTree();\n root3.right.right.right.data = 6;\n root3.right.right.right.right = new BinayTree();\n root3.right.right.right.right.data = 8;\n System.out.println(\"\\n\");\n printTree(root3);\n System.out.println();\n mirror(root3);\n printTree(root3);\n\n\n }",
"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 }",
"public static void main(String[] args) {\n \n\t\t\n\t\tNode root = new Node(8);\n\t\tinsertNode(root, 5);\n\t\tinsertNode(root, 3);\n\t\tinsertNode(root, 6);\n\t\tinsertNode(root, 2);\n\t\tinsertNode(root, 14);\n\t\tinsertNode(root, 13);\n\t\tinsertNode(root, 16);\n\t\tinsertNode(root, 12);\n\t\tinsertNode(root, 1);\n\t\tinsertNode(root, 11);\n \n\t\tprintRightOrder(root,0,-1);\n\t\t\n\t}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}",
"private int pushDownRoot() {\n\t\treturn pushDown(0);// TODO: A one-line function that calls pushDown()\n\t}",
"public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}",
"public static void main(String[] args) {\n\t\tTreeNode root1 = new TreeNode(8);\n\t\troot1.left = new TreeNode(8);\n\t\troot1.right = new TreeNode(7);\n\t\troot1.left.left = new TreeNode(9);\n\t\troot1.left.right = new TreeNode(2);\n\t\troot1.left.right.left = new TreeNode(4);\n\t\troot1.left.right.right = new TreeNode(7);\n\t\tQ32 pf = new Q32();\n\t\tSystem.out.print(pf.PrintFromTopToBottom(root1));\n\t}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"@Test(timeout = 4000)\n public void test058() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"rV.:Q-\");\n Token token0 = xPathLexer0.slashes();\n assertEquals(11, token0.getTokenType());\n assertEquals(\"r\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dots();\n assertEquals(\"V.\", token1.getTokenText());\n assertEquals(14, token1.getTokenType());\n }",
"public static void main(String[] args) {\n\n\n TreeNode root = new TreeNode(1);\n TreeNode left1 = new TreeNode(2);\n TreeNode left2 = new TreeNode(3);\n TreeNode left3 = new TreeNode(4);\n TreeNode left4 = new TreeNode(5);\n TreeNode right1 = new TreeNode(6);\n TreeNode right2 = new TreeNode(7);\n TreeNode right3 = new TreeNode(8);\n TreeNode right4 = new TreeNode(9);\n TreeNode right5 = new TreeNode(10);\n root.left = left1;\n root.right = right1;\n left1.left = left2;\n left1.right = left3;\n left3.right = left4;\n right1.left = right2;\n right1.right = right3;\n right2.right = right4;\n right3.left = right5;\n //[3, 2, 4, 5, 1, 7, 9, 6, 10, 8]\n List<Integer> list = inorderTraversalN(root);\n System.err.println(list);\n }",
"public static void main(String[] args) {\n int [] test = new int[] {3, 4, 5, 6, 7, 8, 9, 10};\n pushDown(test,8,7);\n System.out.println(toString(test));\n pushDown(test,8,6);\n System.out.println(toString(test));\n pushDown(test,8,5);\n System.out.println(toString(test));\n pushDown(test,8,4);\n System.out.println(toString(test));\n pushDown(test,8,3);\n System.out.println(toString(test));\n pushDown(test,8,2);\n System.out.println(toString(test));\n pushDown(test,8,1);\n System.out.println(toString(test));\n pushDown(test,8,0);\n System.out.println(toString(test));\n }",
"public static void main(String[] args) {\n int i= 1; int j=1;\r\n\t\t/*for(i=1; i<=6; i++){\r\n\t\t\tfor(j=1; j<=6-i; j++){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t }\r\n\t\t\t for(j=1; j<=i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t } for(j=1; j<=6; j++){\r\n\t\t} System.out.print(\"*\");\r\n\t\t System.out.println();\r\n\t\t}\r\n\t\t*/\r\n\t\r\nfor(i=1; i<=7;i++){\r\n\tfor(j=1; j<=7-i; j++){\r\n\t\tSystem.out.println(\" \");\r\n\t}\r\n\tfor(j=1; j<=i; j++){\r\n\t\tSystem.out.print(\"*\");\r\n\t\r\n\t}\r\n}\r\n\r\n\t\t\r\n\t\t/*int num = 6;\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=num+1-i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\tint num = 6;\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=num+6-i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/******* i=1 *=6\r\n\t\t***** i=2 *=5\r\n\t\t**** i=3 *=4\r\n\t\t*** i=4 *=3\r\n\t\t** i=5 *=2\r\n\t\t* i=6 *=1\r\n\t\t *=7 -i=6+1-i=num+1-i\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t/*\t****** i=1 * =6\r\n\t\t ***** i=2 * = 5\r\n\t\t ***\r\n\t\t **\r\n\t\t *\r\n\t\t\r\n\t*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=i-1; j++){\r\n\t\t\t\tSystem.out.println(\" \");\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\t\r\n\t}",
"public static void main(String args[]) {\n\tSystem.out.println(\"1 2 + 4 * 4 2 - + = \" + execute(\"1 2 + 4 * 4 2 - +\"));\r\n\t\r\n\t// (1 + 4) * (3 + 7) / 5 == 10\r\n\t/*System.out.println(\"1 4 + 3 7 + * 5 / = \" \r\n\t\t\t + execute(\"1 4 + 3 7 + * 5 /\"));\r\n\t\r\n\t// 10 + 2 == 12\r\n\tSystem.out.println(\"10 2 + = \" \r\n\t\t\t + execute(\"10 2 +\"));\r\n\t\r\n\t// 10 / 2 == 5\r\n\tSystem.out.println(\"10 2 / = \"\r\n\t\t\t + execute(\"10 2 /\"));*/\r\n }",
"public static void main(String[] arg) {\n leftLeftInsert();\n rightRightInsert();\n leftRightInsert();\n rightLeftInsert();\n leftLeftDelete(); \n rightRightDelete();\n leftRightDelete();\n rightLeftDelete();\n System.out.println(\"\\nEnd\");\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint k,n=10;\r\n\t\tk=n-1;\r\n\t\tfor(int i=0;i<=n;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=k;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\tk=k-1;\r\n\t\t\tfor(int j=0;j<=i;j++)\r\n\t\t\t\tSystem.out.print(\"*\"+\" \");\r\n\t\t\tSystem.out.println(\"\\r\");\r\n\t\t}\r\n\t}",
"void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}",
"static int parent(int i)\n {\n return (i-1)/2;\n }",
"public static void main(String[] args) {\n TreeNode n0 = new TreeNode('R');\n TreeNode n1 = new TreeNode('R');\n n0.left = n1;\n TreeNode n2 = new TreeNode('R');\n n0.right = n2;\n TreeNode n3 = new TreeNode('B');\n n1.left = n3;\n TreeNode n4 = new TreeNode('B');\n n1.right = n4;\n TreeNode n5 = new TreeNode('R');\n n2.left = n5;\n TreeNode n6 = new TreeNode('G');\n n2.right = n6;\n TreeNode n7 = new TreeNode('B');\n n4.left = n7;\n TreeNode n8 = new TreeNode('B');\n n4.right = n8;\n TreeNode n9 = new TreeNode('G');\n n6.left = n9;\n TreeNode n10 = new TreeNode('G');\n n6.right = n10;\n TreeNode n11 = new TreeNode('G');\n n10.right = n11;\n\n System.out.println(getClump(n0));\n }",
"@Test\n\tpublic void testCuatroEnRayaDiag1() {\n\t\t\n\t\tint []posX = new int[4];\n\t\tint []posY = new int[4];\n\t\tfor (int i = 1; i <= 12; ++i) {\n\t\t\tint sx = Math.max(1, i-5);\n\t\t\tint sy = Math.min(i, 6);\n\t\t\twhile ((sy - 4 >= 0) && (sx + 3 <= 7)) {\n\t\t\t\tfor (int l = 0; l < 4; ++l) {\n\t\t\t\t\tposX[l] = sx + l;\n\t\t\t\t\tposY[l] = sy - l;\n\t\t\t\t}\n\t\t\t\tpruebaCuatroEnRaya(posX, posY);\n\t\t\t\tsy--; sx++;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n Graph graph = new Graph();\n graph.addEdge(0, 1);\n graph.addEdge(0, 4);\n\n graph.addEdge(1,0);\n graph.addEdge(1,5);\n graph.addEdge(1,2);\n graph.addEdge(2,1);\n graph.addEdge(2,6);\n graph.addEdge(2,3);\n\n graph.addEdge(3,2);\n graph.addEdge(3,7);\n\n graph.addEdge(7,3);\n graph.addEdge(7,6);\n graph.addEdge(7,11);\n\n graph.addEdge(5,1);\n graph.addEdge(5,9);\n graph.addEdge(5,6);\n graph.addEdge(5,4);\n\n graph.addEdge(9,8);\n graph.addEdge(9,5);\n graph.addEdge(9,13);\n graph.addEdge(9,10);\n\n graph.addEdge(13,17);\n graph.addEdge(13,14);\n graph.addEdge(13,9);\n graph.addEdge(13,12);\n\n graph.addEdge(4,0);\n graph.addEdge(4,5);\n graph.addEdge(4,8);\n graph.addEdge(8,4);\n graph.addEdge(8,12);\n graph.addEdge(8,9);\n graph.addEdge(12,8);\n graph.addEdge(12,16);\n graph.addEdge(12,13);\n graph.addEdge(16,12);\n graph.addEdge(16,17);\n graph.addEdge(17,13);\n graph.addEdge(17,16);\n graph.addEdge(17,18);\n\n graph.addEdge(18,17);\n graph.addEdge(18,14);\n graph.addEdge(18,19);\n\n graph.addEdge(19,18);\n graph.addEdge(19,15);\n LinkedList<Integer> visited = new LinkedList();\n List<ArrayList<Integer>> paths = new ArrayList<ArrayList<Integer>>();\n int currentNode = START;\n visited.add(START);\n new searchEasy().findAllPaths(graph, visited, paths, currentNode);\n for(ArrayList<Integer> path : paths){\n for (Integer node : path) {\n System.out.print(node);\n System.out.print(\" \");\n }\n System.out.println();\n }\n }",
"private static void test4() {\n BinaryTreeNode node1 = new BinaryTreeNode(5);\n BinaryTreeNode node2 = new BinaryTreeNode(4);\n BinaryTreeNode node3 = new BinaryTreeNode(3);\n BinaryTreeNode node4 = new BinaryTreeNode(2);\n BinaryTreeNode node5 = new BinaryTreeNode(1);\n node1.left = node2;\n node2.left = node3;\n node3.left = node4;\n node4.left = node5;\n test(\"Test4\", node1, false);\n }",
"@Test\n void solvesTestCase() {\n TreeNode root = new TreeNode(3);\n root.left = new TreeNode(9);\n root.right = new TreeNode(20);\n root.right.left = new TreeNode(15);\n root.right.right = new TreeNode(7);\n\n List<List<Integer>> traversal = new ZigZagLevelOrder().zigzagLevelOrder(root);\n assertThat(traversal.size()).isEqualTo(3);\n assertThat(traversal.get(0)).containsExactly(3);\n assertThat(traversal.get(1)).containsExactly(20, 9);\n assertThat(traversal.get(2)).containsExactly(15, 7);\n }",
"void buildHeap() {\n\tfor(int i=parent(size-1); i>=0; i--) {\n\t percolateDown(i);\n\t}\n }",
"@Test public void testPublic8() {\n Graph<Integer> graph= TestGraphs.testGraph4();\n String[] results= {\"1 4\", \"2 4\", \"3 4\", \"0 4\", \"\"};\n Integer i;\n\n for (i= 0; i <= 4; i++)\n assertEquals(results[i],\n TestGraphs.collToString(graph.getNeighbors(i)));\n }",
"@Test\n\tpublic void testCuatroEnRayaDiag2() {\n\t\t\n\t\tint []posX = new int[4];\n\t\tint []posY = new int[4];\n\t\tfor (int i = 1; i <= 12; ++i) {\n\t\t\tint sx = Math.min(i, 7);\n\t\t\tint sy = Math.min(13 - i, 6);\n\t\t\twhile ((sy - 4 >= 0) && (sx - 4 >= 0)) {\n\t\t\t\tfor (int l = 0; l < 4; ++l) {\n\t\t\t\t\tposX[l] = sx - l;\n\t\t\t\t\tposY[l] = sy - l;\n\t\t\t\t}\n\t\t\t\tpruebaCuatroEnRaya(posX, posY);\n\t\t\t\tsy--; sx--;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String args[])\n\t{\n\n\t\troot = new Node(50);\n\t\tinsert(root, 70);\n\t\tinsert(root, 40);\n\t\tinsert(root, 80);\n\t\tinsert(root, 35);\n\t\tinsert(root, 45);\n\t\tinsert(root, 10);\n\t\tinsert(root, 5);\n\t\t\n\t\t/* Inorder traversal */\n\t\tprintPaths(root);\n\t}",
"public static void main(String[] args)\r\n\t{\r\n\t\tSystem.out.println(\"1st pattern\");\r\n\t\tfor(int i=0;i<=8;i++)\r\n\t\t{\r\n\t\t\tfor(int j=i;j<8;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t\t/*\r\n\t\t*\r\n \t\t**\r\n\t\t***\r\n\t\t****\r\n\t\t*****\r\n\t\t******\r\n\t\t*******\r\n\t\t********\r\n\t\t */\r\n\t\tSystem.out.println(\"2nd pattern\");\r\n\t\tfor(int i=8;i>=0;i--)\r\n\t\t{\r\n\t\t\tfor(int j=i;j<8;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/* for printing this pattern\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 *********\t\t */\r\n\t\tSystem.out.print(\"3rd pattern\");\r\n\t\tfor(int i=0;i<=8;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=8;j++)\r\n\t\t\t{\r\n\t\t\t\tif(i<j || j<8-i)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/* for printing 4th pattern \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\tSystem.out.println(\"4th pattern\\n\\n\");\r\n\t\tfor(int i=8;i>=0;i--)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=8;j++)\r\n\t\t\t{\r\n\t\t\t\tif(i<j || j<8-i)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" \");\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"5th pattern \");\r\n\t\tfor(int i=1;i<=10;i++)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=10;j++)\r\n\t\t\t{\r\n\t\t\t\tif(i<j || i==j)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\telse if(j>i || j<10-i)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"private void renderDownPaths(Node n)\n {\n\tif (n.siblings.size()==0) {\n\t renderPath(n);\n\t return;\n\t}\n\n\tVectorIterator vi = new VectorIterator(n.siblings);\n\twhile (vi.hasNext()) {\n\t Node s = (Node)(vi.next());\n\t renderDownPaths(s);\n\t}\n }",
"public static int distinctPaths4(int n) {\n\t\tint[][] mem = new int[n+1][n+1];\n\t\tfor(int j = 1; j <= n; ++j) {\n\t\t\tmem[1][j] = 1;\n\t\t\tmem[j][1] = 1;\n\t\t}\n\t\tfor(int i = 2; i <= n; ++i) {\n\t\t\tfor(int j = 2; j <= n; ++j) {\n\t\t\t\tmem[i][j] = mem[i-1][j] + mem[i][j-1];\n\t\t\t}\n\t\t}\n\t\treturn mem[n][n];\n\t}",
"private void splitIntoRoots() {\n\t\tArrayList<ArrayList<Coord>> circ = findCircles();\n\t\tcombinePastRoots(circ);\n\t}",
"private int parent(int index) {\n return index / 2;\n }",
"private int parent(int index) {\n return index / 2;\n }",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tTreeNode r1 = new TreeNode(1);\n\t\tTreeNode r2 = new TreeNode(2);\n\t\tTreeNode r3 = new TreeNode(3);\n\t\tTreeNode r4 = new TreeNode(4);\n\t\tTreeNode r5 = new TreeNode(5);\n\t\tTreeNode r6 = new TreeNode(6);\n\t\tTreeNode r7 = new TreeNode(7);\n\t\tTreeNode r8 = new TreeNode(8);\n\t\t\n\t\tr1.left = r2;\n\t\tr1.right = r5;\n\t\tr2.left = r3;\n\t\tr2.right = r4;\n\t\tr5.right = r6;\n\t\tr6.left = r7;\n\t\tr6.right = r8;\n\t\t\n\t\tflatten(r1);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tTreeNode p = r1;\n\t\twhile(p !=null){\n\t\t\tsb.append(p.val+\"-->\");\n\t\t\tp=p.right;\n\t\t}\n\t\t\n\t\tSystem.out.println(sb);\n\t\t\n\t}",
"private void solutionPath(Node n){\n ArrayList<String> num = new ArrayList<>();\n num.add(n.getDigit().getDigitString());\n Node node = n.getParent();\n\n while(true){\n\n if(node == startNode){\n num.add(node.getDigit().getDigitString());\n break;\n }else{\n num.add(node.getDigit().getDigitString());\n }\n\n node = node.getParent();\n }\n\n int size = num.size();\n int index = size-1;\n\n for(int i=0; i<size; i++){\n if(index == 0){\n System.out.println(num.get(index));\n break;\n }\n System.out.print(num.get(index)+\",\");\n index--;\n }\n }",
"public static void main(String[] args) {\n Node root = newNode(1);\n\n root.left = newNode(2);\n root.right = newNode(3);\n\n root.left.left = newNode(4);\n root.left.right = newNode(5);\n\n root.left.left.left = newNode(8);\n root.left.left.right = newNode(9);\n\n root.left.right. left = newNode(10);\n root.left.right. right = newNode(11);\n\n root.right.left = newNode(6);\n root.right.right = newNode(7);\n root.right.left .left = newNode(12);\n root.right.left .right = newNode(13);\n root.right.right. left = newNode(14);\n root.right.right. right = newNode(15);\n System.out.println(findNode(root, 5, 6, 15));\n }",
"@Test\n\tpublic void testInsert4() {\n\t\t\n\t\tBTree<Long,String> T = new BTree<Long, String>(3);\n\t\tT.insert(new Long(10), \"Ten\");\n\t\tT.insert(new Long(20), \"Twenty\");\n\t\tT.insert(new Long(30), \"Thirty\");\n\t\t\n\t\tT.insert(new Long(70), \"Seventy\");\n\t\tT.insert(new Long(60), \"Sixty\");\n\t\tT.insert(new Long(80), \"Eighty\");\n\t\t\n\t\tT.insert(new Long(50), \"Fifty\");\n\t\tT.insert(new Long(40), \"Fourty\");\n\t\tT.insert(new Long(55), \"Fifty-Five\");\n\t\tT.insert(new Long(65), \"Sixty-Five\");\n\t\t\n\t\tassertTrue( T.root instanceof InnerNode);\n\t\t\n\t\tInnerNode<Long,String> root = (InnerNode<Long,String>) T.root;\n\t\tassertEquals(1, root.keys.size());\n\t\tassertEquals(60, (long) root.keys.get(0));\n\t\tassertEquals(2, root.children.size());\n\t\t\n\t\tInnerNode<Long,String> left = (InnerNode<Long,String>) root.children.get(0);\n\t\tInnerNode<Long,String> right = (InnerNode<Long,String>) root.children.get(1);\n\t\t\n\t\tassertEquals(30, (long) left.keys.get(0));\n\t\tassertEquals(50, (long) left.keys.get(1));\n\t\t\n\t\tassertEquals(70, (long) right.keys.get(0));\n\t\t\n\t\tLeafNode<Long, String> child0 = (LeafNode<Long, String>) left.children.get(0);\n\t\tLeafNode<Long, String> child1 = (LeafNode<Long, String>) left.children.get(1);\n\t\t\n\t\tLeafNode<Long, String> child2 = (LeafNode<Long, String>) left.children.get(2);\n\t\t\n\t\tLeafNode<Long, String> child3 = (LeafNode<Long, String>) right.children.get(0);\n\t\tLeafNode<Long, String> child4 = (LeafNode<Long, String>) right.children.get(1);\n\t\t\n\t\tassertEquals(10, (long) child0.children.get(0).key);\n\t\tassertEquals(20, (long) child0.children.get(1).key);\n\t\t\n\t\tassertEquals(30, (long) child1.children.get(0).key);\n\t\tassertEquals(40, (long) child1.children.get(1).key);\n\t\t\n\t\tassertEquals(50, (long) child2.children.get(0).key);\n\t\tassertEquals(55, (long) child2.children.get(1).key);\n\t\t\n\t\tassertEquals(60, (long) child3.children.get(0).key);\n\t\tassertEquals(65, (long) child3.children.get(1).key);\n\t\t\n\t\tassertEquals(70, (long) child4.children.get(0).key);\n\t\tassertEquals(80, (long) child4.children.get(1).key);\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tbinaryTreeNode root1 = new binaryTreeNode(8);\r\n\t\tbinaryTreeNode b1 = new binaryTreeNode(8);\r\n\t\tbinaryTreeNode b2 = new binaryTreeNode(7);\r\n\t\tbinaryTreeNode b3 = new binaryTreeNode(9);\r\n\t\tbinaryTreeNode b4 = new binaryTreeNode(2);\r\n\t\tbinaryTreeNode b5 = new binaryTreeNode(4);\r\n\t\tbinaryTreeNode b6 = new binaryTreeNode(7);\r\n\t\troot1.left = b1;root1.right = b2;\r\n\t\tb1.left = b3;b1.right = b4;\r\n\t\tb4.left = b5;b4.right = b6;\r\n\t\t\r\n\t\tMirrorRecursively(root1);\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n Node a = new Node(50);\n Node b = new Node(20);\n Node c = new Node(60);\n Node d = new Node(10);\n Node e = new Node(25);\n Node f = new Node(70);\n Node g = new Node(5);\n Node h = new Node(15);\n Node i = new Node(65);\n Node j = new Node(80);\n a.left = b;\n a.right = c;\n b.left = d;\n b.right = e;\n c.right = f;\n d.left = g;\n d.right = h;\n f.left = i;\n f.right = j;\n ArrayList<LinkedList<Integer>> lists = bstSequences(a);\n for (LinkedList sequence : lists)\n System.out.println(sequence);\n\n /*\n * 2 / \\ 1 3\n */\n a = new Node(2);\n b = new Node(1);\n c = new Node(3);\n a.left = b;\n a.right = c;\n lists = bstSequences(a);\n for (LinkedList sequence : lists)\n System.out.println(sequence);\n }",
"private void spiralOrder(Node root) \n { \n \n \tLinkedList<Node> ls = new LinkedList<Node>(); \n \n // Push root \n ls.addLast(root); \n \n // Direction 0 shows print right to left \n // and for Direction 1 left to right \n int dir = 0; \n while (ls.size() > 0) \n { \n int size = ls.size(); \n while (size-->0) \n { \n // One whole level \n // will be print in this loop \n \n if (dir == 0) \n { \n Node temp = ls.peekLast(); \n ls.pollLast(); \n if (temp.right != null) \n ls.addFirst(temp.right); \n if (temp.left != null) \n ls.addFirst(temp.left); \n System.out.print(temp.value + \" \"); \n } \n else \n { \n Node temp = ls.peekFirst(); \n ls.pollFirst(); \n if (temp.left != null) \n ls.addLast(temp.left); \n if (temp.right != null) \n ls.addLast(temp.right); \n System.out.print(temp.value + \" \"); \n } \n } \n System.out.println(); \n \n // Direction change \n dir = 1 - dir; \n } \n }",
"private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }",
"@Test\n\tvoid tesPreorder() {\n\t\tHeap<Integer, Integer> treap = createTreeHeap();\n\t\t//root, left, right\n\t\tassertEquals(\"[5, 4, 2, 1, 3]\", treap.preOrder());\n\t}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public static void main(String[] args) {\n\t\tint n =7;\n\t\tint row=1;\n\t\tint nst=n/2;\n\t\tint nsp=1;\n\t\twhile(row<=n) {\n\t\t\t// star\n\t\t\tint cst =1;\n\t\t\twhile(cst<=nst) {\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t\tcst++;\n\t\t\t}\n\t\t\t\n\t\t\t// space\n\t\t\tint csp=1;\n\t\t\twhile(csp<=nsp) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tcsp++;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// star\n\t\t\tcst=1;\n\t\t\twhile(cst<=nst) {\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t\tcst++;\n\t\t\t}\n\t\t\t\n\t\t\t// n = 7\n\t\t\t// next row \n\t\t\tif(row<=n/2) {\n\t\t\tnst--;\n\t\t\tnsp+=2;\n\t\t\t}\n\t\t\t// row == 4 nst =0\n\t\t\telse {\n\t\t\t\tnst++;\n\t\t\t\tnsp-=2;\n\t\t\t}\n\t\t\trow++;\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t}\n\n\t}",
"@Test\r\n public void testSimpleDeadEnd() {\r\n int[][] path =\r\n {{1, 1, 0, 0, 0, 0},\r\n {0, 1, 1, 0, 0, 0},\r\n {0, 0, 1, 1, 0, 0},\r\n {0, 0, 0, 0, 0, 0},\r\n {0, 0, 0, 0, 0, 0}};\r\n assertEquals(6, RecursiveMethods.maxPathLength(path));\r\n }",
"public static void printSpiral(Node root) {\n if (root == null) return;\n Stack<Node> stackA = new Stack<Node>();\n Stack<Node> stackB = new Stack<Node>();\n stackA.add(root);\n\n while (!stackA.isEmpty() || !stackB.isEmpty()) {\n\n while (!stackA.isEmpty()) {\n Node temp = stackA.pop();\n System.out.print(temp.data + \" \");\n if (temp.right != null) stackB.push(temp.right);\n if (temp.left != null) stackB.push(temp.left);\n }\n\n while (!stackB.isEmpty()) {\n Node temp = stackB.pop();\n System.out.print(temp.data + \" \");\n if (temp.left != null) stackA.push(temp.left);\n if (temp.right != null) stackA.push(temp.right);\n }\n }\n }",
"private static void backtrackHelper(TreeNode current, int targetSum, List<TreeNode> path, List<List<Integer>> allPaths){\n if(current.left == null && current.right == null){\n if(targetSum == current.val){\n List<Integer> tempResultList = new ArrayList<>();\n // for(TreeNode node: path){\n // tempResultList.add(node.val);\n // }\n tempResultList.addAll(path.stream().mapToInt(o -> o.val).boxed().collect(Collectors.toList()));\n tempResultList.add(current.val);\n\n allPaths.add(tempResultList); // avoid reference puzzle\n }\n return;\n }\n\n // loop-recursion (Here only 2 choices, so we donot need loop)\n if(current.left != null){\n path.add(current);\n backtrackHelper(current.left, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n\n if(current.right != null){\n path.add(current);\n backtrackHelper(current.right, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n }",
"private static void test1() {\n BinaryTreeNode node1 = new BinaryTreeNode(8);\n BinaryTreeNode node2 = new BinaryTreeNode(6);\n BinaryTreeNode node3 = new BinaryTreeNode(10);\n BinaryTreeNode node4 = new BinaryTreeNode(5);\n BinaryTreeNode node5 = new BinaryTreeNode(7);\n BinaryTreeNode node6 = new BinaryTreeNode(9);\n BinaryTreeNode node7 = new BinaryTreeNode(11);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node3.left = node6;\n node3.right = node7;\n test(\"Test1\", node1, true);\n }",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t\tString BETTEST = \"/+8*62-9*43\";\r\n\r\n\r\n\t\tBinaryExpressionTree<String>listBET = new BinaryExpressionTree<String>();\r\n\r\n\t\tfor (int i = 0; i < BETTEST.length(); i++) {\r\n\t\t\t\r\n\t\t\tlistBET.add(\"\" + BETTEST.charAt(i));\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\tlistBET.PreorderTraversal();\r\n\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\tlistBET.PostorderTraversal();\r\n\r\n\r\n\t\t String BETTEST2 =\"/+84*32\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET2 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST2.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET2.add(\"\" + BETTEST2.charAt(i));\t\r\n\t\t\r\n\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET2.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET2.PostorderTraversal();\r\n\t\t\t\r\n String BETTEST3 =\"*-92/31\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET3 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST3.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET3.add(\"\" + BETTEST3.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t System.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET3.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\t\r\n\t\t\tlistBET3.PostorderTraversal();\r\n \r\n\t\t\tString BETTEST4 =\"-/*8043\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET4 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST4.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET4.add(\"\" + BETTEST4.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET4.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET4.PostorderTraversal();\r\n}",
"private static BigInteger singleTree(int n) {\n \tif (T[n] != null) {\n \t\treturn T[n];\n \t}\n \tBigInteger ret = BigInteger.ZERO;\n \tfor (int i = 1; i < n; i++) {\n \t\tret = ret.add(binomial(n, i).multiply(BigInteger.valueOf(n - i).pow(n - i))\n \t\t\t\t .multiply(BigInteger.valueOf(i).pow(i)));\n \t}\n \treturn T[n] = ret.divide(BigInteger.valueOf(n));\n }",
"private int percolateUpLeaf(){\n\t\treturn percolateUp(heap.size()-1);// TODO: A one-line function that calls percolateUp()\n\t}",
"public static void main(String[] args) {\n\n\n\t\tArrayList<Node> N = new ArrayList<Node>();\n\t\t\n\t\t/*\n\t\t * ##### Encoding Model 2 ###### \n\t\t */\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the privilege nodes\n\t\t */\n\t\tfor(int i=1; i<7; i++)\n\t\t{\n\t\t\tN.add(new Node(\"p\"+i, 1));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the exploit nodes\t\t \n\t\t */\n\t\tfor(int i=1; i<8; i++)\n\t\t{\n\t\t\tN.add(new Node(\"e\"+i, 2));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the child nodes\n\t\t */\n\t\tfor(int i=1; i<12; i++)\n\t\t{\n\t\t\tN.add(new Node(\"c\"+i, 0));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Assigning the children and parent(s) for each node according to model 2\n\t\t */\n\t\t\n\t\tArrayList<Node> nil = new ArrayList<Node>();\n\t\t\n\t\tN.get(0).setParents(nil);\n\t\tN.get(0).addChild(N.get(6));\n\t\t\n\t\tN.get(6).addParent(N.get(0));\n\t\tN.get(6).addChild(N.get(1));\n\t\tN.get(6).addChild(N.get(13));\n\t\tN.get(6).addChild(N.get(14));\n\t\t\n\t\tN.get(1).addParent(N.get(6));\n\t\tN.get(1).addChild(N.get(7));\n\t\tN.get(1).addChild(N.get(8));\n\t\t\n\t\tN.get(7).addParent(N.get(1));\n\t\tN.get(7).addChild(N.get(15));\n\t\tN.get(7).addChild(N.get(2));\n\t\t\n\t\tN.get(2).addParent(N.get(7));\n\t\tN.get(2).addChild(N.get(10));\t\t\n\t\t\n\t\tN.get(8).addParent(N.get(1));\n\t\tN.get(8).addChild(N.get(16));\n\t\tN.get(8).addChild(N.get(3));\n\t\t\n\t\tN.get(3).addParent(N.get(8));\n\t\tN.get(3).addChild(N.get(9));\n\t\t\n\t\tN.get(10).addParent(N.get(2));\n\t\tN.get(10).addChild(N.get(5));\n\t\tN.get(10).addChild(N.get(19));\n\t\tN.get(10).addChild(N.get(20));\n\t\t\n\t\tN.get(9).addParent(N.get(3));\n\t\tN.get(9).addChild(N.get(4));\n\t\tN.get(9).addChild(N.get(17));\n\t\tN.get(9).addChild(N.get(18));\n\t\t\n\t\tN.get(4).addParent(N.get(9));\n\t\tN.get(4).addChild(N.get(12));\n\t\t\n\t\tN.get(5).addParent(N.get(10));\n\t\tN.get(5).addChild(N.get(11));\n\t\t\n\t\tN.get(12).addParent(N.get(4));\n\t\tN.get(12).addChild(N.get(22));\n\t\tN.get(12).addChild(N.get(23));\n\t\t\n\t\tN.get(11).addParent(N.get(5));\n\t\tN.get(11).addChild(N.get(21));\n\t\tN.get(11).addChild(N.get(23));\n\t\t\n\t\tN.get(13).addParent(N.get(6));\n\t\tN.get(14).addParent(N.get(6));\n\t\tN.get(15).addParent(N.get(7));\n\t\tN.get(16).addParent(N.get(8));\n\t\tN.get(17).addParent(N.get(9));\n\t\tN.get(18).addParent(N.get(9));\n\t\tN.get(19).addParent(N.get(10));\n\t\tN.get(20).addParent(N.get(10));\n\t\tN.get(21).addParent(N.get(11));\n\t\tN.get(22).addParent(N.get(12));\n\t\tN.get(23).addParent(N.get(11));\n\t\tN.get(23).addParent(N.get(12));\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the C,I,A values for each node\n\t\t */\n\t\t\n\t\tN.get(0).setImpacts(4, 4, 4);\n\t\tN.get(1).setImpacts(1, 2, 3);\n\t\tN.get(2).setImpacts(2, 2, 1);\n\t\tN.get(3).setImpacts(1, 2, 1);\n\t\tN.get(4).setImpacts(1, 1, 1);\n\t\tN.get(5).setImpacts(3, 2, 3);\n\t\tN.get(13).setImpacts(3,3,3);\n\t\tN.get(14).setImpacts(3,3,3);\n\t\tN.get(15).setImpacts(3,3,3);\n\t\tN.get(16).setImpacts(3,3,3);\n\t\tN.get(17).setImpacts(3,3,3);\n\t\tN.get(18).setImpacts(3,3,3);\n\t\tN.get(19).setImpacts(3,3,3);\n\t\tN.get(20).setImpacts(3,3,3);\n\t\tN.get(21).setImpacts(3,3,3);\n\t\tN.get(22).setImpacts(3,3,3);\n\t\tN.get(23).setImpacts(2,2,1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * This block helps see the setup of the whole tree. \n\t\t * Comment out if not required to see the parent children relationship of each node.\n\t\t */\n\t\t\n\t\tfor(int i=0; i<24; i++)\n\t\t{\n\t\t\tSystem.out.println(\"\\n\\n\" + N.get(i).getName() + \" < C=\" + N.get(i).getImpactC() + \", I=\" + N.get(i).getImpactI() + \", A=\" + N.get(i).getImpactA() + \" >\" );\n\t\t\tSystem.out.println(\"Parents: \");\n\t\t\tfor(int j=0; j<N.get(i).getParents().size(); j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getParents().get(j).getName() + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nChildren: \");\n\t\t\tfor(int k=0; k<N.get(i).getChildren().size(); k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getChildren().get(k).getName() + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Calling the method which will perform the C,I,A impact analysis \n\t\t */\n\t\t\n\t\t//Node n = new Node(); //Commented out as extended Main to Node and declared impactAnalysis() as static \n\t\t\n\t\tImpactAnalyzer ia = new ImpactAnalyzer();\n\t\tia.analyze(2, 2, 1, N);\n\t\t\n\t\t\n\t\t\n\t}",
"public static void test03() {\n TreeNode n1 = new TreeNode(7);\n TreeNode n2 = new TreeNode(7);\n TreeNode n3 = new TreeNode(7);\n TreeNode n4 = new TreeNode(7);\n TreeNode n5 = new TreeNode(7);\n TreeNode n6 = new TreeNode(7);\n\n assemble(n1, n2, n3);\n assemble(n2, n4, n5);\n assemble(n3, n6, null);\n System.out.println(isSymmetrical(n1));\n }",
"public void printAllRootToLeafPaths(){\n\t\tint[] path = new int[256];\n\t\tBinaryTreeNode root = null;\n\t\tprintAllRootToLeafPaths(root ,path,0);\n\t}",
"public static void main(String[] args) {\n IntTree tree = new IntTree(\r\n new IntTreeNode(\r\n 9, \r\n new IntTreeNode(8,\r\n null,\r\n new IntTreeNode(3)), \r\n new IntTreeNode(7,\r\n new IntTreeNode(5),\r\n null)\r\n ));\r\n\r\n\r\n\r\n\r\n\r\n\r\n tree.printSideways();\r\n tree.slightStutter();\r\n System.out.println(\"---------------------------------\");\r\n tree.printSideways();\r\n\r\n }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\tfor(int i=1;i<=5;i++)\n\t\t{\n\t\t\t\n\t\t for(int j=1;j<=i;j++) {\n\t\t\t \n\t\t\t \n\t\t\tSystem.out.print(\"*\");\n\t\t\n\t\t}\n\t\t\t\n\t\t System.out.println(\"\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=1;i<=5;i++) {\n\t\t\t\t\t\t\n\t\t for(int j=5;j>=i;j--) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\tSystem.out.print(\"*\");\t\n\t\t}\n System.out.println();\t\t\n \n }\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(int a=1;a<=5;a++) {\n\t\t\t\n\t\t \n\t\t\tfor(int b=1;b<=a;b++) {\n\t\t\t\n\t\t \n\t\t\t\tSystem.out.print(\"*\");\n\t\t\n\t\t }\n\t\t System.out.println();\t\n\t\t\n\t\t}\n\t\t\n\t\t for(int c=1;c<=5;c++) {\n\t\t\t\n\t\t\t\n\t\t for(int d=4;d>=c;d--) {\n\t\t\t\n\t\t System.out.print(\"*\");\t\n\t\t\t\n\t\t}\n\t\t System.out.println();\t\n\t\t}\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t}",
"void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}",
"public static void main(String[] args) {\n\n int[] input = generateArray(4,5);//new int[]{4, 5, 0, 1};\n ArrayList<ArrayList<ArrayList<Integer>>> results = getPaths(input);\n// Output results:\n results.forEach((n) -> System.out.println(n));\n }",
"private static void test2() {\n BinaryTreeNode node1 = new BinaryTreeNode(1);\n BinaryTreeNode node2 = new BinaryTreeNode(2);\n BinaryTreeNode node3 = new BinaryTreeNode(3);\n BinaryTreeNode node4 = new BinaryTreeNode(4);\n BinaryTreeNode node5 = new BinaryTreeNode(5);\n BinaryTreeNode node6 = new BinaryTreeNode(6);\n BinaryTreeNode node7 = new BinaryTreeNode(7);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node5.left = node7;\n node3.right = node6;\n test(\"Test2\", node1, true);\n }",
"public static void main(String[] args) {\n\n TreeNode node1 = new TreeNode(1);\n TreeNode node2 = new TreeNode(2);\n TreeNode node3 = new TreeNode(3);\n TreeNode node4 = new TreeNode(4);\n TreeNode node5 = new TreeNode(5);\n TreeNode node6 = new TreeNode(6);\n TreeNode node7 = new TreeNode(7);\n TreeNode node8 = new TreeNode(8);\n node1.right=node3;\n node1.left=node2;\n node2.left=node4;\n node3.right=node5;\n node4.right=node6;\n node6.left=node7;\n node6.right=node8;\n traversalRecursion(node1);\n System.out.println();\n nonRecurInTraverse(node1);\n }"
] |
[
"0.5554225",
"0.54051524",
"0.5372197",
"0.53655994",
"0.53623027",
"0.5302431",
"0.5252153",
"0.52521205",
"0.5193881",
"0.51376224",
"0.5122183",
"0.510819",
"0.5082794",
"0.5078782",
"0.5072029",
"0.50672853",
"0.50450015",
"0.5040706",
"0.5033602",
"0.50051695",
"0.49934927",
"0.49864635",
"0.49741703",
"0.49665654",
"0.49652547",
"0.4963559",
"0.49631965",
"0.49604958",
"0.49560168",
"0.49487978",
"0.49474478",
"0.49447462",
"0.49429274",
"0.49371395",
"0.49333027",
"0.49245027",
"0.49138868",
"0.49127123",
"0.4908179",
"0.49006897",
"0.48991466",
"0.48955306",
"0.48937055",
"0.4881531",
"0.48762792",
"0.48742488",
"0.4851736",
"0.48508736",
"0.48506767",
"0.484847",
"0.48428595",
"0.48412752",
"0.48355487",
"0.48345998",
"0.48196423",
"0.481633",
"0.48159423",
"0.48111087",
"0.4788141",
"0.4786811",
"0.4782925",
"0.47826597",
"0.478154",
"0.47800186",
"0.47788757",
"0.47756082",
"0.47666967",
"0.47648752",
"0.4758843",
"0.47573763",
"0.47539127",
"0.47510162",
"0.47510162",
"0.47486344",
"0.47467116",
"0.47421497",
"0.47387072",
"0.4736979",
"0.47366855",
"0.47363096",
"0.4735248",
"0.47320205",
"0.47302675",
"0.47286242",
"0.47244078",
"0.47242624",
"0.47212493",
"0.4721065",
"0.47206545",
"0.47182295",
"0.47176287",
"0.47165808",
"0.47145686",
"0.47115237",
"0.4711111",
"0.4705287",
"0.4700104",
"0.46940345",
"0.46896973",
"0.46877772",
"0.46872658"
] |
0.0
|
-1
|
Constructs a new board, that take no parameters, and initialize the game board as a 5 row game empty slot at (0,0). Added in Abstract model, thus passing in new Triangle board as parameter to super.
|
public TriangleSolitaireModelImpl() {
super(new TriangleBoard());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}",
"public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}",
"public Board() {\n initialize(3, null);\n }",
"public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}",
"public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }",
"public UIBoard()\r\n\t{\r\n\t\t//Creates a 10x10 \"Board\" object\r\n\t\tsuper(10,10);\r\n\t\tgrid = new int[getLength()][getWidth()];\r\n\t\t\r\n\t\t//Sets all coordinates to the value 0, which corresponds to \"not hit yet\"\r\n\t\tfor(int i=0; i<grid.length; i++)\r\n\t\t\tfor(int j=0; j<grid[i].length; j++)\r\n\t\t\t\tgrid[i][j] = 0;\t\t\r\n\t}",
"public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }",
"public Board() {\n this.x = 0;\n this.o = 0;\n }",
"public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }",
"public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }",
"public Board()\r\n\t{\r\n\t\treset();\r\n\t}",
"public PersonalBoard(){\n this(0);\n }",
"public GameBoard(){\r\n\t\tboard = new Box[boardSize];\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tboard[i] = Box.EMPTY;\r\n\t\t}\r\n\t}",
"public TriangleSolitaireModelImpl(int emptyRow, int emptyCol) throws IllegalArgumentException {\r\n super(new TriangleBoard(emptyRow, emptyCol));\r\n }",
"public TicTacToeBoard() {\n grid = new Cell[N][N];\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++)\n grid[i][j] = new Cell(i, j, '-');\n }\n }",
"public Board()\n\t{\n\t\tcols = DEFAULT_WIDTH;\n\t\trows = DEFAULT_HEIGHT;\n\t\t\n\t\tpieces = new int[rows][cols];\n\t\tif (pieces.length > 0)\n\t\t{\n\t\t\tfor (int i = 0; i < pieces.length; i++)\n\t\t\t\tfor (int j = 0; j < pieces[0].length; j++)\n\t\t\t\t\tpieces[i][j] = -1;\n\t\t}\n\t}",
"public Board() {\n\t\tdimension = 9;\n\t\tpuzzle = new int[dimension][dimension];\n\t}",
"public Board() {\r\n\t\tthis.size = 4;\r\n\t\tthis.gameBoard = createBoard(4);\r\n\t\tthis.openTiles = 16;\r\n\t\tthis.moves = 0;\r\n\t\tthis.xValues = new boolean[4][4];\r\n\t\tthis.yValues = new boolean[4][4];\r\n\t\tthis.complete = false;\r\n\t}",
"public Gameboard() {\n\n\t\tturn = 0;\n\n\t\tboard = new Cell[4][4][4];\n\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\t\tfor (int k = 0; k < board.length; k++) {\n\n\t\t\t\t\tboard[i][j][k] = Cell.E;\n\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Board(float width, float height) {\r\n tablero = new Array<BlockDrawable>();\r\n this.width = width;\r\n this.height = height;\r\n deletedRowsInfo.ordered = true;\r\n reset();\r\n }",
"Board() {\n this(INITIAL_PIECES, BLACK);\n _countBlack = 12;\n _countWhite = 12;\n _moveHistory = new ArrayList<Move>();\n _movesMade = 0;\n }",
"Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}",
"public TicTacToeBoard() {board = new int[rows][columns];}",
"public abstract void createBoard();",
"public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }",
"public Board() {\n\t\tboardState = new Field[DIMENSION][DIMENSION];\n\t\tfor(int i = 0; i < DIMENSION; i++) {\n\t\t\tfor(int j = 0; j < DIMENSION; j++) {\n\t\t\t\tboardState[i][j] = new Field();\n\t\t\t}\n\t\t}\n\t}",
"public Board()\r\n\t{\r\n\t\tthis.grid = new CellState[GRID_SIZE][GRID_SIZE];\r\n\t\tthis.whiteMarblesCount = MARBLES_COUNT;\r\n\t\tthis.blackMarblesCount = MARBLES_COUNT;\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the board with empty value\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < GRID_SIZE; indexcol++)\r\n\t\t{\r\n\t\t\tfor (int indexrow = 0; indexrow < GRID_SIZE; indexrow++)\r\n\t\t\t{\r\n\t\t\t\tthis.grid[indexrow][indexcol] = CellState.EMPTY;\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Sets marbles on the board with default style\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[0][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[8][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 0; indexcol < 6; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[1][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[7][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 2; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[2][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[6][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tthis.grid[3][8] = CellState.INVALID;\r\n\t\tthis.grid[2][7] = CellState.INVALID;\r\n\t\tthis.grid[1][6] = CellState.INVALID;\r\n\t\tthis.grid[0][5] = CellState.INVALID;\r\n\t\tthis.grid[5][0] = CellState.INVALID;\r\n\t\tthis.grid[6][1] = CellState.INVALID;\r\n\t\tthis.grid[7][2] = CellState.INVALID;\r\n\t\tthis.grid[8][3] = CellState.INVALID;\r\n\t}",
"private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Tile t8 = new Tile(7, 5);\n Tile t9 = new Tile(8, 5);\n Tile t10 = new Tile(9, 5);\n Tile t11 = new Tile(10, 5);\n Tile t12 = new Tile(11, 5);\n Tile t13 = new Tile(12, 5);\n Tile t14 = new Tile(13, 5);\n Tile t15 = new Tile(14, 5);\n Tile t16 = new Tile(15, 5);\n Tile t17 = new Tile(16, 5);\n Tile t18 = new Tile(17, 5);\n Tile t19 = new Tile(18, 5);\n Tile t20 = new Tile(19, 5);\n Tile t21 = new Tile(20, 5);\n Tile t22 = new Tile(21, 5);\n Tile t23 = new Tile(22, 5);\n Tile t24 = new Tile(23, 5);\n Tile t25 = new Tile(24, 5);\n tiles = new Tile[5][5];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[0][3] = t5;\n tiles[0][4] = t9;\n tiles[1][0] = t3;\n tiles[1][1] = t1;\n tiles[1][2] = t8;\n tiles[1][3] = t4;\n tiles[1][4] = t11;\n tiles[2][0] = t17;\n tiles[2][1] = t18;\n tiles[2][2] = t10;\n tiles[2][3] = t25;\n tiles[2][4] = t20;\n tiles[3][0] = t23;\n tiles[3][1] = t21;\n tiles[3][2] = t12;\n tiles[3][3] = t15;\n tiles[3][4] = t13;\n tiles[4][0] = t22;\n tiles[4][1] = t24;\n tiles[4][2] = t14;\n tiles[4][3] = t16;\n tiles[4][4] = t19;\n return new Board(tiles);\n }",
"public Board() {\n\t\tthis.myBoard = new BlockFor2048[4][4];\n\t\tint randomInserted = 0;\n\t\tint colInd = 0;\n\t\tint rowInd = 0;\n\t\twhile (randomInserted != 2){\n\t\t\tcolInd = (int)(Math.random() * 4);\n\t\t\trowInd = (int)(Math.random() * 4);\n\t\t\tif (this.myBoard[colInd][rowInd] == null){\n\t\t\t\tthis.myBoard[colInd][rowInd] = new BlockFor2048(2);\n\t\t\t\trandomInserted++;\n\t\t\t}\n\t\t}\t\t\n\t\tthis.ScoreValue = 0;\n\t}",
"public Board() {\n\t\tfor(int i = 0; i < board.length; i++){\n\t\t\tfor(int j = 0; j < board[i].length; j++){\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"public TriangleSolitaireModelImpl(int dimensions, int emptyRow, int emptyCol)\r\n throws IllegalArgumentException {\r\n super(new TriangleBoard(dimensions, emptyRow, emptyCol));\r\n }",
"public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}",
"public Board() {\n\t\tboard = new char[9][9];\n\t}",
"public Board(int size) {\n initialize(size, null);\n }",
"private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }",
"public Board(){\n for(int holeIndex = 0; holeIndex<holes.length; holeIndex++)\n holes[holeIndex] = new Hole(holeIndex);\n for(int kazanIndex = 0; kazanIndex<kazans.length; kazanIndex++)\n kazans[kazanIndex] = new Kazan(kazanIndex);\n nextToPlay = Side.WHITE;\n }",
"public Board(int boardHeight, int boardWidth) {\n this.boardWidth = boardHeight+1;\n this.boardHeight = boardWidth+1;\n this.board = new char[this.boardHeight][this.boardWidth];\n this.numShips = 0;\n boardInit();\n }",
"public Connect4Board() {\n super(rows, cols);\n }",
"public Battleship(int row) {\r\n\t\tthis(row, 5);\r\n\t}",
"public GameBoard(){\r\n boardCells = new GameCell[NUMBER_OF_CELLS];\r\n for( int i= 0; i< NUMBER_OF_CELLS; i++ ){\r\n boardCells[i] = new GameCell(i);//\r\n }\r\n }",
"public Board(int[][] grid, Tetrimino piece) {\n //initComponents();\n this.grid = grid;\n this.piece = piece;\n setLayout(new GridLayout(grid.length-4, grid[0].length));\n init();\n }",
"Board() {\n clear();\n }",
"Board() {\n clear();\n }",
"public ThirteensBoard()\n {\n super(BOARD_SIZE, RANKS, SUITS, POINT_VALUES);\n }",
"public Board() {\n\t\tboard = new int[8][8];\n\t\tbombs = 64 / 3;\n\t\tdifficulty = GlobalModel.BESTSCORE_EASY;\n\t\tfillBoard();\n\t\tsetDefaultScores();\n\t}",
"public OthelloBoard (int height, int width){\n super(height, width);\n m_Pieces = new OthelloPiece[WIDTH][HEIGHT];\n m_PieceCount+=4;\n \n }",
"public PersonalBoard(int width, int height){\n super(width, height);\n this.rand = new Random();\n }",
"public Board() {\n\t\tthis.table = new int[Constants.SIZE][Constants.SIZE];\n\t\tthis.P1Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tthis.P2Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tP1turn = true;\n\t\tnumPieces = 0;\n\t\t\n\t\tfor(int i=0; i<table.length; i++) {\n\t\t\tfor(int j=0; j<table[i].length; j++) {\n\t\t\t\ttable[i][j] = Constants.EMPTY;\n\t\t\t\tP1Movable[i][j] = true;\n\t\t\t\tP2Movable[i][j] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public AIPlayer(Board board) {\n cells = board.squares;\n }",
"private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}",
"public Board() {\n playerNumber = 2;\n deadBlackCount = 0;\n deadWhiteCount = 0;\n deadRedCount = 0;\n deadBlueCount = 0;\n\n fields = new Field[DIMENSION][DIMENSION];\n // init fields\n for (int i = 0; i < DIMENSION; i++) {\n for (int j = 0; j < DIMENSION; j++) {\n fields[i][j] = new Field();\n fields[i][j].setX(i);\n fields[i][j].setY(j);\n }\n }\n }",
"public Board(int dimensions){\n this.dimensions = dimensions;\n createBoard(dimensions);\n this.status = Status.CREATED;\n this.hitsLeft = 15;\n }",
"public Board(int rows, int columns) throws Exception {\n\t\tif (rows >= 8 && columns >= 8) {\n\t\t\tthis.rows = rows;\n\t\t\tthis.columns = columns;\n\t\t\tboard = new int[rows][columns];\n\t\t\tthis.bombs = (rows * columns) / 3;\n\t\t\tfillBoard();\n\t\t} else {\n\t\t\tthrow new Exception(\"Minesweeper dimensions invalid:\\nWidth: from 8 to 100\\nHeight: from 8 to 100\\nBombs: 1 to 1/3 of squares\");\n\t\t}\n\t}",
"public void Makeboard() {\r\n\r\n Normalboard(new Point2(20, 300));\r\n Normalboard(new Point2(224, 391));\r\n Stingboard(new Point2(156, 209));\r\n Leftlboard(new Point2(88, 482));\r\n Rightboard(new Point2(292, 573));\r\n Regenerateboard(new Point2(360, 118));\r\n\r\n }",
"public Board() {\n tiles = new int[3][3];\n int[] values = genValues(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 0});\n\n int offset;\n for (int i = 0; i < 3; i++) {\n offset = 2 * i;\n tiles[i] = Arrays.copyOfRange(values, i + offset, i + offset + 3);\n }\n }",
"private Board() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// A private board constructor to ensure only one is created\n\t\tsuper();\n\t}",
"private void initializeBoard() {\n\n squares = new Square[8][8];\n\n // Sets the initial turn to the White Player\n turn = white;\n\n final int maxSquares = 8;\n for(int i = 0; i < maxSquares; i ++) {\n for (int j = 0; j < maxSquares; j ++) {\n\n Square square = new Square(j, i);\n Piece piece;\n Player player;\n\n if (i < 2) {\n player = black;\n } else {\n player = white;\n }\n\n if (i == 0 || i == 7) {\n switch(j) {\n case 3:\n piece = new Queen(player, square);\n break;\n case 4:\n piece = new King(player, square);\n break;\n case 2:\n case 5:\n piece = new Bishop(player, square);\n break;\n case 1:\n case 6:\n piece = new Knight(player, square);\n break;\n default:\n piece = new Rook(player, square);\n }\n square.setPiece(piece);\n } else if (i == 1 || i == 6) {\n piece = new Pawn(player, square);\n square.setPiece(piece);\n }\n squares[j][i] = square;\n }\n }\n }",
"public XOBoard() {\n\t\t// initialise the boards\n\t\tboard = new int[4][4];\n\t\trenders = new XOPiece[4][4];\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tboard[i][j] = EMPTY;\n\t\t\t\trenders[i][j] = null;\n\t\t\t}\n\t\tcurrent_player = XPIECE;\n\n\t\t// initialise the rectangle and lines\n\t\tback = new Rectangle();\n\t\tback.setFill(Color.GREEN);\n\t\th1 = new Line();\n\t\th2 = new Line();\n\t\th3 = new Line();\n\t\tv1 = new Line();\n\t\tv2 = new Line();\n\t\tv3 = new Line();\n\t\th1.setStroke(Color.WHITE);\n\t\th2.setStroke(Color.WHITE);\n\t\th3.setStroke(Color.WHITE);\n\t\tv1.setStroke(Color.WHITE);\n\t\tv2.setStroke(Color.WHITE);\n\t\tv3.setStroke(Color.WHITE);\n\n\t\t// the horizontal lines only need the endx value modified the rest of //\n\t\t// the values can be zero\n\t\th1.setStartX(0);\n\t\th1.setStartY(0);\n\t\th1.setEndY(0);\n\t\th2.setStartX(0);\n\t\th2.setStartY(0);\n\t\th2.setEndY(0);\n\t\th3.setStartX(0);\n\t\th3.setStartY(0);\n\t\th3.setEndY(0);\n\n\t\t// the vertical lines only need the endy value modified the rest of the\n\t\t// values can be zero\n\t\tv1.setStartX(0);\n\t\tv1.setStartY(0);\n\t\tv1.setEndX(0);\n\t\tv2.setStartX(0);\n\t\tv2.setStartY(0);\n\t\tv2.setEndX(0);\n\t\tv3.setStartX(0);\n\t\tv3.setStartY(0);\n\t\tv3.setEndX(0);\n\n\t\t// setup the translation of one cell height and two cell heights\n\t\tch_one = new Translate(0, 0);\n\t\tch_two = new Translate(0, 0);\n\t\tch_three = new Translate(0, 0);\n\t\th1.getTransforms().add(ch_one);\n\t\th2.getTransforms().add(ch_two);\n\t\th3.getTransforms().add(ch_three);\n\n\t\t// setup the translation of one cell width and two cell widths\n\t\tcw_one = new Translate(0, 0);\n\t\tcw_two = new Translate(0, 0);\n\t\tcw_three = new Translate(0, 0);\n\t\tv1.getTransforms().add(cw_one);\n\t\tv2.getTransforms().add(cw_two);\n\t\tv3.getTransforms().add(cw_three);\n\n\t\t// add the rectangles and lines to this group\n\t\tgetChildren().addAll(back, h1, h2, h3, v1, v2, v3);\n\n\t}",
"public Board() {\n this.board = new Piece[16];\n }",
"public GameBoard (int height, int width)\n {\n mHeight = height;\n mWidth = width;\n }",
"public Board(int[][] tiles) {\n n = tiles.length;\n this.tiles = deepCopy(tiles);\n }",
"protected BattleshipBoard(int rows, int cols, int maxPlayer, Interaction interaction, Piece currentPiece) {\n\t\tsuper(rows, cols, maxPlayer, interaction, currentPiece);\n\t\tthis.shipBoard = new BattleshipPiece[rows][cols];\n\t\tthis.playerScore = new int[maxPlayer];\n\t}",
"Board() {\r\n init();\r\n }",
"@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}",
"public Board() {\n\t\tmarkCount = 0;\n\t\ttheBoard = new char[3][];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\ttheBoard[i] = new char[3];\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\t}\n\t}",
"public TicTacToe(){ \r\n\t\tboard = new char[3][3];\r\n\t}",
"public BoardImpl(int size)\r\n {\r\n if (size != 9 && size != 13 && size != 19)\r\n throw new WrongBoardSizeException(\"Board could not be created. GO board must be size 9, 13 or 19\");\r\n setSize(size);\r\n setBoard(new ArrayList<List<Field>>());\r\n setHistory(new ArrayList<Move>());\r\n createFields();\r\n }",
"public Game() {\n board = new FourBoard();\n }",
"public Board() {\n //Create all pieces\n board[0][0] = new Rook(\"black\", 0, 0);\n board[0][1] = new Knight(\"black\", 0, 1);\n board[0][2] = new Bishop(\"black\", 0, 2);\n board[0][3] = new Queen(\"black\", 0, 3);\n board[0][4] = new King(\"black\", 0, 4);\n board[0][5] = new Bishop(\"black\", 0, 5);\n board[0][6] = new Knight(\"black\", 0, 6);\n board[0][7] = new Rook(\"black\", 0, 7);\n\n board[7][0] = new Rook(\"white\", 7, 0);\n board[7][1] = new Knight(\"white\", 7, 1);\n board[7][2] = new Bishop(\"white\", 7, 2);\n board[7][3] = new Queen(\"white\", 7, 3);\n board[7][4] = new King(\"white\", 7, 4);\n board[7][5] = new Bishop(\"white\", 7, 5);\n board[7][6] = new Knight(\"white\", 7, 6);\n board[7][7] = new Rook(\"white\", 7, 7);\n\n for (int j = 0; j < 8; j++) {\n board[1][j] = new Pawn(\"black\", 1, j);\n board[6][j] = new Pawn(\"white\", 6, j);\n }\n\n //Printing everything\n for (Piece[] a : board) {\n for (Piece b : a) {\n System.out.printf(\"%-15s\", \"[\" + b + \"]\");\n }\n System.out.println(\"\");\n }\n }",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n drawLines();\n \n for( int r = 0; r < board.length; r++ )\n {\n for( int c = 0; c < board[r].length; c++)\n {\n board[r][c] = \"\"; \n \n }\n }\n }",
"public Board(char[][] board) {\n this.boardWidth = board.length;\n this.boardHeight = board[0].length;\n this.board = board;\n this.numShips = 0;\n boardInit();\n }",
"private GameBoard() {}",
"public Board(int boardSize, Random random)\n {\n this.random = random;\n GRID_SIZE = boardSize; \n this.grid = new int[boardSize][boardSize];\n for ( int i=0; i < NUM_START_TILES; i++) {\n this.addRandomTile();\n }\n }",
"public Board (int rSize, int cSize)\r\n\t{\r\n\t\tint i, x;\r\n\t\tRow_Size = rSize;\r\n\t\tColumn_Size = cSize;\r\n\t\tLayout = new int [Row_Size][Column_Size];\r\n\r\n\t\tfor(i=0;i<Row_Size;i++)\r\n\t\t{\r\n\t\t\tfor(x=0;x<Column_Size;x++)\r\n\t\t\t{\r\n\t\t\t\tLayout[i][x] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"TetrisBoard() {\n\t\t// create new board \n\t\tblockMatrix = new boolean[NUM_ROWS][NUM_COLS];\n\t\t\n\t\t// fill in values for board\n\t\tinitBoard();\n\t\t\n\t\t// add new piece to fall\n\t\taddNewPiece();\n\t\t\n\t\t// start scores at 0\n\t\tnumLines = 0;\n\t\tnumTetrises = 0;\n\t}",
"public void initializeBoard() {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tthis.board[i] = \"-\";\n\n\t\t}\n\n\t}",
"public Board(int x, int y){\n player1 = \"Player 1\";\n player2 = \"Player 2\";\n randomPlayer1 = \"CPU 1\";\n randomPlayer2 = \"CPU 2\";\n board = new Square[x][y];\n for (int i = 0; i < board.length;i++){\n row++;\n for(int j = 0; j < board.length; j++){\n if(column == y){\n column = 0;\n }\n column++;\n board[i][j] = new Square(row, column);\n }\n }\n row = x;\n column = y;\n }",
"@Override\n public void createBoard(int width, int height, int numMines) {\n // Clamp the dimensions and mine numbers\n dims = new Point(Util.clamp(width, MIN_DIM_X, MAX_DIM_X),\n Util.clamp(height, MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Step 1\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n List<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), false));\n }\n cells.add(oneRow);\n }\n\n // Step 2\n int minesPlaced = 0;\n while (minesPlaced < this.numMines) {\n int randX = ThreadLocalRandom.current().nextInt((int) dims.getX());\n int randY = ThreadLocalRandom.current().nextInt((int) dims.getY());\n\n if (!cells.get(randY).get(randX).isMine()) {\n cells.get(randY).get(randX).setNumber(-1);\n minesPlaced++;\n }\n }\n\n // Step 3\n updateCellNumbers();\n }",
"public ThreeStonesBoard(Tile[][] board) {\r\n this.board = board;\r\n }",
"public TicTacToe()\n\t{\n\t\t// board array has an index of 10\n\t\tboard = new String[ 10 ];\n\t\t\n\t}",
"public GameBoard() {\r\n boards = new ArrayList<GameBoard>();\r\n }",
"public static void createBoard() \n\t{\n\t\tfor (int i = 0; i < tictactoeBoard.length; i++) \n\t\t{\n\t\t\ttictactoeBoard[i] = '-';\n\t\t}\n\t}",
"public Board(Board a)\n {\n mainBoard=false;\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n if (a.firstSelected==null)\n firstSelected=null;\n else\n firstSelected = new Piece(a.firstSelected);\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n squares[i][j] = new Square(a.squares[i][j]);\n }",
"public JumbleBoard()\n {\n }",
"public SquareBoard(Coordinates C, double hw, Color v)\r\n {\r\n r = new Rectangle(C.X(), C.Y(), hw, hw);\r\n r.setStroke(Color.BLACK);\r\n r.setFill(v);\r\n BoardPane.getPane().getChildren().add(r);\r\n }",
"Board() {\n this.cardFactory = new CardFactory(this);\n }",
"public TicTacToe() {\n resetBoard();\n }",
"public void setBoard() {\n margin = Math.round((sizeOfCell * 3) / 2);\n RelativeLayout.LayoutParams marginParam = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n marginParam.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n marginParam.addRule(RelativeLayout.CENTER_HORIZONTAL);\n marginParam.setMargins(0, 0, 0, (margin));\n gridContainer.setLayoutParams(marginParam);\n\n LinearLayout.LayoutParams lpRow = new LinearLayout.LayoutParams(sizeOfCell * maxN, sizeOfCell);\n LinearLayout.LayoutParams lpCell = new LinearLayout.LayoutParams(sizeOfCell, sizeOfCell);\n LinearLayout linRow;\n\n for (int row = 0; row < maxN; row++) {\n linRow = new LinearLayout(context);\n for (int col = 0; col < maxN; col++) {\n ivCell[row][col] = new ImageView(context);\n linRow.addView(ivCell[row][col], lpCell);\n }\n linBoardGame.addView(linRow, lpRow);\n }\n }",
"public BitBoardImpl() {\n\tinitialPosition();\n }",
"public void initializeBoard() {\r\n int x;\r\n int y;\r\n\r\n this.loc = this.userColors();\r\n\r\n this.board = new ArrayList<ACell>();\r\n\r\n for (y = -1; y < this.blocks + 1; y += 1) {\r\n for (x = -1; x < this.blocks + 1; x += 1) {\r\n ACell nextCell;\r\n\r\n if (x == -1 || x == this.blocks || y == -1 || y == this.blocks) {\r\n nextCell = new EndCell(x, y);\r\n } else {\r\n nextCell = new Cell(x, y, this.randColor(), false);\r\n }\r\n if (x == 0 && y == 0) {\r\n nextCell.flood();\r\n }\r\n this.board.add(nextCell);\r\n }\r\n }\r\n this.stitchCells();\r\n this.indexHelp(0, 0).floodInitStarter();\r\n }",
"public Board(String gameType) {\n propertyFactory = new TileFactory(gameType);\n createBoard();\n }",
"public Sudoku() {\n this.board = new int[size][size];\n }",
"public Board() {\n this.actionField = new ActionField();\n this.buyField = new BuyField();\n }",
"public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }",
"private void generateBoard(){\n\t}",
"public void newBoard(LiteBoard board) {\n }",
"public TTTBoard(int dimensions)\n\t{\n\t\tsuper(dimensions, dimensions);\n\t\tplayer = 0;\n\t}",
"public Display() {\r\n\t\t//Fills the board with invalid positions\r\n\t\tboard = new int[17][17];\r\n\t\tfor (int i = 0; i < 17; i++)\r\n\t\t\tfor (int j = 0; j < 17; j++)\r\n\t\t\t\tboard[i][j] = -1;\r\n\r\n\t\t//Fills the center of the board with valid positions\r\n\t\tfor (int i = 4; i <= 12; i++)\r\n\t\t\tfor (int j = 4; j <= 12; j++)\r\n\t\t\t\tboard[i][j] = 0;\r\n\t\t\r\n\t\t//Fills the rest of the board with valid positions\r\n\t\tfillTriangle(-1, board, 0, 16, 12);\r\n\t\tfillTriangle(1, board, 0, 9, 13);\r\n\t\tfillTriangle(-1, board, 0, 7, 12);\r\n\t\tfillTriangle(1, board, 0, 0, 4);\r\n\t\tfillTriangle(-1, board, 0, 7, 3);\r\n\t\tfillTriangle(1, board, 0, 9, 4);\r\n\t\t\r\n\t\tthis.setPreferredSize(SIZE);\r\n\t}",
"public Board(int row, int column, int countToWin) {\n\t\tintializeBoard(row, column, countToWin);\n\t}",
"public Tile(int row, int column, Piece piece) {\n this.row = row;\n this.column = column;\n this.piece = piece;\n this.setBorder(javax.swing.BorderFactory.createEmptyBorder());\n }"
] |
[
"0.7519167",
"0.7218207",
"0.71840733",
"0.7054072",
"0.70500326",
"0.7048329",
"0.698117",
"0.69507855",
"0.694428",
"0.6922172",
"0.6913548",
"0.690321",
"0.6855228",
"0.683781",
"0.681332",
"0.68085176",
"0.6785734",
"0.67614305",
"0.67604935",
"0.6735923",
"0.6724791",
"0.6694775",
"0.668785",
"0.6645706",
"0.66402894",
"0.6639627",
"0.66372424",
"0.66371894",
"0.6619827",
"0.6619542",
"0.661127",
"0.660515",
"0.6590189",
"0.6581181",
"0.65712583",
"0.65531087",
"0.6547056",
"0.6546772",
"0.65458876",
"0.65381485",
"0.6537642",
"0.65333265",
"0.65333265",
"0.6527619",
"0.65232",
"0.65213233",
"0.65032756",
"0.64725435",
"0.64651704",
"0.64648736",
"0.64611095",
"0.6450334",
"0.645015",
"0.6446492",
"0.64384645",
"0.6434593",
"0.64341176",
"0.6429648",
"0.6421815",
"0.64094603",
"0.6400214",
"0.6389783",
"0.6380917",
"0.63786185",
"0.6369937",
"0.6349052",
"0.63343287",
"0.63309175",
"0.6326781",
"0.6314305",
"0.6307461",
"0.6304468",
"0.6290913",
"0.6289438",
"0.6287888",
"0.62696373",
"0.62680864",
"0.62677664",
"0.62580454",
"0.62481576",
"0.6246228",
"0.6237541",
"0.62331414",
"0.6232182",
"0.62301695",
"0.62293726",
"0.6223384",
"0.62168044",
"0.6210546",
"0.6210266",
"0.62069064",
"0.62059957",
"0.62011224",
"0.61957073",
"0.6189003",
"0.61881816",
"0.61740816",
"0.61718166",
"0.6165485",
"0.6163909"
] |
0.6372326
|
64
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.