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
Returns true if this object has never been stored.
public final boolean isNew() { Key k = Key.parse(getId()); return k.getValue() == null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isNotPersisted() {\n return notPersisted;\n }", "@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }", "public boolean isUnsaved(Object obj) {\n return null;\r\n }", "public boolean isStoredInObject() {\r\n return lockValueStored == IN_OBJECT;\r\n }", "public boolean isStored(){\n synchronized (stateLock){\n return state.equals(State.STORED);\n }\n }", "public boolean hasObject(){\n return _object != null;\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean hasCompleteStore() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public boolean hasCompleteStore() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "boolean hasPersistent();", "public boolean isSetWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(WASNOTGIVEN$4) != 0;\n }\n }", "public boolean isIgnorable()\n {\n return m_ignore;\n }", "public boolean hasObject() {\n return objectBuilder_ != null || object_ != null;\n }", "public boolean isSetTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPG$30) != 0;\r\n }\r\n }", "public boolean hasPokeStorage() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean isSetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(INTERNAL$4) != 0;\n }\n }", "public boolean hasPokeStorage() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean isEmpty() {\r\n\t\treturn objectCollection.isEmpty();\r\n\t}", "public boolean isPersisted() {\n return systemId!=NOT_PERSISTED;\n }", "public boolean isDontCare(){\n return hasDontCare;\n }", "public Boolean isPreservedExistingData() {\n return this.preservedExistingData;\n }", "public boolean isNotPresent() {\n checkNotUnknown();\n return !isMaybePresent();\n }", "public boolean isSaved() {\n\t\treturn name != null;\n\t}", "public boolean hasCreateStore() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean isMonomerStoreEmpty() {\r\n return (this.monomerDB == null || this.monomerDB.values() == null || this.monomerDB.values().size() == 0);\r\n }", "public boolean isSetTpe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPE$32) != 0;\r\n }\r\n }", "public boolean hasCreateStore() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean empty() {\n return objects.isEmpty();\n }", "public boolean isMissingData() {\n return myModel.getRealtimeTimestamp() == 0;\n }", "public boolean isNotNullStoreId() {\n return genClient.cacheValueIsNotNull(CacheKey.storeId);\n }", "@Override\n public boolean isEmpty() {\n return getSnapshot() == null;\n }", "@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }", "public boolean hasNeverContacted() {\r\n\t\treturn lastContactTimestamp.get() == 0;\r\n\t}", "public boolean isPossibleToTake() {\n if (storage == 0) {\n return false;\n } else {\n return true;\n }\n }", "public boolean isSetZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(ZYHTVO$0) != 0;\n }\n }", "public boolean isGarbage()\r\n\t\t{\r\n\t\t\treturn this.subscriberRef.get() == null;\r\n\t\t}", "private boolean m125720o() {\n return isAdded() && !isDetached();\n }", "private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}", "public boolean isSetDataMsng()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATAMSNG$18) != 0;\n }\n }", "public boolean hasObjectFileKey() {\n return objectFileKey_ != null;\n }", "public boolean isEmpty() {\n return this.cache.isEmpty();\n }", "public boolean hasUnsavedParts() { return (bSave != null ? bSave.isEnabled() : false); }", "public boolean isEmpty() {\n return history.size() == 0;\n }", "@Override\n\tpublic boolean isPersistent() {\n\t\treturn id != -1;\n\t}", "boolean isIgnorable() { return false; }", "public boolean isSetData() {\n return this.data != null;\n }", "public boolean isEmpty() {\n return this.extMap.isEmpty();\n }", "public boolean isSetObject() {\n return this.object != null;\n }", "public boolean hasSaveSensor() {\n return saveSensor_ != null;\n }", "@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }", "public boolean isOccupied() {\n return !(getLease() == null);\r\n }", "@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }", "public boolean isSetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VALUE$12) != null;\n }\n }", "public boolean isNilZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.vo.crd.bd.interf.zyhtvo.ZyhtVO target = null;\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().find_element_user(ZYHTVO$0, 0);\n if (target == null) return false;\n return target.isNil();\n }\n }", "public boolean isSetCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CREATED$0) != 0;\n }\n }", "public boolean isNulled() {\n \t\treturn nulled;\n \t}", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isSetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(STATE$8) != 0;\r\n }\r\n }", "public boolean isActivelySaved() {\n\t\treturn activelySaved;\n\t}", "@Override\r\n\tpublic boolean isExisting() {\n\t\treturn false;\r\n\t}", "public boolean isNEVER()\n {\n return equiv(NEVER);\n }", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isStore() { return _store; }", "public boolean isSetTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TIME$2) != 0;\n }\n }", "public boolean isMaybeObject() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null && object_labels.stream().anyMatch(x -> x.getKind() != Kind.SYMBOL);\n }", "public boolean isNew() {\r\n\t\treturn (this.getId() == null);\r\n\t}", "public boolean isSaved() {\n\t\treturn !sitePanel.isDataModified();\n\t}", "public boolean isEmpty() {\n return holdingQueue.isEmpty();\n }", "public boolean _non_existent() {\n return false;\n }", "public boolean containsNoItems() {\n\t\treturn (this.items.size() == 0);\n\t}", "public boolean isSetTpd()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPD$34) != 0;\r\n }\r\n }", "@Override\r\n\tpublic boolean exists() {\n\t\treturn false;\r\n\t}", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "public boolean empty() {\r\n\t\treturn backSteps.empty();\r\n\t}", "public static synchronized boolean isEmpty() {\n\t\treturn ClassRegistry.dictionary.isEmpty();\n\t}", "@Override\r\n\tboolean hasUnsavedChanges();", "public final boolean isEmpty()\n {\n return this.pointer == 0;\n }", "public boolean isEmpty() {\n\t\t\treturn properties.isEmpty();\n\t\t}", "public boolean hasPersistDirectory() {\n return ((bitField0_ & 0x00400000) == 0x00400000);\n }", "public boolean isEmpty() {\n\t\treturn objectMappers.isEmpty();\n\t}", "@SuppressWarnings(\"unchecked\")\n public boolean stillExists(Object obj) {\n \treturn true;\n }", "public boolean hasDeleteStore() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }", "public boolean isEmpty() {\n\t\treturn currentSize == 0;\n\t}", "public boolean canBeNullObject() { // for future, nobody calls when first\n return _canBeNullObject;\n }", "boolean hasCompleteStore();", "@Override\n\tpublic boolean exists() {\n\t\treturn false;\n\t}", "public boolean isNull() {\n return this.data == null;\n }", "public boolean hasPersistDirectory() {\n return ((bitField0_ & 0x00400000) == 0x00400000);\n }", "public boolean hasKey() {\n return key_ != null;\n }", "private boolean isEmpty(){\n return (numInstances() == 0);\n }", "public boolean hasDeleteStore() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }", "public boolean noUndoBoard() {\n\t\treturn (cloneForUndo == null);\n\t}" ]
[ "0.73487115", "0.7092491", "0.7042382", "0.70279026", "0.69978786", "0.6979339", "0.6935209", "0.6935209", "0.6935209", "0.69152325", "0.69044495", "0.6884254", "0.6857177", "0.6809995", "0.6804101", "0.6797957", "0.6761788", "0.6754525", "0.67425466", "0.6725928", "0.6725357", "0.6713935", "0.6701159", "0.66955763", "0.668346", "0.6678688", "0.66721016", "0.66715395", "0.6669063", "0.66625684", "0.66541743", "0.6651667", "0.66509926", "0.663241", "0.6609118", "0.66062087", "0.66032284", "0.65470237", "0.65240526", "0.65230066", "0.65206534", "0.6494393", "0.6493231", "0.6491797", "0.64911205", "0.6489917", "0.6468358", "0.6467732", "0.64649045", "0.6457769", "0.6425573", "0.6424267", "0.6424228", "0.6408642", "0.6403248", "0.63969654", "0.639422", "0.6393648", "0.6391149", "0.6390093", "0.63837206", "0.6377268", "0.6377175", "0.636796", "0.63663596", "0.6359434", "0.6355157", "0.6349183", "0.6341265", "0.63376117", "0.63151807", "0.6311122", "0.6310977", "0.63105017", "0.6307338", "0.6307338", "0.6307338", "0.6307338", "0.6307338", "0.6307338", "0.6307338", "0.63033795", "0.629733", "0.6296029", "0.6295213", "0.6288034", "0.62873465", "0.6284391", "0.62840116", "0.62829", "0.6277302", "0.62754756", "0.6271767", "0.6271123", "0.62687105", "0.62685525", "0.62633044", "0.62579167", "0.6257292", "0.62520605" ]
0.6445964
50
TODO Create a webForm cache to avoid reflection for every request
public Page(Class<?> root) { entityName = StringUtils.uncapitalize(root.getSimpleName()); entityClass = root; title = new StringBuilder(entityName).append(".page.title").toString(); extractFormFields(root, ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readForm() {\n }", "@Test\n public void test028() throws Throwable {\n Form form0 = new Form(\"<([^<]+)>\");\n Form form1 = form0._getVisibleForm(true);\n }", "protected final Form getForm() {\n\t\treturn itsForm;\n\t}", "public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)\r\n {\r\n super.processFormRequest(pageContext, webBean);\r\n }", "public void processFormRequest(OAPageContext pageContext, \n OAWebBean webBean) {\n super.processFormRequest(pageContext, webBean);\n }", "@Override\n\tpublic PageForm formBackingObject(HttpServletRequest request) throws Exception { \n\n \tHttpSession session = request.getSession();\n \tPageForm theForm = (PageForm) super.formBackingObject(request);\n setPageMessage(session, theForm);\n return theForm;\n }", "protected Object formBackingObject(HttpServletRequest request) throws ServletException {\r\n \t\t\r\n \t\treturn \"\";\r\n \t}", "public Form readForm(String formKey);", "FORM createFORM();", "private WebRequest() {\n initFields();\n }", "public void parseForm()\n {\n if (mForm.gotoRoot().gotoTag(\"h:head/%1$s:model\", mDefaultPrefix).hasTag(\"%1$s:itext\", mDefaultPrefix)) {\n Log.d(Collect.LOGTAG, t + \"parsing itext form translations...\");\n parseFormTranslations(mForm.gotoRoot().gotoTag(\"h:head/%1$s:model/%1$s:itext\", mDefaultPrefix));\n } else\n Log.d(Collect.LOGTAG, t + \"no form translations to parse\"); \n \n Log.d(Collect.LOGTAG, t + \"parsing form binds...\");\n parseFormBinds(mForm.gotoRoot().gotoTag(\"h:head/%1$s:model\", mDefaultPrefix));\n \n Log.d(Collect.LOGTAG, t + \"parsing form controls...\");\n parseFormControls(mForm.gotoRoot().gotoTag(\"h:body\"));\n \n Log.d(Collect.LOGTAG, t + \"parsing form instance...\");\n parseFormInstance(mForm.gotoRoot().gotoTag(\"h:head/%1$s:model/%1$s:instance\", mDefaultPrefix).gotoChild(), \"/\" + mInstanceRoot);\n Log.d(Collect.LOGTAG, t + \"FINISHED parsing form instance\");\n }", "public void testFormBackingObject(UserSession us, String nextPageCode, String prePageCode){\n if(null != nextPageCode && !\"\".equals(nextPageCode)){\n request.setParameter(\"nextPageCode\", nextPageCode);\n }\n if(null != prePageCode && !\"\".equals(prePageCode)){\n request.setParameter(\"prePageCode\", prePageCode);\n }\n request.getSession().setAttribute(\"userSession\", us);\n try {\n MockForRetrieveCollectionList();\n reportForm = (ReportForm) reportController.formBackingObject(request);\n } catch (ModelAndViewDefiningException e) {\n System.out.println(\"execute method formBackingObject take ModelAndViewDefiningException: \" + e);\n } catch (Exception e) {\n System.out.println(\"execute method formBackingObject take exception: \" + e);\n }\n }", "protected IManagedForm getForm(){\r\n\t\treturn _mForm;\r\n\t}", "public Form getForm() {\n return form;\n }", "@Override\r\n protected void onForm(ClientForm form) {\n \r\n }", "protected RespostaFormularioPreenchido() {\n // for ORM\n }", "@Override\n public List<FormInfo> getForms() {\n return forms;\n }", "public interface Form extends Element {\n String getFormStr();\n}", "@Override\n\t\tpublic FormTestFacade getForm() {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic FormTestFacade getForm() {\n\t\t\treturn null;\n\t\t}", "@Override\n public ExtensionResult getForms(ExtensionRequest extensionRequest) {\n Map<String, String> output = new HashMap<>();\n FormBuilder formBuilder = new FormBuilder(appProperties.getFormIdTest());\n\n ButtonTemplate button = new ButtonTemplate();\n button.setTitle(\"Test Form\");\n button.setSubTitle(\"Subtitle is here\");\n button.setPictureLink(appProperties.getAtmUrl());\n button.setPicturePath(appProperties.getAtmUrl());\n List<EasyMap> actions = new ArrayList<>();\n EasyMap bookAction = new EasyMap();\n bookAction.setName(\"Label here\");\n bookAction.setValue(formBuilder.build());\n actions.add(bookAction);\n button.setButtonValues(actions);\n ButtonBuilder buttonBuilder = new ButtonBuilder(button);\n\n output.put(OUTPUT, buttonBuilder.build());\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }", "public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}", "@JSProperty\n @Nullable\n HTMLFormElement getForm();", "public Form getViewForm() throws PublicationTemplateException;", "public Form getPrintForm(HttpServletRequest request)\r\n throws ProcessManagerException {\r\n try {\r\n com.silverpeas.workflow.api.model.Form form = processModel\r\n .getForm(\"printForm\");\r\n if (form == null) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionController\",\r\n \"processManager.NO_PRINTFORM_DEFINED_IN_MODEL\");\r\n }\r\n \r\n else {\r\n HtmlForm htmlForm = new HtmlForm(processModel.getDataFolder()\r\n .toRecordTemplate(currentRole, getLanguage(), true));\r\n \r\n htmlForm.setFileName(form.getHTMLFileName());\r\n return htmlForm;\r\n }\r\n } catch (Exception e) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionController\",\r\n \"processManager.EX_GET_PRINT_FORM\", e);\r\n }\r\n }", "public String getForm() {\r\n\t\treturn form;\r\n\t}", "protected Object formBackingObject(HttpServletRequest request) {\n int idl = Integer.parseInt(request.getParameter(\"idl\"));\n Licencie licenceAvantModification = focskiService.liUnLicencie(idl);\n logger.debug(\"Status licence avant modification= \"\n + licenceAvantModification.getStatus());\n if (\"Valide\".equalsIgnoreCase(licenceAvantModification.getStatus())) {\n isValidStatusBefore = true;\n }\n return licenceAvantModification;\n }", "public void loadForm() {\n if (!selectedTipo.equals(\"accion\")) {\n this.renderPaginaForm = true;\n } else {\n this.renderPaginaForm = false;\n }\n if (selectedTipo.equals(null) || selectedTipo.equals(\"menu\")) {\n this.renderGrupoForm = false;\n } else {\n this.renderGrupoForm = true;\n }\n populateListaObjetos();\n }", "public Form getSearchForm() throws PublicationTemplateException;", "IFormView getFormView();", "private void initFormRelatedLists( HttpServletRequest request )\n {\n\n List<FormPanel> listFormPanel = new FormPanelFactory( ).buildFormPanelList( );\n\n FormColumnFactory formColumnFactory = SpringContextService.getBean( FormColumnFactory.BEAN_NAME );\n\n Integer nIdForm = null;\n try\n {\n nIdForm = Integer.parseInt( request.getParameter( FormsConstants.PARAMETER_ID_FORM ) );\n }\n catch( NumberFormatException e )\n {\n // Nothing to do\n }\n\n boolean changePanel = Boolean.parseBoolean( request.getParameter( PARAMETER_CHANGE_PANEL ) );\n if ( CollectionUtils.isEmpty( _listFormFilterDisplay ) || !changePanel )\n {\n _listFormColumn = formColumnFactory.buildFormColumnList( nIdForm, request.getLocale( ), (User) AdminUserService.getAdminUser( request ) );\n List<FormFilter> listFormFilter = FormDisplayFactory.buildFormFilterList( nIdForm, _listFormColumn, request.getLocale( ),\n (User) AdminUserService.getAdminUser( request ) );\n _listFormFilterDisplay = FormDisplayFactory.createFormFilterDisplayList( request, listFormFilter );\n _listFormColumnDisplay = FormDisplayFactory.createFormColumnDisplayList( _listFormColumn );\n }\n\n _listFormPanelDisplay = FormDisplayFactory.createFormPanelDisplayList( request, listFormPanel, _formPanelDisplayActive );\n for ( IFormPanelDisplay formPanelDisplay : _listFormPanelDisplay )\n {\n if ( formPanelDisplay.isActive( ) )\n {\n _formPanelDisplayActive = formPanelDisplay;\n }\n }\n _formItemSortConfig = new FormItemSortConfig( -1, null, true );\n }", "@Override\n\tprotected BaseProcesoForm devuelveFormProceso() throws Exception {\n\t\tProcesoBASLoggerForm objForm = new ProcesoBASLoggerForm();\n\t\treturn objForm;\n\t}", "public Form getForm() throws IOException {\n if(form == null) {\n form = builder.getInstance();\n }\n return form;\n }", "protected UIForm getForm(FacesContext context) {\n UIComponent parent = this.getParent();\n while (parent != null) {\n if (parent instanceof UIForm) {\n break;\n }\n parent = parent.getParent();\n }\n return (UIForm) parent;\n }", "public interface Form {\n\n\t/**\n\t * Gets the number of documents that use this Form and have been modified since a given Java date\n\t *\n\t * @param since\n\t * Date the method should compare against\n\t * @return int number of documents using this Form modified\n\t * @since org.openntf.domino 3.0.0\n\t */\n\tpublic int getModifiedNoteCount(final java.util.Date since);\n\n\t/**\n\t * Gets the XPage that this Form is set to launch on the web as ($XPageAlt field)\n\t *\n\t * @return String XPage to Form is designed to launch with on web\n\t * @since org.openntf.domino 4.5.0\n\t */\n\tpublic String getXPageAlt();\n\n\t/**\n\t * Gets the XPage that this Form is set to launch in the client as ($XPageAltClient field, if defined, else $XPageAlt)\n\t *\n\t * @return String XPage to Form is designed to launch with on client\n\t * @since org.openntf.domino 5.0.0\n\t */\n\tpublic String getXPageAltClient();\n\n\t/**\n\t * Generates a selection formula in format:\n\t *\n\t * <code>SELECT Form = \"myFormName\" | Form = \"myFormAlias\" | Form = \"myFormSecondAlias\" etc.</code>\n\t *\n\t * <p>\n\t * Continues for as many aliases as the Form has, not including aliases if none is defined.\n\t * </p>\n\t *\n\t * <p>\n\t * NOTE: Forms view in an NSF only displays the first alias of a design element, deisng element's properties box will shows all.\n\t * </p>\n\t *\n\t * @return String selection formula to access all Documents created with that Form\n\t * @since org.openntf.domino 3.0.0\n\t */\n\tpublic String getSelectionFormula();\n\n\t/**\n\t * Returns documents associated with this form\n\t *\n\t * @return Documents as a <code>NotesCollection</code>\n\t */\n\tpublic NoteCollection getNoteCollection();\n\n\t/**\n\t * Returns a Metaversal ID consisting of a replica ID of the parent database and a universal ID of this form.\n\t */\n\tpublic String getMetaversalID();\n\n}", "public void rebuildFormElements() {\n\t\telementsHolder.removeAll();\n\t\tfor (int i = 0; i < rowElements.size(); i++) {\n\t\t\trowElements.get(i).preDispose();\n\t\t}\n\t\trowElements.clear();\n\t\tif (dm != null && dm.getCurrentBatch() != null && \n\t\t\t\tdm.getCurrentBatch().getFields() != null) {\n\t\t\tint count = dm.getCurrentBatch().getFields().size();\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tString fieldName = dm.getCurrentBatch().getFields().get(i).getTitle();\n\t\t\t\tFormElement elem = new FormElement(fieldName, \"\", this, i);\n\t\t\t\telementsHolder.add(elem);\n\t\t\t\trowElements.add(elem);\n\t\t\t}\n\t\t}\n\t}", "protected String usesFormWithAttributes()\r\n {\r\n return \"\";\r\n }", "private void loadForm() {\n service.getReasons(refusalReasons);\n service.getVacEligibilty(vacElig);\n service.getVacSites(vacSites);\n service.getReactions(vacReactions);\n service.getOverrides(vacOverrides);\n updateComboValues();\n \n selPrv = \"\";\n selLoc = \"\";\n \n //datGiven.setDateConstraint(new SimpleDateConstraint(SimpleDateConstraint.NO_NEGATIVE, DateUtil.addDays(patient.getBirthDate(), -1, true), null, BgoConstants.TX_BAD_DATE_DOB));\n datGiven.setDateConstraint(getConstraintDOBDate());\n datEventDate.setConstraint(getConstraintDOBDate());\n radFacility.setLabel(service.getParam(\"Caption-Facility\", \"&Facility\"));\n if (immunItem != null) {\n \n txtVaccine.setValue(immunItem.getVaccineName());\n txtVaccine.setAttribute(\"ID\", immunItem.getVaccineID());\n txtVaccine.setAttribute(\"DATA\", immunItem.getVaccineID() + U + immunItem.getVaccineName());\n setEventType(immunItem.getEventType());\n \n radRefusal.setDisabled(!radRefusal.isChecked());\n radHistorical.setDisabled(!radHistorical.isChecked());\n radCurrent.setDisabled(!radCurrent.isChecked());\n \n visitIEN = immunItem.getVisitIEN();\n if (immunItem.getProvider() != null) {\n txtProvider.setText(FhirUtil.formatName(immunItem.getProvider().getName()));\n txtProvider.setAttribute(\"ID\", immunItem.getProvider().getId().getIdPart());\n selPrv = immunItem.getProvider().getId().getIdPart() + U + U + immunItem.getProvider().getName();\n }\n switch (immunItem.getEventType()) {\n case REFUSAL:\n ListUtil.selectComboboxItem(cboReason, immunItem.getReason());\n txtComment.setText(immunItem.getComment());\n datEventDate.setValue(immunItem.getDate());\n break;\n case HISTORICAL:\n datEventDate.setValue(immunItem.getDate());\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n txtAdminNote.setText(immunItem.getAdminNotes());\n ZKUtil.disableChildren(fraDate, true);\n ZKUtil.disableChildren(fraHistorical, true);\n default:\n service.getLot(lotNumbers, getVaccineID());\n loadComboValues(cboLot, lotNumbers, comboRenderer);\n loadVaccination();\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n ListUtil.selectComboboxItem(cboLot, immunItem.getLot());\n ListUtil.selectComboboxItem(cboSite, StrUtil.piece(immunItem.getInjSite(), \"~\", 2));\n spnVolume.setText(immunItem.getVolume());\n datGiven.setDate(immunItem.getDate());\n datVIS.setValue(immunItem.isImmunization() ? immunItem.getVISDate() : null);\n ListUtil.selectComboboxItem(cboReaction, immunItem.getReaction());\n ListUtil.selectComboboxData(cboOverride, immunItem.getVacOverride());\n txtAdminNote.setText(immunItem.getAdminNotes());\n cbCounsel.setChecked(immunItem.wasCounseled());\n }\n } else {\n IUser user = UserContext.getActiveUser();\n Practitioner provider = new Practitioner();\n provider.setId(user.getLogicalId());\n provider.setName(FhirUtil.parseName(user.getFullName()));\n txtProvider.setValue(FhirUtil.formatName(provider.getName()));\n txtProvider.setAttribute(\"ID\", VistAUtil.parseIEN(provider)); //provider.getId().getIdPart());\n selPrv = txtProvider.getAttribute(\"ID\") + U + U + txtProvider.getValue();\n Location location = new Location();\n location.setName(\"\");\n location.setId(\"\");\n datGiven.setDate(getBroker().getHostTime());\n onClick$btnVaccine(null);\n \n if (txtVaccine.getValue().isEmpty()) {\n close(true);\n return;\n }\n \n Encounter encounter = EncounterContext.getActiveEncounter();\n if (!EncounterUtil.isPrepared(encounter)) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n if (isCategory(encounter, \"E\")) {\n setEventType(EventType.HISTORICAL);\n Date date = encounter == null ? null : encounter.getPeriod().getStart();\n datEventDate.setValue(DateUtil.stripTime(date == null ? getBroker().getHostTime() : date));\n radCurrent.setDisabled(true);\n txtLocation.setText(user.getSecurityDomain().getName());\n PromptDialog.showInfo(user.getSecurityDomain().getLogicalId());\n txtLocation.setAttribute(\"ID\", user.getSecurityDomain().getLogicalId());\n \n } else {\n if (isVaccineInactive()) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n setEventType(EventType.CURRENT);\n radCurrent.setDisabled(false);\n }\n }\n }\n selectItem(cboReason, NONESEL);\n }\n btnSave.setLabel(immunItem == null ? \"Add\" : \"Save\");\n btnSave.setTooltiptext(immunItem == null ? \"Add record\" : \"Save record\");\n txtVaccine.setFocus(true);\n }", "FormSubmit load( int nIdFormResponse, Plugin plugin );", "static BasePage getPageInstance(String page_name,HttpServletRequest request,\n HttpServletResponse response,HttpServlet servlet){\n HttpSession session = request.getSession();\n BasePage page = (BasePage)session.getAttribute(page_name);\n if(page == null){\n page = (BasePage)createInstance(page_name);\n session.setAttribute(page_name,page);\n if(page == null)\n System.err.println(\"Could not create \" + page_name);\n } //if\n page.request = request;\n page.session = session;\n page.servlet = servlet;\n if(!page.$isLoaded())\n page.fillDom();\n return page;\n}", "protected Object formBackingObject( HttpServletRequest request ) throws Exception\n {\n log.info( \"formBackingObject start.\" );\n\n ApplicationProperties appProps = PropertyManager.getApplicationProperties();\n\n LoginForm form = new LoginForm();\n\n if (null == localModel)\n {\n // Session timeout??\n throw new FinanceException( \"Model is null.\" );\n }\n\n// UserTO user = localModel.getUser();\n//\n// if (null == user)\n// {\n// throw new FinanceException( \"User is null.\" );\n// }\n\n\n String userId = localModel.getToLoginAs();\n if (null == userId || \"\".equalsIgnoreCase( userId ))\n {\n //Try and get userid form request params\n userId = request.getParameter( \"id\" );\n }\n\n\n form.setUsername( userId );\n\n form.setLoginURL( appProps.getNewUserPostLoginUrl() );\n\n // get the O2LoginPageUrl. It will be of the format -\n // https://bluedawn.ref.o2.co.uk/login?sendTo=http://dave.o2.co.uk:8080/finance/accountChangeLoginCheck.do\n // We need the sendTo URL in the above value. This will be our return value\n // or\n // if you are using in-memory facade the O2LoginPageUrl value is\n // http://localhost:8080/finance/mocklogin.do?skipreset=true\n // In this case, do nothing \n String rURL = appProps.getO2LoginPageUrl();\n if ( rURL.indexOf( \"mocklogin.do\" ) == -1 )\n {\n \trURL = rURL.substring( ( rURL ).indexOf( \"sendTo\" ) + 7 );\n } \n \n form.setReturnURL( rURL );\n form.setFailureURL( rURL );\n\n\n log.info( \"formBackingObject ends.\" );\n\n return form;\n }", "public XmlNsForm getElementFormDefault();", "public sub_Form(HashMap<String, ReturnedValue> entry, int index){\n this.form_ID = entry.get(\"formID\").to_string();\n this.repID = entry.get(\"repID\").to_string();\n this.plantRegistry = entry.get(\"plantRegistry\").to_string();\n this.domesticOrImported = entry.get(\"domesticOrImported\").to_string();\n this.serialNumber = entry.get(\"serialNumber\").to_string();\n this.beverageType = entry.get(\"beverageType\").to_string();\n this.brandName = entry.get(\"brandName\").to_string();\n this.fancifulName = entry.get(\"fancifulName\").to_string();\n this.vintage = entry.get(\"vintage\").to_string();\n this.grapeVarietals = entry.get(\"grapeVarietals\").to_string();\n this.pHValue = entry.get(\"pHValue\").to_string();\n this.wineAppellation = entry.get(\"wineAppellation\").to_string();\n this.alcoholContent = entry.get(\"alcoholContent\").to_string();\n this.phoneNumber = entry.get(\"phoneNumber\").to_string();\n this.email = entry.get(\"email\").to_string();\n this.index = index;\n }", "public interface FormInferface {\n\n /**\n * Writes into a form's hidden fields data that remained on it.\n */\n void storeFormState();\n\n /**\n * Fills form's data from hidden fields.\n */\n void restoreFormState();\n}", "public XhtmlForm getForm(Element el) {\n\t\tReplacedElementFactory ref = getSharedContext().getReplacedElementFactory();\n\t\tif (ref != null && ref instanceof XHTMLReplacedElementFactoryImpl) {\n\t\t\treturn ((XHTMLReplacedElementFactoryImpl) ref).getForm(el);\n\t\t}\n\t\treturn null;\n\t}", "void storeFormState();", "java.lang.String getFormName();", "public boolean isForm();", "private WebResponse() {\n initFields();\n }", "abstract public void dispatch(final String serializedForm);", "public interface RecuperarSesionForm\r\n{\r\n /**\r\n * This field is a collection type, and this method allows you to set it into the form.\r\n *\r\n * \r\n *\r\n * @see #setTimeLimit#sArray(Object[])\r\n */\r\n public void setTimeLimit(java.util.Collection timeLimit);\r\n\r\n /**\r\n * This field is a collection type, and this method allows you to get it from the form.\r\n *\r\n * \r\n *\r\n * @see #getTimeLimit#sArray()\r\n */\r\n public java.util.Collection getTimeLimit();\r\n\r\n /**\r\n * This field is a collection type, and this method allows you to set it as an\r\n * array into the form, conversion will be automatically performed.\r\n *\r\n * \r\n *\r\n * @see #setTimeLimit(java.util.Collection)\r\n */\r\n public void setTimeLimitAsArray(Object[] timeLimit);\r\n\r\n /**\r\n * This field is a collection type, and this method allows you to get it as an\r\n * array from the form, conversion will be automatically performed.\r\n *\r\n * \r\n *\r\n * @see #getTimeLimit()\r\n */\r\n public java.lang.Object[] getTimeLimitAsArray();\r\n\r\n /**\r\n * Resets the <code>timeLimit</code> field.\r\n */\r\n public void resetTimeLimit();\r\n\r\n /**\r\n * Sets the <code>title</code> field.\r\n *\r\n * \r\n */\r\n public void setTitle(java.lang.String title);\r\n\r\n /**\r\n * Gets the <code>title</code> field.\r\n *\r\n * \r\n */\r\n public java.lang.String getTitle();\r\n \r\n /**\r\n * Resets the <code>title</code> field.\r\n */\r\n public void resetTitle();\r\n\r\n /**\r\n * Sets the <code>completionThreshold</code> field.\r\n *\r\n * \r\n */\r\n public void setCompletionThreshold(java.lang.String completionThreshold);\r\n\r\n /**\r\n * Gets the <code>completionThreshold</code> field.\r\n *\r\n * \r\n */\r\n public java.lang.String getCompletionThreshold();\r\n \r\n /**\r\n * Resets the <code>completionThreshold</code> field.\r\n */\r\n public void resetCompletionThreshold();\r\n\r\n /**\r\n * Sets the <code>isVisible</code> field.\r\n *\r\n * \r\n */\r\n public void setIsVisible(java.lang.Boolean isVisible);\r\n\r\n /**\r\n * Gets the <code>isVisible</code> field.\r\n *\r\n * \r\n */\r\n public java.lang.Boolean getIsVisible();\r\n \r\n /**\r\n * Resets the <code>isVisible</code> field.\r\n */\r\n public void resetIsVisible();\r\n\r\n /**\r\n * This field is a collection type, and this method allows you to set it into the form.\r\n *\r\n * \r\n *\r\n * @see #setPresentation#sArray(Object[])\r\n */\r\n public void setPresentation(java.util.Collection presentation);\r\n\r\n /**\r\n * This field is a collection type, and this method allows you to get it from the form.\r\n *\r\n * \r\n *\r\n * @see #getPresentation#sArray()\r\n */\r\n public java.util.Collection getPresentation();\r\n\r\n /**\r\n * This field is a collection type, and this method allows you to set it as an\r\n * array into the form, conversion will be automatically performed.\r\n *\r\n * \r\n *\r\n * @see #setPresentation(java.util.Collection)\r\n */\r\n public void setPresentationAsArray(Object[] presentation);\r\n\r\n /**\r\n * This field is a collection type, and this method allows you to get it as an\r\n * array from the form, conversion will be automatically performed.\r\n *\r\n * \r\n *\r\n * @see #getPresentation()\r\n */\r\n public java.lang.Object[] getPresentationAsArray();\r\n\r\n /**\r\n * Resets the <code>presentation</code> field.\r\n */\r\n public void resetPresentation();\r\n\r\n /**\r\n * Sets the <code>selectPresentation</code> field.\r\n *\r\n * \r\n */\r\n public void setSelectPresentation(java.lang.String[] selectPresentation);\r\n\r\n /**\r\n * Gets the <code>selectPresentation</code> field.\r\n *\r\n * \r\n */\r\n public java.lang.String[] getSelectPresentation();\r\n \r\n /**\r\n * Resets the <code>selectPresentation</code> field.\r\n */\r\n public void resetSelectPresentation();\r\n\r\n /**\r\n * The <code>selectPresentation</code> field can be selected from a list,\r\n * this method allows you to retrieve the current elements from that list.\r\n * <p/>\r\n * <i>Please note that the elements from that list are key value pairs, so you will\r\n * need to call <code>getLabel()</code> and <code>getValue()</code> to get the label and\r\n * value for this entry respectively.</i>\r\n *\r\n * @see #getSelectPresentation()\r\n * @see #getSelectPresentationValueList()\r\n * @see #getSelectPresentationLabelList()\r\n * @see #setSelectPresentationLabelList(java.util.Collection,java.lang.String,java.lang.String)\r\n */\r\n public java.lang.Object[] getSelectPresentationBackingList();\r\n\r\n /**\r\n * Convenient method to quickly set the value and label backinglist for the\r\n * selectPresentation property. This method takes a collection of objects, as well as\r\n * the property names to query on these objects in order to find the corresponding\r\n * values and labels.\r\n * <p/>\r\n * Let's say you have a set of value objects with the following properties:\r\n * <ul>\r\n * <li><code>id</code></li>\r\n * <li><code>code</code></li>\r\n * <li><code>name</code></li>\r\n * <li><code>description</code></li>\r\n * </ul>\r\n * But you need to populate the selectPresentation backing list with the <code>id</code> properties as the values and the\r\n * <code>name</code> properties as the labels then you would make a call like this:\r\n * <code>setSelectPresentationBackingList(valueObjects, \"id\", \"name\")</code>\r\n * <p/>\r\n * This method knows how to handle primitive property types as it simply delegates to\r\n * <code>org.apache.commons.beanutils.PropertyUtils.getProperty(Object, String)</code>.\r\n *\r\n * @param items The items from which to read the properties, if this argument is <code>null</code> this method\r\n * will simply clear the existing values and labels\r\n * @param valueProperty the name of the property to query on each object to retrieve\r\n * the corresponding value, cannot be <code>null</code>\r\n * @throws java.lang.IllegalArgumentException if the valueProperty or labelProperty is <code>null</code>\r\n * @throws java.lang.RuntimeException if one of the items in the collection is <code>null</code>, or\r\n * if the caller does not have access one of the object's properties, if an exception was thrown while\r\n * accessing a property or if the property does not exist on at least one of the items\r\n *\r\n * @see #getSelectPresentation()\r\n * @see #getSelectPresentationValueList()\r\n * @see #getSelectPresentationLabelList()\r\n * @see #getSelectPresentationLabelList()\r\n */\r\n public void setSelectPresentationBackingList(java.util.Collection items, String valueProperty, String labelProperty);\r\n\r\n /**\r\n * The <code>selectPresentation</code> field can be selected from a list,\r\n * this method allows you to retrieve the values from that list.\r\n *\r\n * @see #getSelectPresentation()\r\n * @see #getSelectPresentationBackingList()\r\n */\r\n public java.lang.Object[] getSelectPresentationValueList();\r\n\r\n /**\r\n * The <code>selectPresentation</code> field can be selected from a list,\r\n * this method allows you to set the values for that list.\r\n *\r\n * @see #getSelectPresentation()\r\n * @see #getSelectPresentationBackingList()\r\n */\r\n public void setSelectPresentationValueList(java.lang.Object[] selectPresentationValueList);\r\n\r\n /**\r\n * The <code>selectPresentation</code> field can be selected from a list,\r\n * this method allows you to retrieve the labels from that list.\r\n *\r\n * @see #getSelectPresentation()\r\n * @see #getSelectPresentationBackingList()\r\n */\r\n public java.lang.Object[] getSelectPresentationLabelList();\r\n\r\n /**\r\n * The <code>selectPresentation</code> field can be selected from a list,\r\n * this method allows you to set the labels for that list.\r\n *\r\n * @see #getSelectPresentation()\r\n * @see #getSelectPresentationBackingList()\r\n */\r\n public void setSelectPresentationLabelList(java.lang.Object[] selectPresentationLabelList);\r\n\r\n /**\r\n * Sets the <code>referenciado</code> field.\r\n *\r\n * \r\n */\r\n public void setReferenciado(java.lang.String referenciado);\r\n\r\n /**\r\n * Gets the <code>referenciado</code> field.\r\n *\r\n * \r\n */\r\n public java.lang.String getReferenciado();\r\n \r\n /**\r\n * Resets the <code>referenciado</code> field.\r\n */\r\n public void resetReferenciado();\r\n\r\n /**\r\n * Sets the <code>timeLimitAction</code> field.\r\n *\r\n * \r\n */\r\n public void setTimeLimitAction(java.lang.String timeLimitAction);\r\n\r\n /**\r\n * Gets the <code>timeLimitAction</code> field.\r\n *\r\n * \r\n */\r\n public java.lang.String getTimeLimitAction();\r\n \r\n /**\r\n * Resets the <code>timeLimitAction</code> field.\r\n */\r\n public void resetTimeLimitAction();\r\n\r\n /**\r\n * Sets the <code>dataFromLMS</code> field.\r\n *\r\n * \r\n */\r\n public void setDataFromLMS(java.lang.String dataFromLMS);\r\n\r\n /**\r\n * Gets the <code>dataFromLMS</code> field.\r\n *\r\n * \r\n */\r\n public java.lang.String getDataFromLMS();\r\n \r\n /**\r\n * Resets the <code>dataFromLMS</code> field.\r\n */\r\n public void resetDataFromLMS();\r\n\r\n}", "private void loadForm() {\n CodingProxy icd9 = problem.getIcd9Code();\n \n if (icd9 != null) {\n txtICD.setText(icd9.getProxiedObject().getCode());\n }\n \n String narr = problem.getProviderNarrative();\n \n if (narr == null) {\n narr = icd9 == null ? \"\" : icd9.getProxiedObject().getDisplay();\n }\n \n String probId = problem.getNumberCode();\n \n if (probId == null || probId.isEmpty()) {\n probId = getBroker().callRPC(\"BGOPROB NEXTID\", PatientContext.getActivePatient().getIdElement().getIdPart());\n }\n \n String pcs[] = probId.split(\"\\\\-\", 2);\n lblPrefix.setValue(pcs[0] + \" - \");\n txtID.setValue(pcs.length < 2 ? \"\" : pcs[1]);\n txtNarrative.setText(narr);\n datOnset.setValue(problem.getOnsetDate());\n \n if (\"P\".equals(problem.getProblemClass())) {\n radPersonal.setSelected(true);\n } else if (\"F\".equals(problem.getProblemClass())) {\n radFamily.setSelected(true);\n } else if (\"I\".equals(problem.getStatus())) {\n radInactive.setSelected(true);\n } else {\n radActive.setSelected(true);\n }\n \n int priority = NumberUtils.toInt(problem.getPriority());\n cboPriority.setSelectedIndex(priority < 0 || priority > 5 ? 0 : priority);\n loadNotes();\n }", "protected ActionForm processActionForm(HttpServletRequest request,\n HttpServletResponse response,\n ActionMapping mapping)\n {\n String scope = mapping.getScope();\n if(scope != null)\n {\n try\n {\n if(scope.equals(\"session\"))\n {\n OperationContext opCon = OperationContext.getOperationContext(request);\n if(opCon != null)\n {\n if(_log.isInfoEnabled())\n {\n _log.info(\"Looking for ActionForm in OperationContext[id=\" + opCon.getOperationContextId() + \"]\"); //20030124AH\n }\n ActionForm form = opCon.getActionForm();\n if(form != null)\n {\n if(_log.isInfoEnabled())\n {\n _log.info(\"Found ActionForm in OperationContext\"); //20030124AH\n }\n return form;\n }\n else\n {\n if(_log.isWarnEnabled())\n {\n _log.warn(\"No ActionForm found in OperationContext\"); //20030124AH\n }\n return null; //20030124AH\n }\n }\n }\n }\n catch(OperationException e)\n {\n // OperationExceptions here are normal when we forward from a completed operation\n // to the next action, so we ignore them.\n }\n catch(Throwable t)\n {\n if(_log.isErrorEnabled())\n {\n _log.error(\"Error caught in processActionForm() performing customised ActionForm handling\", t); //20030124AH\n }\n }\n }\n\n if(mapping instanceof GTActionMapping)\n { //20030124AH - Check the mapping to see if we should defer form creation or do it as normal\n if( ((GTActionMapping)mapping).isDeferFormCreation() )\n {\n if(_log.isInfoEnabled())\n {\n _log.info(\"Deferring ActionForm creation\");\n }\n return null;\n }\n }\n //...\n if(_log.isInfoEnabled())\n {\n _log.info(\"Delegating to superclass to obtain ActionForm\"); //20030124AH\n }\n ActionForm form = super.processActionForm(request, response, mapping);\n return form;\n }", "public void setForm(Form form)\n {\n this.form = form;\n }", "void fillFormBean(IBookFormBean formBean);", "@Override\n @HystrixCommand\n @GetMapping(\"/listAll\")\n @PreAuthorize(\"isAuthenticated()\")\n @ApiOperation(value = \"Gets a list with all the webforms\", hidden = true)\n public List<WebformMetabaseVO> getListWebforms() {\n return webformService.getListWebforms();\n }", "String getForm(String path, Descriptor desc) {\n return new ScriptBuilder()\n .l(\"getForm(paste(ifelse(is.null(server),%s.server(),server), '%s', sep=''), %s)\", \n moduleAnnot.name(), path, getGetFormParamList(desc))\n .toString();\n }", "protected IModel<T> getFormModel() {\n return formModel;\n }", "public void processFormRequest(OAPageContext pageContext, \n OAWebBean webBean) {\n super.processFormRequest(pageContext, webBean);\n CuxDocinfoManageAMImpl pgAM = \n (CuxDocinfoManageAMImpl)pageContext.getRootApplicationModule();\n if (pageContext.getParameter(\"SaveBTN\") != null) {\n pgAM.commit();\n pageContext.putDialogMessage(new OAException(\"保存成功\", \n OAException.INFORMATION));\n HashMap params = new HashMap(1);\n params.put(\"RequeryFlag\", \"Y\");\n pageContext.forwardImmediately(\"OA.jsp?page=/cux/oracle/apps/cux/docinfo/webui/CuxDocinfoManageResultPG\", \n null, \n OAWebBeanConstants.KEEP_MENU_CONTEXT, \n null, params, true, \n OAWebBeanConstants.ADD_BREAD_CRUMB_YES);\n } else if (pageContext.getParameter(\"CancelBTN\") != null) {\n pgAM.rollback();\n pageContext.forwardImmediately(\"OA.jsp?page=/cux/oracle/apps/cux/docinfo/webui/CuxDocinfoManageResultPG\", \n null, \n OAWebBeanConstants.KEEP_MENU_CONTEXT, \n null, null, true, \n OAWebBeanConstants.ADD_BREAD_CRUMB_YES);\n }\n }", "public abstract FullResponse onServeFormParams(Map<String, List<String>> formParams);", "public Object formBackingObject(HttpServletRequest request) throws Exception {\n\n final Long areaId = AreaMultiController.getAreaId(request);\n Area area = securityManager.findArea(areaId);\n // remove population elements\n final Set<AreaElement> areaElementSet = area.getAreaElements();\n areaElementSet.size();\n final Set<AreaElement> areaElements = new HashSet(areaElementSet);\n\n for (Iterator<AreaElement> iterator = areaElements.iterator(); iterator.hasNext();) {\n AreaElement areaElement = iterator.next();\n if(areaElement.isFromPopulation()) iterator.remove();\n }\n \n return new AreaWrapperBean(area, areaElements);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void autoBindComponents() throws Exception {\r\n\t\tJspController cont = (JspController) getPage();\r\n\r\n\t\t//get the datastore for this component\r\n\t\tif (getDataSource() != null)\r\n\t\t\t_ds = cont.getDataSource(getDataSource());\r\n\t\telse {\r\n\t\t\t//find the first component in the container bound to a datastore and use that instead\r\n\t\t\tEnumeration enumerar = getComponents();\r\n\t\t\twhile (enumerar.hasMoreElements()) {\r\n\t\t\t\tObject o = enumerar.nextElement();\r\n\t\t\t\tif (o instanceof HtmlFormComponent) {\r\n\t\t\t\t\tDataStoreBuffer ds = ((HtmlFormComponent) o).getBoundDataStore();\r\n\t\t\t\t\tif (ds != null) {\r\n\t\t\t\t\t\t_ds = ds;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//get the validator\r\n\t\tif (_validatorName != null)\r\n\t\t\t_validator = (HtmlValidatorText) cont.getComponent(_validatorName);\r\n\t\telse {\r\n\t\t\t//see if there is a validator for this datastore\r\n\t\t\tEnumeration enumerar = cont.getComponents();\r\n\t\t\twhile (enumerar.hasMoreElements()) {\r\n\t\t\t\tObject o = enumerar.nextElement();\r\n\t\t\t\tif (o instanceof HtmlValidatorText) {\r\n\t\t\t\t\tHtmlValidatorText test = (HtmlValidatorText) o;\r\n\t\t\t\t\tif (test.getDataStore() == _ds) {\r\n\t\t\t\t\t\t_validator = test;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if the validator is null, build one from the validation rules in the model\r\n\t\tif (_validator == null && _ds != null) {\r\n\t\t\tboolean hasRules = false;\r\n\t\t\tfor (int i = 0; i < _ds.getColumnCount(); i++) {\r\n\t\t\t\tif (_ds.getValidationRulesForColumn(i) != null) {\r\n\t\t\t\t\thasRules = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (hasRules) {\r\n\t\t\t\t_validator = new HtmlValidatorText(getName() + \"validator\", cont);\r\n\t\t\t\t_validator.setBreaksBefore(0);\r\n\t\t\t\t_validator.setBreaksAfter(2);\r\n\t\t\t\t_validator.setDataStore(_ds);\r\n\t\t\t\t_validator.importRules(_ds);\r\n\t\t\t\t_validator.setUseJavaScript(false);\r\n\t\t\t\t_validator.setMultipleErrorsOK(true);\r\n\t\t\t\t_validator.setAddFocusLinksToErrors(true);\r\n\t\t\t\t_validatorBuiltInternally = true;\r\n\t\t\t\tadd(_validator, TYPE_COMP);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_validator == null) {\r\n\t\t\t_validator = new HtmlValidatorText(getName() + \"validator\", cont);\r\n\t\t\t_validator.setBreaksBefore(0);\r\n\t\t\t_validator.setBreaksAfter(2);\r\n\t\t\t_validatorBuiltInternally = true;\r\n\t\t\tadd(_validator, TYPE_COMP);\r\n\t\t} else if (_saveButton != null)\r\n\t\t\t_validator.addSubmitToListenTo(_saveButton);\r\n\r\n\t\t//figure out what the list form is for this component\r\n\t\tif (_listFormName != null)\r\n\t\t\t_listForm = (JspListFormDisplayBox) cont.getComponent(_listFormName);\r\n\t\telse {\r\n\t\t\tEnumeration enumerar = cont.getComponents();\r\n\t\t\twhile (enumerar.hasMoreElements()) {\r\n\t\t\t\tObject o = enumerar.nextElement();\r\n\t\t\t\tif (o instanceof JspListFormDisplayBox) {\r\n\t\t\t\t\t_listForm = (JspListFormDisplayBox) o;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_listForm != null)\r\n\t\t\t_mode = MODE_LIST_ON_PAGE;\r\n\t\telse\r\n\t\t\t_mode = MODE_LIST_OFF_PAGE;\r\n\r\n\t\tgetPage().addPageListener(new LocalPageListener());\r\n\r\n\t}", "public static String getScopedForm(AjaxGroup aGroup, AjaxElement aElement,\n AjaxEvent aEvent) {\n\n String form = aGroup.getForm();\n if (aElement.getForm() != null) {\n form = aElement.getForm();\n }\n if (aEvent.getForm() != null) {\n form = aEvent.getForm();\n }\n return form;\n\n }", "public interface IFormService {\n Form findFormById(String id);\n\n PageInfo<Form> findFormByPage(int pageNum,int pageSize,Map<String,String> paraMap);\n\n Integer deleteForm(List<String> list);\n\n Integer saveOrUpdate(Form form);\n\n List<Form> findFormList(String formName);\n}", "public Form getUpdateForm() throws PublicationTemplateException;", "@Override\r\n\tprotected Result validate(Keywords form, HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "@Test\r\n public void testLoadListForm() throws Exception {\n trialHistory.loadListForm();\r\n\r\n }", "@Override\r\n\tpublic Visit getModel() {\n\t\treturn form;\r\n\t}", "public static void markAsFormPage(HttpServletRequest request){\n\t\trequest.setAttribute(FORM_PAGE_ATTR, Boolean.TRUE);\n\t}", "@Override\n\tpublic FormContainer getFormContainer() {\n\t\treturn null;\n\t}", "@AForm( description = \"Security Check Tabs\", name = \"\" )\n \tprivate interface TabsForm\n \t{\n \t\t@APage( name = \"Assertions\" )\n \t\tpublic final static Assertions ASSERTIONS = null;\n \n \t\t@APage( name = \"Strategy\" )\n \t\tpublic final static Strategy STRATEGY = null;\n \n \t\t@APage( name = \"Advanced\" )\n \t\tpublic final static AdvancedSettings ADVANCED = null;\n \n \t\t@APage( name = \"SetUp\" )\n \t\tpublic final static SetupScript SETUP = null;\n \n \t\t@APage( name = \"TearDown\" )\n \t\tpublic final static TearDownScript TEARDOWN = null;\n \t}", "@Override\n protected void doGet( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n log( \"GET\" );\n createInputBloodDonationForm( req, resp );\n }", "@RequestMapping(method=RequestMethod.GET)\n\tpublic String intializeForm(Model model) {\t\t\n\t\tlog.info(\"GET method is called to initialize the registration form\");\n\t\tEmployeeManagerRemote employeeManager = null;\n\t\tEmployeeRegistrationForm employeeRegistrationForm = new EmployeeRegistrationForm();\n\t\tList<Supervisor> supervisors = null;\n\t\ttry{\n\t\t\temployeeManager = (EmployeeManagerRemote) ApplicationUtil.getEjbReference(emplManagerRef);\n\t\t\tsupervisors = employeeManager.getAllSupervisors();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmodel.addAttribute(\"supervisors\", supervisors);\n\t\tmodel.addAttribute(\"employeeRegistrationForm\", employeeRegistrationForm);\n\t\t\n\t\treturn FORMVIEW;\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "public MechanicForm() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "protected void securePage(HttpServletRequest request, ActionForm form, boolean loadFields, boolean loadPolicyHeaderFields) throws Exception {\r\n Logger l = LogUtils.enterLog(getClass(), \"securePage\", new Object[]{request, form});\r\n LogUtils.setPage(\"ActionClass:\"+getClass().getName());\r\n // Create a Policy Data Security PageDefLoadProcessor if the Policy Header is loaded\r\n PageDefLoadProcessor pgDefLoadProcessor = null;\r\n PolicyHeader policyHeader = null;\r\n if (isPolicyHeaderLoaded(request)) {\r\n policyHeader = getPolicyHeader(request);\r\n pgDefLoadProcessor = PolicyDataSecurityPageDefLoadProcessor.getInstance(\r\n policyHeader.getPolicyIdentifier().getPolicyId());\r\n }\r\n else {\r\n // Otherwise, use the default PageDefLoadProcessor\r\n pgDefLoadProcessor = c_defaultPageDefLoadProcessor;\r\n }\r\n\r\n // Setup the class name variable to account for specialized policy header logic\r\n String className;\r\n if (loadPolicyHeaderFields) {\r\n className = KEY_PH_ACTION_CLASS;\r\n }\r\n else {\r\n className = getClass().getName();\r\n }\r\n\r\n if(loadFields) {\r\n //TODO: Remove redundant calls to loadListOfValues() and fieldsMap in jsp where no OasisFields are loaded (no UI)\r\n // This is a workaround\r\n request.removeAttribute(IOasisAction.KEY_FIELDS);\r\n\r\n //Either class caches OasisFields (property set to true) or it is a PolicyHeader\r\n if(policyHeader != null && (isCacheOasisFields() || className.equalsIgnoreCase(KEY_PH_ACTION_CLASS))){\r\n l.logp(Level.FINE, getClass().getName(), \"securePage\",\" Right Action\");\r\n UserCacheManager ucm = UserCacheManager.getInstance();\r\n\r\n // Handle multi-threaded access to UserCacheManager\r\n PolicyOasisFieldsCache policyOasisFieldsCache = null;\r\n synchronized (ucm) {\r\n if (ucm.has(UserCacheManager.POLICY_OASIS_FIELDS_CACHE) &&\r\n ((PolicyOasisFieldsCache)ucm.get(UserCacheManager.POLICY_OASIS_FIELDS_CACHE)).getPolicyId().equalsIgnoreCase(policyHeader.getPolicyId())) {\r\n if (l.isLoggable(Level.FINE))\r\n l.logp(Level.FINE, getClass().getName(), \"securePage\", \" GOT \"+UserCacheManager.POLICY_OASIS_FIELDS_CACHE+\" CACHED POLICY ID: \"+policyHeader.getPolicyId());\r\n\r\n policyOasisFieldsCache = (PolicyOasisFieldsCache)ucm.get(UserCacheManager.POLICY_OASIS_FIELDS_CACHE);\r\n\r\n if(policyOasisFieldsCache.has(className)){\r\n if (l.isLoggable(Level.FINE))\r\n l.logp(Level.FINE, getClass().getName(), \"securePage\", \" HAS OASIS FIELDS FOR \"+className+\" IN CACHE. SKIPPING LOAD\");\r\n request.setAttribute(IOasisAction.KEY_FIELDS_CACHED, policyOasisFieldsCache.get(className));\r\n }\r\n }\r\n if (policyOasisFieldsCache == null) {\r\n if (l.isLoggable(Level.FINE))\r\n l.logp(Level.FINE, getClass().getName(), \"securePage\",\" DID NOT HAVE \"+UserCacheManager.POLICY_OASIS_FIELDS_CACHE+\" OR CACHE POLICY ID: \"+policyHeader.getPolicyId());\r\n policyOasisFieldsCache = new PolicyOasisFieldsCache(policyHeader.getPolicyId());\r\n ucm.set(UserCacheManager.POLICY_OASIS_FIELDS_CACHE, policyOasisFieldsCache);\r\n }\r\n }\r\n securePage(request, form, className, loadFields, pgDefLoadProcessor);\r\n OasisFields fields = (OasisFields) request.getAttribute(IOasisAction.KEY_FIELDS);\r\n if (fields != null) {\r\n policyOasisFieldsCache.put(className, fields);\r\n\r\n //Deep cloning\r\n OasisFields clonedFields = (OasisFields) fields.clone();\r\n request.setAttribute(IOasisAction.KEY_FIELDS, clonedFields);\r\n }\r\n } else {\r\n l.logp(Level.FINE, getClass().getName(), \"securePage\",\" Wrong Action\");\r\n securePage(request, form, className, loadFields, pgDefLoadProcessor);\r\n }\r\n } else {\r\n l.logp(Level.FINE, getClass().getName(), \"securePage\",\"OasisFields are not loaded\");\r\n securePage(request, form, className, loadFields, pgDefLoadProcessor);\r\n }\r\n\r\n if (loadFields) {\r\n OasisFields fields = (OasisFields) request.getAttribute(IOasisAction.KEY_FIELDS);\r\n if (fields != null) {\r\n // Map the PolicyHeader into request beans\r\n if (policyHeader != null && loadPolicyHeaderFields) {\r\n Record policyRecord = policyHeader.toRecord();\r\n ActionHelper.recordToBeans(request, policyRecord, fields, true);\r\n\r\n OasisFormField field = (OasisFormField) fields.get(\"availablePolicyTerms\");\r\n field.setLovSql(policyHeader.getAvailablePolicyTerms());\r\n field.setIsReadOnly(false);\r\n field = (OasisFormField) fields.get(\"policyViewMode\");\r\n field.setIsReadOnly(false);\r\n }\r\n\r\n }\r\n }\r\n\r\n l.exiting(getClass().getName(), \"securePage\");\r\n }", "public static Result getFilledForm() {\r\n\t\tStatus result;\r\n\t\ttry {\r\n\t\t\tString formName = ChangeOrderForm.NAME;\r\n\t\t\tString username = CMSSession.getEmployeeName();\r\n\t\t\tFile pdf = File.createTempFile(\"Change_Order_Form_Filled\", \".pdf\");\r\n\t\t\tCMSGuidedFormFill.fillForm(formName, username, pdf);\r\n\r\n\t\t\tresult = ok(pdf, true);\r\n\r\n\t\t\tFileDeletionHandler.deleteFile(pdf);\r\n\t\t} catch (IOException e) {\r\n\t\t\tLogger.error(\"Couldn't create new temp file.\");\r\n\t\t\tLogger.error(e.getMessage(), e);\r\n\t\t\tresult = internalServerError();\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public ResourcesMetadata getForm()\n\t\t{\n\t\t\treturn m_form;\n\t\t}", "protected ActionForm getActionForm(ActionMapping mapping,\r\n\t\t\tHttpServletRequest request) {\r\n\t\tActionForm actionForm = null;\r\n\r\n\t\t// Remove the obsolete form bean\r\n\t\tif (mapping.getAttribute() != null) {\r\n\t\t\tif (\"request\".equals(mapping.getScope())) {\r\n\t\t\t\tactionForm = (ActionForm) request.getAttribute(mapping\r\n\t\t\t\t\t\t.getAttribute());\r\n\t\t\t} else {\r\n\t\t\t\tHttpSession session = request.getSession();\r\n\r\n\t\t\t\tactionForm = (ActionForm) session.getAttribute(mapping\r\n\t\t\t\t\t\t.getAttribute());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn actionForm;\r\n\t}", "private void initForm() {\n DefaultListModel listModel = new DefaultListModel();\n filterList.setModel(listModel);\n Vector filters = null;\n if (transmutor instanceof Refiner) {\n filters = ((Refiner) transmutor).getPrefilters();\n } else {\n filters = ((Extractor) transmutor).getPrefilters();\n }\n Enumeration filterE = filters.elements();\n \n while (filterE.hasMoreElements()) {\n listModel.addElement(filterE.nextElement());\n }\n }", "@Test(timeout = 4000)\n public void test216() throws Throwable {\n Form form0 = new Form((String) null);\n form0._clear();\n assertEquals(\"wheel_components_Form\", form0.getComponentId());\n }", "private void createInputBloodDonationForm( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n String path = req.getServletPath();\n req.setAttribute( \"path\", path );\n req.setAttribute( \"title\", path.substring( 1 ) );\n \n BloodDonationLogic logic = LogicFactory.getFor(\"BloodDonation\");\n req.setAttribute( \"bloodDonationColumnNames\", logic.getColumnNames().subList(1, logic.getColumnNames().size()));\n req.setAttribute( \"bloodDonationColumnCodes\", logic.getColumnCodes().subList(1, logic.getColumnCodes().size()));\n req.setAttribute(\"bloodGroupList\", Arrays.asList(BloodGroup.values()));\n req.setAttribute(\"rhdList\", Arrays.asList(RhesusFactor.values()));\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n List<String> bloodBankIDs = new ArrayList<>();\n bloodBankIDs.add(\"\");\n for (BloodBank bb : bloodBankLogic.getAll()) {\n bloodBankIDs.add(bb.getId().toString());\n }\n req.setAttribute( \"bloodBankIDs\", bloodBankIDs);\n req.setAttribute( \"request\", toStringMap( req.getParameterMap() ) );\n \n if (errorMessage != null && !errorMessage.isEmpty()) {\n req.setAttribute(\"errorMessage\", errorMessage);\n }\n //clear the error message if when reload the page\n errorMessage = \"\";\n \n req.getRequestDispatcher( \"/jsp/CreateRecord-BloodDonation.jsp\" ).forward( req, resp );\n }", "@Override\n protected void initForm(HttpServletRequest request, ActionForm form,\n \t\tRepairPlan domain, boolean canEdit) {\n \trequest.setAttribute(\"maintenaceLevelSelect\",DataDictHelper.findDataDicts(\"BYJB\"));\n \trequest.setAttribute(\"intervalSelect\", this.repairRecordService.getIntervalSelect());\n \trequest.setAttribute(\"projectName\",this.repairRecordService.getProjectName());\n \tLong id = RequestUtils.getLongParameter(\"id\", -1);\n \tMap<String,RepairPlanRule> map = new HashMap<String, RepairPlanRule>();\n \tif(id != -1){\n \t\tRepairPlan bean = this.getService().load(id);\n \t\tif(bean != null){\n \t\t\tList<RepairPlanRule> repairPlanRules = bean.getRepairPlanRules();\n \t\t\tif(repairPlanRules != null && !repairPlanRules.isEmpty()){\n \t\t\t\tfor(RepairPlanRule rpr : repairPlanRules){\n \t\t\t\t\tif(rpr != null)\n \t\t\t\t\t\tmap.put(rpr.getMaintenaceLevel(), rpr);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \tLong equipmentId = RequestUtils.getLongParameter(\"equipmentId\", -1);\n \tboolean barShow = RequestUtils.getBooleanParameter(\"barShow\", true);\n \tboolean selShow = true;\n \tif(equipmentId != -1){\n \t\tEquipmentDetailsService equipmentDetailsService = AppContext.getServiceFactory().getService(\"equipmentDetailsService\");\n \t\tdomain.setEquipmentDetails(equipmentDetailsService.load(equipmentId));\n \t\tselShow = false;\n \t}\n \trequest.setAttribute(\"selShow\",selShow);\n \trequest.setAttribute(\"barShow\",barShow);\n \trequest.setAttribute(\"ruleMap\",map);\n }", "protected void securePage(HttpServletRequest request, ActionForm form, boolean loadFields) throws Exception {\r\n securePage(request, form, loadFields, false);\r\n }", "public Object formBackingObject(HttpServletRequest request)\n\t\t\tthrows ServletException {\n \t\n \t// get the User's type from session \t\n \t// \n \t/*String action = request.getParameter(\"action\");\n \tString basketId = request.getParameter(\"basket\"); \t\n \t*/\n \t\n \tString vasItemId = request.getParameter(\"vasitem\");\n \tString funcId = request.getParameter(\"funcid\");\n \t\n \tVasMrtSelectionDTO vasMrtSelectionDTO = new VasMrtSelectionDTO();\n \tvasMrtSelectionDTO.setFuncId(funcId);\n \t\n \tBomSalesUserDTO user = (BomSalesUserDTO) request.getSession().getAttribute(\"bomsalesuser\");\n \tString appMode = (String) request.getSession().getAttribute(\"appMode\");\n \t\n \tif (\"EX06\".equals(funcId)){\n \t\n \tvasMrtSelectionDTO = (VasMrtSelectionDTO) request.getSession().getAttribute(\"vasMrtSelectionSession\");\n \t\n \tCustomerProfileDTO sessionCustomer = null; //Dennis MIP3\n \t\n \t\n \t \n\t\t\n\t\tif (\"mobccs\".equals(appMode)) {\n\t\t\tsessionCustomer = (CustomerProfileDTO) MobCcsSessionUtil.getSession(request, \"customer\");\n\t\t} else {\n\t\t\tsessionCustomer = (CustomerProfileDTO) request.getSession().getAttribute(\"customer\");\n\t\t} \t\t\n \t\n \t\n \tif (vasMrtSelectionDTO == null || !vasItemId.equals(vasMrtSelectionDTO.getVasItemId())) {\n \t\tvasMrtSelectionDTO = new VasMrtSelectionDTO();\n \tvasMrtSelectionDTO.setFuncId(funcId);\n \t\t\n \t\tvasMrtSelectionDTO.setVasItemId(vasItemId);\n \t\t\n \t\t\n \t\tif (sessionCustomer != null) {\n \t\t\tvasMrtSelectionDTO.setNumType(sessionCustomer.getNumType());\n \t\t}\t\t\t\t\n \t\t\n\t\t} \telse {\n\t\t\tif (StringUtils.isNotEmpty(vasMrtSelectionDTO.getMsisdn())){\n\t\t\t\t\tif (\"mobccs\".equals(appMode)) {\n\t\t\t\t\t\tList<String[]> lists = mobCcsMrtService.getOneCardTwoNumberByFullNumber(user.getChannelCd(), vasMrtSelectionDTO.getMsisdn(), vasMrtSelectionDTO.getNumType());\n\n\t\t\t\n\t\t\t\t\t\tIterator<String[]> itr = lists.iterator();\n\t\t\t\t\t while (itr.hasNext()){\n\t\t\t\t\t \tString[] item = itr.next();\n\t\t\t\t\t \t\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdn(item[0]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdnLvl(item[1]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setChannelCd(item[2]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setCityCd(item[3]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdnStatus(item[4]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setNumType(item[5]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setSrvNumType(item[6]);\n\t\t\t\t\t }\n\t\t\t\t\t} else {\n\t\t\t\t\t\tList<CnpDTO> output = mnpService.getNew1C2NMsisdn(vasMrtSelectionDTO.getMsisdn(),\n\t\t\t\t\t\t\t\tBomWebPortalConstant.CNM_STATUS_NORMAL, user.getBomShopCd(), \"R\", null,\n\t\t\t\t\t\t\t\tsessionCustomer.getNumType(), 1);\n\t\t\t\t\t\tif (output != null && !output.isEmpty() && output.size() == 1) {\n\t\t\t\t\t\t\tCnpDTO temp = output.get(0);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdn(temp.getMsisdn());\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setNumType(temp.getNumType());\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setCityCd(temp.getCity());\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdnStatus(String.valueOf(temp.getStatus()));\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setSrvNumType(temp.getType());\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setShopCd(temp.getDepartmentCode().substring(1));\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdnLvl(temp.getLevel());\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n \t\n \tvasMrtSelectionDTO.setSession(request.getSession());\n \tvasMrtSelectionDTO.setChinaInd(\"Y\");\n \t}\n \t\n \tif (\"EX07\".equals(funcId)){\n \t\n \tvasMrtSelectionDTO = (VasMrtSelectionDTO) request.getSession().getAttribute(\"ssMrtSelectionSession\");\n\n \tCustomerProfileDTO sessionCustomer = null; //Dennis MIP3\n\t\t\n\t\tif (user.getChannelId() == 2) {\n\t\t\tsessionCustomer = (CustomerProfileDTO) MobCcsSessionUtil.getSession(request, \"customer\");\n\t\t} else {\n\t\t\tsessionCustomer = (CustomerProfileDTO) request.getSession().getAttribute(\"customer\");\n\t\t} \t\t\n \t\n \tif (vasMrtSelectionDTO == null || !vasItemId.equals(vasMrtSelectionDTO.getVasItemId())) {\n \t\tvasMrtSelectionDTO = new VasMrtSelectionDTO();\n \tvasMrtSelectionDTO.setFuncId(funcId);\n \t\t\n \t\tvasMrtSelectionDTO.setVasItemId(vasItemId);\n \t\t\t\n \t\tif (sessionCustomer != null) {\n \t\t\tvasMrtSelectionDTO.setNumType(sessionCustomer.getNumType());\n \t\t}\n \t\t\n\t\t} else {\n\t\t\tif (StringUtils.isNotEmpty(vasMrtSelectionDTO.getSecSrvNum())){\n\t\t\t\tList<CnpDTO> output = mnpService.getNewSsMsisdn(vasMrtSelectionDTO.getSecSrvNum(), BomWebPortalConstant.CNM_STATUS_NORMAL, user.getBomShopCd(), \"R\", sessionCustomer.getNumType(), 1);\n\t\t\t\tif (output != null && !output.isEmpty() && output.size() == 1){\n\t\t\t\t\tCnpDTO temp = output.get(0);\n\t\t\t\t\tvasMrtSelectionDTO.setMsisdn(temp.getMsisdn());\n\t\t\t\t\tvasMrtSelectionDTO.setNumType(temp.getNumType());\n\t\t\t\t\tvasMrtSelectionDTO.setCityCd(temp.getCity());\n\t\t\t\t\tvasMrtSelectionDTO.setMsisdnStatus(String.valueOf(temp.getStatus()));\n\t\t\t\t\tvasMrtSelectionDTO.setSrvNumType(temp.getType());\n\t\t\t\t\tvasMrtSelectionDTO.setShopCd(temp.getDepartmentCode().substring(1));\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tvasMrtSelectionDTO.setMsisdnLvl(temp.getLevel());\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n \tif (vasMrtSelectionDTO.getVasItemId() == null) {\n \t\tvasMrtSelectionDTO.setVasItemId(vasItemId);\n\t\t}\n \t\n \tif (vasMrtSelectionDTO.getFuncId() == null) {\n \t\tvasMrtSelectionDTO.setFuncId(funcId);\n\t\t} \t\n\t\t\n \t}\n \t\n \tvasMrtSelectionDTO.setValue(\"user\", user);\n \tvasMrtSelectionDTO.setValue(\"request\", request);\n \t\n\t\treturn vasMrtSelectionDTO;\n \t\n }", "public RestResult constructFormRequest(String confAlias, Page page, ExecutionMode mode)\n throws IOException {\n log.info(\"Constructing a form request...\");\n\n InvokeWebServiceAction serviceAction = new InvokeWebServiceAction(args.getFirstString(\n PARAM_NAME_API_NAME));\n serviceAction.setFormId(page.getFormId());\n\n serviceAction.addServiceParameter(PARAM_NAME_CONF_ALIAS, confAlias);\n serviceAction.addServiceParameter(PARAM_NAME_CONTAINER_WIZARD, wizard.serialize());\n\n if (shouldSetNextPageIdx) {\n log.info(\"Setting next page index to \" + nextPageIdx);\n\n if (wizard.isInAddXmlMoMode()) {\n // Needed to make this work when using a form request\n nextPageIdx = wizard.getAddXmlMoContext().getXmlMoConfIdx();\n }\n serviceAction.addServiceParameter(PARAM_NAME_NEXT_PAGE_IDX, String.valueOf(nextPageIdx));\n }\n if (shouldSetNextSubPageIdx) {\n log.info(\"Setting next sub page index form parameter to \" + getNextSubPageIdx());\n serviceAction.addFormParameter(PARAM_NAME_NEXT_SUB_PAGE_IDX, String.valueOf(\n getNextSubPageIdx()));\n }\n\n // copied from constructActionRequest ...\n serviceAction.addProperty(PARAM_NAME_API_NAME, args.getFirstString(PARAM_NAME_API_NAME));\n serviceAction.addProperty(PARAM_NAME_OPERATION_NAME, wizard.getOperationName());\n\n if (page.isSubPages()) {\n Integer nextSubPageOffset = getIntValue(args.getFirst(PARAM_NAME_SECTION_TYPE_IDX), 0);\n Integer nextSubPageIdx = wizard.isInAddXmlMoMode() ? wizard.getAddXmlMoContext()\n .getXmlMoConfIdx() : getNextSubPageIdx() + nextSubPageOffset;\n log.info(\"Setting next sub page index service parameter to \" + nextSubPageIdx\n + \" (offset was \" + nextSubPageOffset + \")\");\n // Needed to make this work when using a form request\n serviceAction.addServiceParameter(PARAM_NAME_NEXT_SUB_PAGE_IDX, Integer.toString(\n nextSubPageIdx));\n // set a specific width\n JQueryDialogOptions dialogOptions = new JQueryDialogOptions();\n dialogOptions.setWidth(400);\n serviceAction.setDialogOptions(dialogOptions);\n }\n\n // end copy\n\n serviceAction.addServiceParameter(PARAM_NAME_EXECUTION_MODE, mode.name());\n\n // Make the web service string params also available to the form.\n for (CallArgument arg : serviceAction.getServiceParameters().values()) {\n if (StringUtils.isNotBlank(arg.getValue())) {\n serviceAction.addFormParameter(arg.getName(), arg.getValue());\n }\n }\n\n RestResult restResult = new RestResult();\n restResult.addAction(serviceAction);\n return restResult;\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n public String getXml( HttpServletRequest request )\n {\n Plugin plugin = PluginService.getPlugin( this.getPluginName( ) );\n Locale locale;\n\n if ( request != null )\n {\n locale = request.getLocale( );\n }\n else\n {\n locale = Locale.getDefault( );\n }\n\n StringBuffer strXml = new StringBuffer( );\n XmlUtil.beginElement( strXml, TAG_FORM_PORTLET );\n\n Form form = FormPortletHome.getFormByPortletId( getId( ), plugin );\n\n if ( form.isActive( ) && ( request != null ) )\n {\n String strUrlAction = JSP_DO_SUBMIT_FORM;\n\n if ( form.isSupportHTTPS( ) && AppHTTPSService.isHTTPSSupportEnabled( ) )\n {\n // put real base url in session\n HttpSession session = request.getSession( );\n\n if ( session != null )\n {\n session.setAttribute( AppPathService.SESSION_BASE_URL, AppPathService.getBaseUrl( request ) );\n }\n\n strUrlAction = AppHTTPSService.getHTTPSUrl( request ) + strUrlAction;\n }\n\n XmlUtil.addElementHtml( strXml, TAG_FORM_PORTLET_CONTENT, FormUtils.getHtmlForm( form, strUrlAction, locale, true, request ) );\n }\n else\n {\n XmlUtil.addElementHtml( strXml, TAG_FORM_PORTLET_CONTENT, form.getUnavailabilityMessage( ) );\n }\n\n XmlUtil.endElement( strXml, TAG_FORM_PORTLET );\n\n String str = addPortletTags( strXml );\n\n return str;\n }", "private final StringBuffer addFormVariables(String bound, String formname)\n throws JUploadException {\n StringBuffer sb = new StringBuffer();\n try {\n JSObject win = JSObject.getWindow(this.uploadPolicy.getApplet());\n Object o = win.eval(\"document.\" + formname + \".elements.length\");\n if (o instanceof Number) {\n int len = ((Number) o).intValue();\n if (len <= 0) {\n this.uploadPolicy.displayWarn(\"The specified form \\\"\"\n + formname + \"\\\" does not contain any elements.\");\n }\n int i;\n for (i = 0; i < len; i++) {\n try {\n Object name = win.eval(\"document.\" + formname + \"[\" + i\n + \"].name\");\n Object value = win.eval(\"document.\" + formname + \"[\"\n + i + \"].value\");\n Object etype = win.eval(\"document.\" + formname + \"[\"\n + i + \"].type\");\n if (etype instanceof String) {\n String t = (String) etype;\n if (t.equals(\"checkbox\") || t.equals(\"radio\")) {\n Object on = win.eval(\"document.\" + formname\n + \"[\" + i + \"].checked\");\n if (on instanceof Boolean) {\n // Skip unchecked checkboxes and\n // radiobuttons\n if (!((Boolean) on).booleanValue())\n continue;\n }\n \n }\n }\n if (name instanceof String) {\n if (value instanceof String) {\n sb.append(addPostVariable(bound, (String) name,\n (String) value));\n }\n }\n } catch (Exception e1) {\n if (e1 instanceof JSException) {\n this.uploadPolicy.displayDebug(\n e1.getStackTrace()[1]\n + \": got JSException, bailing out\",\n 80);\n } else\n throw new JUploadException(e1);\n i = len;\n }\n }\n } else {\n this.uploadPolicy.displayWarn(\"The specified form \\\"\"\n + formname + \"\\\" could not be found.\");\n }\n } catch (Exception e) {\n if (e instanceof JSException) {\n this.uploadPolicy.displayDebug(e.getStackTrace()[1]\n + \": No JavaScript availabe\", 80);\n } else\n throw new JUploadException(e);\n }\n return sb;\n }", "private void reWriteField(HttpServletRequest request) {\n\t\t// Reesccribir campos\n\t\trequest.setAttribute(\"importe\", importe);\n\t\trequest.setAttribute(\"concepto\", concepto);\n\t\trequest.setAttribute(\"coche\", c);\n\t}", "public ServletRequest getServletRequest() {\n/* 85 */ return this.request;\n/* */ }", "protected Object formBackingObject(HttpServletRequest request)\n throws Exception {\n String userId = request.getParameter(\"userId\");\n\n if (userId == null) {\n userId =\n SecurityContextHolder.getContext().getAuthentication()\n .getName();\n }\n UserVO userVO = userService.getUser(userId);\n\n SearchVO searchVO = new SearchVO();\n bind(request, searchVO);\n\n if (request.getParameter(\"pageIndex\") == null)\n searchVO.setPageIndex((new Integer(1)).intValue());\n else\n searchVO.setPageIndex((new Integer(request\n .getParameter(\"pageIndex\")).intValue()));\n \n request.setAttribute(\"searchVO\", searchVO);\n //request.setAttribute(\"cellPhoneCodeList\", cellPhoneCodeList);\n //request.setAttribute(\"emailCodeList\", emailCodeList);\n request.setAttribute(\"userVO\", userVO);\n request.setAttribute(\"flag\", role);\n return new UserVO();\n }", "public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}", "public static Map<String, String> getSubmittedForms(String slideRef, String... varargs) {\n\t\t// setting the default value when arguments' value is omitted\n\t\tString sessionID = varargs.length > 0 ? varargs[0] : null;\n\t\t// Find out what forms where submitted for a specific slide\n\t\tsessionID = sessionId(sessionID);\n\t\tif (slideRef.startsWith(\"/\")) {\n\t\t\tslideRef = slideRef.substring(1);\n\t\t}\n\t\tString url = apiUrl(sessionID, false) + \"GetFormSubmissions?sessionID=\" + PMA.pmaQ(sessionID) + \"&pathOrUids=\"\n\t\t\t\t+ PMA.pmaQ(slideRef);\n\t\tMap<String, String> forms = new HashMap<>();\n\t\tMap<String, String> allForms = getAvailableForms(slideRef, sessionID);\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\tif (jsonString != null && jsonString.length() > 0) {\n\t\t\t\tif (PMA.isJSONObject(jsonString)) {\n\t\t\t\t\tJSONObject jsonResponse = PMA.getJSONObjectResponse(jsonString);\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\t\tif (jsonResponse.has(\"Code\")) {\n\t\t\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\t\t\tPMA.logger.severe(\"getSubmittedForms on \" + slideRef + \" resulted in: \"\n\t\t\t\t\t\t\t\t\t+ jsonResponse.get(\"Message\") + \" (keep in mind that slideRef is case sensitive!)\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthrow new Exception(\"getSubmittedForms on \" + slideRef + \" resulted in: \"\n\t\t\t\t\t\t\t\t+ jsonResponse.get(\"Message\") + \" (keep in mind that slideRef is case sensitive!)\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tforms = null;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJSONArray jsonResponse = PMA.getJSONArrayResponse(jsonString);\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\t\tfor (int i = 0; i < jsonResponse.length(); i++) {\n\t\t\t\t\t\tif (!forms.containsKey(jsonResponse.optJSONObject(i).get(\"FormID\").toString())\n\t\t\t\t\t\t\t\t&& allForms != null) {\n\t\t\t\t\t\t\tforms.put(jsonResponse.optJSONObject(i).get(\"FormID\").toString(),\n\t\t\t\t\t\t\t\t\tallForms.get(jsonResponse.optJSONObject(i).get(\"FormID\").toString()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// should probably do some post-processing here, but unsure what that would\n\t\t\t\t\t// actually be??\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tforms = null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\treturn forms;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@RequestMapping(method = RequestMethod.GET, value = \"/admin/form/list\")\n public String listAllForms(HttpServletRequest request) throws ContentProviderException { List all forms with submit forms + count\n //\n List<Form> allForms = this.databaseFormHandler.getAllForms();\n\n request.setAttribute(\"markup\", this.markup);\n request.setAttribute(\"allForms\", allForms);\n\n return \"/Forms/Admin/ListForms\";\n }", "public void limpiarCamposFormBusqueda() {\n\t}", "public void testFormTester()\n\t{\n\t\ttester.startPage(MockFormPage.class);\n\t\tMockFormPage page = (MockFormPage)tester.getLastRenderedPage();\n\t\tMockDomainObject domainObject = page.getDomainObject();\n\n\t\tassertNotNull(domainObject);\n\t\tassertNull(domainObject.getText());\n\t\tassertNull(domainObject.getTextarea());\n\t\tassertFalse(domainObject.isCheckbox());\n\n\t\tFormTester formTester = tester.newFormTester(\"form\");\n\t\tformTester.setValue(\"text\", \"Mock text value\");\n\t\tformTester.setValue(\"textarea\", \"Mock textarea value\");\n\t\tformTester.setValue(\"checkbox\", \"true\");\n\t\tformTester.submit();\n\n\t\tassertNotNull(domainObject);\n\t\tassertNotNull(domainObject.getText());\n\t\tassertNotNull(domainObject.getTextarea());\n\t\tassertTrue(domainObject.isCheckbox());\n\t}" ]
[ "0.6474101", "0.64435", "0.620711", "0.6139936", "0.61060625", "0.6063268", "0.6004778", "0.5931206", "0.58357286", "0.58110756", "0.57733095", "0.5766116", "0.57282156", "0.5681752", "0.56712985", "0.5617527", "0.5609566", "0.5566203", "0.5560173", "0.5560173", "0.55335087", "0.55203664", "0.54711646", "0.54543775", "0.544682", "0.5441334", "0.5434651", "0.54092604", "0.54031324", "0.5398146", "0.5387444", "0.53664184", "0.53648525", "0.5357161", "0.5338872", "0.5337528", "0.5320835", "0.5311522", "0.5307795", "0.5303633", "0.5298793", "0.52913564", "0.52818394", "0.5274238", "0.52721775", "0.52683395", "0.52546084", "0.52276176", "0.5224355", "0.5193992", "0.51904756", "0.51879597", "0.518573", "0.5179893", "0.51797324", "0.51669294", "0.5162573", "0.5158531", "0.5158523", "0.5147307", "0.5140218", "0.51374215", "0.5131897", "0.5128443", "0.5126593", "0.5124034", "0.5112392", "0.51077145", "0.50999326", "0.5098266", "0.5080774", "0.5076452", "0.5074464", "0.50565034", "0.50558627", "0.5046244", "0.5042185", "0.5041228", "0.504076", "0.50391346", "0.503612", "0.5031139", "0.50204355", "0.50180984", "0.50112313", "0.5008386", "0.5006841", "0.5002423", "0.5000716", "0.4997455", "0.49973792", "0.49935156", "0.49795297", "0.49779677", "0.4976374", "0.49743345", "0.4973462", "0.49657133", "0.49512827", "0.4948182", "0.4948081" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_pager, container, false); if (savedInstanceState != null){ mDays = (Day[]) savedInstanceState.getParcelableArray(DAYS_TAG); currentPosition = savedInstanceState.getInt(CURRENT_POSITION_TAG); } mPager = (ViewPager) rootView.findViewById(R.id.pager); mPagerAdapter = new DayPagerAdapter(getChildFragmentManager()); mPager.setPageTransformer(true, new DayPagerTransformer()); mPager.setAdapter(mPagerAdapter); mPager.setCurrentItem(currentPosition, true); return rootView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Init the iterator to enumerate atoms from solution
public void initIterator( Solution solution ) { iterator = solution.newIterator(); // access = Access.REWRITE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setNextIterator() {\n\t\t\t\n\t\t\tfor (int i = index; i < inconsistencies.size(); i++){\n\t\t\t\tSet<LPGInconsistency> inconsistencyList = inconsistencies.get(i);\n\t\t\t\tif (!inconsistencyList.isEmpty()) {\n\t\t\t\t\titerator = inconsistencyList.iterator();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tindex++;\n\t\t\t}\n\t\t}", "public abstract Iterator initialStateIterator ();", "SingelIterator() {\n neste = listehode;\n forrige = listehode;\n }", "public IterI(){\n }", "private static void iterator() {\n\t\t\r\n\t}", "public ChainedArraysIterator(){\r\n\t\t\tcurrentNode = beginMarker.next;\r\n\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\tidx = 0;\r\n\t\t\texpectedModCount=modCount;\r\n\t\t}", "public SolutionIterator(javax.constraints.Solver s) {\n\t\tsolver = (Solver) s;\n\t\tsolution = null;\n\t\tsolutionNumber = 0;\n\t}", "public Iterable<IAtom> atoms() {\n return new Iterable<IAtom>() {\n \tpublic Iterator<IAtom> iterator() {\n \t\treturn new AtomsIterator();\n \t}\n };\n }", "iterator(){current = start;}", "private void createIterator(List<StarMapComponent> listStarMapComponent) {\r\n this.starMapComponentIterator = new StarMapComponentIterator(listStarMapComponent);\r\n }", "public RunIterator iterator() {\n // Replace the following line with your solution.\n return new RunIterator(runs.getFirst());\n // You'll want to construct a new RunIterator, but first you'll need to\n // write a constructor in the RunIterator class.\n \n \n }", "public void setIteratorBegin() {\n iter = (next > 0 ? 0 : -1);\n }", "public void setIterator(Iterator iterator) {\n/* 96 */ this.iterator = iterator;\n/* */ }", "public Iterator<IBDLocus> runModelAndCoallateResults() {\n final ModelResults modelResults = runModel();\n final IBDState[] states = modelResults.viterbiStates;\n final List<IBDLocus> results = new ArrayList<>(observations.size());\n for (int i = 0; i < states.length; i++) {\n VariantContext vc = null;\n if (sites.size() > 0) {\n vc = sites.get(i);\n }\n results.add(new IBDLocus(seqs.get(i), starts.get(i), vc, states[i],\n modelResults.statePosteriors[i], parentalIndicators.get(i),\n observations.get(i).agreesWith(states[i]), observations.get(i)));\n }\n observations.clear();\n\n seqs.clear();\n starts.clear();\n sites.clear();\n parentalIndicators.clear();\n\n return results.iterator();\n }", "public OpIterator iterator() {\n // some code goes here\n // throw new\n // UnsupportedOperationException(\"please implement me for lab2\");\n return new InterAggrIterator();\n }", "public Iterator<BigInteger> iterator() {\n // return new FibIterator();\n return new Iterator<BigInteger>() {\n private BigInteger previous = BigInteger.valueOf(-1);\n private BigInteger current = BigInteger.ONE;\n private int index = 0;\n \n \n @Override\n //if either true will stop, evaluates upper < 0 first (short circuit)\n public boolean hasNext() {\n return upper < 0 || index < upper;\n }\n\n @Override\n //Creating a new value called next\n public BigInteger next() {\n BigInteger next = previous.add(current);\n previous = current;\n current = next;\n index++;\n return current;\n }\n \n };\n }", "@Override\n public Iterator<Integer> iterator() {\n return new Iterator<>() {\n int i = 0;\n\n @Override\n public boolean hasNext() {\n return i < Set.this.count;\n }\n\n @Override\n public Integer next() {\n return Set.this.arr[i++];\n }\n };\n }", "public IteratorForXML(String i, String tag)\r\n/* 25: */ {\r\n/* 26:30 */ this(i, tag, tag);\r\n/* 27: */ }", "public EntrySetIterator() {\r\n last_entry = 0;\r\n current_entry = -1;\r\n next_ok = false;\r\n expected_modCount = TSB_OAHashtable.this.modCount;\r\n }", "public IntIterator intIterator() {\n\t\treturn new BufferedEWAHintIterator(this);\n\t}", "public Iterator <item_t> iterator () {\n return new itor ();\n }", "private ValueIterator()\n {\n currentIndex = 0;\n numberLeft = numberOfEntries;\n }", "@Override\n public Iterator<Integer> iterator() {\n return new IteratorImplementation();\n }", "public IteratorForXML(String i, String s, String e)\r\n/* 14: */ {\r\n/* 15:17 */ this.input = i;\r\n/* 16:18 */ this.start = s;\r\n/* 17:19 */ this.end = e;\r\n/* 18: */ \r\n/* 19: */ \r\n/* 20: */ \r\n/* 21:23 */ next();\r\n/* 22: */ }", "public Iterator iterator () {\n return new MyIterator (first);\n }", "public Iterator iterator()\r\n {\r\n return new IteratorImpl( this, home() );\r\n }", "IteratorExp createIteratorExp();", "@Override\n\t\t\tpublic Iterator<Integer> iterator() {\n\t\t\t\treturn new Iterator<Integer>() {\n\n\t\t\t\t\tint index = -1;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void remove() {\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Integer next() {\n\t\t\t\t\t\tif (index >= length)\n\t\t\t\t\t\t\tthrow new RuntimeException();\n\t\t\t\t\t\treturn offset + index * delta;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean hasNext() {\n\t\t\t\t\t\treturn ++index < length;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}", "public MyIterator(ExperimentList exp){ // experiment list constructor.\r\n this.exp = exp;\r\n }", "public Iterator()\n {\n this(null, null, true);\n }", "public Iterator()\n {\n this(null, null, true);\n }", "public Iterator()\n {\n this(null, null, true);\n }", "public SudokuSolver() {\n matrix = new int[DIM][DIM];\n\n IntStream.range(0, DIM * DIM)\n .forEach(\n n -> {\n int i = n / DIM;\n int j = n % DIM;\n matrix[i][j] = 0;\n });\n }", "public TSPMSTSolution(int iterations)\n {\n// System.out.println(\"NODE CREATED\");\n this.included = new int[0];\n this.includedT = new int[0];\n this.excluded = new int[0];\n this.excludedT = new int[0];\n this.iterations = iterations;\n }", "@Override\n\tpublic void initIterator() {\n\t\tcurrentUser = 0;\n\t}", "@Override\n public OctreeIterator iterator()\n {\n Stack<CelestialBody> stack = new Stack<>();\n stack = this.root.iterate(stack);\n\n OctreeIterator iterator = new OctreeIterator(stack);\n return iterator;\n }", "protected void initialize(int position) {\n iterator = listIterator();\n\n if (position >= 0) {\n for (int i = 0; i <= position; i++) {\n next();\n }\n }\n }", "public ValueCollectionIterator() {\r\n last_entry = 0;\r\n current_entry = -1;\r\n next_ok = false;\r\n expected_modCount = TSB_OAHashtable.this.modCount;\r\n }", "public ASTNodeIterator iterator()\n {\n ASTNodeIterator I = new ASTNodeIterator(1);\n I.children[0] = expression;\n return I;\n }", "protected EmptyIterator() {\n\t\t\tsuper();\n\t\t}", "@Override\n public Iterator iterator() {\n return new PairIterator();\n }", "@Override\n public Iterator<T> iterator() {\n return new IteratorTree(this.root, this.modCount);\n }", "public Interface_EntityIterator() {\n this(OCCwrapJavaJNI.new_Interface_EntityIterator__SWIG_0(), true);\n }", "@Override\n public Iterator<ScheduledTask> iterator() {\n return new Iterator<ScheduledTask>() {\n private PartialSolution current = PartialSolution.this;\n\n @Override\n public boolean hasNext() {\n return current.getScheduledTask() != null;\n }\n\n @Override\n public ScheduledTask next() {\n ScheduledTask thisTask = current.getScheduledTask();\n if (current.getParent() != null) {\n current = current.getParent();\n }\n return thisTask;\n }\n };\n }", "protected abstract Iterator<String> iterator(int restants, HashMap<String, Intersection> intersections, HashMap<String, Paire> vuDispo, Map<String, Map<String, Chemin>> plusCourtsChemins);", "@Override\n\tpublic Iterator<Integer> iterator() {\n\t\treturn null;\n\t}", "private\t\tvoid\t\tinitialize()\n\t\t{\n\t\tif (iterateThroughAllLayers && editor.hasLayers())\n\t\t\t{\n\t\t\thasLayers = true;\n\t\t\tif (!startAtTop)\n\t\t\t\tlayerNum = 0;\n\t\t\telse\n\t\t\t\tlayerNum = editor.getNumberOfLayers() - 1;\n\t\t\t\n\t\t\titerator = new MiContainerIterator(\n\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\titerator = new MiContainerIterator(\n\t\t\t\teditor.getCurrentLayer(), !startAtTop, \n\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts);\n\t\t\t}\n\t\t}", "public CustomSolver() {\n this.possibleSol = this.generateTokenSet();\n this.curToken = 0;\n }", "public ASTNodeIterator iterator() {\n ASTNodeIterator I = new ASTNodeIterator(1);\n I.children[0] = name;\n return I;\n }", "public ArrayIterator() {\n next = first;\n }", "@Override\r\n public Iterator iterator(){\n return new MyIterator(this);\r\n }", "public IterR(){\n }", "@Test\n public void testNextIndex_Start() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 3, 4, 5));\n\n ListIterator<Integer> instance = baseList.listIterator();\n int expResult = 0;\n int result = instance.nextIndex();\n\n assertEquals(expResult, result);\n }", "public GameObjectVectorIterator() {\n\t\t\tpointerIndex = -1;\n\t\t}", "@Override\n public Iterator<Location> iterator() {\n return new NeighborhoodIterator(this, new Location(0, 0));\n }", "IteratorExpVariableCS getIteratorVariable();", "public void initialize() {\n for (Location apu : this.locations) {\n Node next = new Node(apu.toString());\n this.cells.add(next);\n }\n \n for (Node helper : this.cells) {\n Location next = (Location)this.locations.searchWithString(helper.toString()).getOlio();\n LinkedList<Target> targets = next.getTargets();\n for (Target finder : targets) {\n Node added = this.path.search(finder.getName());\n added.setCoords(finder.getX(), finder.getY());\n helper.addEdge(new Edge(added, finder.getDistance()));\n }\n }\n \n this.startCell = this.path.search(this.source);\n this.goalCell = this.path.search(this.destination);\n \n /**\n * Kun lähtö ja maali on asetettu, voidaan laskea jokaiselle solmulle arvio etäisyydestä maaliin.\n */\n this.setHeuristics();\n }", "Trie2Iterator(ValueMapper vm) {\n mapper = vm;\n nextStart = 0;\n limitCP = 0x110000;\n doLeadSurrogates = true;\n }", "public static void initialisations() {\n\t\tit = 0;\r\n\t\tbc = 1;\r\n\r\n\t\t// pile des reprises pour compilation des branchements en avant\r\n\t\tpileRep = new TPileRep(); \r\n\t\t// programme objet = code Mapile de l'unite en cours de compilation\r\n\t\tpo = new ProgObjet();\r\n\t\t// COMPILATION SEPAREE: desripteur de l'unite en cours de compilation\r\n\t\tdesc = new Descripteur();\r\n\r\n\t\t// initialisation necessaire aux attributs lexicaux\r\n\t\tUtilLex.initialisation();\r\n\r\n\t\t// initialisation du type de l'expression courante\r\n\t\ttCour = NEUTRE;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de param�tres de chaque proc�dure \r\n\t\tnbParamProc = 0;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de variables d�clar�es\r\n\t\tnbVar++;\r\n\r\n\t\t//Initialisation vTmp\r\n\t\tvTmp = 0;\r\n\t\t\r\n\t\tdesc.setUnite(\"programme\");\r\n\t\t\r\n\t}", "@Override\n\tpublic Iterator<NumberInterface> createIterator() {\n\t\treturn numbers.iterator();\n\t}", "@Test\r\n\tvoid testPolynomConstructor() {\r\n\t\tIterator<Monom>it=polynomEx.iteretor();\r\n\t\tassertFalse(\"Checks that the polynom's arrayList is null:\",it.hasNext());\r\n\t}", "private void initHelper(final OrganicMoleculeBuilder builder) {\n if (!testing) {\n // Only use MoleculeAnalyzer if the app is actually being run\n // This makes it possible to run the app test even if MoleculeAnalyzer is crashing\n BondedAtom atom = builder.build();\n MoleculeAnalyzer analyzer = new MoleculeAnalyzer(atom);\n name = analyzer.getIupacName();\n formula = analyzer.getFormula();\n mass = analyzer.getMolecularWeight();\n }\n\n coreCarbons = builder.getCoreCarbons();\n substituents = new ArrayList<>();\n\n for (int i = 0; i < this.coreCarbons; i++) {\n this.substituents.add(new ArrayList<Substituent>());\n for (int j = 0; j < builder.getSubstituents(i).length && builder.getSubstituents(i)[j] != null; j++) {\n int bondCount;\n int chainLength = builder.getSubstituents(i)[j].getAlkylLength();\n OrganicMoleculeBuilder.SubstituentType type = builder.getSubstituents(i)[j].getType();\n\n String substituentFormula;\n try {\n substituentFormula = builder.getSubstituents(i)[j].getHalogen().getSymbol();\n } catch (NullPointerException unused) {\n substituentFormula = \"\";\n }\n\n if (type == OrganicMoleculeBuilder.SubstituentType.CARBONYL) {\n bondCount = 2;\n } else {\n bondCount = 1;\n }\n\n substituents.get(i).add(new Substituent(bondCount, chainLength, substituentFormula, type.toString()));\n }\n }\n }", "public void init()\n {\n list = new int[k];\n\n // Initialise my list of integers\n for (int i = 0; i < k; i++) {\n int b = 1;\n while (CommonState.r.nextBoolean())\n b++;\n list[i] = b;\n }\n }", "@Override\n public IntVec3SubspaceIterator iterator() {\n return new IntVec3SubspaceIterator(this);\n }", "public GameCollectionIterator() { \n\t\t\tcurrIndex = -1;\n\t\t}", "public abstract SolutionPartielle solutionInitiale();", "public Iterador() {\n pila = new Pila<Nodo>();\n if (raiz != null) {\n pila.push(raiz);\n Nodo<T> nodo = pila.peek();\n while(nodo != null){\n if (nodo.izquierdo != null) {\n pila.push(nodo.izquierdo);\n }\n nodo = nodo.izquierdo;\n }\n }\n\n }", "public MyListIter(int index) {\n super();\n //iter.current = index;\n current = index;\n }", "@Test\n public void testIterator() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n Iterator<Integer> instance = baseList.iterator();\n assertTrue(isEqual(instance, baseList));\n\n }", "public TopologicalIterator() {\n fringe = new Stack<Integer>();\n edgeCopy = new LinkedList[myAdjLists.length];\n int count = 0;\n for (LinkedList l : myAdjLists) {\n \tLinkedList toAdd = new LinkedList();\n \tfor (Object e : l) {\n \t\ttoAdd.add(e);\n \t}\n \tedgeCopy[count] = toAdd;\n \tcount++;\n }\n for (int i = 0; i < myVertexCount; i++) {\n \tif (inDegreeCopy(i, edgeCopy) == 0) {\n \t\tfringe.add(i);\n \t}\n }\n alreadyReturned = new ArrayList<Integer>();\n // more statements go here\n }", "EntryIterator(final IntTree<V> root) {\n gotoMinOf(root);\n }", "public Iterator<K> iterator()\n {\n\treturn (new HashSet<K>(verts)).iterator();\n }", "public Iterator<Integer> fromA() {return this.fromA.iterator();}", "@Transactional(propagation = Propagation.REQUIRED, value = \"jamiTransactionManager\", readOnly = true)\n public Iterator<Experiment> iterateAll() {\n return new IntactQueryResultIterator<Experiment>((ExperimentService) ApplicationContextProvider.getBean(\"experimentService\"));\n }", "@Override\r\n\tpublic Iterator<T> iterator() {\n\t\treturn new Iterator<T>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic boolean hasNext() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tnodo<T> sig = sentinel;\r\n\t\t\t\tsentinel = sentinel.getNext();\r\n\t\t\t\treturn (sentinel != null) ? true : false;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic T next() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn sentinel.getValue();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t}", "public Iterator<Coord> iterator() {\n\t\treturn new CoordListIterator(array, index);\n\t}", "public /*@ non_null @*/ JMLIterator<E> iterator() {\n return new JMLEnumerationToIterator<E>(elements());\n }", "@Before\r\n public void setUp() {\r\n it = new EvenIterator(new int[]{1, 2, 3, 4, 5, 6, 7});\r\n }", "public void resetIteration(){\n\t\titeration = 0;\n\t}", "public Iterator <T> iterator (){\n\t\t// create and return an instance of the inner class IteratorImpl\n\t\t\t\treturn new HashAVLTreeIterator();\n\t}", "private void setSolution(ArrayList<Pair> order) {\n for (int i = 0; i < order.size(); i++) {\n currentSol.set(order.get(i).index, 1);\n }\n }", "public void init() {\n initLayers();\n for (int i = 0; i < indivCount; i++) {\n ArrayList<Layer> iLayers = new ArrayList<>();\n for (Layer l : layers)\n iLayers.add(l.cloneSettings());\n individuals[i] = new Individual(iLayers);\n }\n }", "public HashSetIterator()\n {\n current = null;\n bucketIndex = -1;\n }", "private IteratorImpl() {\r\n\t\t\titeratorModificationCount = modificationCount;\r\n\r\n\t\t\tnextEntry = table[0] == null ? findNextNonNullTableRowEntry() : table[0];\r\n\t\t}", "public SequenceIterator iterate(final XPathContext context) throws XPathException {\n SequenceIterator base = operand.iterate(context);\n ItemMappingFunction converter = new ItemMappingFunction() {\n public Item map(Item item) throws XPathException {\n return ((AtomicValue)item).convert(requiredPrimitiveType, context);\n }\n };\n return new ItemMappingIterator(base, converter);\n }", "private DocumentOrderIterator() {}", "public Iterator<ElementType> iterator(){\n return new InnerIterator();\n }", "@Test\n public void testSet_After_Next() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n instance.set(9);\n int expResult = 1;\n\n assertEquals(expResult, baseList.indexOf(9));\n }", "public static List<InitialUnit> getStartingPositions (Scanner sc) {\n List<InitialUnit> res = new ArrayList<InitialUnit>();\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n res.add(InitialUnit.loadFrom(sc));\n }\n return res;\n }", "public Iterator<? extends ICodeBase> auxCodeBaseIterator();", "private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}", "public Iterator<Object> iterator()\r\n {\r\n return new MyTreeSetIterator(root);\r\n }", "public Iterator<IPessoa> getAtores();", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(544,\"org.apache.commons.collections4.iterators.IteratorIterableEvoSuiteTest.test0\");\n EntrySetMapIterator<Integer, Object>[] entrySetMapIteratorArray0 = (EntrySetMapIterator<Integer, Object>[]) Array.newInstance(EntrySetMapIterator.class, 7);\n ObjectArrayIterator<EntrySetMapIterator<Integer, Object>> objectArrayIterator0 = new ObjectArrayIterator<EntrySetMapIterator<Integer, Object>>(entrySetMapIteratorArray0, 0, 0);\n IteratorIterable<Object> iteratorIterable0 = new IteratorIterable<Object>((Iterator<?>) objectArrayIterator0, true);\n }", "@Override\n\tpublic Iterator<Forme> iterator() {\n\t\treturn this.formes.iterator();\n\t}", "public Iterator<AskConstraint> lookupAsk() {\n\t\treturn EmptyIterator.getInstance();\n\t}", "@Override\n public Iterator<FindOption> iterator() {\n return Collections.unmodifiableSet(options).iterator();\n }", "@Override\n public Iterator<FindOption> iterator() {\n return Collections.unmodifiableSet(options).iterator();\n }", "Iterator<Entry<String, Var>> getIterator() {\n\t\treturn iter;\n\t}", "MoveIterator() {\n _c = 1; _r = 1; _dir = NOWHERE;\n incr();\n }" ]
[ "0.5849811", "0.57644767", "0.57317716", "0.5696258", "0.56837237", "0.568345", "0.5555946", "0.5523691", "0.54915863", "0.5477916", "0.54721326", "0.542715", "0.5421389", "0.5411325", "0.5382245", "0.5292712", "0.52875674", "0.52858317", "0.5285199", "0.5281311", "0.5265718", "0.522469", "0.5216174", "0.5215495", "0.5192497", "0.51862586", "0.5184157", "0.5149134", "0.5137585", "0.5134077", "0.5134077", "0.5134077", "0.51159525", "0.51154", "0.51051044", "0.51029944", "0.5087169", "0.50818056", "0.5073766", "0.50717777", "0.50594693", "0.5057279", "0.50568664", "0.5053245", "0.5049061", "0.5040105", "0.5039161", "0.50341916", "0.5030392", "0.50268203", "0.5019409", "0.5005067", "0.49945736", "0.49914747", "0.49875194", "0.49813125", "0.49700832", "0.49681118", "0.49638712", "0.4961622", "0.4961238", "0.49588653", "0.4957161", "0.49570698", "0.49556544", "0.49464977", "0.49447143", "0.49383312", "0.49382496", "0.49352458", "0.4927448", "0.49271405", "0.49253625", "0.49208766", "0.4918706", "0.4910848", "0.49078158", "0.49029753", "0.49001864", "0.48964557", "0.48942384", "0.48940715", "0.48890203", "0.4883457", "0.48784396", "0.48731884", "0.48728254", "0.48705113", "0.48702177", "0.48660952", "0.4865885", "0.48626867", "0.4859896", "0.48580363", "0.48575613", "0.48559442", "0.4851248", "0.4851248", "0.48423105", "0.4841367" ]
0.681893
0
Move the iterator to the next atom (if not at the end). May not realy move it: cf IteratorForSolution, IteratorForTuple
public void next() { iterator.next(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveNext() {\n\t\tcurrentElement++;\n\t}", "private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }", "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "public void nextHard() {\n\t\titerator.next();\n\t}", "protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}", "public void next() {\n if (hasNext()) {\n setPosition(position + 1);\n }\n }", "@Override\n public IntVec3 next() {\n if(this.hasNext()){\n this.current = this.current.clone();\n } else throw new NoSuchElementException();\n if(this.current.x != this.end.x){\n this.current=this.current.incrX(this.xDir);\n } else if(this.current.y != this.end.y){\n this.current=IntVec3.get(0, this.current.y + this.yDir, this.current.z);\n } else if(this.current.z != this.end.z){\n this.current=IntVec3.get(0, 0, this.current.z + this.zDir);\n } else throw new NoSuchElementException();\n return this.current;\n }", "public void advance() {\n if( mMatches.hasNext() ) {\n setCurrent( mMatches.next() );\n }\n }", "public void next() {\n\t\telements[(currentElement - 1)].turnOff();\n\t\tif (elements.length > currentElement) {\n\t\t\telements[currentElement].turnOn();\n\t\t\tcurrentElement++;\n\t\t} else {\n\t\t\texit();\n\t\t}\n\t}", "@Override\n public void advance() {\n if (isCurrent()) {\n prev = cursor;\n cursor = cursor.getNext();\n } else {\n throw new IllegalStateException(\"There is no current element.\");\n }\n }", "public T next(){\r\n\t\t\tif (expectedModCount != modCount){\r\n\t\t\t\tthrow new ConcurrentModificationException();\r\n\t\t\t}\r\n\t\t\tT passed = current;\r\n\t\t\tif ((currentNode.next==endMarker)&&(currentNode.getLast()==current)){\r\n\t\t\t\tcurrentNode = endMarker;\r\n\t\t\t\tcurrent = null;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\r\n\t\t\tif (currentNode.indexOf(current)==currentNode.getArraySize()-1){\r\n\t\t\t\tcurrentNode = currentNode.next;\r\n\t\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\t\tidx = 0;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\t\r\n\t\t\tidx++;\r\n\t\t\tcurrent = currentNode.get(idx);\r\n\t\t\treturn passed;\r\n\t\t}", "public void moveFirst() {\n\t\tcurrentElement = 0;\n\t}", "private void setNextIterator() {\n\t\t\t\n\t\t\tfor (int i = index; i < inconsistencies.size(); i++){\n\t\t\t\tSet<LPGInconsistency> inconsistencyList = inconsistencies.get(i);\n\t\t\t\tif (!inconsistencyList.isEmpty()) {\n\t\t\t\t\titerator = inconsistencyList.iterator();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tindex++;\n\t\t\t}\n\t\t}", "public void advance( )\r\n {\r\n\t if(isCurrent() != true){// Implemented by student.\r\n\t throw new IllegalStateException(\"no current element\");\r\n\t }\r\n\t else\r\n\t \t precursor = cursor;\r\n\t \t cursor = cursor.getLink(); // Implemented by student.\r\n }", "@Override\n public Integer next() {\n if (!isPeeked && hasNext())\n return iterator.next();\n int toReturn = peekedElement;\n peekedElement = -1;\n isPeeked = false;\n return toReturn;\n }", "public void _next() {\n Object o;\n try {\n o = iter.next();\n } catch (NoSuchElementException e) {\n has_next = 0;\n return;\n }\n // resolve object\n if (o == null) {\n has_next = 1;\n next = null;\n } else if (o instanceof IdentityIF) {\n try {\n o = txn.getObject((IdentityIF)o, true);\n if (o == null) {\n _next();\n } else {\n has_next = 1;\n next = (F) o;\n }\n } catch (Throwable t) {\n has_next = -1;\n next = null;\n }\n } else {\n has_next = 1;\n next = (F) o;\n }\n }", "public void next() {\n\t\t}", "public boolean MoveNext()\r\n { \r\n _index++;\r\n\r\n return _index < Count;\r\n }", "@Override\n public Integer next() {\n Integer result = null;\n if (checkCurrentIterator(this.currentIterator) && this.currentIterator.hasNext()) {\n while (this.currentIterator.hasNext()) {\n return this.currentIterator.next();\n }\n } else if (it.hasNext()) {\n this.currentIterator = getIterator(it);\n return this.next();\n }\n return result;\n }", "public Object next()\n {\n if(!hasNext())\n {\n throw new NoSuchElementException();\n //return null;\n }\n previous= position; //Remember for remove;\n isAfterNext = true; \n if(position == null) \n {\n position = first;// true == I have not called next \n }\n else\n {\n position = position.next;\n }\n return position.data;\n }", "private void prepareNext() {\n this.hasNext = false;\n while (!this.hasNext && this.nodesIterator.hasNext()) {\n this.next = this.nodesIterator.next();\n this.hasNext = this.computeHasNext();\n }\n }", "public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }", "MoveIterator() {\n _c = 1; _r = 1; _dir = NOWHERE;\n incr();\n }", "private void advance() {\n assert currentItemState == ItemProcessingState.COMPLETED || currentIndex == -1\n : \"moving to next but current item wasn't completed (state: \" + currentItemState + \")\";\n currentItemState = ItemProcessingState.INITIAL;\n currentIndex = findNextNonAborted(currentIndex + 1);\n retryCounter = 0;\n requestToExecute = null;\n executionResult = null;\n assert assertInvariants(ItemProcessingState.INITIAL);\n }", "@Override\n public Tuple next() {\n return nonDistinctNext();\n }", "public Object next()\n/* */ {\n/* 93 */ if (this.m_offset < this.m_array.length) {\n/* 94 */ Object localObject = this.m_array[this.m_offset];\n/* 95 */ advance();\n/* 96 */ return localObject;\n/* */ }\n/* 98 */ throw new NoSuchElementException();\n/* */ }", "public boolean moveFirst(\n )\n {moveStart(); return moveNext();}", "@Nonnull\n public Optional<ENTITY> next()\n {\n currentItem = Optional.of(items.get(++index));\n update();\n return currentItem;\n }", "private void findNext() {\n \tthis.find(true);\n }", "@Override\n public Integer next() {\n Integer res = next;\n advanceIter();\n return res;\n }", "public abstract Position nextPosition(Position position);", "@Override\n\tpublic Integer next() {\n\t return iterator.next();\n\t}", "public void advance () {\n while (currentGroup == null ||\n (!actionIter.hasNext() && groupIter.hasNext()))\n {\n currentGroup = groupIter.next();\n actionIter = actions.iterator();\n }\n // now get the next action (assuming we're in valid state)\n currentAction = (actionIter.hasNext() ? actionIter.next() : null);\n }", "@Override\n public Integer next() {\n if (next != null) {\n Integer next = this.next;\n this.next = null;\n return next;\n\n }\n\n return iterator.next();\n }", "@Override\n\tpublic void next()\n\t{\n\n\t}", "@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }", "@Override\n\tpublic void next() {\n\t\t\n\t}", "public MapIterator advance()\n {\n this.MapItr = this.MapItr.rest(); \n \n return this;\n }", "public Object next()\n/* */ {\n/* 84 */ if (this.m_offset < this.m_limit) {\n/* 85 */ return this.m_array[(this.m_offset++)];\n/* */ }\n/* 87 */ throw new NoSuchElementException();\n/* */ }", "@Override\n\tpublic void makeNextMove() \n\t{\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\tpublic T next() throws NoSuchElementException {\n\t\t\ttry {\n//\t\t\t\tT object = (T)data[cursor * numCols + pinnedColumn];\n\t\t\t\tT object = get(cursor, pinnedColumn);\n\t\t\t\tlastRet = cursor++;\n\t\t\t\treturn object;\n\t\t\t} catch ( IndexOutOfBoundsException e ) {\n\t\t\t\tthrow new NoSuchElementException( \"You have iterated past the last element.\" + e.toString() );\n\t\t\t}\n\t\t}", "@Test\n public void nextTest() {\n this.it.next();\n this.it.next();\n assertThat(\"work3\", is(this.it.next()));\n }", "private void moveNext(PositionTracker tracker) {\n\t\t \n\t\t //initiate if-else statement\n\t\t if(tracker.getExactColumn() == (tracker.getMaxColumns() - 1)) {\n\t\t\t \n\t\t\t //invoke the setExactRow method\n\t\t\t tracker.setExactRow(tracker.getExactRow() + 1);\n\t\t\t \n\t\t\t //invoke the setExactColumn method\n\t\t\t tracker.setExactColumn(0);\n\t\t\t \n\t\t }else {\n\t\t\t \n\t\t\t //invoke the setExactColumn method\n\t\t\t tracker.setExactColumn(tracker.getExactColumn() + 1);\n\t\t }//end if-else\n\t }", "@Override\n E next();", "public void nextMove(Field field) {\n for (int i = 1; i <= 9; i++) {\n if (field.setMarker(i, marker)) {\n break;\n }\n }\n }", "@Override\n public T next() {\n setCurrent();\n T returnValue = current;\n current = null;\n elementToRemove = returnValue;\n return returnValue;\n }", "@Override\r\n\tpublic void next() {\n\n\t}", "public void setNextCell(Cell next)\r\n {\r\n this.next = next;\r\n }", "public void makeNextMove() {\n\t\ttakeNextNonTabuedCheapestStep();\n\t\t}", "public void nextIteration()\n {\n actuelIteration++;\n }", "@Override\n\t\tpublic T next() {\n\t\t\tmoveToNextIndex();\n\t\t\treturn objectAtIndex(_indicesByInsertOrder[_index]);\n\t\t}", "public E next() throws NoSuchElementException{\n\t\tPosition<E> aux=actual;\n\t\tif (aux == null) \n\t\t\tthrow new NoSuchElementException();\t\t\n\t\tthis.avanzar();\n\t\treturn aux.element();\n\t}", "@SuppressWarnings(\"unchecked cast\")\n @Override\n public T next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n lastNext = heap[cursor++];\n return (T) lastNext;\n }", "@Override public T next() {\n T elem = null;\n if (hasNext()) {\n Nodo<T> nodo = pila.pop();\n elem = nodo.elemento;\n nodo = nodo.derecho;\n while(nodo != null){\n pila.push(nodo);\n nodo = nodo.izquierdo;\n }\n return elem;\n }\n return elem;\n }", "public final boolean MoveNext()\n\t{\n\t\tint size = _rcc.size();\n\n\t\tif (_curindex >= size)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t_curindex++;\n\n\t\treturn (_curindex < size);\n\t}", "private Token advance() {\n if(!isAtEnd()) current++;\n return previous();\n }", "@Override\n public Integer next() {\n if (cur != null) {\n int temp = cur.intValue();\n cur = null;\n return temp;\n }\n\n if (iter.hasNext()) {\n return iter.next();\n }\n\n return null;\n }", "public T next(){\r\n return itrArr[position++];\r\n }", "public Tuple next() throws RelationException;", "public final T next()\n {\n return skip(1);\n }", "public T next() {\n\t\t\tif(hasNext()) {\n\t\t\t\tT temp = vector.elementAt(nextPosition);\n\t\t\t\tnextPosition--;\n\t\t\t\tpreviousPosition--;\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new NoSuchElementException(\"The iterator has already reached the end\");\n\t\t\t}\n\t\t\t\n\t\t}", "public AIter next() {\n int p;\n return (p = start + 1) < size ? new Iter(p) : null;\n }", "@Override\r\n\t\t\tpublic T next() {\n\t\t\t\treturn sentinel.getValue();\r\n\t\t\t}", "@Override\n\tpublic boolean canMoveToNext() {\n\t\treturn true;\n\t}", "public void MoveNext()\r\n \t{\r\n\r\n\t try{\r\n\t\t if(!rsTution.next())rsTution.last();\r\n\t\t Display();\r\n\r\n\r\n\t }catch(SQLException sqle)\r\n\t {System.out.println(\"Move Next Error:\"+sqle);}\r\n \t}", "public void next() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getNextMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getNextModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }", "@Override\n public Integer next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n Integer toReturn = next;\n next = null;\n if (peekingIterator.hasNext()) {\n next = peekingIterator.next();\n }\n return toReturn;\n }", "@Override\r\n public Object next() {\r\n if (this.hasNext()) {\r\n Object temp = this.nextMatchingFile;\r\n this.nextMatchingFile = this.callNext();\r\n return temp;\r\n } else {\r\n throw new NoSuchElementException(\"There is no other file object in the directory.\");\r\n }\r\n}", "public Object next()\n {\n return _iterator.next();\n }", "public void next()\n {\n if (size != 0)\n {\n current = current.next();\n }\n }", "private void moveToNextSplit() {\n closeCurrentSplit();\n\n if (_splits.hasNext()) {\n StashSplit split = _splits.next();\n String key = String.format(\"%s/%s\", _rootPath, split.getKey());\n _currentIterator = new StashSplitIterator(_s3, _bucket, key);\n } else {\n _currentIterator = null;\n }\n }", "protected void next() {\n\t\t// Next node\n\t\tnode = path.remove(0);\n\t\ttransition(NavigatorState.ROTATE_TO);\n\t}", "@Override\r\n public Object next() {\r\n V value = (V) currentCell.value;\r\n currentCell = currentCell.next;\r\n return value;\r\n }", "@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}", "@Override\n public Item next() {\n if(!hasNext()) throw new NoSuchElementException(\"Failed to perform next because hasNext returned false!\");\n Item item = current.data;\n current = current.next;\n return item;\n }", "public JumpIterator(Iterator<T> iterator) {\n this.iterator = iterator;\n hasNextFlag = true;\n }", "public abstract void next();", "iterator(){current = start;}", "public T next(){\n if (hasNext())\n return (T)VectorGeneric.this.vec[index++];\n throw new NoSuchElementException(\"Index out of bounds!\");\n \n }", "public void setIteratorEnd() {\n iter = (next > 0 ? next - 1 : -1);\n }", "@Override\n\t\tpublic T1 next() {\n\t\t\treturn (T1)_items[getindex(++_current)];\n\t\t}", "public void next() {\n\t\tSystem.out.println(al.get(pos));\r\n\t\tpos++;\r\n\t}", "@Override\n public E next() {\n this.modificationCheck();\n E result;\n if (this.position != SimpleArrayList.this.index) {\n result = (E) values[position++];\n } else {\n throw new NoSuchElementException(\"No more suitable elements!\");\n }\n return result;\n }", "void moveNext() {\n moveNextInternal();\n while (tokenType == CifTokenType.COMMENT) {\n moveNextInternal();\n }\n }", "@Override\n public Integer next() {\n if(peekedVal != null ){\n Integer next = peekedVal;\n peekedVal = null;\n return next;\n }\n if(!iter.hasNext()){\n throw new NoSuchElementException();\n }\n return iter.next();\n\n }", "@Override\n\t\tpublic Tuple next() throws DbException, TransactionAbortedException,\n\t\t\t\tNoSuchElementException {\n\t\t\tif(tplItr.hasNext())\n\t\t\t\treturn tplItr.next();\n\t\t\tthrow new NoSuchElementException();\n\t\t}", "private E next() {\n\t\tif (hasNext()) {\n\t\t\tE temp = iterator.data;\n\t\t\titerator = iterator.next;\n\t\t\treturn temp;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public void goToNext()\n {\n if (current != null)\n {\n previous = current;\n current = current.nLink;\n } // end if\n else if (head != null)\n {\n System.out.println(\"Iteration reached end of line.\");\n System.exit(0);\n } // else if\n else\n {\n System.out.println(\"You can't iterate an empty list.\");\n System.exit(0);\n }\n }", "@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}", "private XSSFCell getNextCell() {\r\n\r\n if (currColNum - firstcol + 1 == taskconfig.colNum) {\r\n currColNum = firstcol;\r\n currRowNum++;\r\n } else {\r\n currColNum++;\r\n }\r\n\r\n cell = getCell(currRowNum, currColNum);\r\n if (cell.getCellTypeEnum()==CellType.STRING && cell.getStringCellValue().contains(\"-\")) {\r\n getNextCell();\r\n ;\r\n }\r\n \r\n\r\n return cell;\r\n }", "@Override\n public E next() {\n if(!hasWork()) {\n throw new NoSuchElementException(\"The worklist is empty\");\n }\n E work = array[front];\n if(front + 1 == array.length) {\n front = 0;\n } else {\n front++;\n }\n size--;\n return work;\n }", "@SuppressWarnings(\"unchecked\")\n\t\tpublic T next() throws NoSuchElementException {\n\t\t\ttry {\n\t\t\t\tT object = (T)data[pinnedRow * numCols + cursor];\n\t\t\t\tlastRet = cursor++;\n\t\t\t\treturn object;\n\t\t\t} catch ( IndexOutOfBoundsException e ) {\n\t\t\t\tthrow new NoSuchElementException( \"You have iterated past the last element.\" + e.toString() );\n\t\t\t}\n\t\t}", "void next(T value);", "public Object nextElement() {\n/* 75 */ return this.iterator.next();\n/* */ }", "IEmpleado next();", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "public void next();", "public void next();", "public abstract Tuple getNext();", "@Override\n\tpublic Tuple next(){\n currTupleInd++;\n if (currTupleInd >= numOfTuples) return null;\n return tuples.get(currTupleInd);\n\t}" ]
[ "0.6387594", "0.6375327", "0.6336474", "0.63210464", "0.6113219", "0.6070467", "0.60537165", "0.5924752", "0.5922705", "0.59097797", "0.5881474", "0.5872524", "0.5858883", "0.5837031", "0.5727482", "0.57196707", "0.57185704", "0.5713696", "0.569036", "0.5686288", "0.5624653", "0.5618548", "0.5590937", "0.5582408", "0.5580436", "0.5577158", "0.5569124", "0.5543568", "0.55387115", "0.5524161", "0.5516517", "0.5514174", "0.55081177", "0.54794097", "0.5464952", "0.54598", "0.54575855", "0.54499036", "0.5447354", "0.54332024", "0.5430814", "0.54241616", "0.5411771", "0.54071456", "0.5391088", "0.5390502", "0.5389223", "0.5369678", "0.5351431", "0.5347448", "0.5344842", "0.5343777", "0.53380686", "0.53377986", "0.53351015", "0.5333072", "0.53301996", "0.5322483", "0.5318935", "0.53144026", "0.53135604", "0.53116775", "0.5299371", "0.52896297", "0.52879256", "0.5286227", "0.52850515", "0.5272376", "0.52682924", "0.5267206", "0.5257763", "0.52537763", "0.52508026", "0.52504313", "0.52483654", "0.5247326", "0.52436924", "0.52398556", "0.52348703", "0.52234155", "0.5218236", "0.52178556", "0.5217201", "0.5216113", "0.5215157", "0.5211345", "0.52066725", "0.5201287", "0.5199671", "0.5199233", "0.51942134", "0.5187745", "0.51864433", "0.51810825", "0.51784194", "0.5169118", "0.5156475", "0.5156475", "0.5156099", "0.51529664" ]
0.61519706
4
Move really the iterator to the next atom if it exists.
public void nextHard() { iterator.next(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }", "public void moveNext() {\n\t\tcurrentElement++;\n\t}", "private void prepareNext() {\n this.hasNext = false;\n while (!this.hasNext && this.nodesIterator.hasNext()) {\n this.next = this.nodesIterator.next();\n this.hasNext = this.computeHasNext();\n }\n }", "public void _next() {\n Object o;\n try {\n o = iter.next();\n } catch (NoSuchElementException e) {\n has_next = 0;\n return;\n }\n // resolve object\n if (o == null) {\n has_next = 1;\n next = null;\n } else if (o instanceof IdentityIF) {\n try {\n o = txn.getObject((IdentityIF)o, true);\n if (o == null) {\n _next();\n } else {\n has_next = 1;\n next = (F) o;\n }\n } catch (Throwable t) {\n has_next = -1;\n next = null;\n }\n } else {\n has_next = 1;\n next = (F) o;\n }\n }", "protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}", "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "public boolean MoveNext()\r\n { \r\n _index++;\r\n\r\n return _index < Count;\r\n }", "@Override\n public void advance() {\n if (isCurrent()) {\n prev = cursor;\n cursor = cursor.getNext();\n } else {\n throw new IllegalStateException(\"There is no current element.\");\n }\n }", "public void next() {\n if (hasNext()) {\n setPosition(position + 1);\n }\n }", "public void next() {\n\t\titerator.next();\n\t}", "public void moveFirst() {\n\t\tcurrentElement = 0;\n\t}", "@Override\n public Integer next() {\n if (!isPeeked && hasNext())\n return iterator.next();\n int toReturn = peekedElement;\n peekedElement = -1;\n isPeeked = false;\n return toReturn;\n }", "public void advance( )\r\n {\r\n\t if(isCurrent() != true){// Implemented by student.\r\n\t throw new IllegalStateException(\"no current element\");\r\n\t }\r\n\t else\r\n\t \t precursor = cursor;\r\n\t \t cursor = cursor.getLink(); // Implemented by student.\r\n }", "public final boolean MoveNext()\n\t{\n\t\tint size = _rcc.size();\n\n\t\tif (_curindex >= size)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t_curindex++;\n\n\t\treturn (_curindex < size);\n\t}", "@Override\n public Integer next() {\n Integer result = null;\n if (checkCurrentIterator(this.currentIterator) && this.currentIterator.hasNext()) {\n while (this.currentIterator.hasNext()) {\n return this.currentIterator.next();\n }\n } else if (it.hasNext()) {\n this.currentIterator = getIterator(it);\n return this.next();\n }\n return result;\n }", "@Override\n public T next() {\n setCurrent();\n T returnValue = current;\n current = null;\n elementToRemove = returnValue;\n return returnValue;\n }", "public Object next()\n {\n if(!hasNext())\n {\n throw new NoSuchElementException();\n //return null;\n }\n previous= position; //Remember for remove;\n isAfterNext = true; \n if(position == null) \n {\n position = first;// true == I have not called next \n }\n else\n {\n position = position.next;\n }\n return position.data;\n }", "public void advance() {\n if( mMatches.hasNext() ) {\n setCurrent( mMatches.next() );\n }\n }", "private void findNext() {\n \tthis.find(true);\n }", "@Override\n public Integer next() {\n if (next != null) {\n Integer next = this.next;\n this.next = null;\n return next;\n\n }\n\n return iterator.next();\n }", "public T next(){\r\n\t\t\tif (expectedModCount != modCount){\r\n\t\t\t\tthrow new ConcurrentModificationException();\r\n\t\t\t}\r\n\t\t\tT passed = current;\r\n\t\t\tif ((currentNode.next==endMarker)&&(currentNode.getLast()==current)){\r\n\t\t\t\tcurrentNode = endMarker;\r\n\t\t\t\tcurrent = null;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\r\n\t\t\tif (currentNode.indexOf(current)==currentNode.getArraySize()-1){\r\n\t\t\t\tcurrentNode = currentNode.next;\r\n\t\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\t\tidx = 0;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\t\r\n\t\t\tidx++;\r\n\t\t\tcurrent = currentNode.get(idx);\r\n\t\t\treturn passed;\r\n\t\t}", "public void next() {\n\t\telements[(currentElement - 1)].turnOff();\n\t\tif (elements.length > currentElement) {\n\t\t\telements[currentElement].turnOn();\n\t\t\tcurrentElement++;\n\t\t} else {\n\t\t\texit();\n\t\t}\n\t}", "public boolean moveToFirst() {\r\n\t\t\tpointer = 0;\r\n\t\t\treturn !pointerOut();\r\n\t\t}", "public boolean moveFirst(\n )\n {moveStart(); return moveNext();}", "private SAMRecord nextIfRecordIsUnmappedAtEOF(final SAMRecord record) {\n // when we find unmapped reads with -1 as their reference index, there should be no mapped reads later in the file.\n if (foundUnmappedEOFReads) { // previously found unmapped reads at the end of the file\n final SAMRecord unmappedRecord = backingIterator.next(); // since we called backingIterator.peek()\n\n if (!record.isSecondaryOrSupplementary()) {\n // update metrics\n final DuplicationMetrics metrics = getMetrics(record);\n ++metrics.UNMAPPED_READS;\n }\n\n // We should have no more in the queue\n if (!outputBuffer.isEmpty()) {\n throw new PicardException(\"Encountered unmapped reads at the end of the file, but the alignment start buffer was not empty.\");\n }\n return unmappedRecord; // unmapped end of file records can simply be emitted - no need to duplicate mark them\n } else {\n foundUnmappedEOFReads = true;\n // move past all mapped reads\n referenceIndex = header.getSequenceDictionary().getSequences().size();\n\n // do the final round of duplicate marking\n tryPollingTheToMarkQueue(true, null);\n\n // NB: we do not call next here since we will recurse and perhaps hit the flush, or re-enter the if with unmapped EOF reads\n return markDuplicatesAndGetTheNextAvailable(); // this should flush the buffer\n }\n }", "public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }", "void moveNext() {\n moveNextInternal();\n while (tokenType == CifTokenType.COMMENT) {\n moveNextInternal();\n }\n }", "@Override\n public Integer next() {\n if (cur != null) {\n int temp = cur.intValue();\n cur = null;\n return temp;\n }\n\n if (iter.hasNext()) {\n return iter.next();\n }\n\n return null;\n }", "public Object next()\n/* */ {\n/* 93 */ if (this.m_offset < this.m_array.length) {\n/* 94 */ Object localObject = this.m_array[this.m_offset];\n/* 95 */ advance();\n/* 96 */ return localObject;\n/* */ }\n/* 98 */ throw new NoSuchElementException();\n/* */ }", "MoveIterator() {\n _c = 1; _r = 1; _dir = NOWHERE;\n incr();\n }", "private void moveToNextSplit() {\n closeCurrentSplit();\n\n if (_splits.hasNext()) {\n StashSplit split = _splits.next();\n String key = String.format(\"%s/%s\", _rootPath, split.getKey());\n _currentIterator = new StashSplitIterator(_s3, _bucket, key);\n } else {\n _currentIterator = null;\n }\n }", "@Override\n public Integer next() {\n Integer res = next;\n advanceIter();\n return res;\n }", "@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }", "@Override\n public Item next() {\n if(!hasNext()) throw new NoSuchElementException(\"Failed to perform next because hasNext returned false!\");\n Item item = current.data;\n current = current.next;\n return item;\n }", "@Override\n public Integer next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n Integer toReturn = next;\n next = null;\n if (peekingIterator.hasNext()) {\n next = peekingIterator.next();\n }\n return toReturn;\n }", "public void advance () {\n while (currentGroup == null ||\n (!actionIter.hasNext() && groupIter.hasNext()))\n {\n currentGroup = groupIter.next();\n actionIter = actions.iterator();\n }\n // now get the next action (assuming we're in valid state)\n currentAction = (actionIter.hasNext() ? actionIter.next() : null);\n }", "private boolean checkNext(){\n boolean ret = this.hasNext;\n if ((this.allStatesIterator.hasNext()) || (this.allSubsetsIterator.hasNext()) || (this.allTransitionsIterator.hasNext())){\n hasNext = true;\n return hasNext;\n }\n hasNext = false;\n return ret;\n }", "public void moveTo(Token token){\n int index = currentToken;\n Token current;\n while((current = nextToken()) != null){\n if(current.identifier.equals(token.identifier)){\n currentToken = index+1;\n return;\n }\n ++index;\n }\n }", "@Override\n\tpublic boolean canMoveToNext() {\n\t\treturn true;\n\t}", "@Override\r\n public Object next() {\r\n if (this.hasNext()) {\r\n Object temp = this.nextMatchingFile;\r\n this.nextMatchingFile = this.callNext();\r\n return temp;\r\n } else {\r\n throw new NoSuchElementException(\"There is no other file object in the directory.\");\r\n }\r\n}", "@Override\n\tpublic Object next() {\n\t\treturn null;\n\t}", "public void next() {\n\t\t}", "@Nonnull\n public Optional<ENTITY> next()\n {\n currentItem = Optional.of(items.get(++index));\n update();\n return currentItem;\n }", "private void advance() {\n assert currentItemState == ItemProcessingState.COMPLETED || currentIndex == -1\n : \"moving to next but current item wasn't completed (state: \" + currentItemState + \")\";\n currentItemState = ItemProcessingState.INITIAL;\n currentIndex = findNextNonAborted(currentIndex + 1);\n retryCounter = 0;\n requestToExecute = null;\n executionResult = null;\n assert assertInvariants(ItemProcessingState.INITIAL);\n }", "@Override\n public E next() throws NoSuchElementException {\n if (j == size) throw new NoSuchElementException(\"No next element\");\n removable = true; // this element can subsequently be removed\n return data[j++]; // post-increment j, so it is ready for future call to next\n }", "@Override\n public IntVec3 next() {\n if(this.hasNext()){\n this.current = this.current.clone();\n } else throw new NoSuchElementException();\n if(this.current.x != this.end.x){\n this.current=this.current.incrX(this.xDir);\n } else if(this.current.y != this.end.y){\n this.current=IntVec3.get(0, this.current.y + this.yDir, this.current.z);\n } else if(this.current.z != this.end.z){\n this.current=IntVec3.get(0, 0, this.current.z + this.zDir);\n } else throw new NoSuchElementException();\n return this.current;\n }", "Object getNextElement() throws NoSuchElementException;", "@Override\n\tpublic Integer next() {\n\t return iterator.next();\n\t}", "@SuppressWarnings(\"unchecked cast\")\n @Override\n public T next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n lastNext = heap[cursor++];\n return (T) lastNext;\n }", "@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}", "@Override\n public Integer next() {\n if(peekedVal != null ){\n Integer next = peekedVal;\n peekedVal = null;\n return next;\n }\n if(!iter.hasNext()){\n throw new NoSuchElementException();\n }\n return iter.next();\n\n }", "private void setNextIterator() {\n\t\t\t\n\t\t\tfor (int i = index; i < inconsistencies.size(); i++){\n\t\t\t\tSet<LPGInconsistency> inconsistencyList = inconsistencies.get(i);\n\t\t\t\tif (!inconsistencyList.isEmpty()) {\n\t\t\t\t\titerator = inconsistencyList.iterator();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tindex++;\n\t\t\t}\n\t\t}", "@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}", "private boolean checkCurrentIterator(Iterator<Integer> iter) {\n return iter != null;\n }", "public Object next()\n/* */ {\n/* 84 */ if (this.m_offset < this.m_limit) {\n/* 85 */ return this.m_array[(this.m_offset++)];\n/* */ }\n/* 87 */ throw new NoSuchElementException();\n/* */ }", "private void advanceToNextReader(){\r\n\t\tcurrentReader = null;\r\n\t\treaderQueueIndex++;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\tpublic T next() throws NoSuchElementException {\n\t\t\ttry {\n//\t\t\t\tT object = (T)data[cursor * numCols + pinnedColumn];\n\t\t\t\tT object = get(cursor, pinnedColumn);\n\t\t\t\tlastRet = cursor++;\n\t\t\t\treturn object;\n\t\t\t} catch ( IndexOutOfBoundsException e ) {\n\t\t\t\tthrow new NoSuchElementException( \"You have iterated past the last element.\" + e.toString() );\n\t\t\t}\n\t\t}", "public final T next()\n {\n return skip(1);\n }", "@Override\n\tpublic Iterator<T> iteratorPostOrder() {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic T next() {\n\t\t\tmoveToNextIndex();\n\t\t\treturn objectAtIndex(_indicesByInsertOrder[_index]);\n\t\t}", "public boolean isLegalMove() {\n return iterator().hasNext();\n }", "private E next() {\n\t\tif (hasNext()) {\n\t\t\tE temp = iterator.data;\n\t\t\titerator = iterator.next;\n\t\t\treturn temp;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "protected void next() {\n\t\t// Next node\n\t\tnode = path.remove(0);\n\t\ttransition(NavigatorState.ROTATE_TO);\n\t}", "@Override\n E next();", "public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n position = -1;\n return null;\n }\n if (current != null && next.isSameNodeInfo(current)) {\n continue;\n } else {\n position++;\n current = next;\n return current;\n }\n }\n }", "public void nextMove(Field field) {\n for (int i = 1; i <= 9; i++) {\n if (field.setMarker(i, marker)) {\n break;\n }\n }\n }", "public void next() {\r\n\t\tif (curr != tail)\r\n\t\t\tcurr = curr.next();\r\n\t}", "@Override\n public T next() {\n if (nextItem == null)\n throw new NoSuchElementException();\n T item = nextItem;\n lastItem = nextItem;\n remainingItemCount.decrement();\n if (remainingItemCount.isZero())\n getNextReady();\n return item;\n }", "protected Tuple fetchNext() throws NoSuchElementException, TransactionAbortedException, DbException {\n\t\t// some code goes here\n\t\tTuple ret;\n\t\twhile (childOperator.hasNext()) {\n\t\t\tret = childOperator.next();\n\t\t\tif (pred.filter(ret))\n\t\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public Resource next() {\n if (wrapped == null || !wrapped.hasNext()) {\n throw new NoSuchElementException();\n }\n failFast(this);\n try {\n return wrapped.next();\n } finally {\n if (!wrapped.hasNext()) {\n wrapped = null;\n remove(this);\n }\n }\n }", "boolean nextItem();", "private void resetIterator() {\n\t\titerator = head;\n\t}", "@Override\r\n\t\t\tpublic T next() {\n\t\t\t\treturn sentinel.getValue();\r\n\t\t\t}", "private boolean setNextObject() {\n while (iterator.hasNext()) {\n final int row = iterator.next();\n if (!rowIsDeleted(row)) {\n rowNumber = row;\n nextRowSet = true;\n return true;\n }\n }\n return false;\n }", "public void next()\n {\n if (size != 0)\n {\n current = current.next();\n }\n }", "public void findNext() {\n\t if (value != null) {\n\t findValue();\n\t } else {\n\t find();\n\t }\n\t}", "public MapIterator advance()\n {\n this.MapItr = this.MapItr.rest(); \n \n return this;\n }", "private void moveMatchingNodeToNextElement(Node tmp) {\n for (int i = 0; i < ALL_LINKED_LISTS.size();i++) {\n Node next = ALL_LINKED_LISTS.get(i);\n if (tmp.equals(next)) {\n next = next.next;\n ALL_LINKED_LISTS.put(i, next);\n break;\n }\n }\n }", "public synchronized boolean next() throws IOException {\n\t\treturn next(true);\n\t}", "@Override\n\t\tpublic T next() {\n\t\t\treturn null;\n\t\t}", "@Override\n public Tuple next() {\n return nonDistinctNext();\n }", "public boolean next () throws Exception;", "boolean hasNext() {\n return !next.isSentinel();\n }", "private boolean moveToNextCell() {\r\n positionInArray++;\r\n while (positionInArray < data.length && data[positionInArray] == null) {\r\n positionInArray++;\r\n }\r\n return positionInArray < data.length;\r\n }", "@Override public T next() {\n T elem = null;\n if (hasNext()) {\n Nodo<T> nodo = pila.pop();\n elem = nodo.elemento;\n nodo = nodo.derecho;\n while(nodo != null){\n pila.push(nodo);\n nodo = nodo.izquierdo;\n }\n return elem;\n }\n return elem;\n }", "void nextSet(Entry e) {\r\n\t\t\tnext = e;\r\n\t\t}", "private void advanceObjectSummary()\n {\n while (objectSummaryIterator.hasNext() || result.isTruncated() || prefixesIterator.hasNext()) {\n while (objectSummaryIterator.hasNext()) {\n currentObjectSummary = objectSummaryIterator.next();\n // skips directories and empty objects\n if (!isDirectoryPlaceholder(currentObjectSummary) && currentObjectSummary.getSize() > 0) {\n return;\n }\n }\n\n // Exhausted \"objectSummaryIterator\" without finding a non-placeholder.\n if (result.isTruncated()) {\n fetchNextBatch();\n } else if (prefixesIterator.hasNext()) {\n prepareNextRequest();\n fetchNextBatch();\n }\n }\n\n // Truly nothing left to read.\n currentObjectSummary = null;\n }", "private void primeNext() {\n if (currentIterator != null && currentIterator.hasNext()) {\n return;\n }\n\n // Move to the next collection.\n collectionIndex++;\n\n // If we are out of bounds, we are done.\n if (collectionIndex >= collections.length) {\n currentIterator = null;\n return;\n }\n\n currentIterator = collections[collectionIndex].iterator();\n\n // This iterator may be empty, so just try to prime again.\n primeNext();\n }", "private void rewindBlockIteratorToFirstInlineeBlock(\n ListIterator<BasicBlock> blockIterator, BasicBlock firstInlineeBlock) {\n while (blockIterator.hasPrevious() && blockIterator.previous() != firstInlineeBlock) {\n // Do nothing.\n }\n assert IteratorUtils.peekNext(blockIterator) == firstInlineeBlock;\n }", "public E next() throws NoSuchElementException{\n\t\tPosition<E> aux=actual;\n\t\tif (aux == null) \n\t\t\tthrow new NoSuchElementException();\t\t\n\t\tthis.avanzar();\n\t\treturn aux.element();\n\t}", "@Override\n\tpublic void next() {\n\t\t\n\t}", "@Override\n public E next() {\n if(!hasWork()) {\n throw new NoSuchElementException();\n }\n E tmp = array[front];\n array[front] = null;\n size--;\n front = (front + 1) % capacity();\n return tmp;\n }", "private Token advance() {\n if(!isAtEnd()) current++;\n return previous();\n }", "protected boolean advance()\n/* */ {\n/* 66 */ while (++this.m_offset < this.m_array.length) {\n/* 67 */ if (this.m_array[this.m_offset] != null) {\n/* 68 */ return true;\n/* */ }\n/* */ }\n/* 71 */ return false;\n/* */ }", "public Item next(){\n if(current==null) {\n throw new NoSuchElementException();\n }\n\n Item item = (Item) current.item;\n current=current.next;\n return item;\n }", "public T next(){\r\n return itrArr[position++];\r\n }", "@Override\n public Object next() {\n Object retval = this.nextObject;\n advance();\n return retval;\n }", "@Override\n\tpublic void next()\n\t{\n\n\t}", "@Test\n public void hasNextFalseTest() {\n this.it.next();\n this.it.next();\n this.it.next();\n this.it.next();\n this.it.hasNext();\n this.it.hasNext();\n assertThat(false, is(this.it.hasNext()));\n }", "@Override\r\n public T next() {\r\n if (hasNext()) {\r\n node = node.next();\r\n nextCalled = true;\r\n return node.getData();\r\n }\r\n else {\r\n throw new NoSuchElementException(\"Illegal call to next(); \"\r\n + \"iterator is after end of list.\");\r\n }\r\n }" ]
[ "0.64263904", "0.63308126", "0.62021947", "0.619154", "0.61686677", "0.6110299", "0.6085182", "0.6073586", "0.6048532", "0.5980019", "0.59513944", "0.59326035", "0.58673465", "0.5866285", "0.585356", "0.5772701", "0.57551175", "0.5736469", "0.57085216", "0.56940854", "0.5689728", "0.5689547", "0.5687747", "0.5675598", "0.5662968", "0.56469756", "0.56337583", "0.5633726", "0.5613839", "0.56136477", "0.5613456", "0.56051064", "0.5583764", "0.55798995", "0.55784094", "0.5573399", "0.5548302", "0.55461377", "0.5544331", "0.5539037", "0.55363506", "0.5519868", "0.55155283", "0.5513616", "0.54935557", "0.5487682", "0.54801184", "0.54793787", "0.54724693", "0.5470191", "0.54531926", "0.543236", "0.53912354", "0.5389784", "0.538967", "0.53753036", "0.53664994", "0.53596246", "0.53537387", "0.53508985", "0.5347874", "0.5345712", "0.53255355", "0.5323309", "0.531792", "0.5311849", "0.530733", "0.53011477", "0.52959764", "0.5288092", "0.5281241", "0.52726924", "0.5269026", "0.5260646", "0.5251794", "0.5247875", "0.5246576", "0.5240797", "0.52391636", "0.5234177", "0.52325314", "0.52322376", "0.5232118", "0.5230812", "0.5230564", "0.5228841", "0.52259743", "0.5223727", "0.5212606", "0.52108216", "0.5207999", "0.52052224", "0.5202249", "0.519956", "0.51916784", "0.51910156", "0.51812756", "0.517855", "0.5171467", "0.517089" ]
0.6396588
1
/ Copypasting code is NOT cool! Please do not copy and paste my code as a submission to DMOJ. github.com/jdabtieu/competitiveprogramming
public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int sum = 0; for (int i = Integer.parseInt(br.readLine()); i > 0; i--) { sum += Integer.parseInt(br.readLine()); } System.out.println(sum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo4359a() {\n }", "private static void cajas() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString[] sA1 = {\"old\", \"cold\", \"new\", \"cool\", \"scary\", \"scared\", \"worrisome\", \"very big\", \"small\", \"powerful\", \"imaginative\", \"hungry\", \"sleepy\", \"tired\", \"aggresive\", \"handsome\", \"ambitious\", \"brave\", \"calm\", \"eager\", \"clean\", \"chubby\", \"colossal\", \"gigantic\", \"little\", \"gentle\", \"religious\", \"grumpy\", \"embarrassed\", \"bewildered\"};\n\t\tString[] sA2 = {\"catarpillar\", \"basketball player\", \"police man\", \"doctor\", \"waiter\", \"ducky\", \"puppy\", \"psychic\", \"kitty cat\", \"badger\", \"otter\", \"basilisk\", \"platypus\", \"martian\", \"italian man\", \"chef\", \"veterinarian\", \"student\", \"qa tester\", \"sysadmin\", \"project manager\", \"soccer player\", \"vegitarian\", \"eel\", \"fish\", \"baby\", \"water chestnut\", \"apple tree\", \"president\", \"mechanic\", \"salesman\", \"twitch streamer\", \"quarterback\", \"halfback\", \"coach\", \"jealous\"};\n\t\tString[] sA3 = {\"favorite\", \"epic\", \"awesome\", \"amazing\", \"gorgeous\", \"worst\", \"unique\", \"weird\", \"funny\", \"magic\", \"itchy\", \"silly\", \"wonderful\", \"magnificent\", \"nice\", \"jolly\", \"unsightly\", \"miniature\", \"microscopic\", \"massive\", \"best\", \"loltyler1.com discount code alpha\"};\n\t\tString[] sA4 = {\"bodyguard\", \"plates\", \"game\", \"stuffed animal\", \"stopwatch\", \"pillow\", \"victory royale\", \"xbox controller\", \"wallet\", \"chair\", \"racecar bed\", \"rocket\", \"water bed\", \"closet\", \"water bottle\", \"jetski\", \"headset\", \"printer\", \"hard drive\", \"cologne\", \"deoderant\", \"robe\", \"diamond pickaxe\", \"iron sword\", \"stone shovel\", \"usb flash drive\"};\n\t\tArrayList<Book> bookArr = new ArrayList<Book>();\n\t\tRandom r = new Random();\n\t\tBookTableGateway btg = new BookTableGateway();\n\t\tPublisherTableGateway ptg = new PublisherTableGateway();\n\t\tAuditTableGateway atg = new AuditTableGateway();\n\t\tbtg.setPTGate(ptg);\n\t\tbtg.setATGate(atg);\n\t\tString isbn;\n\t\tint isbnInt = 501242;\n\t\tfor(int i = 0; i < 100;i++) {\n\t\t\tbookArr.clear();\n\t\tfor(int j = 0; j < 1100;j++) {\n\t\t\tString name = \"The \" + sA1[r.nextInt(sA1.length)] + \" \" + sA2[r.nextInt(sA2.length)] + \" and his \" + sA3[r.nextInt(sA3.length)] + \" \" + sA4[r.nextInt(sA4.length)];\n\t\t\tint yearPublished = r.nextInt(1900) + 117;\n\t\t\tString summary = \"A book that exists\";\n\t\t\tint pSwitch = r.nextInt(7);\n\t\t\tint publisherID;\n\t\t\tswitch(pSwitch) {\n\t\t\tcase 0:\n\t\t\t\tpublisherID = 123;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpublisherID = 124;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpublisherID = 125;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tpublisherID = 126;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tpublisherID = 128;\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tpublisherID = 129;\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tpublisherID = 127;\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\tpublisherID = 123;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tisbn = String.valueOf(isbnInt);\n\t\t\tisbnInt++;\n\t\t\tbookArr.add(new Book(0, yearPublished, name, summary, isbn, null, null, new Publisher(publisherID, null)));\n\t\t\tlogger.info(\"generated \" + name);\n\t\t}\n\t\tbtg.insertBookArray(bookArr);\n\t\t}\n\t\t\n\t}", "void mo57278c();", "public void mo38117a() {\n }", "public void solution() {\n\t\t\n\t}", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "void mo21073d();", "void mo57277b();", "public void mo21785J() {\n }", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public static void main(String[] args) {\n \n //Joueur zidane=new Joueur(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,34,Sponsor.FLY_EMIRATES);\n // Attaquant messi=new Attaquant(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,10,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Milieu xavi=new Milieu(\"xavi\",\"xava\",\"go\", \"12/07/1990\",\"barcelone\",\"espagnol\",78.5f,1.85f, Sexe.HOMME,Pied.DROIT,Tenue.JOGGING,15,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Defenseur ramos=new Defenseur(\"xavi\",\"ramos\",\"ifjiej\", \"18/07/1990\",\"madrid\",\"espagnol\",78.5f,1.88f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES,PosteJoueur.MILIEU);\n //ramos.celebrer();\n //ramos.defendre();\n //Gardien neuer=new Gardien(\"neuer\",\"manuel\",\"ifjiej\", \"18/07/1991\",\"Bayern\",\"bayern\",88.5f,1.95f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES);\n //neuer.sortir();\n //Spectateur paul=new Spectateur(\"bollart\",12,false,false);\n //Arbitre guillaume=new Arbitre(\"ovigneur\",\"guillaume\",\"guigou\",\"12/07/1676\",\"Lille\", \"France\", 1.98f,1.67f,Sexe.HOMME,Pied.DROIT,Tenue.SHORT,48,Sponsor.MORELLE);\n Equipe marseille= new Equipe (NomEquipe.OM);\n Equipe paris= new Equipe (NomEquipe.PSG);\n Match match=new Match(TypeTerrain.GAZON,marseille,paris);\n match.simulerMatch();\n System.out.println(match.equipeGagnante);\n System.out.println(marseille.attaquants[2].getStatTir());\n \n Tournoi tournoi = new Tournoi(); \n tournoi.qualificaionsTournoi();\n tournoi.huitiemes();\n tournoi.quarts();\n tournoi.demi();\n tournoi.finale();\n \n System.out.println(tournoi.getEquipeEnLis());\n System.out.println(tournoi.getEquipeQualifie());\n System.out.println(tournoi.getEquipePerdanteHuit());\n System.out.println(tournoi.getEquipeGagnanteHuit());\n System.out.println(tournoi.getEquipePerdanteQuarts());\n System.out.println(tournoi.getEquipeGagnanteQuarts());\n System.out.println(tournoi.getEquipePerdanteDemi());\n System.out.println(tournoi.getEquipeGagnanteDemi());\n System.out.println(tournoi.getEquipeFinale());\n\n \n \n //Mise en place de \"l'interface\"\n Scanner sc = new Scanner(System.in);\n \n //Choix du mode de jeu\n System.out.println(\"\\n *** Choix du mode de jeu *** \\n\\t| tournoi : taper 1|\\n\\t| mode solo : taper 2|\");\n int modeDeJeu = sc.nextInt();\n sc.nextLine(); //On vide la ligne\n \n //AJOUTER UNE EXCEPTION POUR LE MODE DE JEU\n \n \n \n //Choix de l'equipe a l'aide d'un scanner\n// System.out.println(\"Choisissez votre équipe :\");\n// NomEquipe equipe;\n// Equipe equipeChoisit = new Equipe(nomEquipe);\n \n\n\n /*Scanner sc = new Scanner(System.in);\n System.out.println(\"Voulez vous disputer un match ? Oui=1 ou NON=2 \");\n int i = sc.nextInt();\n System.out.println(\"Saisissez le numéro de l'equipe avec laquelle vous voulez Jouez \"\n + \"PSG :1\"\n + \"MARSEILLE:2 \");\n //On vide la ligne avant d'en lire une autre\n sc.nextLine();\n int equipe = sc.nextInt(); \n System.out.println(\"FIN ! \");\n \n switch(equipe) {\n case 1:\n Equipe paris= new Equipe (NomEquipe.PSG);\n System.out.println(paris.stade);\n break;\n case 2 :\n Equipe marseille= new Equipe (NomEquipe.OM);\n System.out.println(marseille.stade);\n \n }*/\n }", "public void mo21779D() {\n }", "public static void main(String[] args) {\n String input_one = \"Fourscore and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battlefield of that war. We have come to dedicate a portion of that field as a final resting-place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we cannot dedicate — we cannot consecrate — we cannot hallow — this ground. The brave men, living and dead, who struggled here have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us — that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion — that we here highly resolve that these dead shall not have died in vain — that this nation shall have a new birth of freedom and that government of the people, by the people, for the people, shall not perish from the earth.\";\r\n String input_two = \"Oh, say can you see, by the dawn's early light,What so proudly we hailed at the twilight's last gleaming?Whose broad stripes and brightstars,through the perilous fight,O'er the ramparts we watched, were so gallantly streaming?And the rockets' red glare, the bombs bursting in air,Gave proof through the night that our flag was still there.O say, does that star-spangled banner yet waveO'er the land of the free and the home of the brave?On the shore, dimly seen through the mists of the deep,Wherethe foe's haughty host in dread silence reposes,What isthatwhichthe breeze, o'er the towering steep,As it fitfully blows, now conceals, now discloses?Now it catches the gleam of the morning's first beam,In full glory reflected now shines on the stream:'Tis the starspangled banner! O long may it waveO'er the land of the free and the home of the brave. And where is that band who so vauntingly swore That the havoc of war and the battle's confusionA home and a country should leaveus no more?Their blood has wiped out their foulfootstep'spollution.Norefuge could save the hireling and slaveFrom the terror of flight, or the gloom of the grave:And the star-spangled banner in triumph doth waveO'er theland of the free and the home of the brave.Oh! thus be it ever, when freemen shall stand Between their loved homes and the war's desolation!Blest with victory and peace, may the heaven-rescued land Praise the Power that hath made and preserved us a nation.Then conquer we must, for our cause it is just,And this be our motto: In God is our trust. And the star-spangled banner forever shall waveO'er the land of the free and the home of \";\r\n\r\n String input_upper = input_one.toUpperCase();\r\n String input_upper2 = input_two.toUpperCase();\r\n // System.out.println(input_upper);\r\n String[] pattern = { \"FREE\", \"BRAVE\", \"NATION\" };\r\n // Brute Force algorithm\r\n System.out.println();\r\n System.out.println(\"**************************** OUTPUT OF FIRST INPUT FILE: *****************************\");\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBRUTE FORCE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BF_Search bf = new BF_Search();\r\n long bf_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n bf.brute_force_search(input_upper, pattern[i]);\r\n }\r\n long bf_endTime = System.nanoTime();\r\n bf.printBF_Comparison();\r\n System.out.println(\"It took: \" + (bf_endTime - bf_startTime) + \" nanoseconds\");\r\n\r\n // Knuth Moris Pratt algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tKNUTH MORIS PRATT ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n KMP_Search kmp = new KMP_Search();\r\n long kmp_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n kmp.KMPSearch(pattern[i], input_upper);\r\n if (i == pattern.length - 1) {\r\n kmp.printKM_Comparisons();\r\n }\r\n }\r\n long kmp_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (kmp_endTime - kmp_startTime) + \" nanoseconds\");\r\n\r\n // Boyer Moore algorithm\r\n System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBOYER MOORE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BM_Search bm = new BM_Search();\r\n char[] bm_input = input_upper.toCharArray();\r\n char[] bm_pattern = new char[] {};\r\n long bm_startTime = System.nanoTime();\r\n for (String i : pattern) {\r\n bm_pattern = i.toCharArray();\r\n bm.bm_search(bm_input, bm_pattern);\r\n if (pattern[pattern.length - 1] == i) {\r\n bm.printBM_Comparison();\r\n }\r\n }\r\n long bm_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (bm_endTime - bm_startTime) + \" nanoseconds\");\r\n\r\n // Rabin Karp algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tRABIN KARP ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n RKA_Search rk = new RKA_Search();\r\n int q = 101;\r\n long rk_startTime = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n rk.rka_search(pattern[i], input_upper, q);\r\n if (i == pattern.length - 1) {\r\n rk.printRKA_Comparison();\r\n }\r\n }\r\n long rk_endTime = System.nanoTime();\r\n System.out.println(\"It took: \" + (rk_endTime - rk_startTime) + \" nanoseconds\");\r\n System.out.println();\r\n System.out.println(\"************************* OUTPUT OF SECOND INPUT FILE: *******************************\");\r\n // Brute Force algorithm\r\n System.out.println();\r\n // System.out.println();\r\n System.out.println(\"\\t\\t\\t\\t\\tBRUTE FORCE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BF_Search bf2 = new BF_Search();\r\n long bf_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n bf.brute_force_search(input_upper2, pattern[i]);\r\n }\r\n long bf_endTime2 = System.nanoTime();\r\n bf2.printBF_Comparison();\r\n System.out.println(\"It took: \" + (bf_endTime2 - bf_startTime1) + \" nanoseconds\");\r\n\r\n // Knuth Moris Pratt algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tKNUTH MORIS PRATT ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n KMP_Search kmp2 = new KMP_Search();\r\n long kmp_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n kmp2.KMPSearch(pattern[i], input_upper2);\r\n if (i == pattern.length - 1) {\r\n kmp2.printKM_Comparisons();\r\n }\r\n }\r\n long kmp_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (kmp_endTime2 - kmp_startTime1) + \" nanoseconds\");\r\n\r\n // Boyer Moore algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tBOYER MOORE ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n BM_Search bm2 = new BM_Search();\r\n char[] bm_input2 = input_upper.toCharArray();\r\n char[] bm_pattern2 = new char[] {};\r\n long bm_startTime1 = System.nanoTime();\r\n for (String i : pattern) {\r\n bm_pattern2 = i.toCharArray();\r\n bm.bm_search(bm_input2, bm_pattern2);\r\n if (pattern[pattern.length - 1] == i) {\r\n bm2.printBM_Comparison();\r\n }\r\n }\r\n long bm_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (bm_endTime2 - bm_startTime1) + \" nanoseconds\");\r\n\r\n // Rabin Karp algorithm\r\n System.out.println(\"\\t\\t\\t\\t\\tRABIN KARP ALGORITHM:\");\r\n System.out.println(\"=====================================================================================\");\r\n RKA_Search rk2 = new RKA_Search();\r\n int q2 = 101;\r\n long rk_startTime1 = System.nanoTime();\r\n for (int i = 0; i < pattern.length; i++) {\r\n rk2.rka_search(pattern[i], input_upper2, q2);\r\n if (i == pattern.length - 1) {\r\n rk2.printRKA_Comparison();\r\n }\r\n }\r\n long rk_endTime2 = System.nanoTime();\r\n System.out.println(\"It took: \" + (rk_endTime2 - rk_startTime1) + \" nanoseconds\");\r\n }", "private void kk12() {\n\n\t}", "Programming(){\n\t}", "void mo17013d();", "public void gored() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public void mo21877s() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "void mo67924c();", "public void mo21793R() {\n }", "public void mo3749d() {\n }", "private stendhal() {\n\t}", "public void mo5382o() {\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "public void mo3376r() {\n }", "public static void main(String[] args) throws IOException {\n // enables dynamic data-loading for file-based sorting\n GlobalConfig.getInstance().setInMemoryObjectThreshold(1000000);\n\n\t\t// instantiates the CSV data source for reading records\n // \"cddb\" is the source identifier\n CSVSource dataSource = new CSVSource(\"febrl\", new File(\"febrl.csv\"));\n System.err.println(\" Entrada:\" + dataSource.getExtractedRecordCount());\n\n dataSource.enableHeader();\n\n // uses the id attribute for the object id - this call is optional, if no id attribute is set, DuDe will generate its own object ids\n dataSource.addIdAttributes(\"id\");\n\n\t\t//instantiates the CSV data source for reading the goldstandard\n // \"goldstandard\" is the goldstandard identifier\n CSVSource goldstandardSource = new CSVSource(\"goldstandard\", new File(\"gold_febrl.csv\"));\n goldstandardSource.enableHeader();\n\n\t\t// instantiate the gold standard\n // \"cddb\" is the source identifier\n GoldStandard goldStandard = new GoldStandard(goldstandardSource);\n goldStandard.setFirstElementsObjectIdAttributes(\"febrl1_id\");\n goldStandard.setSecondElementsObjectIdAttributes(\"febrl2_id\");\n goldStandard.setSourceIdLiteral(\"febrl\");\n \n\n \nAlgorithm algorithm = new NaiveDuplicateDetection();\n //Algorithm algorithm = new SortedNeighborhoodMethod(sortingKey, 20);\n \n\n\t\t// instantiates the naive duplicate detection algorithm\n //Algorithm algorithm = new NaiveDuplicateDetection();\n //algorithm.enableInMemoryProcessing();\n // adds the \"data\" to the algorithm\n algorithm.addDataSource(dataSource);\n\n\t\t// instantiates the similarity function\n // checks the Levenshtein distance of the CD titles\n SimilarityFunction similarityFunction = new LevenshteinDistanceFunction(\"rec2_id\");\n //LevenshteinDistanceFunction similarityFunction = new LevenshteinDistanceFunction(\"artist\");\n\n\t\t// writes the duplicate pairs onto the console by using the Json syntax\n //DuDeOutput output = new JsonOutput(System.out);\n\t\t// instantiate statistic component to calculate key figures\n // like runtime, number of comparisons, precision and recall\n StatisticComponent statistic = new StatisticComponent(goldStandard, algorithm);\n\n\t\t// the actual computation starts\n // the algorithm returns each generated pair step-by-step\n statistic.setStartTime();\n long start = System.currentTimeMillis();\n\n for (DuDeObjectPair pair : algorithm) {\n final double similarity = similarityFunction.getSimilarity(pair);\n if (similarity ==1) {\n\t\t\t\t// if it is a duplicate - print it and add it to the\n // statistic component as duplicate\n //output.write(pair);\n //System.out.println();\n System.err.println(\" SAida ++++++++++++++++++++++++++++++=\" + pair.getFirstElementObjectData().toString());\n statistic.addDuplicate(pair);\n } else {\n\t\t\t\t// if it is not a duplicate, add it to the statistic\n // component as non-duplicate\n // System.out.println(\" &&&&&&\");\n\n statistic.addNonDuplicate(pair);\n }\n }\n statistic.setEndTime();\n \n\n // Write statistics\n StatisticOutput statisticOutput = new SimpleStatisticOutput(System.out, statistic);\n statisticOutput.writeStatistics();\n System.out.println(\"Experiment finished.\" + (System.currentTimeMillis() - start) + \" ms\");\n \n\n // clean up\n dataSource.cleanUp();\n //goldStandard.close();\n }", "public void mo21791P() {\n }", "public void smell() {\n\t\t\n\t}", "private void m50366E() {\n }", "void mo41083a();", "public void mo21794S() {\n }", "public void mo97908d() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void challenge7() {\n\n\t}", "void mo21072c();", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void mo21782G() {\n }", "public abstract void mo56925d();", "public void mo12930a() {\n }", "void mo1941j();", "private java.util.LinkedList<com.tencent.mm.plugin.game.model.d> aRy() {\n /*\n r8 = this;\n r3 = new java.util.LinkedList;\n r3.<init>();\n r0 = r8.njD;\n r0 = r0.nop;\n if (r0 != 0) goto L_0x000d;\n L_0x000b:\n r0 = r3;\n L_0x000c:\n return r0;\n L_0x000d:\n r0 = r8.nja;\n r1 = r0 + 1;\n r0 = r8.nja;\n r0 = r0 / 15;\n r0 = r0 + 901;\n r2 = r8.njD;\n r2 = r2.nop;\n r5 = r2.iterator();\n r2 = r1;\n r1 = r0;\n L_0x0021:\n r0 = r5.hasNext();\n if (r0 == 0) goto L_0x007a;\n L_0x0027:\n r0 = r5.next();\n r0 = (com.tencent.mm.plugin.game.c.c) r0;\n r4 = 0;\n r6 = r0.kzz;\n switch(r6) {\n case 1: goto L_0x0046;\n case 2: goto L_0x0056;\n default: goto L_0x0033;\n };\n L_0x0033:\n r0 = r1;\n r1 = r2;\n r2 = r4;\n L_0x0036:\n if (r2 == 0) goto L_0x007c;\n L_0x0038:\n r4 = 11;\n r2.scene = r4;\n r4 = 1111; // 0x457 float:1.557E-42 double:5.49E-321;\n r2.fGe = r4;\n r3.add(r2);\n r2 = r1;\n r1 = r0;\n goto L_0x0021;\n L_0x0046:\n r0 = r0.nkO;\n r0 = com.tencent.mm.plugin.game.model.ad.a(r0);\n if (r0 == 0) goto L_0x0083;\n L_0x004e:\n r4 = r2 + 1;\n r0.position = r2;\n r2 = r0;\n r0 = r1;\n r1 = r4;\n goto L_0x0036;\n L_0x0056:\n r6 = r0.nkR;\n if (r6 == 0) goto L_0x0033;\n L_0x005a:\n r4 = r0.nkR;\n r4 = r4.nkO;\n r4 = com.tencent.mm.plugin.game.model.ad.a(r4);\n if (r4 == 0) goto L_0x007f;\n L_0x0064:\n r6 = 1;\n r4.type = r6;\n r6 = r0.nkR;\n r6 = r6.nkQ;\n r4.ngB = r6;\n r0 = r0.nkR;\n r0 = r0.nkP;\n r4.ngC = r0;\n r0 = r1 + 1;\n r4.position = r1;\n r1 = r2;\n r2 = r4;\n goto L_0x0036;\n L_0x007a:\n r0 = r3;\n goto L_0x000c;\n L_0x007c:\n r2 = r1;\n r1 = r0;\n goto L_0x0021;\n L_0x007f:\n r0 = r1;\n r1 = r2;\n r2 = r4;\n goto L_0x0036;\n L_0x0083:\n r7 = r0;\n r0 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0036;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.game.model.al.aRy():java.util.LinkedList<com.tencent.mm.plugin.game.model.d>\");\n }", "public void mo6081a() {\n }", "public static void main(String[] args) {\n countDuplicateCharacters(\"My name is Fernando\");\n\n //2. Reverse an Arraylist.\n reverseArrayList();\n\n //3. Check if a particular key exists in HashMap.\n //4. Convert keys of a map to a list.\n checkKeyAndCreateList();\n\n //5. Copy all elements of a HashSet to an Object array.\n hashToObject();\n\n //6. Get highest and lowest value stored in TreeSet\n maxAndMinValueTreeSet();\n\n //7. Sort ArrayList of Strings alphabetically.\n sortArrayList();\n\n //8. Get Set view of keys from HashTable.\n getViewsHashTable();\n\n }", "@Override\n\tpublic void challenge9() {\n\n\t}", "void mo41086b();", "void pramitiTechTutorials() {\n\t\n}", "void mo60893b();", "public interface IKataSolution\n extends IKataCommonSolution {\n\n public enum ACTION {\n TURN_LEFT, TURN_RIGHT, FORWARD, STAY\n }\n\n public enum ORIENTATION {\n UP (270), DOWN(90), LEFT(0), RIGHT(180);\n public int angle;\n ORIENTATION (int _angle) {\n angle = _angle;\n }\n public ORIENTATION moveLeft () {\n switch (this) {\n case UP: return LEFT;\n case DOWN: return RIGHT;\n case LEFT: return DOWN;\n case RIGHT: return UP;\n }\n return this;\n }\n public ORIENTATION moveRight () {\n switch (this) {\n case UP: return RIGHT;\n case DOWN: return LEFT;\n case LEFT: return UP;\n case RIGHT: return DOWN;\n }\n return this;\n }\n }\n\n public enum ITEM {\n EMPTY, PLANT, ANIMAL, END\n }\n\n public abstract class Animal {\n /**\n * Number of plants the animal ate\n */\n public int points;\n /**\n * Method to react to changing environmental conditions\n *\n * @param orientation animal's current orientation\n * @param view item currently in front of animal\n * @return action to do\n */\n public abstract ACTION react (ORIENTATION orientation, ITEM view);\n }\n\n /**\n * Factory method for an animal\n *\n * @param count count of animals to create\n * @param lastGeneration array of 'Animal' from last generation\n * @return array of 'Animal' instances\n */\n public abstract Animal[] createGeneration (int count, Animal[] lastGeneration);\n\n /**\n * If true, last generation will be visualized\n */\n public boolean visualizeLastGeneration ();\n\n /**\n * Defines how many generations of evolution should be tested\n * (minimum is 100, maximum is 10000)\n *\n * @return count of generations to test\n */\n public int countOfGenerations ();\n}", "private void level7() {\n }", "public void mo21789N() {\n }", "public static void doExercise4() {\n // TODO: Complete Exercise 4 Below\n\n }", "public static void main(String[] args) {\n\t\t\tinitCapFormat(\"bengaluru is my city\");\n\t\t// 2.TODO \"sumit\" - \"itsum\"\n\t\t\tinputsInterchangeable(\"sumit\", \"itsum\");\n\t\t// 3.TODO 6699 - 69\n\t\t\t// 6*9+6+9\n\t\t// 4.TODO LIKE operator\n\t\t\t// SQL_LINUX.odt\n\t\t// 5.TODO numbers div by 5 in 1....10/5cr\n\t\t\tcountDivisibles(1, 100, 5);\n\t\t// 6.TODO count vowels in statement\n\t\t\tgetCountofVowels(\"THIS website is aw3som3\");\n\t\t// 7.CSS bold\n\t\t\t// <strong> or <b> tag also, you can try with css <span style=\"font-weight:bold\">text</span>\n\n\t}", "public void mo9848a() {\n }", "void mo54435d();", "void mo119581a();", "void mo17012c();", "void mo72113b();", "public final void mo51373a() {\n }", "@Override\n\tprotected void logic() {\n\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "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 challenge17() {\n\n\t}", "public abstract void mo27385c();", "public static void main(String[] args) {\n Homework1 hw1 = new Homework1();\n\n System.out.println(\"===Problem 1===\");\n hw1.problem1();\n\n System.out.println(\"===Problem 2===\");\n System.out.println(hw1.topInt(1.5));\n System.out.println(hw1.topInt(5.1));\n System.out.println(hw1.topInt(1.0));\n System.out.println(hw1.topInt(-4.2));\n\n\n System.out.println(\"===Problem 3===\");\n hw1.draw4x4('-');\n hw1.draw4x4('4');\n\n System.out.println(\"===Problem 4===\");\n System.out.println(hw1.citationName(\"Alastair\", \"Reynolds\"));\n System.out.println(hw1.citationName(\"Grace\", \"Hopper\"));\n\n System.out.println(\"===Problem 5===\");\n System.out.println(String.valueOf(hw1.min3(1.0, 2.0, 3.0)));\n System.out.println(String.valueOf(hw1.min3(4.0, 3.0, 2.0)));\n System.out.println(String.valueOf(hw1.min3(0.5, 0.1, 0.5)));\n \n System.out.println(\"===Problem 6===\");\n System.out.println(hw1.fibonacci(0));\n System.out.println(hw1.fibonacci(1));\n System.out.println(hw1.fibonacci(2));\n System.out.println(hw1.fibonacci(3));\n System.out.println(hw1.fibonacci(10));\n System.out.println(hw1.fibonacci(25));\n \n \n System.out.println(\"===Problem 7===\");\n //System.out.println(hw1.isPalindrome(\"racecar\"));\n //System.out.println(hw1.isPalindrome(\"cat\"));\n //System.out.println(hw1.isPalindrome(\"hannah\"));\n //System.out.println(hw1.isPalindrome(\"saippuakivikauppias\"));\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public static void doExercise3() {\n // TODO: Complete Exercise 3 Below\n\n }", "@Override\n\tpublic void challenge6() {\n\n\t}", "private void strin() {\n\n\t}", "void mo28306a();", "public abstract void mo70713b();", "public void mo55254a() {\n }", "public static void doExercise5() {\n // TODO: Complete Exercise 5 Below\n\n }", "void mo119582b();", "void mo5017a();", "void mo17023d();", "void mo80457c();", "public static void listing5_14() {\n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public void mo21787L() {\n }", "public static void main(String abc[]) throws Exception{\n\tScanner scan=new Scanner(System.in); //for taking the input from user\n\t//Asking the user for the description\n\tSystem.out.println(\"Please mention the description of the ontology\");\n\tString s1_des;\n\ts1_des=scan.nextLine();\n\t//Asking the user for the competency questions\n\tSystem.out.println(\"Please mention the Competency Questions related to the Ontology\");\n\tString s2_cq;\n\ts2_cq=scan.nextLine();\t\n\t//This java file has code for OWL file and classifying different properties\n\tOwl_Lexical owl_ontology=new Owl_Lexical();\n\towl_ontology.owlOntology();\n\t//Saving the description of the ontology in a file\n\tBufferedWriter writer_des=new BufferedWriter(new FileWriter(\"ontology_description\"));\n\twriter_des.write(s1_des);\n\twriter_des.close();\n\t//Saving the competency questions of the ontology in a file\n\tBufferedWriter writer_cq=new BufferedWriter(new FileWriter(\"ontology_cq\"));\n\twriter_cq.write(s2_cq);\n\twriter_cq.close();\n\t//Stop words from competency questions are removed\n\tStopWords_CqOntology stop_cq=new StopWords_CqOntology();\n\tstop_cq.stopWordsCQOntology();\n\t//Stop Words from the description are removed\n\tStopWords_Ontology stop_des=new StopWords_Ontology();\n\tstop_des.stopWordsDesOntology();\t\n\t\n/*--------------------------------EXECUTION PART------------------------------------------------\n <-------------------------------STRUCTURAL ANALYSIS---------------------------------------------->\t\n Properties obtained from the OWL file are analysed. Doc2Vec is used and cosine similarity \n gives the numeric score of the ontology against each ODP.The below functions call the respective\n class that holds the code for each Structural Property that we have taken under consideration \n for the analysis. */\n\t// 1. CHAIN OF PROPERTY\n\tParagraphVectorsChainOfProperty cp=new ParagraphVectorsChainOfProperty();\n\tcp.chainOf();\n\t// 2. DATA DOMAIN Property\n\tParagraphVectorsDataPropertyDomain pd=new ParagraphVectorsDataPropertyDomain();\n\tpd.dataPropertyDomain();\n\t// 3. DATA RANGE PROPERTY\n\tParagraphVectorsDataPropertyRange pr=new ParagraphVectorsDataPropertyRange();\n\tpr.dataPropertyRange();\n\t// 4. DISJOINT CLASSES\n\tParagraphVectorsDisjointClasses dc=new ParagraphVectorsDisjointClasses();\n\tdc.disjointClasses();\n\t// 5. OBJECT DOMAIN PROPERTY\n\tParagraphVectorsObjectDomainProperty od=new ParagraphVectorsObjectDomainProperty();\n\tod.objectDomainProperty();\n\t// 6. OBJECT RANGE PROPERTY\n\tParagraphVectorsObjectPropertyRange op=new ParagraphVectorsObjectPropertyRange();\n\top.objectRangeProperty();\n\t// 7. SUB-CLASS PROPERTY\n\tParagraphVectorsSubClassProperty sc=new ParagraphVectorsSubClassProperty();\n\tsc.subClassProperty();\n\t// 8. SUB-DATA PROPERTY\n\tParagraphVectorsSubDataProperty sd=new ParagraphVectorsSubDataProperty();\n\tsd.subDataProperty();\n\t// 9. SUB-OBJECT PROPERTY\n\tParagraphVectorsSubObjectProperty so=new ParagraphVectorsSubObjectProperty();\n\tso.subObjectProperty();\n\t\n/*<-----------------------------------BEHAVIOURAL ANALYSIS-------------------------------------------->\n The Competency Question of the ontology are saved and mappped with the competency questions \n of the ODPs in the list. The ODPs obtained manchester site do not have competency questions, but \n the rest all ontologies have.So, approximately 15 among the 73 ODPs present are without CQs\t\n\t*/\n\tParagraphVectors_CQ cq=new ParagraphVectors_CQ();\n\tcq.cqMapping();\n/*<------------------------------------LEXICAL ANALYSIS------------------------------------------------>\n Lexical Analysis involves the analysis by use of the description and by the names of classes\n properties present in the OWL file. The description along with the description(classes and properties) \n of the OWL file of the ontology are compared against the ODPs. All the ODPs present have description\n *along with the classes and properties.\n */\n // 1. DESCRIPTION\n\tParagraphVectorsTextExample te=new ParagraphVectorsTextExample();\n\tte.description();\n\t// 2. SIGNATURE\n\tParagraphVectors_Signature vs=new ParagraphVectors_Signature();\n\tvs.signature();\n/*<--------------------------------------INTEGRATION OF SCORES----------------------------------------->\n * After obtaning the numeric values of lexical, structural and behavioural parts, the cosine \n * similarity scores are combined together of the ontology and the ODPs and placed in a single\n * file.\n */\n\tIntegration_Of_Scores os=new Integration_Of_Scores();\n\tos.integratingScores();\n/*<----------------------------------------NORMALISING SCORES------------------------------------------->\n * After all the scores of an ODP (against the given ontology) are added up, the scores are normalised\n * so that these range between 0 to 1 and we can set a particular threshold for the ODP recommendations\n */\n\tNormalising_Scores ns=new Normalising_Scores();\n\tns.normalisingScores();\n/*<------------------------------------------ODP RECOMMENDER-------------------------------------------->\n * \tAfter we have normalised the scores against the ODPs, we run the this java program from where the\n * recommendations can be suggested. \n */\n ODPRecommender reco=new ODPRecommender();\n reco.odpRecommender();\n\t\n}", "void mo72114c();", "void mo4833b();", "private void manual() {\n State q1 = new State(\"q1\", \"ID\");\n State q2 = new State(\"q2\", \"IF\");\n State q3 = new State(\"q3\", \"ID\");\n State q4 = new State(\"q4\", \"CONSTANTE\");\n State q5 = new State(\"q5\", \"ABRE_PARENTESES\");\n State q6 = new State(\"q6\", \"FECHA_PARENTESES\");\n State q7 = new State(\"q7\", \"OPERADOR_MAIOR\");\n State q8 = new State(\"q8\", \"OPERADOR_MENOR\");\n State q9 = new State(\"q9\", \"OPERADOR_DIFERENTE\");\n State q10 = new State(\"q10\", \"ID\");\n State q11 = new State(\"q11\", \"ID\");\n State q12 = new State(\"q12\", \"ID\");\n State q13 = new State(\"q13\", \"ID\");\n State q14 = new State(\"q14\", \"BEGIN\");\n State q15 = new State(\"q15\", \"ID\");\n State q16 = new State(\"q16\", \"ID\");\n State q17 = new State(\"q17\", \"END\");\n State q18 = new State(\"q18\", \"ESPACO\");\n State q19 = new State(\"q19\", \"ID\");\n State q20 = new State(\"q20\", \"ID\");\n State q21 = new State(\"q21\", \"ELSE\");\n\n // IF\n q0.put(\"[i]\", q1);\n q1.put(\"[f]\", q2);\n q1.put(\"[^\\\\Wf]\", q3);\n q2.put(\"[\\\\w]\", q3);\n\n // ID\n q0.put(\"[^\\\\Wbei0-9_]\", q3);\n q3.put(\"[\\\\w]\", q3);\n\n // CONSTANTE\n q0.put(\"[\\\\d]\", q4);\n q4.put(\"[\\\\d]\", q4);\n\n // ABRE_PARENTESES\n q0.put(\"[(]\", q5);\n\n // ABRE_PARENTESES\n q0.put(\"[)]\", q6);\n\n // OPERADOR_MAIOR\n q0.put(\"[>]\", q7);\n\n // OPERADOR_MENOR\n q0.put(\"[<]\", q8);\n\n // OPERADOR_DIFERENTE\n q0.put(\"[#]\", q9);\n\n // BEGIN\n q0.put(\"[b]\", q10);\n q10.put(\"[e]\", q11);\n q11.put(\"[g]\", q12);\n q12.put(\"[i]\", q13);\n q13.put(\"[n]\", q14);\n q10.put(\"[^\\\\We]\", q3);\n q11.put(\"[^\\\\Wg]\", q3);\n q12.put(\"[^\\\\Wi]\", q3);\n q13.put(\"[^\\\\Wn]\", q3);\n q14.put(\"[\\\\w]\", q3);\n\n // END\n q0.put(\"[e]\", q15);\n q15.put(\"[n]\", q16);\n q16.put(\"[d]\", q17);\n q15.put(\"[^\\\\Wnl]\", q3);\n q16.put(\"[^\\\\Wd]\", q3);\n q17.put(\"[\\\\w]\", q3);\n\n // ELSE\n q15.put(\"[l]\", q19);\n q19.put(\"[s]\", q20);\n q20.put(\"[e]\", q21);\n q19.put(\"[^\\\\Ws]\", q3);\n q20.put(\"[^\\\\We]\", q3);\n q21.put(\"[\\\\w]\", q3);\n\n // ESPACO\n q0.put(\"[\\\\s]\", q18);\n }", "public abstract void mo27386d();", "public void redibujarAlgoformers() {\n\t\t\n\t}", "public void mo21795T() {\n }", "void mo21076g();", "public final void mo91715d() {\n }", "public static void main(String[] args) {\n // Q1: number of hours in a day (byte)\n byte numberOfHoursInaDay =24;\n System.out.println(\"\\nnumberOfHoursInaDay:24 \");\n // Q2.Max.no of days in an year\n short maxNumberOfTheDayInaYear = 366;\n System.out.println(\"\\nmaxNumberOfTheDaysInaYear:366\");\n // Q3.Total number of employees in an organization\n int totalNumberOfEmployeesInIbm = 50000;\n System.out.println(\"\\ntotalNumberOfEmployeesInIbm:50000\");\n //Q4.Population in a country\n long numberOfPopulation = 2000000000L;\n System.out.println(\"\\nnumberOfPopulation : 2000000000L\");\n //Q5.Interest rate\n float interestRate = 1.9f;\n System.out.println(\"\\\\nCurrent interest rate:\\\" + interestRate\");\n //Q6. Balance in a bank account\n long accountBalance = 50000000L;\n System.out.println(\"\\naccountBalance = 50000000L\");\n boolean doesTheSunRiseFromTheWest = true;\n System.out.println(\"doesTheSunRiseFromTheWest? : \" + doesTheSunRiseFromTheWest);\n\n // Q7.Initials of your name\n char firstInitial = 'S';\n char lastInitial = 'M';\n System.out.println(\"My initials: \" +firstInitial + lastInitial);\n\n\n\n\n\n }" ]
[ "0.57593536", "0.5756258", "0.5668528", "0.5652473", "0.56464267", "0.56439096", "0.563277", "0.56286174", "0.5610884", "0.55957544", "0.55867606", "0.557207", "0.5549391", "0.5539747", "0.551916", "0.55172867", "0.5500393", "0.5491488", "0.5487979", "0.547702", "0.54715794", "0.546203", "0.5459611", "0.5447026", "0.5436027", "0.54314", "0.5422541", "0.5414234", "0.53948987", "0.53945774", "0.5386643", "0.538475", "0.5380588", "0.53803474", "0.5378531", "0.5372218", "0.5371607", "0.53664553", "0.5365924", "0.536245", "0.5355721", "0.5353199", "0.5326079", "0.5325654", "0.53255063", "0.5324973", "0.5324362", "0.5322834", "0.53226006", "0.5322574", "0.5318439", "0.5314866", "0.53146887", "0.5310605", "0.5310578", "0.53105", "0.5306744", "0.5304721", "0.53028864", "0.52993304", "0.5292085", "0.52881724", "0.52879435", "0.52864283", "0.5286373", "0.5286373", "0.5286373", "0.5286373", "0.5286373", "0.5286373", "0.5286373", "0.5285084", "0.52832186", "0.5280292", "0.5279394", "0.52780193", "0.527683", "0.5276225", "0.5274552", "0.5273391", "0.5270286", "0.5265891", "0.5263415", "0.5262643", "0.52569085", "0.525449", "0.5252325", "0.52497476", "0.5246647", "0.5246363", "0.523743", "0.5236473", "0.5234216", "0.5231115", "0.52299994", "0.52287865", "0.5226526", "0.5222074", "0.5221779", "0.5220041", "0.5219866" ]
0.0
-1
one counter is enough
public int balancedStringSplit2(String s) { int res = 0, cnt = 0; for (int i = 0; i < s.length(); ++i) { cnt += s.charAt(i) == 'L' ? 1 : -1; if (cnt == 0) ++res; } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void setCounter() {++counter;}", "private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}", "public int check(){\r\n\r\n\treturn count ++;\r\n\t\r\n}", "int fillCount();", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "protected short getCount() \r\n {\r\n // We could move this to the individual implementing classes\r\n // so they have their own count\r\n synchronized(AbstractUUIDGenerator.class) \r\n {\r\n if (counter < 0)\r\n {\r\n counter = 0;\r\n }\r\n return counter++;\r\n }\r\n }", "@Override\n protected int getNumRepetitions() {\n return 1;\n }", "public int counter()\n {\n if(count<=825){\n return count++;\n }\n else{ \n count = 0;\n return count;\n }\n }", "void incrementCount();", "public static synchronized void inccount()\r\n\t{\r\n\t\tcount++;\r\n\t}", "private synchronized void increment() {\n ++count;\n }", "boolean hasCounter();", "public void addCount()\n {\n \tcount++;\n }", "public void incrementCount(){\n count+=1;\n }", "public void incrementCount() {\n\t\tcount++;\n\t}", "private synchronized static void upCount() {\r\n\t\t++count;\r\n\t}", "public void can_counter()\n {\n candidate_count=0;\n for (HashMap.Entry<String,Candidate> set : allCandidates.entrySet())\n {\n candidate_count++;\n }\n }", "public synchronized int getCountTwo() {\n return count.incrementAndGet();\n }", "public void incrementCount() {\n count++;\n }", "public void incCounter()\n {\n counter++;\n }", "public void incCount() { }", "private static void add() {\n\tcount.incrementAndGet();\n}", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "public void incCounter(){\n counter++;\n }", "private void incrPositiveCount(){\n m_PositiveCount++;\n }", "public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}", "public void addCount() {\n \t\tdupCount++;\n \t}", "public static int getCounter() {return counter;}", "boolean testCounter(Tester t) {\n\t\treturn t.checkExpect(c1.get(), 0) // Test 1\r\n\t\t\t\t&& t.checkExpect(c2.get(), 2) // Test 2\r\n\t\t\t\t&& t.checkExpect(c1.get() == c1.get(), false) // Test 3\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), true) // Test 4\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), true) // Test 5\r\n\t\t\t\t&& t.checkExpect(c1.get() == c1.get(), false) // Test 6\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), false); // Test 7\r\n\t}", "@Override\n\tpublic void count() {\n\t\t\n\t}", "int getMinimalIterationCount();", "private void incrementUsageCount() {\n usageCount++;\n }", "public static void resetCount() {\n count = 1;\n }", "int getRepeatCount();", "void incrementAddedCount() {\n addedCount.incrementAndGet();\n }", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "@Override\n public synchronized void increment() {\n count++;\n }", "static IterV<String, Integer> counter() {\n return cont(count.f(0));\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcounter.accumulate(1);\n\t\t\t\t}", "public static synchronized void increment() {\r\n\t\tcount++;\r\n\t}", "public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }", "private synchronized void increment() {\n count++;\n atomicInteger.incrementAndGet();\n }", "public int count() {\n\treturn 1;\n}", "public long count() {\n/* 154 */ return this.count;\n/* */ }", "@Override\r\n\tpublic long count() {\n\t\treturn 0;\r\n\t}", "public static void increment() {\n\t\tcount.incrementAndGet();\n//\t\tcount++;\n\t}", "static Integer generateID() {\n int count = 0;\n for (int i = 1; i-1 <= setOfAssignedIDs.size(); i++) {\n count++;\n if (setOfAssignedIDs.size() == 0) {\n return 1;\n }\n\n else if (setOfAssignedIDs.contains(i)) {\n continue;\n }\n\n else {\n return count;\n }\n\n }\n return count;\n }", "public int counter (){\n return currentID;\n }", "public void incrementCount () {\n count = count + 1; // == count++ == count += 1 \n if (count == modulus) {\n count = 0;\n }\n }", "@Override\r\n\t\tpublic int count() {\n\t\t\treturn 0;\r\n\t\t}", "private static void test1() {\n\n\tint n=10000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint val=rand7();\n\t\t\tcount[val]++;\n\t\t}\n\t\t\n\t\tfor(int i:count)\n\t\t\tSystem.out.println(i);\n\t}", "private boolean tryCounterExample(BDD reachableStates){\n\t\tBDD counterExample = reachableStates.andWith(buildEndGame());\n\t\t\n\t\treturn counterExample.satCount(this.dimension * this.dimension - 1) == 0 ? true : false;\n\t}", "public static synchronized void increment(){\n count++;\n }", "@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}", "public void increseHitCount() {\n\r\n\t}", "@Test\n\tpublic void testIncrement() {\n\t\tvar counter = new Counter();\n\t\tassertEquals(0, counter.get());\n\t\tcounter.increment();\n\t\tcounter.increment();\n\t\tassertEquals(2, counter.get());\n\t}", "public void increaseCount(){\n myCount++;\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcounter.increment();\n\t\t\t\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long count() {\n\t\treturn 0;\n\t}", "private int nextValidID() {\n return nextId++;\n }", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "private int scoreCounter(int result) {\n result +=1;\n return result;\n }", "void incCount() {\n ++refCount;\n }", "@Override\n\tpublic int withRepeatCount() {\n\t\treturn 0;\n\t}", "private static void increaseReference(Counter counter) {\n counter.advance(1);\n }", "public static int returnCount()\n {return counter;}", "private void reactMain_region_digitalwatch_Time_counting_Counting() {\n\t\tif (timeEvents[0]) {\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 0);\n\n\t\t\ttimer.setTimer(this, 0, 1 * 1000, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseTimeByOne();\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_digitalwatch_Time_counting_Counting;\n\t\t}\n\t}", "boolean isCounting();", "public long count() {\n\t\treturn 0;\n\t}", "public long count() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int numCurrentsToAdd() {\n\t\treturn 2;\r\n\t}", "int getInCount();", "public int currentCount () {\n return count;\n }", "private int getPlayerCounter_CheckForOrderValidity() {\r\n\t\tif ( playerList.size() <= playerCounter)\r\n\t\t\tplayerCounter = 0;\r\n\t\treturn playerCounter;\r\n\t}", "public boolean hasCounter() {\n return counterBuilder_ != null || counter_ != null;\n }", "public long count() ;", "public abstract long count();", "void writeRepetitionCount(int count);", "public void setOneNewWanted () {\r\n numWanted ++;\r\n }", "public int numberOfOccorrence();", "private void incWaiters()\r\n/* 443: */ {\r\n/* 444:530 */ if (this.waiters == 32767) {\r\n/* 445:531 */ throw new IllegalStateException(\"too many waiters: \" + this);\r\n/* 446: */ }\r\n/* 447:533 */ this.waiters = ((short)(this.waiters + 1));\r\n/* 448: */ }", "default void hit() {\n\t\tcount(1);\n\t}", "public BasicCounter() {\n count = 0;\n }", "public long count() { return count.get(); }" ]
[ "0.69290584", "0.6666524", "0.66638005", "0.659313", "0.6558115", "0.6512474", "0.64908415", "0.64850897", "0.6474884", "0.64566565", "0.64470935", "0.6423703", "0.64085233", "0.63916063", "0.6379681", "0.6372553", "0.637001", "0.63661724", "0.63487536", "0.6344858", "0.631534", "0.62910813", "0.62857336", "0.6281732", "0.62764674", "0.62494445", "0.6232847", "0.6213382", "0.6204309", "0.620096", "0.619836", "0.6181824", "0.6175367", "0.6148922", "0.61301875", "0.61212087", "0.6115567", "0.6115567", "0.6115567", "0.6115567", "0.6115567", "0.6115567", "0.6115567", "0.6107106", "0.6101627", "0.60995835", "0.6094623", "0.60846174", "0.60831356", "0.60722363", "0.6040893", "0.6032869", "0.6029591", "0.6028068", "0.60237294", "0.60049844", "0.6004104", "0.5968125", "0.59672356", "0.5954586", "0.594799", "0.5947327", "0.59008026", "0.58914906", "0.5891067", "0.58894366", "0.58894366", "0.58894366", "0.58894366", "0.58894366", "0.58894366", "0.58894366", "0.58894366", "0.58825433", "0.5863685", "0.5863685", "0.5863685", "0.5863685", "0.58624053", "0.58593", "0.58541983", "0.58504784", "0.5849856", "0.5849184", "0.58394456", "0.5838102", "0.5838102", "0.5833678", "0.58271086", "0.5812156", "0.58112377", "0.58109224", "0.5807104", "0.58030915", "0.5802968", "0.5801381", "0.57992077", "0.5796336", "0.57916516", "0.57828176", "0.5780806" ]
0.0
-1
An object of the NumStack class is created, for use in testing the class methods.
@Before //Object created of the NumStack class public void setUp() { numStackTest = new NumStack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OpStack() {\n opStack = new Stack();\n }", "public CustomStack() {\n this.myCustomStack = new Object[10]; //array starts with 10 spaces, all empty\n numElements = 0; //stack starts with zero elements\n\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 1818) \n public static final SubLObject create_stack() {\n return clear_stack(make_stack(UNPROVIDED));\n }", "public ArrayStack(){\r\n\t\tstack= new Object[DEFAULT_SIZE];\r\n\t\t}", "public StackClass() {\n \tsize=0;\n\t}", "Stack<Integer> createStack() {\n\t\tStack<Integer> my_stack = new Stack<Integer>();\n\t\t\n\t\t// Add all numbers in linkedlist to stack one by one\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tmy_stack.push(curr.data);\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn my_stack;\n\t}", "public IntStack() {\n theStack = new int[IntStack.theCapacity];\n nextPushLocation = 0;\n }", "ArrayStack() {\r\n\t\tstack = new int[10];\r\n\t\ttop = 0;\r\n\t}", "public Stacked(){\n count = 0;\n stackArray = (E[]) new Object[START_CAP];\n }", "public Stack() {}", "public MyStack() {\n @SuppressWarnings(\"unchecked\")\n T[] newStack = (T[]) new Object[DEFAULT_STACK_SIZE];\n stackArray = newStack;\n stackSize = 0;\n }", "public MyStack() {\n\n }", "public MyStack() {\n this.queue=new LinkedList<Integer>();\n }", "public Stack() {\n stack = new Object[1];\n minStackSize = 1;\n top = -1;\n }", "public MinStack1() {\r\n stack = new Stack<>();\r\n }", "public void pushStack(int newStack){\n // creates a new object\n GenericStack temp = new GenericStack(newStack);\n temp.next = top;\n top = temp;\n }", "public MyStack() {\n\t q=new LinkedList<Integer>();\n\t }", "public MyStack() {\n bottom = new Node(Integer.MAX_VALUE);\n top = bottom;\n size = 0;\n }", "public Stack() {\r\n first = null;\r\n N = 0;\r\n }", "public CarStackImpl() {\n carStack = new int[MAX_SIZE];\n top = -1;\n }", "public ArrayStack() {\n\t\ttop = 0;\t\t\t\t\t\t\t\t\t\t// points to the first element. Since empty, points 0\n\t\tstack = (T[]) (new Object[DEFAULT_CAPACITY]);\t// Casting to whatever is our desired element.\n\t}", "public MyStack() {\n\t\ttopNode = null;\n\t\tMAX_SIZE = Integer.MAX_VALUE;\n\t\tnodeCount = 0;\n\t}", "public MinStack() {\r\n stk = new Stack<>();\r\n stk1 = new Stack<>();\r\n }", "public MinStack() {\n mainstack = new Stack<Integer>();\n secondaryminstack = new Stack<Integer>();\n }", "public NotationStack() {\r\n\t\tstack = new ArrayList<T>(1000);\r\n\t\tsize = 1000;\r\n\t}", "public MinStack() {\n minList = new LinkedList<>();\n numStack = new Stack<>();\n }", "public Stack() {\r\n this(20);\r\n }", "public ArrayStack()\r\n {\r\n top = 0;\r\n stack = (T[])(new Object[DEFAULT_CAPACITY]);\r\n }", "public MinStack() {\n stack = new Stack<Integer>();\n minStack = new Stack<Integer>();\n }", "public MyStack() {\n objects = new LinkedList<>();\n helper = new LinkedList<>();\n }", "public Solution_155() {\n stack = new Stack();\n minStack = new Stack();\n }", "public Stack() {\n stack = new LinkedList();\n }", "@Test\n public void testPush() {\n System.out.println(\"push\");\n int number = 5;\n Stack2 instance = new Stack2();\n instance.push(number);\n assertEquals(instance.array[0], number);\n }", "public MaxStack() {\n stack = new Stack();\n maxes = new MaxList();\n }", "public MinStack() {\n stack = new Stack<IntMinPair>();\n }", "public MinStack() {\n\n }", "public MinStack() {\n\n }", "public MinStack() {\n st = new Stack<>();\n }", "public Stack() {\n \tstack = new ArrayList<T>();\n }", "public MyStack() {\r\n stack = new LinkedList<>();\r\n }", "public MyStack() {\r\n\t\tthis(DEFAULT_CAPACITY);\r\n\t}", "public Stack() { \ntop = null; \n//A constructor to initialize top \n//The answer to (iii)\n}", "public MyStack() {\n \tlist = new ArrayList<Integer>();\n }", "public LC155_MinStack2() {\n\t\tdata = new Stack<Long>();\n\t}", "Stack(Recycler<T> parent, Thread thread, int maxCapacity, int maxSharedCapacityFactor, int ratioMask, int maxDelayedQueues)\r\n/* 408: */ {\r\n/* 409:440 */ this.parent = parent;\r\n/* 410:441 */ this.threadRef = new WeakReference(thread);\r\n/* 411:442 */ this.maxCapacity = maxCapacity;\r\n/* 412:443 */ this.availableSharedCapacity = new AtomicInteger(Math.max(maxCapacity / maxSharedCapacityFactor, Recycler.LINK_CAPACITY));\r\n/* 413:444 */ this.elements = new Recycler.DefaultHandle[Math.min(Recycler.INITIAL_CAPACITY, maxCapacity)];\r\n/* 414:445 */ this.ratioMask = ratioMask;\r\n/* 415:446 */ this.maxDelayedQueues = maxDelayedQueues;\r\n/* 416: */ }", "public MinStack2() {\n stack = new Stack<>();\n minStack = new Stack<>();\n }", "public I0304MyQueue() {\n nums = new Stack<>();\n temp = new Stack<>();\n }", "public MinStack2() {\r\n\t\t\tdata = new Stack<>();\r\n\t\t\thelper = new Stack<>();\r\n\t\t}", "public MinStack() {\n }", "public MinStack() {\r\n\t\t}", "public StackImpl() {\r\n\t\t\r\n\t}", "@Test /*Test 19 - implemented push() method to NumStack class.*/\n public void testPush() {\n numStackTest.push(5);\n assertFalse(\"NumStack object shouldn't be empty after pushing first entry onto it\", \n numStackTest.isEmpty());\n numStackTest.push(10);\n assertFalse(\"NumStack object shouldn't be empty after pushing second entry onto it\", \n numStackTest.isEmpty());\n numStackTest.push(15);\n assertFalse(\"NumStack object shouldn't be empty after pushing third entry onto it\", \n numStackTest.isEmpty());\n }", "public MyStack2() {\n queue = new LinkedList<Integer>();\n }", "public MinStack() {\n sdata = new Stack<Integer>();\n smin = new Stack<Integer>();\n }", "public myStackUsingDynamicArray(){\n A = new dynamicArray();\n top=-1;\n bottom=-1;\n localSize=0;\n //Othe initializations to be done by student\n }", "public MyStack() {\n\n }", "public MinStack() {\n data = new Stack();\n min = new Stack();\n }", "public MyQueue232() {\n stackIn = new Stack<Integer>();\n stackOut = new Stack<Integer>();\n isIn = true;\n }", "public MinStack_155() {\n\t\tmin= new Stack<Integer>();\n\t\tstack= new Stack<Integer>();\n\t}", "public MyStack(){\n\ta = new String[10];\n\ttop = -1;\n }", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "Stack_Using_Arrays(){\n\t\ttop=-1;\n\t}", "Stack(int sizeYouWantYourDataStuctureToBe){\n stackArray = new int [sizeYouWantYourDataStuctureToBe];\n }", "public OperandStack() {\r\n\t\t\r\n\t\tthis.num = new ArrayList<>(); \r\n\t\tthis.observers = new ArrayList<>(); \r\n\t}", "public MinStack() {\n dataStack=new Stack<>();\n minStack=new Stack<>();\n }", "public SolutionStack()\n {\n stack = new ArrayList<ILocation>(0);\n top = 0;\n }", "public MinStack() {\r\n list = new LinkedList();\r\n }", "MyStack(){\r\n\t\tsuper();\r\n\t}", "public MinValueStack(){\r\n stack1 = new Stack<T>();\r\n stack2 = new Stack<T>();\r\n size = 0;\r\n }", "public GetMinStack() {\n stackData = new Stack<>();\n stackMin = new Stack<>();\n }", "public Stack() {\n /*\n * Constructor\n * This function is an initializer for this class.\n */\n top = null;\n sz = 0;\n }", "@Test\n public void testStackInteger() {\n DatastructureTest.INTSTACK.push(3);\n DatastructureTest.INTSTACK.push(7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == -1);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == -1);\n }", "public Stack()\n\t{\n\t\tlist = new LinkedList<T>();\n\t}", "public MinStack() {\n stack = new Stack<>();\n minStack = new Stack<>();\n }", "public MinStack() {\n this.capacity = CAPACITY;\n this.objects = new Object[capacity];\n }", "@Test\n public void testSingleStack() {\n ProgramStack ps = new ProgramStack();\n\n ps.push(1);\n\n Assert.assertEquals(\"[1]\", ps.toString());\n }", "public ObjectStack() {\n this.collection = new ArrayIndexedCollection();\n }", "public ObjectStack() {collection = new ArrayIndexedCollection();}", "public MinStack()\n\t{\n\t\tindex = -1;\n\t\tsize = 50;\n\t\tdata = new int[size];\n\t}", "public MinStack() {\n sort = new Stack<>();\n stack = new Stack<>();\n }", "public MinStack() {\n min = Integer.MIN_VALUE;\n stack = new Stack();\n }", "public MinStack() {\r\n stack=new Stack<>();\r\n minstack=new Stack<>();\r\n map=new HashMap<>();\r\n }", "public ObjectStack() {\n\t\tcollection = new ArrayBackedIndexedCollection();\n\t}", "public stackTesting(int size){\n\t\tMaxSize = size;\n\t\tStack = new int[MaxSize];\n\t\tStackTop = -1;\n\t}", "public MinStack() {\n\n }", "public MyStack() {\n One = new LinkedList<>();\n Two = new LinkedList<>();\n }", "public FixedSizeArrayStack() {\r\n\t\tthis(CAPACITY);\r\n\t}", "public MinStack2() {\n stack1 = new Stack<>();\n stack2 = new Stack<>();\n }", "public MinStack() {\n size = 0;\n }", "public MyStack() {\n queue = new ArrayDeque<>();\n }", "public MinStack2() {\n\n }", "public MyStack() {\n queue = new LinkedList<>();\n }", "public Lc232() {\r\n this.stack = new Stack<>();\r\n }", "public MyStack() {\n queue = new LinkedList<>();\n }", "public MinStack() {\n data = new ArrayDeque<>();\n helper = new ArrayDeque<>();\n }", "public MyStack() {\n queue = new LinkedList<>();\n forReverse = new LinkedList<>();\n }", "public Stacked(int size){\n this.size = size;\n count = 0;\n expand = 5;\n stackArray = (E[]) new Object[size];\n }", "public MyStack(int size) {\n this.size = size;\n this.stackArray = (T[]) new Object[size];\n this.top = -1;\n }", "public Stack() {\r\n\t\tthis(capacity);\r\n\t}", "public MyStack() {\n root=new ListNode(0);\n p =root;\n }" ]
[ "0.7118192", "0.70813924", "0.694536", "0.6938695", "0.6913105", "0.68793297", "0.68359137", "0.6778319", "0.6777832", "0.67649776", "0.6758135", "0.670909", "0.67080295", "0.6683371", "0.6683226", "0.66805565", "0.6673353", "0.6661115", "0.6621512", "0.6619148", "0.66100144", "0.66063917", "0.66036147", "0.6599957", "0.6599896", "0.6584187", "0.6562598", "0.6560635", "0.6559636", "0.65544206", "0.65292823", "0.64897543", "0.6489261", "0.6488569", "0.64856035", "0.64818704", "0.64818704", "0.6481682", "0.64785343", "0.6472111", "0.6465843", "0.6459647", "0.64576566", "0.6455646", "0.6435466", "0.6428422", "0.64256984", "0.6421864", "0.64212996", "0.6412421", "0.6410995", "0.6407591", "0.64015555", "0.63980234", "0.6394343", "0.63910556", "0.6391041", "0.63842416", "0.63668334", "0.6359495", "0.6356501", "0.63387525", "0.6332937", "0.63266057", "0.6325405", "0.6318513", "0.63049483", "0.6304357", "0.62990546", "0.6288564", "0.628797", "0.6286798", "0.62859833", "0.6285513", "0.62842894", "0.6282665", "0.6275249", "0.6273581", "0.6252143", "0.6243993", "0.62402695", "0.6237449", "0.62305623", "0.6227704", "0.6224547", "0.62142855", "0.6209284", "0.62063044", "0.6203953", "0.62019444", "0.6197792", "0.61959624", "0.6194622", "0.6193535", "0.6185804", "0.6174265", "0.6172953", "0.6168214", "0.61640847", "0.6149382" ]
0.67372394
11
The isEmpty() method should return true, as a newly created object of NumStack should have zero entries in it's stack.
@Test /*Test 18 - implemented isEmpty() method to NumStack class. Refactored isEmpty() to now call the size() method of the Stack object in NumStack to determine if it is empty, rather than always returning true.*/ public void testIsEmpty() { assertTrue("NumStack object should be empty after creation", numStackTest.isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean isEmpty() {return stackList.isEmpty();}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}", "public boolean isEmpty()\n {\n return stack.size() == 0;\n }", "public boolean isEmpty(){\n return this.stack.isEmpty();\n\n }", "public boolean isEmpty()\n {\n return stack.isEmpty();\n }", "public boolean emptyStack() {\n return (expStack.size() == 0);\n }", "public boolean isEmpty() {\n\t\treturn (stackSize == 0 ? true : false);\n\t}", "public boolean isEmpty() {\n return stackImpl.isEmpty();\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "public boolean empty() {\n return stack.empty();\n }", "public boolean isEmpty(){\r\n\t\treturn stackData.isEmpty();\r\n\t}", "public boolean empty() {\r\n return this.stack.isEmpty();\r\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean isEmpty(){\r\n \treturn stack1.isEmpty();\r\n }", "public boolean empty() {\n System.out.println(stack.isEmpty());\n return stack.isEmpty();\n }", "public boolean empty() {\n\t\tif(stackTmp.isEmpty() && stack.isEmpty()){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean empty() {\n return this.stack2.size() == 0 && this.stack1.size() == 0;\n }", "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", "public void testIsEmpty() {\n assertTrue(this.empty.isEmpty());\n assertFalse(this.stack.isEmpty());\n }", "public boolean empty() {\n return stack1.empty();\n }", "@Test\n public void isEmptyTest() {\n ResourceStack stack5 = new ResourceStack(1,0,0,0);\n assertFalse(stack5.isEmpty());\n stack5 = new ResourceStack(0,1,0,0);\n assertFalse(stack5.isEmpty());\n stack5 = new ResourceStack(0,0,1,0);\n assertFalse(stack5.isEmpty());\n stack5 = new ResourceStack(0,0,0,1);\n assertFalse(stack5.isEmpty());\n\n stack5 = new ResourceStack(0,0,0,0);\n assertTrue(stack5.isEmpty());\n }", "public boolean empty() {\n return popStack.isEmpty();\n }", "@Test\n public void isEmpty() {\n SimpleStack stack = new DefaultSimpleStack();\n\n // then the stack is empty\n assertTrue(stack.isEmpty());\n }", "@Test\n public void testIsEmpty() {\n System.out.println(\"isEmpty\");\n instance = new Stack();\n assertTrue(instance.isEmpty());\n instance.push(\"ab\");\n instance.push(\"cd\");\n assertFalse(instance.isEmpty());\n instance.pop();\n instance.pop();\n assertTrue(instance.isEmpty());\n }", "public boolean isCarStackEmpty() {\n boolean carStackEmpty = false;\n if(top < 0) {\n carStackEmpty = true;\n }\n return carStackEmpty;\n }", "public boolean empty() {\n return popStack.empty() && pushStack.empty();\n }", "public boolean isEmpty() {\n return downStack.isEmpty();\n }", "public boolean isEmpty() {\n if (opStack.size() == 0) {\n return true;\n }\n return false;\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\t\treturn stack.size() == size;\r\n\t}", "public boolean isEmpty() {\n return stack.isListEmpty();\n }", "public boolean empty() {\n return this.stack1.empty() && this.stack2.empty();\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 2117) \n public static final SubLObject stack_empty_p(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n return Types.sublisp_null(stack_struc_elements(stack));\n }", "@Test\r\n public void testIsEmptyShouldReturnFalseWhenStackNotEmpty() {\r\n stackInstance=new StackUsingLinkedList<Integer>();\r\n stackInstance.push(90);\r\n stackInstance.push(5);\r\n boolean actualOutput=stackInstance.isEmpty();\r\n assertEquals(false,actualOutput);\r\n }", "public final boolean isEmpty() {\n\t\treturn !(opstack.size() > 0);\n\t}", "@Test\n public void testIsEmpty(){\n ms = new MyStack();\n assertTrue(ms.IsEmpty());\n }", "public boolean isEmpty(){\n return (top == 0);\n }", "public boolean empty() {\n return rearStack.isEmpty() && frontStack.isEmpty();\n }", "public boolean empty() {\r\n return inStack.empty() && outStack.empty();\r\n }", "public boolean empty() {\n if (stackIn.empty() && stackOut.empty()) {\n return true;\n }\n return false;\n }", "public boolean isEmpty() {\n return (this.top == 0);\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn top<=0;\r\n\t}", "public boolean empty() {\n return mStack1.isEmpty() && mStack2.isEmpty();\n }", "public boolean empty() {\n /**\n * 当两个栈中都没有元素时,说明队列中也没有元素\n */\n return stack.isEmpty() && otherStack.isEmpty();\n }", "public boolean isEmpty() \n {\n return stack1.isEmpty() && stack2.isEmpty();\n }", "public boolean isEmpty() {\r\n return (top == null);\r\n }", "public boolean isEmpty() {\n\n return (top == null);\n }", "public boolean empty() {\n return stack1.isEmpty() && stack2.isEmpty();\n }", "public boolean isEmpty() {\n return top==-1;\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean empty() {\n return storeStack.isEmpty();\n }", "public boolean isEmpty() {\n\t\treturn (top == null) ? true : false;\n\t}", "boolean isEmpty() {\r\n\t\treturn top==0;\r\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn top < 0;\n\t}", "public boolean isEmpty() {\n\t\t\n\t\treturn top == null;\n\t}", "public boolean isEmpty() {\n if(this.top== -1) {\n return true;\n }\n return false;\n }", "public boolean isEmpty() {\n return top == null;\n }", "public boolean isEmpty() {\n return top == null;\n }", "public boolean isEmpty()\n\t{\n\t\treturn top == null;\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "public boolean empty() { \n if (top == -1) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isEmpty() {\n return this.top == null;\n }", "public boolean isEmpty()\r\n {\n return this.top == null;\r\n }", "public static boolean isEmpty()\n { return currentSize==0; }", "public boolean isEmpty(){\n return myHeap.getLength() == 0;\n }", "public boolean isEmpty() {\n return topIndex < 0;\n }", "@Test\n public void testMassiveStackOfNothing() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 10000;\n int expectedSize = 0;\n \n String tempString = null;\n String expected = null;\n \n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = 0; i < sizeTest; i++) {\n instance.push(tempString);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, expectedSize);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "@Override\r\n\tpublic boolean isFull() {\r\n\t\tif(topIndex == stack.length -1) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\t\r\n\t}", "public boolean isEmpty(){\n \treturn top==-1;\n\t}", "public boolean empty(){\n return this.top == -1;\n }", "public boolean isEmpty(){\n if(top == null)return true;\n return false;\n }", "boolean isEmpty() {\n // -\n if(top == null)\n return true;\n return false;\n }", "public boolean isEmpty()\n {\n return heapSize == 0;\n }", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn topIndex < 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn heap.isEmpty();\n\t}", "public boolean empty() {\n return N==0;\n }", "public boolean isEmpty(){\r\n return currentSize == 0;\r\n }", "@Override\n public boolean isEmpty() {\n return heapSize == 0;\n }", "public boolean isEmpty() {\r\n return N == 0;\r\n }", "@Test\r\n public void isEmptyTest1(){\r\n stack.pop();\r\n stack.pop();\r\n stack.pop();\r\n assertThat(stack.isEmpty(), is(true));\r\n }", "public boolean isFull() {\n return (this.top == this.stack.length);\n }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn heap.size() == 0;\n\t}", "private static boolean isStackEmpty(SessionState state)\n\t{\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\treturn operations_stack.isEmpty();\n\t}", "public boolean empty() {\n return push.isEmpty();\n }", "public boolean isFull(){\n return (top == employeeStack.length);\n }", "public boolean isEmpty() {\n\t\treturn (N == 0);\t\n\t}", "public boolean empty() \n { \n\treturn(top==-1);\n \n }", "public boolean isEmpty() {\n return N == 0;\n }", "public boolean isEmpty() {\n return N == 0;\n }" ]
[ "0.8427058", "0.8418782", "0.8391301", "0.83432645", "0.8273279", "0.8235661", "0.8210157", "0.81868017", "0.8172891", "0.8166415", "0.8164055", "0.81459045", "0.8126113", "0.8119476", "0.8110265", "0.8110265", "0.8108885", "0.808702", "0.8084628", "0.80665696", "0.805289", "0.7984355", "0.79627836", "0.79532963", "0.7904939", "0.78993684", "0.7852274", "0.7838107", "0.7814194", "0.7802166", "0.77795094", "0.7777276", "0.7747369", "0.7706719", "0.769338", "0.76905656", "0.76869684", "0.76755106", "0.7669974", "0.7652758", "0.7633553", "0.763161", "0.760262", "0.75676215", "0.7550558", "0.75494826", "0.7541589", "0.75299263", "0.7513769", "0.7512519", "0.75054723", "0.749456", "0.7445918", "0.7445918", "0.7445918", "0.74403274", "0.74262404", "0.74192375", "0.7416191", "0.7404451", "0.7403154", "0.7403154", "0.7392674", "0.73713475", "0.73682415", "0.73392224", "0.733604", "0.7317763", "0.7311239", "0.72934383", "0.7293135", "0.72916615", "0.72915804", "0.72603357", "0.7259635", "0.7252417", "0.7240464", "0.7224257", "0.7224257", "0.7224257", "0.7224065", "0.7223849", "0.72173804", "0.72100765", "0.7208048", "0.7207949", "0.71993864", "0.71956104", "0.7194184", "0.7194184", "0.7194184", "0.71875024", "0.71875024", "0.71832573", "0.7178322", "0.7176904", "0.7174372", "0.7173593", "0.71648353", "0.71648353" ]
0.8180972
8
The push() method simply calls the Stack object's push() method to add a numeric entry onto the stack.
@Test /*Test 19 - implemented push() method to NumStack class.*/ public void testPush() { numStackTest.push(5); assertFalse("NumStack object shouldn't be empty after pushing first entry onto it", numStackTest.isEmpty()); numStackTest.push(10); assertFalse("NumStack object shouldn't be empty after pushing second entry onto it", numStackTest.isEmpty()); numStackTest.push(15); assertFalse("NumStack object shouldn't be empty after pushing third entry onto it", numStackTest.isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void push(int stackNum, int value) throws Exception{\n\t//check if we have space\n\tif(stackPointer[stackNum] + 1 >= stackSize){ //last element\n\t\tthrows new Exception(\"Out of space.\");\n\t}\n\n\t//increment stack pointer and then update top value\n\tstackPointer[stackNum]++; \n\tbuffer[absTopOfStack(stackNum)] = value;\n}", "public void push(int x) {\n stack.add(x);\n }", "public void push(double number) {\n stack.addToList(number);\n }", "public void push(T value) {\n \tstack.add(value);\n }", "public Integer push(Integer val){\n return runStack.push(val);\n }", "public void push(int x) {\r\n inStack.push(x);\r\n }", "void push(int value);", "public void push(int x) {\n pushStack.add(x);\n }", "public static void push(Integer num) {\n mainStack.push(num);\n if (maxStack.isEmpty() || maxStack.peek() < num){\n maxStack.push(num);\n }\n }", "public void push(int element) {\n stack1.push(element);\n }", "public void push(int x) {\n this.stack1.add(x);\n }", "public void push(int x) {\n this.stack1.push(x);\n }", "public void push(int stackNum, int value) {\n\t\tint index = stackNum * STACK_SIZE + stackPointer[stackNum] + 1;\n\t\tstackPointer[stackNum]++;\n\t\tbuffer[index] = value;\n\t}", "public void push(int value){\n // check if there is stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is full or not\n if(this.topOfStack==(this.arr.length-1)){\n System.out.println(\"Stack is full, Can't push into stack\");\n return;\n }\n // if stack is empty\n this.topOfStack++;\n this.arr[this.topOfStack]=value;\n }", "public void push(int x) {\n\t\tstack.push(x);\n\t}", "public void push(int x) {\n storeStack.push(x);\n }", "static void push(int stackNum, int value) throws Exception {\n if (stackPointer[stackNum]+1 >= stackSize) {\n throw new Exception();\n }\n\n stackPointer[stackNum]++;\n buffer[absTopOfStack(stackNum)] = value;\n }", "public void push(int x) {\n stack1.push(x);\n }", "public void push(E inValue)\n {\n stack.insertFirst(inValue);\n }", "public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }", "public void push( int value ) throws StackOverflowException { }", "public void push(int x) {\n this.inputStack.push(x);\n }", "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}", "void push(T value) {\n if (stackSize == stackArray.length) {\n resizeArray();\n }\n stackArray[stackSize++] = value;\n }", "public void push() throws EvaluationException {\n\t\tsetTimeout(Integer.MAX_VALUE);\n\t\tprintln(\"(push 1)\");\n\t\tcheckSuccess();\n\t\tsymbolsByStackPos.addLast(new HashSet<>());\n\t}", "public void push(int x) {\n push.push(x);\n }", "public void push(int x) {\n rearStack.push(x);\n }", "public void push(int x) {\n stk1.push(x);\n }", "public void push(int x) {\r\n stack.offer(x);\r\n }", "public void push(int x) {\r\n stack.offer(x);\r\n }", "void push(int e) {\r\n\t\tif (top==stack.length) {\r\n\t\t\tmakeNewArray();\r\n\t\t}\r\n\t\tstack[top] = e;\r\n\t\ttop++;\r\n\t}", "void push(int x);", "public void push(T newEntry) {\n ensureCapacity();\n stack[topIndex + 1] = newEntry;\n topIndex++;\n }", "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Dynamic Stack\");\r\n\t}", "public void push(T data) {\n top = new StackNode(data, top);\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 2898) \n public static final SubLObject stack_push(SubLObject item, SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n _csetf_stack_struc_elements(stack, cons(item, stack_struc_elements(stack)));\n _csetf_stack_struc_num(stack, Numbers.add(stack_struc_num(stack), ONE_INTEGER));\n return stack;\n }", "public void push (E item){\n this.stack.add(item);\n }", "void push(int i);", "public void push(T data) {\n numberList.addAtStart(data);\n }", "public void push(int value) {\n\t\t\tif (storedValues == capacity) {\n\t\t\t\ttop = bottom;\n\t\t\t\tbottom++;\n\t\t\t\tif (bottom == capacity) {\n\t\t\t\t\tbottom = 0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstoredValues++;\n\t\t\t}\n\n\t\t\tif (top == capacity) {\n\t\t\t\ttop = 0;\n\t\t\t}\n\n\t\t\tstack[top++] = value;\n\t\t}", "public void push(int x) {\n inSt.push(x);\n\n }", "void push(int v);", "void push(int in);", "public void push(int data)\n {\n if (top==size-1)\n {\n System.out.println(\"Stack is full\");\n return;\n\n }else\n {\n top++;\n stack[top]=data;\n }\n\n }", "public void stackPush(int element) {\r\n\t\ttop++;\r\n\t\tarray[top] = element;\r\n\t\tcount++;\r\n\t }", "static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}", "public void push (T element)\r\n {\r\n if (size() == stack.length) \r\n expandCapacity();\r\n\r\n stack[top] = element;\r\n top++;\r\n }", "@Override\n\tpublic void push(T element) {\n\t\tif(top == stack.length) \n\t\t\texpandCapacity();\n\t\t\n\t\tstack[top] = element;\n\t\ttop++;\n\n\t}", "public void push(int x) {\n load();\n stack.push(x);\n unload();\n }", "public void push(T data) {\n if((stackPointer + 1) == Array.getLength(this.elements))\n expandStack();\n this.elements[++stackPointer] = data;\n }", "public void push(T n) {\r\n\t\tthis.num.add(n);\r\n\t\t\t\r\n\t\tfor (StackObserver<T> o : observers )\r\n\t\t\to.onPush(n);\t\t\t\t\t\t\r\n\t}", "@Override\n public void push(Integer value) {\n ar[pos++] = value; \n }", "public void push(double x) \n {\n if (top == s.length) \n {\n \tthrow new IllegalArgumentException(\"full stack!\");\n }\n \n \n else\n {\n s[++top] = x;\n \n } \n }", "public void push(int elem);", "public void push(AnyType e) throws StackException;", "static void push(Stack<Integer> top_ref, int new_data) {\r\n // Push the data onto the stack\r\n top_ref.push(new_data);\r\n }", "public void push(int x) {\n data.add(x);\n }", "public void push(int x) {\n s1.push(x);\n }", "public void push(int x) {\n s1.push(x);\n }", "public void push(int x) {\n s1.push(x);\n }", "public void push(E value);", "public void push(int x) {\n s1.push(x);\n }", "public void push(T x);", "public void push(T item)\r\n\t{\r\n\t\t if (size == Stack.length) \r\n\t\t {\r\n\t\t\t doubleSize();\r\n\t }\r\n\t\tStack[size++] = item;\r\n\t}", "public void push(int data){\r\n\r\n\t\tNode last = tail.pre;\r\n\r\n\t\t// create a new node\r\n\t\tNode newNode = new Node();\r\n\t\tnewNode.data = data;\r\n\r\n\t\t// attach tail and then pre\r\n\t\tnewNode.next = tail;\r\n\t\tnewNode.pre = last;\r\n\r\n\r\n\t\t// change new node as tail\r\n\t\ttail.pre = newNode;\r\n\t\tlast.next = newNode;\r\n\r\n\t\t// increment Stack size\r\n\t\tsize++;\r\n\r\n\t}", "private static void push(Stack<Integer> top_ref, int new_data) {\n //Push the data onto the stack\n top_ref.push(new_data);\n }", "void push(int element);", "public void push(int x) {\n if (mStack1.isEmpty()) {\n mFirst = x;\n }\n mStack1.push(x);\n }", "public void push(Symbol i) {\n opStack.push(new Entry(i));\n }", "public void push(T aValue);", "@Override\n public void push(E z){\n if(isFull()){\n expand();\n System.out.println(\"Stack expanded by \"+ expand+ \" cells\");\n }\n stackArray[count] = z;\n count++;\n }", "@Override\r\n\tpublic void push(E e) {\r\n\t\tif (size() == stack.length)\r\n\t\t\texpandArray();\r\n\t\tstack[++t] = e; // increment t before storing new item\r\n\t}", "public void push(Character data)\r\n\t{\r\n\t\tstack[top] = data;\r\n\t\ttop++;\r\n\t}", "public void push(int x) {\n temp.push(x);\n }", "public void push(final int operand) throws StackOverflowException {\n if (stack.unused() == 0) {\n throw new StackOverflowException(\"Stack is full!\");\n } else {\n stack.push(operand);\n }\n }", "@Override\r\n\tpublic void push(AnyType data) throws StackException {\n\t\ttop = new Node<AnyType>(data,top);\r\n\t}", "public void push(int data){\n \tif(top == size)\n \tSystem.out.println(\"Stack is overflow\");\n \telse{\n \ttop++;\n \telements[top]=data;\n \t} \n\t}", "@Test\n public void push() {\n SimpleStack stack = new DefaultSimpleStack();\n Item item = new Item();\n\n // When the item is pushed in the stack\n stack.push(item);\n\n // Then…\n assertFalse(\"The stack must be not empty\", stack.isEmpty());\n assertEquals(\"The stack constains 1 item\", 1, stack.getSize());\n assertSame(\"The pushed item is on top of the stack\", item, stack.peek());\n }", "void push(T x);", "public void push(int item) {\n\t\t// TODO Auto-generated method stub\n\t\tif(position >= stack.length-1){\n\t\t\tSystem.out.println(\"Stack is full!\");\n\t\t}else{\n\t\t\tstack[position] = item;\n\t\t\tposition++;\n\t\t}\n\t}", "public void push(int x) {\n\t\tinput.push(x);\n\t}", "void push(T t);", "public void push(int carNumber) {\n if (top < carStack.length) { //checks if stack is full\n top++;\n carStack[top] = carNumber;\n }\n else {\n System.out.println(\"The car stack is full\");\n }\n }", "public void push(int x) {\n queue.add(x);\n }", "public void push(int x) {\n queue.add(x);\n }", "public void push(int x) {\n \tlist.add(x);\n }", "public void add(T val){\n myCustomStack[numElements] = val; // myCustomStack[0] = new value, using numElements as index of next open space\n numElements++; //increase numElements by one each time a value is added to the stack, numElements will always be one more than number of elements in stack\n resize(); //call resize to check if array needs resizing\n }", "public void push(E object) {stackList.insertAtFront(object);}", "public void push(int x) {\n queue.push(x);\n }", "public final void mPUSH() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.PUSH;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:702:6: ( 'push' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:702:8: 'push'\n\t\t\t{\n\t\t\t\tthis.match(\"push\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}", "@Override\n\tpublic void push(int I) {\n\t\tif (top == size - 1) {\n\t\t\tSystem.out.println(\"Stack Overflow\");\n\t\t} else {\n\n\t\t\ttop = top + 1;\n\t\t\tintContainer[top] = I;\n\t\t\tSystem.out.println(\"Element Inserted: \" + I);\n\t\t}\n\t}", "public void push(int data) {\n insert(dataSize, data);\n }", "public void pushStack(int newStack){\n // creates a new object\n GenericStack temp = new GenericStack(newStack);\n temp.next = top;\n top = temp;\n }", "public void push(T element) {\n if(isFull()) {\n throw new IndexOutOfBoundsException();\n }\n this.stackArray[++top] = element;\n }", "public void push(Item item){\n this.stack.add(item);\n\n }", "public void push(int x) {\n\t\tlist.add(x);\n\t}", "public final void push(final Symbol symbol) {\n\t\tEntry entry = new Entry(symbol);\n\t\topstack.push(entry);\n\t}", "public void push(int x) {\n queue.addLast(x);\n }", "public void push(int x) {\r\n queue1.add(x);\r\n top = x;\r\n }", "public void push(int x) {\r\n queue1.add(x);\r\n top = x;\r\n }" ]
[ "0.76305556", "0.7613094", "0.75314236", "0.75169206", "0.7506045", "0.750396", "0.75039047", "0.7475682", "0.7472771", "0.7449291", "0.7433255", "0.74138284", "0.73967266", "0.73773503", "0.7352126", "0.7336778", "0.7330017", "0.7311251", "0.7291967", "0.7279629", "0.72381425", "0.72324467", "0.72087014", "0.7170783", "0.71703583", "0.7167788", "0.7142946", "0.7138214", "0.712755", "0.7100967", "0.7080651", "0.70612615", "0.7045661", "0.7042711", "0.7033671", "0.70302033", "0.7018099", "0.70111084", "0.69905967", "0.69901633", "0.6982679", "0.6967777", "0.6966713", "0.69637823", "0.69614404", "0.6960107", "0.69481087", "0.694643", "0.6931631", "0.6921051", "0.6897419", "0.68804604", "0.68765116", "0.68724877", "0.68604606", "0.68601775", "0.6859654", "0.68466085", "0.68466085", "0.68466085", "0.68359005", "0.68329525", "0.68299246", "0.68190646", "0.68171203", "0.6811383", "0.6804487", "0.6794081", "0.6792111", "0.6790801", "0.67843664", "0.67808795", "0.6774137", "0.67614526", "0.67550623", "0.6751164", "0.6748245", "0.67425036", "0.6741129", "0.67351043", "0.67326355", "0.67166543", "0.6702603", "0.6698132", "0.6698132", "0.66909033", "0.66900057", "0.667535", "0.66747665", "0.66677684", "0.6665405", "0.66599506", "0.6649868", "0.66347677", "0.6620349", "0.6577736", "0.6575683", "0.65653986", "0.6561604", "0.6561604" ]
0.6786774
70
The pop() method calls the Stack object's pop() method to remove the top entry from the stack, and return it's numeric value.
@Test /*Test 20 - implemented pop() method to NumStack class. Refactored this method to a singe line return statement.*/ public void testPop() throws Exception { numStackTest.push(5); assertEquals("The pop() method should return 5", numStackTest.pop(), 5, 0.001); assertTrue("The stack should be empty after popping the only entry", numStackTest.isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object pop(){\r\n\t\tlastStack = getLastStack();\r\n\t\tif(lastStack!=null){\r\n\t\t\tint num = lastStack.pop();\r\n\t\t\treturn num;\r\n\t\t} else {stacks.remove(stacks.size()-1);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic int pop() {\n\t\tint topValue;\n\t\tif (top != -1) {\n\t\t\ttopValue = intContainer[top];\n\t\t\ttop = top - 1;\n\t\t\treturn topValue;\n\t\t} else {\n\t\t\tSystem.out.println(\"Stack Undeflow\");\n\t\t\treturn -1;\n\t\t}\n\t}", "public int pop() {\n return stack.pop();\n }", "public int pop() {\n return stack.pop();\n }", "public T pop() {\n \tT retVal = stack.get(stack.size() - 1); // get the value at the top of the stack\n \tstack.remove(stack.size() - 1); // remove the value at the top of the stack\n \treturn retVal;\n }", "public int pop() {\n\n if (top > 0) {\n top --;\n }\n else {\n System.out.println(\"Stack Underflow\");\n return -100;\n }\n return stack[top];\n }", "public int pop() {\r\n LinkedList<Integer> queue = new LinkedList<>();\r\n int value = stack.poll();\r\n while(!stack.isEmpty()){\r\n queue.offer(value);\r\n value = stack.poll();\r\n }\r\n stack = queue;\r\n return value;\r\n }", "int pop() {\r\n\t\ttop--;\r\n\t\treturn stack[top];\r\n\t}", "public int pop() {\n return popStack.pop();\n }", "public E pop()\n {\n E topVal = stack.removeFirst();\n return topVal;\n }", "public double pop() throws EmptyStackException {\n if (stack.isListEmpty()) {\n throw new EmptyStackException(\"The stack is empty, you cannot pop it.\");\n } else {\n double last = stack.getHead().getNumber();\n stack.deleteFromStart();\n return last;\n }\n }", "public int pop() {\n peek();\n return frontStack.pop();\n }", "public int pop(){\n \tint data=0;\n \tif(isEmpty())\n \tSystem.out.println(\"Stack is underflow\");\n \telse\n \tdata=elements[top--];\n \treturn data;\n\t}", "public int pop(){\n return runStack.pop();\n }", "public int pop() {\r\n\t\t\tif (top == null) {\r\n\t\t\t\tSystem.out.println(\"Stack is empty\");\r\n\t\t\t\treturn -1;\r\n\t\t\t} else {\r\n\t\t\t\tint poppedElement = top.data;\r\n\t\t\t\ttop = top.next;\r\n\t\t\t\treturn poppedElement;\r\n\t\t\t}\r\n\t\t}", "public int pop() {\n if (!popStack.isEmpty()) {\n return popStack.pop();\n }\n shift();\n return popStack.pop();\n }", "public int pop() {\n peek();\n return stack2.pop();\n }", "public int pop() {\n return stack1.pop();\n }", "public int pop() {\n /**\n * 将stack中所有元素逆序保存到otherStack中后弹出otherStack栈顶元素\n */\n while (!stack.isEmpty()) {\n otherStack.push(stack.pop());\n }\n return otherStack.pop();\n }", "public int pop() {\n int value = top.value;\n top = top.pre;\n top.next = null;\n size--;\n return value;\n }", "public int pop() {\n\t\tif (isEmpty())\n\t\t\treturn NEGATIVE_ONE;\n\t\tint ret = last.value;\n\t\tlast = last.prev;\n\t\treturn ret;\n\t}", "public int pop() {\n int carNumber = -1;\n \n if(top > -1) {\n carNumber = carStack[top];\n top--;\n }\n else {\n System.out.println(\"The car stack is empty\");\n }\n return carNumber;\n }", "public int pop() {\n if (data.size() != 0) {\n return data.remove(data.size() - 1);\n }\n throw new RuntimeException(\"栈为空,非法操作\");\n }", "public T pop() {\r\n\t\t\r\n\t\tT numPila = this.num.remove(this.num.size()-1);\r\n\t\t\r\n\t\tfor (StackObserver<T> o : observers )\r\n\t\t\to.onPop(numPila);\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\treturn numPila;\r\n\t\t\r\n\t\t//return this.num.remove(this.num.size()-1);\r\n\t\t\r\n\t\t\r\n\t}", "public int pop() {\n int result;\n while(!stack.isEmpty()){\n cache.add(stack.removeLast());\n }\n result = cache.removeLast();\n while(!cache.isEmpty()){\n stack.add(cache.removeLast());\n }\n System.out.println(result);\n return result;\n }", "public E pop () {\n\t\treturn stack.remove( stack.size()-1 );\t\t\n\t}", "public int pop() {\n\t\t// TODO Auto-generated method stub\n\t\tif(position < 0){\n\t\t\tSystem.out.println(\"Stack is empty!\");\n\t\t\treturn 0;\n\t\t}else{\n\t\t\treturn stack[position--];\n\t\t}\n\t}", "private static int pop(Stack<Integer> top_ref) {\n /*If stack is empty then error */\n if (top_ref.isEmpty()) {\n System.out.println(\"Stack Underflow\");\n System.exit(0);\n }\n //pop the data from the stack\n return top_ref.pop();\n }", "static int pop(Stack<Integer> top_ref) {\r\n /* If stack is empty then error */\r\n if (top_ref.isEmpty()) {\r\n System.out.println(\"Stack Underflow\");\r\n System.exit(0);\r\n }\r\n\r\n // pop the data from the stack\r\n return top_ref.pop();\r\n }", "public int pop(){\n if (top==null) throw new EmptyStackException();\n int data = top.data;\n top=top.next;\n return data;\n }", "public int pop() {\r\n if (this.stack.isEmpty()) {\r\n throw new RuntimeException(\"队列中元素为空\");\r\n }\r\n return this.stack.pop();\r\n }", "public int pop() throws EmptyStackException{\n //To be written by student\n if(top==-1){\n System.out.println(\"Stack is Empty!\");\n throw new EmptyStackException();\n }\n else if(localSize==A.getSize()/2){\n \tint tp=0;\n \ttry{\n \t\t tp=A.getElement(top);\n \t}catch(Exception e){e.printStackTrace();}\n top--;localSize--;\n A.halveSize();\n return tp;\n }\n else{ int tp=0;\n \ttry{\n \t\t tp=A.getElement(top);\n \t}catch(Exception e){e.printStackTrace();}\n top--;localSize--;\n \n return tp;\n }\n }", "public int pop() {\n if (storeStack.isEmpty()) {\n return 0;\n }\n\n Stack<Integer> assistStack = new Stack<>();\n while (!storeStack.isEmpty()) {\n assistStack.push(storeStack.pop());\n }\n int oppo = assistStack.pop();\n\n while (!assistStack.isEmpty()) {\n storeStack.push(assistStack.pop());\n }\n return oppo;\n }", "public E pop(){\n return this.stack.remove(stack.size()-1);\n }", "private final Object pop() {\r\n\t\treturn eval_stack.remove(eval_stack.size() - 1);\r\n\t}", "public int pop() {\n if (storeStack.isEmpty()) {\n return 0;\n }\n return storeStack.pop();\n }", "public int pop() {\n if (storeStack.isEmpty()) {\n return 0;\n }\n return storeStack.pop();\n }", "public int pop() {\n if (this.stack2.empty()) {\n while (!this.stack1.empty()) {\n this.stack2.push(this.stack1.pop());\n }\n }\n if (!this.stack2.empty()) {\n return this.stack2.pop();\n }\n return -1;\n\n }", "public int pop() {\n int length = minStack.size();\n int returnValue = 0;\n if (length > 0) {\n returnValue = minStack.get(length - 1);\n minStack.remove(length - 1);\n minList.remove(length - 1);\n }\n return returnValue;\n }", "public int pop() {\n\t\t\n\t\tNode t = top;\n\t\ttop = top.next;\n\t\t\n\t\treturn t.data;\n\t}", "public final double pop() {\n\t\tdouble returnValue = defaultValue;\n\n\t\tif (!isEmpty()) {\n\n\t\t\tdouble value = stack[index];\n\t\t\tindex--;\n\t\t\tsize--;\n\t\t\treturnValue = value;\n\t\t}\n\n\t\treturn returnValue;\n\t}", "public int pop(){\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\n int tmp=myarray[top];\n top--;\n return tmp;\n \n \n }", "public int pop() {\n if(outputStack.isEmpty()) {\n while (!inputStack.isEmpty()) {\n outputStack.push(inputStack.pop());\n }\n }\n return outputStack.pop();\n }", "public T pop() {\n\t\tT value = peek();\n\t\tstack.remove(value);\n\t\treturn value;\n\t}", "@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}", "public Object pop() {\n return stack.pop();\n }", "public int pop() {\n if (this.stack2.size() <= 0) {\n removeAllElementToStack2();\n }\n return this.stack2.removeLast();\n }", "public final Object pop()\n {\n synchronized (this.stack)\n {\n return this.stack[--this.pointer];\n }\n }", "public int top() {\r\n int value = this.pop();\r\n this.stack.offer(value);\r\n return value;\r\n }", "public T pop() { //pop = remove the last element added to the array, in a stack last in, first out (in a queue pop and push from different ends)\n try {\n T getOut = (T) myCustomStack[numElements - 1]; //variable for element to remove (pop off) = last element (if you have 7 elements, the index # is 6)\n myCustomStack[numElements] = null; //remove element by making it null\n numElements--; //remove last element, decrease the numElements\n return getOut; //return popped number\n\n } catch (Exception exc) {\n System.out.println(\"Can't pop from empty stack!\");\n return null;\n }\n }", "public int pop() {\n if (empty()) return -1;\n if (nums.isEmpty()) {\n while (!temp.isEmpty()) {\n nums.push(temp.pop());\n }\n }\n return nums.pop();\n }", "@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = null;\r\n\t\ttopIndex--;\r\n\t\treturn top;\r\n\t}", "public int pop() {\n peek();\n return right.pop();\n }", "public T pop()\n\t{\n\t\t// pop from the front of the list\n\t\tif(head == null)\n\t\t\tthrow new EmptyStackException();\n\t\telse\n\t\t{\n\t\t\t// Reset the head to be the next node \n\t\t\t// in the list.\n\t\t\tT val = head.getVal();\n\t\t\thead = head.getNext();\n\t\t\treturn val;\n\t\t}\n\t}", "public T pop() {\n if (this.top == null) {\n throw new EmptyStackException();\n }\n T data = this.top.data;\n this.top = this.top.below;\n return data;\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 3109) \n public static final SubLObject stack_pop(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n if ((NIL == stack_empty_p(stack))) {\n {\n SubLObject elements = stack_struc_elements(stack);\n SubLObject item = elements.first();\n SubLObject rest = elements.rest();\n _csetf_stack_struc_num(stack, Numbers.subtract(stack_struc_num(stack), ONE_INTEGER));\n _csetf_stack_struc_elements(stack, rest);\n return item;\n }\n }\n return NIL;\n }", "public Object pop() {\n return fStack.pop();\n }", "T pop() {\n if (stackSize == 0) {\n throw new EmptyStackException();\n }\n return stackArray[--stackSize];\n }", "public Object pop( )\n {\n Object item = null;\n\n try\n {\n if ( this.top == null)\n {\n throw new Exception( );\n }\n\n item = this.top.data;\n this.top = this.top.next;\n \n this.count--;\n }\n catch (Exception e)\n {\n System.out.println( \" Exception: attempt to pop an empty stack\" );\n }\n\n return item;\n }", "public int pop()\n\t{\n\t\tif (isEmpty() == true)\n\t\t{\n\t\t\tthrow new NullPointerException(\"Queue is empty!\");\n\t\t}\n\t\tif (head == tail)\n\t\t{\n\t\t\ttail = null;\n\t\t}\n\t\tint value = head.value;\n\t\thead = head.next;\n\t\treturn value;\n\t}", "public String pop() {\n String removed = NOTHING;\n // Is there anything in the stack to remove?\n if (usage > 0) {\n // Obtain the topmost value from the stack\n removed = this.foundation[this.foundation.length - this.usage];\n // Clean up the array location\n this.foundation[this.foundation.length - this.usage] = null;\n // Decrease usage counter\n usage--;\n }\n return removed;\n }", "public T pop() {\n if(isEmpty()) {\n throw new NoSuchElementException(\"Stack is empty\");\n }\n return this.stackArray[top--];\n }", "public int pop(){\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\tswap(0,size()-1);\n\t\t\tPair p=heap.remove(size()-1);\n\t\t\tlocation.remove(p.element);\n\t\t\tpushDownRoot();\n\t\t\treturn (int) p.element;\n\t\t}\n\t\t\n\t}", "public int pop() {\n //出栈为空,将进栈导入\n if (outSt.isEmpty()){\n while (!inSt.isEmpty()){\n outSt.push(inSt.pop());\n }\n }\n\n //弹出\n return outSt.pop();\n }", "public int pop() {\n q1.remove();\n int res = top;\n if (!q1.isEmpty()) {\n top = q1.peek();\n }\n return res;\n }", "public int pop()\n\t{\n\t\tif (head == null)\n\t\t{\n\t\t\tthrow new NullPointerException(\"Queue is empty\");\n\t\t}\n\t\tif (head == tail)\n\t\t{\n\t\t\ttail = null;\n\t\t}\n\t\tint value = head.value;\n\t\thead = head.next;\n\t\treturn value;\n\t}", "public int pop() {\n return queue.removeLast();\n }", "public T pop() {\n T top = peek();\n stack[topIndex] = null;\n topIndex--;\n return top;\n }", "public int pop() {\n ListNode front=root;\n while (front.next!=null&&front.next.next!=null)\n front=front.next;\n int num=p.val;\n p=front;\n p.next=null;\n return num;\n }", "public int popBack() {\n int y = 0;\n if(tail == null) {\n return Integer.MIN_VALUE;\n }\n\n Node node = tail;\n tail = node.prev;\n\n size--;\n\n return node.val;\n }", "public int pop() {\n return queue.removeLast();\n }", "public T pop() throws EmptyStackException {\n if (top == null) {\n throw new EmptyStackException();\n }\n\n StackNode<T> removed = top;\n top = top.getNext();\n return removed.getData();\n }", "public int pop() {\n if(!stack2.isEmpty()) return stack2.pop();\n else {\n while(!stack1.isEmpty()) {\n stack2.push(stack1.pop());\n }\n return stack2.pop();\n }\n }", "public int pop();", "public int pop() { return 0; }", "public E pop(){\r\n Node<E> curr = top;\r\n top = top.getNext();\r\n size--;\r\n return (E)curr.getData();\r\n \r\n }", "public E pop() {\n\t\tE answer;\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\tanswer = this.top.data;\n\t\tthis.top = this.top.link;\n\t\treturn answer;\t\n\t}", "public T pop() throws EmptyStackException\r\n {\r\n if (isEmpty())\r\n throw new EmptyStackException();\r\n\r\n top--;\r\n T result = stack[top];\r\n stack[top] = null; \r\n\r\n return result;\r\n }", "public int pop() {\n int res= q1.remove();\n if (!q1.isEmpty())\n top = q1.peek();\n return res;\n }", "public int pop() {\n if (!isIn) {\n return stackOut.pop();\n } else {\n while (!stackIn.empty()) {\n stackOut.push(stackIn.pop());\n }\n isIn = false;\n return stackOut.pop();\n }\n\n }", "@Override\n\tpublic T pop() throws StackUnderflowException {\n\t\t//If the Stack is empty, throw Exception\n\t\tif(this.isEmpty()) throw new StackUnderflowException(\"The stack is empty. The operation may not be completed\");\n\t\t\n\t\telse {\n\t\t\t//Retrieve the Object from the top Node of the Stack \n\t\t\tT returnData = topNode.data;\n\t\t\t\n\t\t\t//Remove the top Node and promote second Node\n\t\t\ttopNode = topNode.nextNode;\n\t\t\tnodeCount--;\n\t\t\t\n\t\t\t//Return retrieved data\n\t\t\treturn returnData;\n\t\t}\n\t}", "public int pop() {\n while (!push.isEmpty()){\n pull.push(push.pop());\n }\n int result= pull.pop();\n while (!pull.isEmpty()){\n push.push(pull.pop());\n }\n return result;\n }", "public int pop() throws IndexOutOfBoundsException {\n try {\n for (int i = size() - 1; i >= 0; i--) { // Iterate backwards\n if (this.values[i] != 0) { // First occurance of value\n int oldvalue = this.values[i];\n this.values[i] = 0; // Set to 0\n this.size--;\n return oldvalue;\n }\n }\n\n throw new IndexOutOfBoundsException(\"No values were found in stack.\");\n\n } catch (Exception e) {\n throw new IndexOutOfBoundsException(\"No values were found in stack.\");\n }\n }", "public int popZ() {\n\t\tif(z.size() == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tint zint = z.get(0);\n\t\tz.remove(0);\n\t\treturn zint;\n\t}", "int pop() {\n if (data.size() == 1) {\r\n min = 0;\r\n return data.pop();\r\n }\r\n else if (data.size() > 1) {\r\n int val = data.peek();\r\n if (val < min) {\r\n val = min;\r\n min = min * 2 - data.peek();\r\n data.pop();\r\n return val;\r\n }\r\n return data.pop();\r\n }\r\n else {\r\n System.out.println(\"Stack underflow\");\r\n return -1;\r\n }\r\n }", "public int pop() {\n \tif (head != null) {\n \t\tint item = head.value;\n \t\thead = head.next;\n \t\tsize--;\n \t\treturn item;\n \t}\n \treturn 0;\n }", "public T pop() {\n\t\tif (this.l.getHead() != null) {\n\t\t\tT tmp = l.getHead().getData();\n\t\t\tl.setHead(l.getHead().getNext());\n\t\t\treturn tmp;\n\t\t} else {\n\t\t\tSystem.out.println(\"No element in stack\");\n\t\t\treturn null;\n\t\t}\n\t}", "private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}", "public int pop() {\n if (mStack2.isEmpty()) {\n while (!mStack1.isEmpty()) {\n mStack2.push(mStack1.pop());\n }\n }\n return mStack2.pop();\n }", "public int pop() {\n if (isEmpty()) {\n throw new IllegalStateException(\"Der Stack ist leer.\");\n }\n if((values.length / 2) >= size) {\t\t\t\t// Überprüfen, ob das Array nicht zu groß ist und ob nicht die Hälfte auch reicht\n \tint[] save = this.values;\t\t\t\t\t// sichere altes Array\n \tthis.values = new int[save.length / 2];\t\t// verkleinere values Array\n \tfor (int i = 0; i < values.length; i++) {\t// kopiere die alten Werte in das neue Array\n \t\tvalues[i] = save[i];\n \t}\n }\n int save = values[size-1];\n values[--size] = 0;\n return save;\n }", "public int pop() {\n return One.poll();\n }", "public int pop() {\n\t\tpeek();\n\t\treturn output.pop();\n\t}", "@Override\n\tpublic T pop() {\n\t\tLink_Node<T>node = this.last;\n\t\tlast = last.getPrevious();\n\t\tnode.setPrevious(null);\n\t\t--counts;\n\t\treturn node.getValue();\n\t}", "public T pop() {\r\n\r\n\t\tT top = peek(); // Throws exception if stack is empty.\r\n\t\t\r\n\t\t// Sets top of stack to next link. \r\n\t\ttopNode = topNode.getNext();\r\n\t\t\r\n\t\treturn top;\r\n\t\t\r\n\t}", "public void pop(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(this.topOfStack==-1){\n System.out.println(\"Stack is empty, can't pop from stack\");\n return;\n }\n // if stack is not empty\n this.arr[this.topOfStack]=Integer.MIN_VALUE;\n this.topOfStack--;\n }", "@Override\r\n\tpublic E pop() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\tE answer = stack[t];\r\n\t\tstack[t] = null; // dereference to help garbage collection\r\n\t\tt--;\r\n\t\treturn answer;\r\n\t}", "public E pop() {\n return stackImpl.pop();\n }", "@Override\n public E pop() {\n E result = peek();\n storage[ top-- ] = null;\n return result;\n\n }", "public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}", "public T pop() throws StackUnderflowException{\r\n\t\t\t\t\r\n\t\t// check if the stack is empty before popping up.\r\n\t\tif(stackData.isEmpty())\r\n\t\t\tthrow new StackUnderflowException();\r\n\r\n\t\treturn stackData.remove(stackData.size()-1); //popping;\r\n\t}", "@Override\n\tpublic int pop() {\n\t\treturn 0;\n\t}" ]
[ "0.8433834", "0.837692", "0.8297882", "0.82665455", "0.82358855", "0.82147247", "0.82093084", "0.82012445", "0.81703454", "0.8112051", "0.807129", "0.8047847", "0.7997308", "0.79894406", "0.7963466", "0.7961267", "0.79141814", "0.79097253", "0.7904519", "0.78950644", "0.7877232", "0.7829883", "0.7817112", "0.77911377", "0.77814215", "0.7776989", "0.7775224", "0.77720153", "0.77719474", "0.77692676", "0.77592176", "0.7749818", "0.77472526", "0.7738881", "0.7733676", "0.77316886", "0.77316886", "0.77105856", "0.76983863", "0.7671862", "0.7661845", "0.7654457", "0.7650798", "0.7625862", "0.76248604", "0.7618617", "0.7606781", "0.76065415", "0.7581567", "0.7572745", "0.754099", "0.75269383", "0.7521322", "0.75192857", "0.75179416", "0.7511348", "0.7493752", "0.74926335", "0.7485552", "0.7476166", "0.7475315", "0.74409693", "0.74401844", "0.7435365", "0.7432625", "0.74249667", "0.7418653", "0.741771", "0.73999023", "0.73983085", "0.73944", "0.73859775", "0.73741704", "0.7347189", "0.7345289", "0.73351747", "0.7331535", "0.7329709", "0.732755", "0.73249936", "0.7318529", "0.7317947", "0.7310028", "0.7308197", "0.730042", "0.730041", "0.7296566", "0.72940946", "0.7290373", "0.7280654", "0.72770375", "0.72738963", "0.7272673", "0.7262316", "0.7259914", "0.72345996", "0.72300506", "0.72228837", "0.72203726", "0.7218875", "0.7209298" ]
0.0
-1
EmptyStackException should be thrown when the pop() method in the NumStack class is called, and the stack is currently empty.
@Test /*Test 21 - the pop() method now throws the EmptyStackException if it is called when the stack size is currently 0.*/ public void testPopEmptyStackException() throws EmptyStackException, BadTypeException { exception.expect(EmptyStackException.class); exception.expectMessage("The stack is empty. No element can be removed."); numStackTest.pop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testPop() {\n Exception exception = null;\n try {\n this.empty.pop();\n }\n catch (Exception e) {\n exception = e;\n }\n assertNotNull(exception);\n assertTrue(exception instanceof EmptyStackException);\n\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.pop();\n assertEquals(this.stack.size(), 9, 0.01);\n assertEquals(this.stack.peek(), 8, 0.01);\n }", "@Test(expected = EmptyStackException.class)\n public void testPopOnEmptyStack() throws EmptyStackException {\n SimpleStack stack = new DefaultSimpleStack();\n\n // When we « pop » the stack\n stack.pop(); // should throws an EmptyStackException.\n }", "@Test\n public void testPopEmptyStack(){\n ms = new MyStack();\n try {\n ms.pop();\n }catch(EmptyStackException e){\n System.out.println(\"Error, cannot pop an empty stack.\");\n }\n }", "public EmptyStackException() {\n\t\tsuper(\"Stack is empty\");\n\t}", "public StackUnderflowException(){\n super(\"Can not pop from an empty stack\");\n }", "public void testClear() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.clear();\n assertEquals(this.stack.size(), 0, 0.01);\n Exception exception = null;\n try {\n this.empty.pop();\n }\n catch (Exception e) {\n exception = e;\n }\n assertNotNull(exception);\n assertTrue(exception instanceof EmptyStackException);\n }", "@Test(expected = EmptyStackException.class)\n public void testPeekOnEmptyStack() throws EmptyStackException {\n SimpleStack stack = new DefaultSimpleStack();\n\n // When we « pop » the stack\n stack.peek(); // should throws an EmptyStackException.\n }", "E pop() throws EmptyStackException;", "public void pop()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n stack.remove(top - 1);\n top--;\n }\n }", "public void pop() throws StackUnderflowException {\r\n if(!isEmpty()) items.remove(0);\r\n else throw new StackUnderflowException(\"Stack Empty\");\r\n }", "public void testPeek() {\n Exception exception = null;\n try {\n this.empty.peek();\n }\n catch (Exception e) {\n exception = e;\n }\n assertNotNull(exception);\n assertTrue(exception instanceof EmptyStackException);\n\n assertEquals(this.stack.peek(), 9, 0.01);\n }", "public EmptyStackException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public EmptyStackException(String message){\n\t\tsuper(message);\n\t}", "public E pop()\n\tthrows EmptyStackException;", "public void StackTest() {\n\tSystem.out.println( \"\\nQuestion (8) Stack Test\" );\n\tSystem.out.println( \"-----------------------\");\n\tStack s = new Stack(3);\n\tSystem.out.println( \"push 0\");\n\ts.push(0);\n\tSystem.out.println( \"push 1\");\n\ts.push(1);\n\tSystem.out.println( \"push 2\");\n\ts.push(2);\n\tSystem.out.println( \"try to push 3\");\n\ts.push(3); // error here pushing beyond stack depth, will print error messgae\n\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() );\n\tSystem.out.println( \"pop \" + s.pop() ); \n\tSystem.out.println( \"try to pop \" ); // error here poping off empty stack\n\ts.pop();\n }", "@Test (expected = EmptyStackException.class)\r\n\t\tpublic void testEmptyStackException1()\r\n\t\t{\r\n\t\t\tse = new SolveExp(\"5 +\");\r\n\t\t\tse.solve();\r\n\t\t}", "public EmptyStackException(String message) {\n\t\tsuper(message);\n\t}", "public EmptyStackException(String message) {\n\t\tsuper(message);\n\t}", "@Override\n public E pop() throws EmptyStackException{\n \n if(!isEmpty()){\n count--;\n E eval = stackArray[count];\n stackArray[count] = null;\n return eval;\n }\n \n else \n throw new EmptyStackException();\n }", "@SubL(source = \"cycl/stacks.lisp\", position = 2117) \n public static final SubLObject stack_empty_p(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n return Types.sublisp_null(stack_struc_elements(stack));\n }", "void onStackEmpty();", "@Override\n\tpublic void pop() throws StackEmptyException {\n\t\tif(top != null) {\n\t\t\ttop = top.getLink();\n\t\t}\n\t\telse {\n\t\t\tthrow new StackEmptyException(\"Pop attempted on an empty stack.\");\n\t\t}\n\t}", "public boolean stackEmpty() {\r\n\t\treturn (top == -1) ? true : false;\r\n\t }", "@Override\r\n\tpublic T pop() throws StackEmptyException {\n\t\tif(isempty()) { throw new StackEmptyException(\"Pila vacia!!\");}\r\n\t\treturn pop(sentinel);\r\n\t\t\r\n\t}", "protected void stackEmptyButton() {\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tstack.pop();\n \t\tif (stack.empty()) {\n \t\t\tenter();\n \t}\n \t}\n }", "public void pop(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(this.topOfStack==-1){\n System.out.println(\"Stack is empty, can't pop from stack\");\n return;\n }\n // if stack is not empty\n this.arr[this.topOfStack]=Integer.MIN_VALUE;\n this.topOfStack--;\n }", "@Test /*Test 18 - implemented isEmpty() method to NumStack class. Refactored isEmpty() to now \n call the size() method of the Stack object in NumStack to determine if it is empty, rather than \n always returning true.*/\n public void testIsEmpty() {\n assertTrue(\"NumStack object should be empty after creation\", numStackTest.isEmpty());\n }", "@Test\r\n public void isEmptyTest1(){\r\n stack.pop();\r\n stack.pop();\r\n stack.pop();\r\n assertThat(stack.isEmpty(), is(true));\r\n }", "@Test /*Test 20 - implemented pop() method to NumStack class. Refactored this method to a singe \n line return statement.*/\n public void testPop() throws Exception {\n numStackTest.push(5);\n assertEquals(\"The pop() method should return 5\", numStackTest.pop(), 5, 0.001);\n assertTrue(\"The stack should be empty after popping the only entry\", numStackTest.isEmpty());\n }", "public double pop() throws EmptyStackException {\n if (stack.isListEmpty()) {\n throw new EmptyStackException(\"The stack is empty, you cannot pop it.\");\n } else {\n double last = stack.getHead().getNumber();\n stack.deleteFromStart();\n return last;\n }\n }", "public void testIsEmpty() {\n assertTrue(this.empty.isEmpty());\n assertFalse(this.stack.isEmpty());\n }", "@Test\n public void testNonemptyStack() {\n ProgramStack ps = new ProgramStack();\n\n ps.push(1);\n ps.push(2);\n ps.push(3);\n\n Assert.assertEquals(\"[1, 2, 3]\", ps.toString());\n }", "@Test\n public void testEmptyStack() {\n ProgramStack ps = new ProgramStack();\n\n Assert.assertEquals(\"[]\", ps.toString());\n }", "@Test\n public void testPushPop(){\n ms=new MyStack();\n ms.push(2);\n ms.pop();\n assertTrue(ms.IsEmpty());\n }", "public int pop() throws EmptyStackException{\n //To be written by student\n if(top==-1){\n System.out.println(\"Stack is Empty!\");\n throw new EmptyStackException();\n }\n else if(localSize==A.getSize()/2){\n \tint tp=0;\n \ttry{\n \t\t tp=A.getElement(top);\n \t}catch(Exception e){e.printStackTrace();}\n top--;localSize--;\n A.halveSize();\n return tp;\n }\n else{ int tp=0;\n \ttry{\n \t\t tp=A.getElement(top);\n \t}catch(Exception e){e.printStackTrace();}\n top--;localSize--;\n \n return tp;\n }\n }", "@Test\n public void isEmpty() {\n SimpleStack stack = new DefaultSimpleStack();\n\n // then the stack is empty\n assertTrue(stack.isEmpty());\n }", "@Override\r\n\tpublic T pop() throws StackUnderflowException {\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\tstack.remove(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}", "@Test\n public void testMassiveStackOfNothing() {\n\n System.out.println(\"isEmpty\");\n\n int sizeTest = 10000;\n int expectedSize = 0;\n \n String tempString = null;\n String expected = null;\n \n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = 0; i < sizeTest; i++) {\n instance.push(tempString);\n }\n\n int fourSize = instance.size();\n assertEquals(fourSize, expectedSize);\n assertEquals(instance.isEmpty(), true);\n\n for (int i = sizeTest; i > 0; i--) {\n\n String result = instance.pop();\n\n assertEquals(expected, result);\n\n }\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "@Test\n public void testIsEmpty(){\n ms = new MyStack();\n assertTrue(ms.IsEmpty());\n }", "public boolean emptyStack() {\n return (expStack.size() == 0);\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn stack.isEmpty();\r\n\t}", "public boolean isEmpty() {return stackList.isEmpty();}", "@Override\n\tpublic E pop() throws EmptyStackException {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException(\"Empty Stack\");\n\t\t}\n\t\tE element = arr[top];\n\t\tarr[top--] = null;\n\t\treturn element;\n\t}", "public void pop() throws StackUnderflowException;", "@Test\r\n public void testPopShouldReturnObjectWhenStackNotEmpty() {\r\n stackInstance=new StackUsingLinkedList<Integer>();\r\n stackInstance.push(49);\r\n stackInstance.push(57);\r\n stackInstance.push(2);\r\n Integer actualOutput=stackInstance.pop();\r\n Integer expectedOutput=2;\r\n assertEquals(expectedOutput,actualOutput);\r\n }", "public void pop() {\n\t\tif (top == -1) {\n\t\t\tSystem.out.println(\"Stack is empty\");\n\t\t} else {\n\t\t\tSystem.out.println(stacks[top] + \" is popped\");\n\t\t\ttop--;\n\t\t}\n\t\tsize--;\n\t}", "@Test\n public void testIsEmpty() {\n System.out.println(\"isEmpty\");\n instance = new Stack();\n assertTrue(instance.isEmpty());\n instance.push(\"ab\");\n instance.push(\"cd\");\n assertFalse(instance.isEmpty());\n instance.pop();\n instance.pop();\n assertTrue(instance.isEmpty());\n }", "public void pop() {\n if(!empty()){\n \tstack.pop();\n }\n }", "@Test\r\n\tpublic void testPop()\r\n\t{\n\t\tassertEquals(null,myStack.pop());\r\n\t\r\n\t\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\t\tassertEquals(27,myStack.top().getId());\r\n\t\tassertEquals(\"Chur\",myStack.pop().getName());\r\n\t\tassertEquals(4,myStack.pop().getId());\r\n\t\tassertEquals(2,myStack.pop().getId());\r\n\t\t\r\n\t\t// leerer Stack\r\n\t\tassertEquals(null,myStack.pop());\r\n\t\tassertEquals(null,myStack.top());\r\n\t}", "public PopResult<T> pop() throws RPLEmptyStackException {\n\t\tif (element == null) {\n\t\t\tthrow new RPLEmptyStackException();\n\t\t}\n\t\treturn new PopResult<T>(parent, element);\n\t}", "@Test\n public void pop() {\n SimpleStack stack = new DefaultSimpleStack();\n Item item = new Item();\n Item item1 = new Item();\n stack.push(item);\n stack.push(item1);\n\n // When we pop the stack\n Item topItem = stack.pop();\n\n // Then…\n assertEquals(\"The stack constains 1 item\", 1, stack.getSize());\n assertSame(\"The first item is on top of the stack\", item, stack.peek());\n assertSame(item1, topItem);\n }", "@Test\n public void pushOnStackTest_InCorrect(){\n assertNotEquals(10 , stack.getStack().returnFirst());\n }", "@Test\n void whenPopTillStackEmptyReturnNodeShouldBeFirstNode() {\n\n MyNode<Integer> myFirstNode = new MyNode<>(70);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(56);\n MyStack myStack = new MyStack();\n myStack.push(myFirstNode);\n myStack.push(mySecondNode);\n myStack.push(myThirdNode);\n boolean isEmpty = myStack.popTillEmpty();\n\n System.out.println(isEmpty);\n boolean result = myStack.head == null && myStack.tail == null;\n }", "@Override\r\n\tpublic AnyType pop() throws StackException {\n\t\tif(isEmpty()) throw new StackException(\"Stack is full\");\r\n\t\tAnyType data = top.data;\r\n\t\ttop=top.next;\r\n\t\treturn data;\r\n\t}", "@Test\n public void testPush(){\n ms=new MyStack();\n ms.push(1);\n assertFalse(ms.IsEmpty());\n }", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "@Test\n public void testPop(){\n FunctionalLinkedList newList = new FunctionalLinkedList(); \n stack = new ImprovedStackImpl(newList);\n for(int i = 1; i < 101; i++){\n stack.push(i * 10);\n }\n \n // Check that popping an element leave the correct element on top.\n stack.pop();\n int pop = (Integer) stack.pop().getReturnValue();\n assertEquals(\"Initial pop did not work correctly.\", 990, pop);\n \n // Check that the size after popping is correct.\n int size = stack.size();\n assertEquals(\"Stack is not the correct size.\", 98, size);\n \n // Check that correct error is returned from popping an empty stack.\n for(int i = 98; i > 0; i--){\n stack.pop();\n }\n ErrorMessage error = stack.pop().getError();\n assertEquals(\"A correct error message is not returned.\", ErrorMessage.EMPTY_STRUCTURE, error);\n }", "public EmptyStackException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "E peek() throws EmptyStackException;", "T pop() {\n if (stackSize == 0) {\n throw new EmptyStackException();\n }\n return stackArray[--stackSize];\n }", "public E top()\n\tthrows EmptyStackException;", "@Test /*Test 19 - implemented push() method to NumStack class.*/\n public void testPush() {\n numStackTest.push(5);\n assertFalse(\"NumStack object shouldn't be empty after pushing first entry onto it\", \n numStackTest.isEmpty());\n numStackTest.push(10);\n assertFalse(\"NumStack object shouldn't be empty after pushing second entry onto it\", \n numStackTest.isEmpty());\n numStackTest.push(15);\n assertFalse(\"NumStack object shouldn't be empty after pushing third entry onto it\", \n numStackTest.isEmpty());\n }", "public T pop() throws EmptyStackException\r\n {\r\n if (isEmpty())\r\n throw new EmptyStackException();\r\n\r\n top--;\r\n T result = stack[top];\r\n stack[top] = null; \r\n\r\n return result;\r\n }", "@Override\n public E top()throws EmptyStackException{\n E c = null;\n if(!isEmpty()){\n c = stackArray[count-1];\n return c;\n }\n \n else \n throw new EmptyStackException();\n }", "private static boolean isStackEmpty(SessionState state)\n\t{\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\treturn operations_stack.isEmpty();\n\t}", "public boolean isCarStackEmpty() {\n boolean carStackEmpty = false;\n if(top < 0) {\n carStackEmpty = true;\n }\n return carStackEmpty;\n }", "public boolean empty() {\n return stack.empty();\n }", "@Override\r\n\tpublic T top() throws StackUnderflowException{\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}", "public boolean isEmpty(){\n return this.stack.isEmpty();\n\n }", "@Test\r\n public void testIsEmptyShouldReturnFalseWhenStackNotEmpty() {\r\n stackInstance=new StackUsingLinkedList<Integer>();\r\n stackInstance.push(90);\r\n stackInstance.push(5);\r\n boolean actualOutput=stackInstance.isEmpty();\r\n assertEquals(false,actualOutput);\r\n }", "protected void pop() throws EmptyStackException {\n\tif (debug) {\n\t System.out.println(\"EventQueue.pop(\" + this + \")\");\n\t}\n\n\t// To prevent deadlock, we lock on the previous EventQueue before\n\t// this one. This uses the same locking order as everything else\n\t// in EventQueue.java, so deadlock isn't possible.\n\tEventQueue prev = previousQueue;\n\tsynchronized ((prev != null) ? prev : this) {\n\t synchronized(this) {\n if (nextQueue != null) {\n nextQueue.pop();\n return;\n }\n if (previousQueue == null) {\n throw new EmptyStackException();\n }\n\n\t // Transfer all events back to previous EventQueue.\n\t previousQueue.nextQueue = null;\n\t while (peekEvent() != null) {\n\t\ttry {\n\t\t previousQueue.postEventPrivate(getNextEvent());\n\t\t} catch (InterruptedException ie) {\n\t\t if (debug) {\n\t\t\tSystem.err.println(\"interrupted pop:\");\n\t\t\tie.printStackTrace(System.err);\n\t\t }\n\t\t}\n\t }\n\t previousQueue = null;\n }\n }\n\n\tdispatchThread.stopDispatching(); // Must be done outside synchronized\n\t\t\t\t\t // block to avoid possible deadlock\n }", "@Override\n\tpublic E pop() {\n\t\tif(size == 0) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\tsize--;\n\t\treturn list.remove(0);\n\t}", "public Object pop( )\n {\n Object item = null;\n\n try\n {\n if ( this.top == null)\n {\n throw new Exception( );\n }\n\n item = this.top.data;\n this.top = this.top.next;\n \n this.count--;\n }\n catch (Exception e)\n {\n System.out.println( \" Exception: attempt to pop an empty stack\" );\n }\n\n return item;\n }", "public static void main (String[] args) {\n // testing LinkedStack\n // ===================\n System.out.println(\"\\n** Test output for LinkedStack **\\n\");\n\n // instantiate new LinkedStack\n LinkedStack<String> stack = new LinkedStack<String>();\n\n // check size is 0 and isEmpty() returns true\n System.out.println(\"Checking that size = 0 and isEmpty is true...\");\n System.out.println(\"Size: \" + stack.size() + \" isEmpty: \" + stack.isEmpty());\n\n // test peeking and popping empty stack, should throw exception\n System.out.println(\"Popping empty stack, which throws EmptyCollectionException:\");\n try {\n System.out.println(stack.pop());\n }\n catch (EmptyCollectionException e) {\n System.out.println(e.getClass() + \" \" + e.getMessage() + \"\\n\");\n }\n System.out.println(\"Peeking at empty stack, which throws EmptyCollectionException:\");\n try {\n System.out.println(stack.peek());\n }\n catch (EmptyCollectionException e) {\n System.out.println(e.getClass() + \" \" + e.getMessage() + \"\\n\");\n\n }\n\n // push an element onto stack, stack should have one element\n System.out.println(\"Pushing an element...\");\n stack.push(\"One\");\n System.out.println(\"After pushing a single element, the stack should have one element \\\"One\\\"\");\n System.out.println(stack);\n System.out.println();\n\n // pop the element, stack should be empty again\n System.out.println(\"Popping...\");\n stack.pop();\n System.out.println(\"After the pop operation, stack should be empty:\");\n System.out.println(stack);\n\n // push more elements\n System.out.println(\"Pushing an element...\");\n stack.push(\"Two\");\n System.out.println(\"Pushing an element...\");\n stack.push(\"Three\");\n System.out.println(\"Pushing an element...\");\n stack.push(\"Four\");\n System.out.println(\"Pushing an element...\");\n stack.push(\"Five\");\n System.out.println(\"Pushing an element...\");\n stack.push(\"Six\");\n System.out.println(\"Pushing an element...\");\n stack.push(\"Seven\");\n System.out.println(\"Stack with six elements:\");\n System.out.println(stack);\n System.out.println();\n\n // check size is 6 and isEmpty() returns false\n System.out.println(\"Checking that size = 6 and isEmpty is false...\");\n System.out.println(\"Size: \" + stack.size() + \" isEmpty: \" + stack.isEmpty());\n System.out.println();\n\n // test peeking at top element from stack\n System.out.println(\"Peeking at top element..\");\n System.out.println(stack.peek());\n System.out.println();\n\n // test popping top element from stack\n System.out.println(\"Popping...\");\n System.out.println(stack.pop());\n System.out.println(\"Stack after pop operation:\");\n System.out.println(stack);\n System.out.println();\n\n\n // ====================\n // testing DropOutStack\n // ====================\n System.out.println(\"\\n** Test output for DropOutStack **\\n\");\n // instantiate new DropOutStack with capacity of 5\n DropOutStack<String> dropStack = new DropOutStack<String>(5);\n\n // test peeking and popping empty stack, should throw exception\n System.out.println(\"Popping empty stack, which throws EmptyCollectionException:\");\n try {\n System.out.println(dropStack.pop());\n }\n catch (EmptyCollectionException e) {\n System.out.println(e.getClass() + \" \" + e.getMessage() + \"\\n\");\n }\n System.out.println(\"Peeking at empty stack, which throws EmptyCollectionException:\");\n try {\n System.out.println(dropStack.peek());\n }\n catch (EmptyCollectionException e) {\n System.out.println(e.getClass() + \" \" + e.getMessage() + \"\\n\");\n\n }\n\n // check size is 0 and isEmpty() returns true\n System.out.println(\"Checking that size = 0 and isEmpty is true...\");\n System.out.println(\"Size: \" + dropStack.size() + \" isEmpty: \" + dropStack.isEmpty());\n System.out.println();\n\n // push 3 elements to stack, stack not full\n System.out.println(\"Pushing an element...\");\n dropStack.push(\"One\");\n System.out.println(\"Pushing an element...\");\n dropStack.push(\"Two\");\n System.out.println(\"Pushing an element...\");\n dropStack.push(\"Three\");\n System.out.println(\"After 3 push operations, the stack looks like this:\");\n System.out.println(dropStack);\n System.out.println();\n\n // check size is 3 and isEmpty() returns false\n System.out.println(\"Checking that size = 3 and isEmpty is false...\");\n System.out.println(\"Size: \" + dropStack.size() + \" isEmpty: \" + dropStack.isEmpty());\n System.out.println();\n\n // push 3 more elements to stack, should drop first element pushed to stack (\"One\")\n System.out.println(\"Pushing an element...\");\n dropStack.push(\"Four\");\n System.out.println(\"Pushing an element...\");\n dropStack.push(\"Five\");\n System.out.println(\"Pushing an element...\");\n dropStack.push(\"Six\");\n System.out.println(\"Stack after 3 more push operations, first element \\\"One\\\" is lost:\");\n System.out.println(dropStack);\n System.out.println();\n\n // check size is 5 and isEmpty() returns false\n System.out.println(\"Checking that size = 5 and isEmpty is false...\");\n System.out.println(\"Size: \" + dropStack.size() + \" isEmpty: \" + dropStack.isEmpty());\n System.out.println();\n\n // test peeking at top element from stack\n System.out.println(\"Peeking at top element..\");\n System.out.println(dropStack.peek());\n System.out.println();\n\n // test popping top element from stack\n System.out.println(\"Popping next element\");\n dropStack.pop();\n System.out.println(\"Stack after pop operation:\");\n System.out.println(dropStack);\n System.out.println();\n\n // push another element\n System.out.println(\"Pushing another element...\");\n dropStack.push(\"Seven\");\n System.out.println(\"After push operation:\");\n System.out.println(dropStack);\n System.out.println();\n\n // pop all elements from stack, stack should be empty\n System.out.println(\"Popping all elements from stack:\");\n dropStack.pop();\n dropStack.pop();\n dropStack.pop();\n dropStack.pop();\n dropStack.pop();\n\n System.out.println(\"Stack is empty:\");\n System.out.println(dropStack);\n\n\n }", "public int pop() throws IllegalStateException {\n if (size == 0)\n throw new IllegalStateException(\"Empty stack\");\n int last = data[size-1];\n size--;\n return last;\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "@Override\n public T pop() {\n if (!isEmpty()) {\n T data = backing[size - 1];\n backing[size - 1] = null;\n size--;\n return data;\n } else {\n throw new NoSuchElementException(\"The stack is empty\");\n }\n }", "@Test\n public void testPushAndPopC() {\n\n System.out.println(\"pushB - All Nulls\");\n String elementOne = null;\n String elementTwo = null;\n String elementThree = null;\n String elementFour = null;\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n instance.push(elementFour);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String resultFour = instance.pop();\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "public T pop() throws StackUnderflowException{\r\n\t\t\t\t\r\n\t\t// check if the stack is empty before popping up.\r\n\t\tif(stackData.isEmpty())\r\n\t\t\tthrow new StackUnderflowException();\r\n\r\n\t\treturn stackData.remove(stackData.size()-1); //popping;\r\n\t}", "public boolean empty() {\n return stack1.empty();\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "public T pop() throws EmptyStackException {\n if (top == null) {\n throw new EmptyStackException();\n }\n\n StackNode<T> removed = top;\n top = top.getNext();\n return removed.getData();\n }", "@Test\n public void testPushCallTop(){\n ms = new MyStack();\n ms.push(1);\n ms.top();\n assertFalse(ms.IsEmpty());\n }", "public boolean empty() {\r\n return this.stack.isEmpty();\r\n }", "@Test\n public void testPushAndPopD() {\n System.out.println(\"popC - Out of Order\");\n\n String elementOne = \"Bill\";\n String elementTwo = \"Steve\";\n String elementThree = \"Tim\";\n String elementFour = \"Dave\";\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 3);\n assertEquals(instance.isEmpty(), false);\n\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n\n instance.push(elementFour);\n String resultFour = instance.pop();\n\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "private static int pop(Stack<Integer> top_ref) {\n /*If stack is empty then error */\n if (top_ref.isEmpty()) {\n System.out.println(\"Stack Underflow\");\n System.exit(0);\n }\n //pop the data from the stack\n return top_ref.pop();\n }", "@Test\n public void isEmptyTest() {\n ResourceStack stack5 = new ResourceStack(1,0,0,0);\n assertFalse(stack5.isEmpty());\n stack5 = new ResourceStack(0,1,0,0);\n assertFalse(stack5.isEmpty());\n stack5 = new ResourceStack(0,0,1,0);\n assertFalse(stack5.isEmpty());\n stack5 = new ResourceStack(0,0,0,1);\n assertFalse(stack5.isEmpty());\n\n stack5 = new ResourceStack(0,0,0,0);\n assertTrue(stack5.isEmpty());\n }", "public E pop() {\n\t\tE answer;\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\tanswer = this.top.data;\n\t\tthis.top = this.top.link;\n\t\treturn answer;\t\n\t}", "public boolean empty() {\n return popStack.isEmpty();\n }", "public Item pop() throws EmptyStackException{\n return (Item) stack.pop();\n\n }", "public boolean isEmpty(){\r\n \treturn stack1.isEmpty();\r\n }", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public AnyType pop() throws StackException;", "@Override\n\tpublic T pop() throws StackUnderflowException {\n\t\t//If the Stack is empty, throw Exception\n\t\tif(this.isEmpty()) throw new StackUnderflowException(\"The stack is empty. The operation may not be completed\");\n\t\t\n\t\telse {\n\t\t\t//Retrieve the Object from the top Node of the Stack \n\t\t\tT returnData = topNode.data;\n\t\t\t\n\t\t\t//Remove the top Node and promote second Node\n\t\t\ttopNode = topNode.nextNode;\n\t\t\tnodeCount--;\n\t\t\t\n\t\t\t//Return retrieved data\n\t\t\treturn returnData;\n\t\t}\n\t}", "@When(\"^I pop from the stack$\")\n\tpublic void i_pop_from_the_stack() throws Throwable {\n\t throw new PendingException();\n\t}", "public boolean empty() {\n return stack.isEmpty();\n }", "public boolean empty() {\n return stack.isEmpty();\n }", "public void deleteStack(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // if stack is present\n topOfStack=-1;\n arr=null;\n System.out.println(\"Stack deleted successfully\");\n }", "public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }" ]
[ "0.8324795", "0.8282161", "0.82515895", "0.8229837", "0.78279567", "0.78072625", "0.77622926", "0.76335514", "0.7553446", "0.744571", "0.7438966", "0.7417263", "0.74154776", "0.736986", "0.73620135", "0.7356036", "0.73345673", "0.73345673", "0.7292205", "0.7276915", "0.72674406", "0.72476214", "0.7092827", "0.7064253", "0.7058921", "0.6975581", "0.696758", "0.6901186", "0.6871477", "0.68634415", "0.6847174", "0.681042", "0.68085194", "0.6795803", "0.67944694", "0.679119", "0.67892087", "0.678496", "0.6779516", "0.67726403", "0.67483723", "0.67351854", "0.673514", "0.67347354", "0.67300457", "0.6722252", "0.6717212", "0.67051923", "0.6677708", "0.6674544", "0.6666003", "0.666068", "0.6642186", "0.66380924", "0.6631601", "0.6607156", "0.6600067", "0.6584683", "0.65737647", "0.657012", "0.656878", "0.6562084", "0.6557823", "0.65261483", "0.6521094", "0.651342", "0.65097433", "0.6509648", "0.6507123", "0.6502033", "0.6500426", "0.6498088", "0.6479853", "0.64753354", "0.6472457", "0.6469442", "0.6457531", "0.64569", "0.64514554", "0.64460933", "0.64393", "0.6438146", "0.64343655", "0.64331686", "0.64293313", "0.6414884", "0.64068", "0.6401852", "0.6393462", "0.63925564", "0.63921356", "0.639205", "0.63709944", "0.6367978", "0.63639057", "0.63583875", "0.6353741", "0.6353741", "0.63498443", "0.6346662" ]
0.8387535
0
Created by Chenll on 2016/8/26.
public interface IDbOperator { TaskEntity getTaskBySeqId(long seqId); void saveOrUpdate(TaskEntity taskEntity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tprotected void getExras() {\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}", "private void poetries() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void gored() {\n\t\t\n\t}", "public void mo4359a() {\n }", "private void kk12() {\n\n\t}", "@Override\n public void init() {\n }", "private void init() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n void init() {\n }", "private void m50366E() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public int describeContents() { return 0; }", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo6081a() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "public void mo55254a() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void init() {\n\n\n\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public void mo12628c() {\n }", "public void m23075a() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "public void mo21877s() {\n }" ]
[ "0.61239", "0.60510564", "0.5925495", "0.5916092", "0.5874179", "0.5874179", "0.57767254", "0.57709193", "0.57708585", "0.5751411", "0.5748393", "0.5672352", "0.5668553", "0.5666193", "0.5665775", "0.5660828", "0.5658147", "0.5654267", "0.5650187", "0.56386477", "0.5632579", "0.5632579", "0.5632579", "0.5632579", "0.5632579", "0.56279665", "0.5601581", "0.55914384", "0.5581145", "0.55790305", "0.5566054", "0.55566585", "0.5553637", "0.5550263", "0.5549145", "0.5541631", "0.5527617", "0.5527617", "0.5525429", "0.55222064", "0.55150473", "0.5512792", "0.549853", "0.549853", "0.549853", "0.5495683", "0.5494922", "0.5494922", "0.5494922", "0.5494922", "0.5494922", "0.5494922", "0.54943687", "0.54943687", "0.54919773", "0.54866755", "0.54866755", "0.54866755", "0.54866755", "0.54866755", "0.54866755", "0.54866755", "0.5482166", "0.5482166", "0.5482166", "0.5481087", "0.5481087", "0.54806155", "0.547792", "0.54771763", "0.5475283", "0.5475283", "0.5475283", "0.54659057", "0.54647416", "0.54621994", "0.5461876", "0.54542464", "0.5447193", "0.5442375", "0.5440808", "0.5435149", "0.54259586", "0.54197985", "0.5409803", "0.54042757", "0.54040307", "0.5400308", "0.539879", "0.5397452", "0.5392303", "0.53739905", "0.53652114", "0.53510934", "0.5346977", "0.5346186", "0.53395426", "0.53218687", "0.5316073", "0.53147745", "0.53078187" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { if(database.connectToRMIDatabaseServer()) { System.out.println("database found"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Controller()\n\t{\n\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public Controller() {\n\t\tthis(null);\n\t}", "public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}", "private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}", "public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}", "protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "protected CityController() {\r\n\t}", "public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }", "public ClientController() {\n }", "public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}", "public ListaSEController() {\n }", "boolean InitController();", "public MenuController() {\r\n\t \r\n\t }", "@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}", "public CustomerController() {\n\t\tsuper();\n\n\t}", "public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}", "public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}", "public PlantillaController() {\n }", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public IfController()\n\t{\n\n\t}", "public TournamentController()\n\t{\n\t\tinitMap();\n\t}", "public GeneralListVueController() {\n\n\t}", "private ClientController() {\n }", "public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "public LogMessageController() {\n\t}", "public LoginPageController() {\n\t}", "public ControllerEnfermaria() {\n }", "public ProvisioningEngineerController() {\n super();\n }", "private StoreController(){}", "public GenericController() {\n }", "@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}", "public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}", "public MapController() {\r\n\t}", "@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}", "private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }", "public WfController()\n {\n }", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "private ClientController(){\n\n }", "public LoginController() {\r\n }", "public PersonasController() {\r\n }", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "public StoreController() {\n }", "public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}", "public LoginController() {\r\n\r\n }", "public final void init(final MainController mainController) {\n this.mainController = mainController;\n }", "public SMPFXController() {\n\n }", "public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }", "public GUIController() {\n\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "public ControllerTest()\r\n {\r\n }", "public SearchedRecipeController() {\n }", "public FilmOverviewController() {\n }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public RootLayoutController() {\n }", "public MehController() {\n updateView(null);\n }", "public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}", "public WorkerController(){\r\n\t}", "public TipoInformazioniController() {\n\n\t}", "private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }", "public ProductOverviewController() {\n }", "public ProduktController() {\r\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }", "public PersonLoginController() {\n }", "public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}", "public TaxiInformationController() {\n }", "public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }", "public CreateDocumentController() {\n }", "public ControllerRol() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "public void init() {\n \n }", "public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}", "public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}", "public SessionController() {\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public MainFrameController() {\n }", "public LicenciaController() {\n }", "public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }", "public MotorController() {\n\t\tresetTachometers();\n\t}", "public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "public HomeController() {\n }", "public HomeController() {\n }" ]
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.6912564", "0.688884", "0.6881247", "0.68776786", "0.68723065", "0.6868163", "0.68672407", "0.6851157", "0.6846883", "0.6840198", "0.68382674", "0.68338853", "0.6795918", "0.67823315", "0.6766882", "0.67650586", "0.6750353", "0.6749068", "0.6745654", "0.6743223", "0.67401046", "0.6727867", "0.6723379", "0.6695514", "0.6689967", "0.66892517", "0.66791916", "0.6677345", "0.66644365", "0.6664202", "0.66616154", "0.66532296", "0.66481894", "0.6644939", "0.6639398", "0.6633576", "0.66312426", "0.662608", "0.66258574", "0.66105217", "0.6606984", "0.66024727", "0.6597095", "0.6580141", "0.65786153", "0.65752715", "0.6574144", "0.6551536", "0.655142", "0.6547574", "0.6545647", "0.6541474", "0.6529243", "0.65284246", "0.6525593", "0.6523344", "0.6519832", "0.65134746", "0.65079254", "0.6497635", "0.64952356", "0.6493943", "0.6492926", "0.6483847", "0.6483173", "0.648183", "0.6479119", "0.64789915", "0.6476928", "0.64734083", "0.6465272", "0.64616114", "0.6444024", "0.64379543", "0.6431962", "0.64292705", "0.6425357", "0.6417148", "0.6416786", "0.64161026", "0.64161026" ]
0.0
-1
Retrieves application from the request context.
public com.atomgraph.linkeddatahub.apps.model.Application getApplication() { return (com.atomgraph.linkeddatahub.apps.model.Application)getContainerRequestContext().getProperty(LAPP.Application.getURI()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Application getApplication();", "protected Application getApplication() {\r\n\t\treturn application;\r\n\t}", "public ServletContext getApplication() {\n return servletRequest.getServletContext();\n }", "public static Context getAppContext() {\n return _BaseApplication.context;\n }", "public TApplication getApplication() {\n return window.getApplication();\n }", "public Application getApp() {\n\t\treturn app;\n\t}", "public static Context getContext(){\n return appContext;\n }", "public org.thethingsnetwork.management.proto.HandlerOuterClass.Application getApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public static Application getApp() {\n if (sApplication != null) {\n return sApplication;\n }\n Application app = getApplicationByReflect();\n init(app);\n return app;\n }", "public String getApplication() {\r\n return application;\r\n }", "public static ApplicationContext getApplicationContext() {\n return appContext;\n }", "public static Application getApp() {\n if (sApplication != null) return sApplication;\n throw new NullPointerException(\"u should init first\");\n }", "public static App get(Context ctx){\n return (App) ctx.getApplicationContext();\n }", "public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}", "public Application getApplication() {\n return (Application)this.getSource();\n }", "public String getApplication() {\r\n\t\treturn application;\r\n\t}", "public Object getApplication(String attibuteName) {\n return servletRequest.getServletContext().getAttribute(attibuteName);\n }", "public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }", "public static GretellaApp getApplication() {\n return Application.getInstance(GretellaApp.class);\n }", "public ApplicationContext getApplicationContext() {\n return applicationContext;\n }", "public ApplicationContext getApplicationContext()\n {\n return this.applicationContext;\n }", "public Context getApplicationContext();", "public static RestaurantManagementApp getApplication() {\n return Application.getInstance(RestaurantManagementApp.class);\n }", "ApplicationContext getAppCtx();", "private DiaryApplication getApp() {\n ServletContext application = (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT);\n synchronized (application) {\n DiaryApplication diaryApp = (DiaryApplication) application.getAttribute(\"diaryApp\");\n if (diaryApp == null) {\n try {\n diaryApp = new DiaryApplication();\n diaryApp.setAllPath(application.getRealPath(\"WEB-INF/bookings.xml\"), application.getRealPath(\"WEB-INF/students.xml\"), application.getRealPath(\"WEB-INF/tutors.xml\"));\n application.setAttribute(\"diaryApp\", diaryApp);\n } catch (JAXBException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return diaryApp;\n }\n }", "public void getApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> responseObserver);", "AdminApplication getApplication();", "public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Application> getApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);", "public static ApplicationBase getApplication()\r\n {\r\n if (instance == null)\r\n {\r\n throw new IllegalStateException(\"Micgwaf was not (yet) initialized correctly: no instance of Application is known.\");\r\n }\r\n return instance;\r\n }", "public static MIDLetParamsApp getApplication() {\n return Application.getInstance(MIDLetParamsApp.class);\n }", "@Nullable\n Application getApplication(String name);", "public static Application getInstance(){\n\t\treturn getInstance (null);\n\t}", "private appR getApp() throws JAXBException, IOException {\n synchronized (application) {\r\n appR App = (appR) application.getAttribute(\"App\");\r\n if (App == null) {\r\n App = new appR();\r\n App.setFilePath(application.getRealPath(\"WEB-INF/Listings.xml\"));\r\n application.setAttribute(\"App\", App);\r\n }\r\n return App;\r\n }\r\n }", "public static LoganoApp getApplication() {\n return Application.getInstance(LoganoApp.class);\n }", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}", "public static App getInstance() {\n return applicationInstance;\n }", "static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }", "public MauiApplication getApplication ()\n\t{\n\t\treturn application;\n\t}", "public static Context getApplicationContext() { return mApplicationContext; }", "public abstract ApplicationLoader.Context context();", "public static String getContext(HttpServletRequest request) {\n\t\tString context = request.getParameter(CONTEXT_KEY);\n\t\tif (context == null && Server.getInstance().getAllKnownInternalContexts().size() == 1) {\n\t\t\tcontext = (String) Server.getInstance().getAllKnownInternalContexts().toArray()[0];//req.getContextPath();\n\t\t}\n\t\t// If no or invalid context, display a list of available WebApps\n\t\tif (context == null || Server.getInstance().getApplication(context) == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn context;\n\t\t}\n\t}", "public static Context getAppContext() {\n return mContext;\n }", "public static Application m19631a() {\n try {\n return (Application) Class.forName(\"android.app.ActivityThread\").getMethod(\"currentApplication\", new Class[0]).invoke(null, null);\n } catch (Throwable unused) {\n return null;\n }\n }", "public BuilderApplication getApp() {\n\t\treturn app;\n\t}", "@Override\n public Context getApplicationContext() {\n return mView.get().getApplicationContext();\n }", "public String getApp();", "public static FFTApp getApplication() {\n return Application.getInstance(FFTApp.class);\n }", "protected ApplicationComponent getApplicationComponent() {\n return ((MainApp) getApplication()).getApplicationComponent();\n }", "@Provides\n @Singleton\n @ApplicationScope\n public Context provideApplicationContext() {\n return mApp.getApplicationContext();\n }", "public static TwitterApplication getInstance() {\n return application;\n }", "public static InteractiveApp getApp() {\n return (InteractiveApp) ApplicationInstance.getActive();\n }", "public static BlaiseGraphicsTestApp getApplication() {\n return Application.getInstance(BlaiseGraphicsTestApp.class);\n }", "public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }", "@Override\n\tpublic String getAppId() {\n\t\treturn app.getAppId();\n\t}", "public static App get(Service srv){\n return (App) srv.getApplication();\n }", "public GenericContainer<?> applicationContainer() {\n return applicationContainer;\n }", "public static ApplicationContext getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public ApplicationInfo getApplicationInfo() {\n return null;\n }", "@RequestMapping(value= \"/{applicationName}\", method = RequestMethod.GET)\n\t@ResponseMapping(\"applicationDetails\")\n\tpublic Application getApplicationDetail(@PathVariable String applicationName) {\n\t\tRequestAttributes attributes = RequestContextHolder.getRequestAttributes();\n\t\t\n\t\tif (attributes != null)\n\t\t\tattributes.setAttribute(\"applicationList\", getAllApplications(), RequestAttributes.SCOPE_REQUEST);\n\t\t\n\t\tApplication answer = applicationRepository.findByName(applicationName);\n\t\tif (answer != null)\n\t\t\tanswer.setEnvironments(environmentController.getAllEnvironments(applicationName));\t// Could use template.fetch - but this handles security\n\t\t\n\t\treturn answer;\n\t}", "public static ApplicationEnvironment getEnvironment (){\n\t\treturn _applicationEnvironment;\n\t}", "public static ApplicationController instance() {\r\n\t\treturn controller;\r\n\t}", "public static String getFixApplication(MessageContext msgCtx) {\n Map<String, String> trpHeaders = (Map) msgCtx.getProperty(MessageContext.TRANSPORT_HEADERS);\n //try to get the application type from the transport headers\n String fixApplication = null;\n if (trpHeaders != null) {\n fixApplication = trpHeaders.get(FIXConstants.FIX_MESSAGE_APPLICATION);\n }\n return fixApplication;\n }", "public ApplicationInfo getApplicationInfo() {\n return getActivityInfo().applicationInfo;\n }", "@Override\n public Context getContext() {\n return this.getApplicationContext();\n }", "@VTID(12)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getApplication();", "ApplicationId appId();", "private BookApplication getBookApp() throws JAXBException, IOException, Exception {\n synchronized (application) {\r\n BookApplication bookApp = (BookApplication) application.getAttribute(\"bookApp\");\r\n if (bookApp == null) {\r\n bookApp = new BookApplication();\r\n bookApp.setBookFilePath(application.getRealPath(\"WEB-INF/books.xml\"));\r\n application.setAttribute(\"bookApp\", bookApp);\r\n }\r\n return bookApp;\r\n }\r\n\r\n }", "public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }", "public final String getAppName( )\n\t{\n\t\treturn this.data.getString( \"applicationName\" );\n\t}", "public SmartApplication getSmartApplication() {\r\n\t\treturn application;\r\n\t}", "private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}", "@Override\n public void onApplicationEvent(ContextRefreshedEvent event) {\n\n appContext = event.getApplicationContext();\n System.out.println(appContext.getId());\n\n\n log.info(\"api-web初始化\");\n try {\n ApiUtils_.init(appContext);\n } catch (Exception e) {\n log.warn(\"初始化异常!\", e);\n }\n log.info(\"api-web初始化完成\");\n }", "public IMApplicationInfo getIMApplicationInfo(){\n\t\treturn this.getApplicationContextFactory().getApplicationContext().getRequestContext().getIMApplicationInfo();\n\t}", "Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }", "public final HttpParams getApplicationParams() {\n/* 150 */ return this.applicationParams;\n/* */ }", "public Optional<ApplicationVersion> application() { return application; }", "public static org.oep.ssomgt.model.Application getApplication(\n\t\tlong applicationId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().getApplication(applicationId);\n\t}", "public static AppClient getInstance() {\n return instance;\n }", "@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n Context getApplication();\n}", "@Override\n public Handle<GameAppContext> tryGetGameApp(UUID gameAppUid) \n {\n return manager.tryGetGameApp(gameAppUid);\n }", "public OSPApplication getOSPApp();", "public String getApplicationName() {\n return applicationName;\n }", "@RequestMapping(value = \"/application\", method = RequestMethod.GET)\n\tpublic ModelAndView goToApplicationForm() {\n\n\t\tlogger.info(\"application page requested\");\n\n\t\treturn new ModelAndView(\"application\");\n\n\t}", "public static FoodApplication getInstance() {\n return instance;\n }", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "public static synchronized AppController getInstance() {\n return mInstance;\n }", "public static void init(@NonNull final Context context) {\n BlankjUtils.sApplication = (Application) context.getApplicationContext();\n }", "public interface Application {\n /**\n * Initializes resources used by the Application.\n *\n * @param config the application's configuration object\n */\n public void init(ApplicationConfig config) throws ServletException;\n \n /**\n * Called by the TeaServlet when the application is no longer needed.\n */\n public void destroy();\n\n /**\n * Creates a context, which defines functions that are callable by\n * templates. Any public method in the context is a callable function,\n * except methods defined in Object. A context may receive a request and\n * response, but it doesn't need to use any of them. They are provided only\n * in the event that a function needs access to these objects.\n * <p>\n * Unless the getContextType method returns null, the createContext method\n * is called once for every request to the TeaServlet, so context creation\n * should have a fairly quick initialization. One way of accomplishing this\n * is to return the same context instance each time. The drawback to this\n * technique is that functions will not be able to access the current\n * request and response.\n * <p>\n * The recommended technique is to construct a new context that simply\n * references this Application and any of the passed in parameters. This\n * way, the Application contains all the resources and \"business logic\",\n * and the context just provides templates access to it.\n *\n * @param request the client's HTTP request\n * @param response the client's HTTP response\n * @return an object context for the templates\n */\n public Object createContext(ApplicationRequest request,\n ApplicationResponse response);\n\n /**\n * The class of the object that the createContext method will return, which\n * does not need to implement any special interface or extend any special\n * class. Returning null indicates that this Application defines no\n * context, and createContext will never be called.\n *\n * @return the class that the createContext method will return\n */\n public Class getContextType();\n}", "protected abstract ApplicationContext createApplicationContextImpl(\n MarinerRequestContext requestContext);", "@RequestMapping(value = \"/rest/application\", method = RequestMethod.GET,\n produces = \"application/json\")\n @Timed\n public List<Application> getAllForCurrentUser() {\n log.debug(\"REST request to get all Application\");\n try {\n User currentLoggedInUser = userRepository.getOne(SecurityUtils.getCurrentLogin());\n return applicationRepository.getAllForUser(currentLoggedInUser);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n return null;\n }", "public int getApplicationId() {\r\n\t\tif (applicationId != null) {\r\n\t\t\treturn applicationId;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tJSONObject response = getJSonResponse(Unirest.get(url + NAMED_APPLICATION_API_URL)\r\n\t\t\t\t\t.queryString(\"name\", SeleniumTestsContextManager.getApplicationName()));\r\n\t\t\tapplicationId = response.getInt(\"id\");\r\n\t\t\treturn applicationId;\r\n\t\t} catch (UnirestException e) {\r\n\t\t\tthrow new ConfigurationException(String.format(\"Application %s does not exist in variable server, please create it\", SeleniumTestsContextManager.getApplicationName()));\r\n\t\t}\r\n\t}", "public String getAppName();", "public AppService appService() {\n\t\treturn appService;\n\t}", "public POSApplication getApplicationById(String appId) {\n String url = Configuration.getGS_URL() + APPLICATION_SERVICE + appId;\n Logger.get().info(\"Calling application service url: \" + url);\n\n try {\n POSApplication application = HttpClientApi.getGson(url, POSApplication.class);\n return application;\n } catch (Exception e) {\n Logger.get().info(\"Exception when invoking application service:\" + e);\n return null;\n }\n }", "public static void initializeApp(Context context) {\n }", "public static String getAppName()\n\t{\n\t\treturn APP_NAME;\n\t}", "public static EndlessScrollApplication getInstance(Context context) {\n return (EndlessScrollApplication) context.getApplicationContext();\n }" ]
[ "0.75122494", "0.73553824", "0.7284133", "0.72526157", "0.719504", "0.7010606", "0.6969042", "0.6922172", "0.6877651", "0.68453234", "0.68400145", "0.6783668", "0.6764194", "0.67375267", "0.67340237", "0.67210126", "0.67140675", "0.66976315", "0.6695137", "0.6670518", "0.6657101", "0.66482157", "0.6634621", "0.66209847", "0.6616307", "0.65879554", "0.6586598", "0.6575435", "0.6548541", "0.6517106", "0.64845", "0.64818037", "0.6449688", "0.64350647", "0.64311206", "0.64311206", "0.6342622", "0.6332943", "0.62831455", "0.6281088", "0.6226015", "0.62062347", "0.6194547", "0.61695236", "0.61329126", "0.61230963", "0.6005274", "0.5998348", "0.59757626", "0.5973284", "0.5962899", "0.5949937", "0.5907322", "0.5869562", "0.5845536", "0.582723", "0.58173215", "0.5803725", "0.5793278", "0.5786235", "0.5783684", "0.5745133", "0.5734212", "0.57225543", "0.572249", "0.5681948", "0.5660961", "0.5646506", "0.5637484", "0.56300765", "0.561523", "0.5593551", "0.5580546", "0.55767155", "0.55520225", "0.55407405", "0.55245656", "0.5520019", "0.5510429", "0.55059344", "0.55031776", "0.5501941", "0.54981184", "0.5470314", "0.5469378", "0.54641664", "0.54641664", "0.54641664", "0.5449914", "0.5447926", "0.54459155", "0.54417056", "0.54406375", "0.543837", "0.54329634", "0.54300565", "0.5419933", "0.5419506", "0.5412749", "0.5402904" ]
0.7071334
5
Gives a callback every time a byte is read.
@Override public void write(int oneByte) throws IOException { currentRead++; if (currentRead % callback.interval() == 0) { callback.callback(currentRead); } outstream.write(oneByte); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void readCB(CB cb) {\n\t\t\n\t}", "public interface IOCallBack {\n\n void onDataReceived(final byte[] buffer, final int size);\n\n}", "boolean readByte(int c, String streamProvider) throws RawDataEventException ;", "public void OnFileDataReceived(byte[] data,int read, int length, int downloaded);", "void onMessageRead(byte[] data);", "public interface OnBluetoothReadListener {\n\t\tvoid onRead(byte[] status);\n\t}", "void onDataReceived(int source, byte[] data);", "public void onReadByte(ICPU cpu, int addr) {\n\t}", "public abstract void onBinaryReceived(byte[] data);", "byte readByte();", "public void onDataRecieved(byte data[]);", "public void OnFileIncoming(int length);", "@Override\n protected int read0() throws IOException {\n if (this.delegate.hasRemaining()) {\n return this.delegate.get() & 0xFF;\n } else {\n return RESULT_EOF;\n }\n }", "@Override\r\n public void onReceivedData(byte[] arg0) {\r\n dataManager.onReceivedData(arg0);\r\n }", "@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}", "public void asyncRead(Object requestCtxt, int length, TrcEvent event, TrcNotifier.Receiver handler)\n {\n asyncRead(requestCtxt, -1, length, false, event, handler);\n }", "public void onRead(BarcodeData barcodeData) {\n }", "<T> T doWithCallback(ReaderCallback<T> callback);", "public void asyncRead(Object requestCtxt, int address, int length, TrcEvent event, TrcNotifier.Receiver handler)\n {\n asyncRead(requestCtxt, address, length, false, event, handler);\n }", "@Override\n public byte readByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return (byte) randomAccessRead.read();\n }", "@FunctionalInterface\npublic interface IRawEventCallback {\n /**\n * Callback on the native parser thread with the shared byte[] array associated with the direct\n * ByteBuffer associated with the GetDirectBufferAddress call.\n * @param beaconInfo the beacon info read only bytebuffer, must be copied as it would be modified on the next beacon\n * event from the bluetooth stack.\n */\n public boolean beaconEvent(ByteBuffer beaconInfo);\n}", "void record(int actualReadBytes);", "public byte[] read();", "byte read()\n \tthrows IOException {\n \t//\n \t// Ensure that one byte can be read\n \tensureContinuousBlock(1);\n \t//\n \t// Simply return the byte\n \treturn _random[_o++];\n }", "@Override\n public void handle(NIOConnection conn, byte[] data) {\n this.data = data;\n countDownLatch.countDown();\n }", "public abstract void accept(byte value);", "public void execHandlerRead( Message msg ) {\n\t \t// create valid data bytes\n\t\tbyte[] buffer = (byte[]) msg.obj;\n\t\tint length = (int) msg.arg1;\n\t\tbyte[] bytes = new byte[ length ];\n\t\tfor ( int i=0; i < length; i++ ) {\n\t\t\tbytes[ i ] = buffer[ i ];\n\t\t}\n\t\t// debug\n\t\tString read = buildMsgBytes( \"r \", bytes );\n\t\tlog_d( read );\n\t\taddAndShowTextViewDebug( read );\n\t\tnotifyRead( bytes );\n\t}", "public void readCallback(long stream, int length) {\n try {\n int peeked;\n if (this.corked) {\n peeked = 0;\n } else {\n int offset;\n if (this.buffer == null || this.buffer.length < length) {\n this.buffer = new byte[length];\n this.offset = 0;\n this.length = 0;\n offset = 0;\n } else {\n offset = this.offset + this.length;\n if (offset + length > this.buffer.length) {\n int overflow = (this.length + length) - this.buffer.length;\n if (overflow > 0) {\n if (overflow >= this.length) {\n if (DataSource.DEBUG && DataSource.logger.isDebugEnabled()) {\n DataSource.logger.debug(\"Dropping \" + this.length + \" bytes!\");\n }\n this.offset = 0;\n this.length = 0;\n offset = 0;\n } else {\n if (DataSource.DEBUG && DataSource.logger.isDebugEnabled()) {\n DataSource.logger.debug(\"Dropping \" + overflow + \" bytes!\");\n }\n this.offset += overflow;\n this.length -= overflow;\n }\n }\n if (this.length > 0) {\n int i = 0;\n while (i < this.length) {\n this.buffer[i] = this.buffer[this.offset];\n i++;\n this.offset++;\n }\n this.offset = 0;\n offset = this.length;\n }\n }\n }\n peeked = PA.stream_peek(stream, this.buffer, offset);\n }\n PA.stream_drop(stream);\n this.length += peeked;\n } finally {\n this.pulseAudioSystem.signalMainloop(DataSource.DEBUG);\n }\n }", "protected BiFunction<SelectionKey, Integer, Runnable> onReading() {\n return readable;\n }", "void onBytesWritten(int bytesWritten);", "@Override\n public void read(byte[] bytes) {\n }", "public void run() {\n byte[] buffer = new byte[256];\n int bytes;\n\n // Keep looping to listen for received messages\n while (true) {\n try {\n bytes = mmInStream.read(buffer); //read bytes from input buffer\n String readMessage = new String(buffer, 0, bytes);\n // Send the obtained bytes to the UI Activity via handler\n bluetoothIn.obtainMessage(handlerState, bytes, -1, readMessage).sendToTarget();\n } catch (IOException e) {\n break;\n }\n }\n }", "void read ();", "private int readByte() {\n return src[srcPos++] & 0xFF;\n }", "public int readByte() {\n waitForData();\n try {\n return m_DataInputStream.readByte();\n }\n catch (IOException e) {\n return 256;\n }\n }", "@Override\n\tpublic void serialEvent(SerialPortEvent arg0) {\n\t\tcnt = cnt + 1;\n\t\ttry {\n\t\t\tint len = inputStream.read(readBuffer);\n\t\t\tString str = \"\";\n\t\t\tfor (int i = 0; i < len; i++) {\n\t\t\t\tstr = str + (char)readBuffer[i];\n\t\t\t}\n\t\t\tSystem.out.println(\"cnt = \" + cnt);\n\t\t\tSystem.out.println(str);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void asyncRead(Object requestCtxt, int length, boolean repeat, TrcEvent event, TrcNotifier.Receiver handler)\n {\n asyncRead(requestCtxt, -1, length, repeat, event, handler);\n }", "int read(byte[] buffer, int bufferOffset, int length) throws IOException;", "@Override public int read(char[] cbuf, int off, int len) throws IOException {\r\n\t\tif (off < 0 || len < 0 || off + len > cbuf.length) throw new IndexOutOfBoundsException();\r\n\t\tif (closed) throw new IOException(\"Reader closed\");\r\n\t\tint r = -1;\r\n\t\twhile (r == -1){\r\n\t\t\tReader in = getCurrentReader();\r\n\t\t\tif (in == null){\r\n\t\t\t\tif (doneAddingReaders) return -1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t} catch (InterruptedException iox){\r\n\t\t\t\t\tthrow new IOException(\"Interrupted\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tr = in.read(cbuf, off, len);\r\n\t\t\t\tif (r == -1) advanceToNextReader();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "public void callback() {\n }", "public void onReading(BiFunction<SelectionKey, Integer, Runnable> function) {\n this.readable = function;\n }", "@Override\n public synchronized Void onCallback(final Deferred<ByteBuffer> deferred, final ByteBuffer readBuffer) {\n receiveBuffer = readBuffer;\n parsePacket();\n return null;\n }", "@Override\r\n\tpublic synchronized void serialEvent(SerialPortEvent oEvent) {\r\n\t\tif (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\r\n\t\t\ttry {\r\n\t\t\t\tint available = input.available();\r\n\t\t\t\tbyte chunk[] = new byte[available];\r\n\t\t\t\tinput.read(chunk, 0, available);\r\n\r\n\t\t\t\t// Displayed results are codepage dependent\r\n\r\n\t\t\t\tfor (int c = 0; c < chunk.length; c++) {\r\n\r\n\t\t\t\t\tSystem.out.println(\"recieve:\" + (chunk[c] + 512) % 256);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"here atleastttttttt\");\r\n\t\t\t\tSystem.err.println(e.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void run() {\n byte[] buffer = new byte[1024];\n int bytes;\n while (true) {\n try {\n\n bytes = inputStream.read(buffer);\n String data = new String(buffer, 0, bytes);\n handler.obtainMessage(MainActivityFreeEX.DATA_RECEIVED, data).sendToTarget();\n\n Log.i(this.toString(), \"en el run de Connection: \" + handler.obtainMessage(MainActivityFreeEX.DATA_RECEIVED, data).toString());\n\n\n } catch (IOException e) {\n break;\n }\n }\n }", "public void callback();", "public byte readByte()\r\n/* 387: */ {\r\n/* 388:400 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 389:401 */ return super.readByte();\r\n/* 390: */ }", "public int read(byte[] p_bytes, int p_offset, int p_length);", "public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n closed = true;\n }\n processIn();\n updateInterestOps();\n }", "void responseReceived(byte[] response);", "public void run() {\n int ch;\n\n try {\n while ((ch = is.read()) != -1) {\n sb.append((char) ch);\n }\n }\n catch (IOException e) {\n sb.append(\"IOException reading stream: \" + e.toString());\n }\n }", "abstract void onMessage(byte[] message);", "public void receiveData() throws IOException;", "@Override\n public void run() {\n int bytes;\n\n //keep listening to the InputStream until an exception occurs\n while (true) {\n try {\n //Read from the InputStrea,\n bytes = mInStream.readInt();\n readInInt = bytes;\n //Send the obtained bytes to the UI activity;\n Log.i(\"TRANSFER\", \"received \" + bytes);\n } catch (IOException e) {\n // e.printStackTrace();\n break;\n }\n }\n }", "public int read(int i);", "public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n/* 313 */ processPendingReadCompleteQueue();\n/* 314 */ ctx.fireChannelReadComplete();\n/* */ }", "@Override\n public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n state = State.CLOSED;\n }\n processIn();\n updateInterestOps();\n }", "public void beginListenForData() {\n stopWorker = false;\n readBufferPosition = 0;\n try {\n inStream = btSocket.getInputStream();\n } catch (IOException e) {\n Log.d(TAG, \"Bug while reading inStream\", e);\n }\n Thread workerThread = new Thread(new Runnable() {\n public void run() {\n while (!Thread.currentThread().isInterrupted() && !stopWorker) {\n try {\n int bytesAvailable = inStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n inStream.read(packetBytes);\n for (int i = 0; i < bytesAvailable; i++) {\n // Log.d(TAG, \" 345 i= \" + i);\n byte b = packetBytes[i];\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0,\n encodedBytes, 0,\n encodedBytes.length);\n final String data = new String(\n encodedBytes, \"US-ASCII\");\n readBufferPosition = 0;\n handler.post(new Runnable() {\n public void run() {\n Log.d(TAG, \" M250 ingelezen data= \" + data);\n ProcesInput(data); // verwerk de input\n }\n });\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n } // einde bytesavalable > 0\n } catch (IOException ex) {\n stopWorker = true;\n }\n }\n }\n });\n workerThread.start();\n }", "public void receive(MessageHandler handler) {\n this.tokenizer = new StreamTokenizer(handler);\n channel.read(readBuffer, this, this.readCompletionHandler);\n }", "public void handler(int offset, int data)\r\n\t{\r\n\t}", "abstract void onReadable();", "public void run() {\n try {\n byte b[] = new byte[100];\n for (;;) {\n int n = in.read(b);\n String str;\n if (n < 0) {\n break;\n }\n str = new String(b, 0, n);\n buffer.append(str);\n System.out.print(str);\n }\n } catch (IOException ioe) { /* skip */ }\n }", "public IRubyObject each_byteInternal(ThreadContext context, Block block) {\n Ruby runtime = context.getRuntime();\n \n \ttry {\n OpenFile myOpenFile = getOpenFileChecked();\n \n while (true) {\n myOpenFile.checkReadable(runtime);\n myOpenFile.setReadBuffered();\n waitReadable(myOpenFile.getMainStream());\n \n int c = myOpenFile.getMainStreamSafe().fgetc();\n \n // CRuby checks ferror(f) and retry getc for\n // non-blocking IO.\n if (c == -1) {\n break;\n }\n \n assert c < 256;\n block.yield(context, getRuntime().newFixnum(c));\n }\n \n return this;\n } catch (InvalidValueException ex) {\n throw runtime.newErrnoEINVALError();\n } catch (BadDescriptorException e) {\n throw runtime.newErrnoEBADFError();\n } catch (EOFException e) {\n return runtime.getNil();\n \t} catch (IOException e) {\n \t throw runtime.newIOErrorFromException(e);\n }\n }", "@Override\n\tpublic int read() throws IOException {\n\t\tif (buf.isReadable()) {\n return buf.readByte() & 0xff;\n }\n return -1;\n\t}", "@Override\n public void onBufferReceived(byte[] buffer) {\n }", "@Override\n\t\tpublic void setReadListener(ReadListener arg0) {\n\t\t\t\n\t\t}", "public int forEachByte(int index, int length, ByteProcessor processor)\r\n/* 667: */ {\r\n/* 668:676 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 669:677 */ return super.forEachByte(index, length, processor);\r\n/* 670: */ }", "public abstract void onPingReceived(byte[] data);", "boolean handle(ByteBuf data) throws Exception;", "boolean handle(ByteBuf data) throws Exception;", "public void onDataReceived(byte[] data, String message) {\n }", "private int nextWebSocketByte() throws IOException {\n while (payloadLength == 0L) {\n nextWebSocketFrame();\n if (isClosed() || isFailed()) {\n return EOF;\n }\n }\n int data = inputStream.read() ^ maskingBytes[maskingIndex];\n payloadLength--;\n maskingIndex++;\n maskingIndex &= MASK_MASKING_INDEX;\n return data;\n }", "public abstract void callback(Instruction instruction);", "public byte readByte() throws IOException {\n return in.readByte();\n }", "private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}", "public void run() {\n byte[] buffer = new byte[1024]; // buffer store for the stream\n int bytes; // bytes returned from read()\n // Keep listening to the InputStream until an exception occurs\n while (true) {\n try {\n // Read from the InputStream\n bytes = mmInStream.available();\n if (bytes != 0) {\n SystemClock.sleep(100); //pause and wait for rest of data. Adjust this depending on your sending speed.\n bytes = mmInStream.available(); // how many bytes are ready to be read?\n bytes = mmInStream.read(buffer, 0, bytes); // record how many bytes we actually read\n mHandler.obtainMessage(MESSAGE_READ, bytes, -1, buffer)\n .sendToTarget(); // Send the obtained bytes to the UI activity\n }\n } catch (IOException e) {\n e.printStackTrace();\n\n break;\n }\n }\n }", "void read(Buffer buffer);", "public interface MessageReceivedCallback {\n public void BLEMessageReceived(byte[] data);\n void BLEDeviceConnected();\n void BLEDeviceDisconnected();\n}", "public void run() {\n readFromClient();\n }", "@Override\n public int readUnsignedByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return randomAccessRead.read();\n }", "public void onEvent(TCPReceiverThread receiverThread, Event event) throws IOException;", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile (socket != null && !socket.isClosed()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbInputStream.read(rbyte);\r\n\t\t\t\t\t\tMessage msg = new Message();\r\n\t\t\t\t\t\tmsg.what = 1;\r\n\t\t\t\t\t\tmsg.obj = rbyte;\r\n\t\t\t\t\t\treHandler.sendMessage(msg);\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}", "int read(long pos, byte[] buf)throws IOException;", "@Override\n\tpublic void onAfterReceivedBytes(ChannelContext channelContext, int receivedBytes) throws Exception {\n\t\t\n\t}", "@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }", "@Override\n\t\tpublic void serialEvent(SerialPortEvent evt) {\n\t\t\ttry {\n\t\t\t\tswitch (evt.getEventType()) {\n\t\t\t\tcase SerialPortEvent.DATA_AVAILABLE:\n\t\t\t\t\tif (input == null) {\n\t\t\t\t\t\tinput = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\t\t\tserialPort.getInputStream()));\n\t\t\t\t\t}\n\t\t\t\t\tString inputLine = input.readLine();\n\t\t\t\t\tSystem.out.println(inputLine);\n\t\t\t\t\tserialReturn = inputLine;\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t}\n\n\t\t}", "public byte read(int param1) {\n }", "@Override\n\tpublic void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"channelReadComplete\");\n\t\tsuper.channelReadComplete(ctx);\n\t}", "public void onDataEncoded(byte[] encodedData);", "@Override\n\tpublic int read(byte[] b, int off, int len) {\n\t\treturn super.read(b, off, len);\n\t}", "int readNonBlocking(byte[] buffer, int offset, int length);", "private void unread(char c) {\n unreadBuffer = c;\n }", "@Override\n public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n }", "void onSomething(org.jboss.netty.buffer.ChannelBuffer buffer);", "@Override\n public void onCharacteristicChanged(BluetoothGatt gatt,\n BluetoothGattCharacteristic characteristic) {\n byte[] bytes = characteristic.getValue();\n Log.i(\"onCharacteristicChanged\", \"Receive the return data. uuid:\" + characteristic.getUuid().toString() + \" bytes:\" + StringConvertUtil.bytesToHexString(bytes));\n if (_PeripheryBluetoothServiceCallBack != null){\n _PeripheryBluetoothServiceCallBack.OnReceiveCallBack(characteristic.getUuid(),bytes);\n }\n super.onCharacteristicChanged(gatt,characteristic);\n }", "abstract void read();", "public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }", "@Override\r\n\t\tpublic void run() {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tString buffer;\r\n\t\t\t\t\r\n\t\t\t\twhile(!exit){\r\n\t\t\t\t\tbuffer = in.readLine();\r\n\t\t\t\t\tsetChanged();\r\n\t\t\t\t\tnotifyObservers(buffer);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "byte peekByte() throws IOException;", "@Override\n\tpublic void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n\t}", "@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}" ]
[ "0.66375834", "0.66246843", "0.6585893", "0.63836104", "0.6348997", "0.624098", "0.6146116", "0.6134491", "0.60415876", "0.59738874", "0.59487104", "0.59483933", "0.58260375", "0.5748312", "0.5711171", "0.5694466", "0.5674298", "0.5666938", "0.56476223", "0.5647126", "0.5640235", "0.5596042", "0.5581363", "0.557443", "0.556901", "0.5550027", "0.55088705", "0.55024683", "0.5464632", "0.54607725", "0.54537076", "0.5443262", "0.5443226", "0.5440863", "0.5430997", "0.5429446", "0.5428047", "0.54279953", "0.54111063", "0.54078025", "0.5404612", "0.53985095", "0.53874606", "0.5378342", "0.5375916", "0.53729665", "0.5333888", "0.53217876", "0.5320566", "0.53196543", "0.5315833", "0.53140664", "0.5309583", "0.52806664", "0.5271688", "0.52708584", "0.52527595", "0.5250968", "0.5250753", "0.524989", "0.5240433", "0.52389586", "0.52360797", "0.52352905", "0.5225887", "0.5217999", "0.52121687", "0.52068114", "0.52068114", "0.5205124", "0.5203153", "0.5203111", "0.52027315", "0.51923877", "0.517736", "0.5170182", "0.51637673", "0.5160641", "0.51594365", "0.51574475", "0.5157067", "0.5156557", "0.5154578", "0.5149662", "0.5138424", "0.51302236", "0.51264715", "0.5125596", "0.51140904", "0.5105754", "0.5103916", "0.5099706", "0.50991744", "0.509582", "0.5092667", "0.50913805", "0.5089715", "0.5084604", "0.50843054", "0.5083046" ]
0.6748447
0
this constructor is needed to support duplicate
public PointCutASTNode(PointCutASTNode self) { super(self); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void copyConstructor(){\n\t}", "private UniqueChromosomeReconstructor() { }", "public abstract Instance duplicate();", "public MossClone() {\n super();\n }", "public Object _duplicate() {\n throw new NO_IMPLEMENT(reason);\n }", "public DuplicateItemException() {\r\n super();\r\n }", "Constructor() {\r\n\t\t \r\n\t }", "Merge() {\n //Unused Constructor.\n }", "public Clone() {}", "Reproducible newInstance();", "public Constructor(){\n\t\t\n\t}", "DuplicateEntryException() {\n super();\n }", "private Combined() {}", "protected SimpleDuplicateableIterator(SimpleDuplicateableIterator<E> from)\r\n\t{\r\n\t\tthis.currentIndex = from.currentIndex;\r\n\t\tthis.iterator = from.iterator;\r\n\t\tthis.oldElements = from.oldElements;\r\n\t}", "private SingleObject(){}", "Composite() {\n\n\t}", "org.omg.CORBA.Object _duplicate();", "private CloneFactory() {\n }", "private void __sep__Constructors__() {}", "protected Shingle copy() {\n return new Shingle(this);\n }", "private SingleObject()\r\n {\r\n }", "public VNode duplicate() throws VlException\n\t{\n\t\tthrow new nl.uva.vlet.exception.NotImplementedException(\"Duplicate method not implemented\"); \n\t}", "public AllDifferent()\n {\n this(0);\n }", "protected abstract void construct();", "public Pleasure() {\r\n\t\t}", "protected CombinatoricsUtils() {\n super();\n }", "protected FollowersItem() {\n hashDupA = hashDupB = \"\";\n aw = null;\n }", "private Rekenhulp()\n\t{\n\t}", "private TMCourse() {\n\t}", "public Chord duplicate ()\r\n {\r\n // Beams are not copied\r\n Chord clone = new Chord(getMeasure(), slot);\r\n clone.stem = stem;\r\n stem.addTranslation(clone);\r\n\r\n // Notes (we make a deep copy of each note)\r\n List<TreeNode> notesCopy = new ArrayList<>();\r\n notesCopy.addAll(getNotes());\r\n\r\n for (TreeNode node : notesCopy) {\r\n Note note = (Note) node;\r\n new Note(clone, note);\r\n }\r\n\r\n clone.tupletFactor = tupletFactor;\r\n\r\n clone.dotsNumber = dotsNumber;\r\n clone.flagsNumber = flagsNumber; // Not sure TODO\r\n\r\n // Insure correct ordering of chords within their container\r\n ///Collections.sort(getParent().getChildren(), chordComparator);\r\n\r\n return clone;\r\n }", "public DuplicateSensorException(){\n }", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "private Composite() {\n }", "private Instantiation(){}", "public Clade() {}", "public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }", "public JsonFactory copy()\n/* */ {\n/* 324 */ _checkInvalidCopy(JsonFactory.class);\n/* */ \n/* 326 */ return new JsonFactory(this, null);\n/* */ }", "public void testDuplicate() {\n System.out.println(\"duplicate\");\n BufferedCharSequence instance = null;\n BufferedCharSequence expResult = null;\n BufferedCharSequence result = instance.duplicate();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public Pitonyak_09_02() {\r\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "protected Shingle(final Shingle shingle) {\n List<Double> data = new ArrayList<Double>(shingle.size());\n for (Double f : shingle.data) {\n data.add(f);\n }\n setData(data);\n }", "protected AbstractPathElement(AbstractPathElement<V, E> original)\r\n/* */ {\r\n/* 117 */ this.nHops = original.nHops;\r\n/* 118 */ this.prevEdge = original.prevEdge;\r\n/* 119 */ this.prevPathElement = original.prevPathElement;\r\n/* 120 */ this.vertex = original.vertex;\r\n/* */ }", "public MyHashSet() {\n \n }", "public CyanSus() {\n\n }", "TaskDetail duplicate() {\n return new TaskDetail(task, description, basicControl, canBeRepeated);\n }", "public MethodEx2() {\n \n }", "public AllOne() {\n \n }", "@Test\n\tpublic void testCopyConstructor() {\n\t\tItem copy = new Item(item);\n\t\t\n\t\tassertTrue(\"Item copied using copy constructor: \",item.equals(copy)); \n\t\tassertNotSame(\"Item copied is not a reference to the same item: \",item, copy);\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "public CompositeData()\r\n {\r\n }", "public Picture(Picture copyPicture)\n {\n // let the parent class do the copy\n super(copyPicture);\n }", "public Picture(Picture copyPicture)\n {\n // let the parent class do the copy\n super(copyPicture);\n }", "private Singletion3() {}", "@Override\n public Object clone() {\n return super.clone();\n }", "@Override\n protected Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n // return super.clone(); // OR we can return the already present :: return getInstance();\n }", "@Override\n public MultiCache clone () {\n return new MultiCache(this);\n }", "public DistinctValues()\n {\n super();\n }", "public DatasetHelper(DatasetHelper another){\n id= another.id;\n hash = another.hash;\n catalogueId = another.catalogueId;\n sourceType = another.sourceType;\n sourceLang = another.sourceLang;\n model = ModelFactory.createDefaultModel().add(another.model);\n uriSchema = another.uriSchema;\n }", "private SBomCombiner()\n\t{}", "private PSUniqueObjectGenerator()\n {\n }", "public _355() {\n\n }", "public HashSet(){\n this(17);\n }", "public MultiKey() {}", "private UtilsCache() {\n\t\tsuper();\n\t}", "public Self__1() {\n }", "private Tuples() {\n // prevent instantiation.\n }", "private History() {}", "public ObjectUtils() {\n super();\n }", "public Ping dup (Ping self)\n {\n if (self == null)\n return null;\n\n Ping copy = new Ping ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.digest = new ArrayList <State> (self.digest);\n return copy;\n }", "@Override\n protected Object clone() throws CloneNotSupportedException {\n\n return super.clone();\n }", "public PSRelation()\n {\n }", "@Override\n public Object clone() throws CloneNotSupportedException{\n return super.clone();\n }", "public State dup (State self)\n {\n if (self == null)\n return null;\n\n State copy = new State ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.address = self.address;\n copy.addressPort = self.addressPort;\n copy.generation = self.generation;\n copy.max_version = self.max_version;\n copy.extra = new VersionedMap (self.extra);\n return copy;\n }", "@org.junit.Test\n public void constrCompelemDoc1() {\n final XQuery query = new XQuery(\n \"element elem {., .}\",\n ctx);\n try {\n query.context(node(file(\"prod/CompAttrConstructor/DupNode.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertSerialization(\"<elem><root><child1><a>text</a><!--comment--><?pi content?></child1><child2><a>text</a><!--comment--><?pi content?></child2></root><root><child1><a>text</a><!--comment--><?pi content?></child1><child2><a>text</a><!--comment--><?pi content?></child2></root></elem>\", false)\n );\n }", "private PersistentStack(T element, PersistentStack<T> parent) {\n\t\tObjects.requireNonNull(element);\n\t\tObjects.requireNonNull(parent);\n\t\tthis.parent = parent;\n\t\tthis.element = element;\n\t\tthis.size = parent.size + 1;\n\t\tthis.hashCode = Objects.hash(parent, element);\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "public ByteBuf duplicate()\r\n/* 95: */ {\r\n/* 96:112 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 97:113 */ return super.duplicate();\r\n/* 98: */ }", "public mapper3c() { super(); }", "public Concat() {\r\n }", "@org.junit.Test\n public void constrCompelemNested2() {\n final XQuery query = new XQuery(\n \"element elem {}\",\n ctx);\n try {\n query.context(node(file(\"prod/CompAttrConstructor/DupNode.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertSerialization(\"<elem/>\", false)\n );\n }", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "defaultConstructor(){}", "Prototype makeCopy();", "public DuplicateRecordException(String msg){\n\t\tsuper(msg);\n\t}", "public UniqueElementException() {\n\t\t\n\t}", "private JsonUtils() {\n\t\tsuper();\n\t}", "private Add() {}", "private Add() {}", "private IndexBitmapObject() {\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "public DuplicatedUserException() {\n super();\n }", "public SimpleDuplicateableIterator(Iterator<E> iterator)\r\n\t{\r\n\t\tthis.currentIndex = 0;\r\n\t\tthis.oldElements = new ArrayList<E>();\r\n\t\tthis.iterator = iterator;\r\n\t}", "public DuplicateCouponTypeException()\n\t{\n\n\t}", "public DuplicateCouponTypeException()\n\t{\n\n\t}", "protected Pair() {\n\t\t\n\t\tsuper(2);\n\t}", "public Generic(){\n\t\tthis(null);\n\t}" ]
[ "0.7055501", "0.6714473", "0.6713538", "0.6481696", "0.6463916", "0.64153856", "0.6400189", "0.6339162", "0.63318944", "0.63152516", "0.62432504", "0.6232419", "0.6135006", "0.61189485", "0.60941243", "0.6090291", "0.6089282", "0.6077924", "0.6054338", "0.605159", "0.6004832", "0.59522", "0.5951801", "0.5950744", "0.5891025", "0.586727", "0.5855967", "0.585284", "0.5839012", "0.57966673", "0.5791041", "0.57891804", "0.5786876", "0.57838416", "0.5778038", "0.57749856", "0.5772163", "0.57661766", "0.5760871", "0.575735", "0.5739293", "0.57309353", "0.5729033", "0.5707179", "0.5697541", "0.56967616", "0.5692253", "0.56866115", "0.5680037", "0.566861", "0.56680363", "0.5663372", "0.5663372", "0.5661311", "0.5657586", "0.5654062", "0.5650003", "0.56499434", "0.5649902", "0.5644739", "0.56446147", "0.5644466", "0.56430966", "0.5642304", "0.5637078", "0.5636684", "0.5634674", "0.5632631", "0.56293416", "0.5627873", "0.56268966", "0.56254715", "0.56158566", "0.5614948", "0.56093717", "0.5609076", "0.5603863", "0.5596411", "0.5596054", "0.5591096", "0.55865526", "0.5584225", "0.55839205", "0.5583491", "0.5582002", "0.5578642", "0.55776656", "0.5571653", "0.5569592", "0.5569592", "0.5566188", "0.5563235", "0.5563235", "0.5563235", "0.5561904", "0.55614465", "0.55567104", "0.55566895", "0.55566895", "0.55555207", "0.5553872" ]
0.0
-1
This node references a special type of itself or is either a binary operation node with 'and' or 'or'
@Override public abstract Binding matches(ASTNode compareToNode) throws AspectException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Expr or() { // This uses the same recursive matching structure as other binary operators.\n Expr expr = and(); // OR takes precedence over AND.\n while(match(OR)) {\n Token operator = previous();\n Expr right = and();\n expr = new Expr.Logical(expr, operator, right);\n }\n return expr;\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "private Term parseLogicalOr(final boolean required) throws ParseException {\n Term t1 = parseLogicalAnd(required);\n while (t1 != null) {\n /*int tt =*/ _tokenizer.next();\n if (isSpecial(\"||\") || isKeyword(\"or\")) {\n Term t2 = parseLogicalAnd(true);\n if ((t1.isB() && t2.isB()) || !isTypeChecking()) {\n t1 = new Term.OrB(t1, t2);\n } else {\n reportTypeErrorB2(\"'||' or 'or'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "String getOr_op();", "@Override\n\tpublic void visit(BitwiseOr arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(BitwiseOr arg0) {\n\n\t}", "private Term parseBtwiseXOr(final boolean required) throws ParseException {\n Term t1 = parseBitwiseAnd(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '^') {\n Term t2 = parseBitwiseAnd(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.XOrI(t1, t2);\n } else {\n reportTypeErrorI2(\"'^'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "@Override\n public Node typeCheck() {\n if (!(FOOLlib.isSubtype(left.typeCheck(), new BoolTypeNode()) &&\n FOOLlib.isSubtype(right.typeCheck(), new BoolTypeNode()))) {\n if(operator.equals(\"and\") || operator.equals(\"&&\")) {\n System.out.println(\"Non boolean in AND\");\n }\n else {\n System.out.println(\"Non boolean in OR\");\n }\n System.exit(0);\n }\n //se i tipi sono corretti restituisco bool\n return new BoolTypeNode();\n }", "@Override\n public ILogical or(ILogical operador) {\n return operador.orBinary(this);\n }", "private Term parseBitwiseOr(final boolean required) throws ParseException {\n Term t1 = parseBtwiseXOr(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '|') {\n Term t2 = parseBtwiseXOr(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.OrI(t1, t2);\n } else {\n reportTypeErrorI2(\"'|'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public Object visitLogicalOrExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a | (Long) b;\n }\n else {\n return parens(a) + \" || \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.orWith(b);\n \n return bdd;\n }\n }", "public LogicalOperator() {\n this.logical = Logical.And;\n }", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public Object visitBitwiseOrExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a | (Long) b;\n }\n else {\n result = parens(a) + \" | \" + parens(b);\n }\n \n return result;\n }", "Expression orExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = andExpression();\r\n\t\twhile(isKind(OP_OR)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = andExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Override\n public ILogical and(ILogical operador) {\n return operador.andBinary(this);\n }", "public Object visitLogicalAndExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a & (Long) b;\n }\n else {\n return parens(a) + \" && \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.andWith(b);\n \n return bdd;\n }\n }", "@Override\n\tpublic void VisitOrNode(BunOrNode Node) {\n\n\t}", "public String getAndOr();", "OrExpr createOrExpr();", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\t\t\n\t}", "@Override\n\tpublic Object visit(ASTFilterOr node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" or \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "@Override\r\n\tpublic boolean visit(QualifiedName node) {\r\n\t\toperand(node,node.getFullyQualifiedName());\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void visit(BitwiseAnd arg0) {\n\n\t}", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "private Term parseBitwiseAnd(final boolean required) throws ParseException {\n Term t1 = parseAdd(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '&') {\n Term t2 = parseAdd(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.AndI(t1, t2);\n } else {\n reportTypeErrorI2(\"'&'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public Operator operator() {\n return _operator != null ? _operator : Operator.OR;\n }", "public void testX1andX2orNotX1() {\n \tCircuit circuit = new Circuit();\n \t\n \tBoolean b1 = Boolean.TRUE;\n \tBoolean b2 = Boolean.FALSE;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tOr or = (Or) circuit.getFactory().getGate(Gate.OR);\n\t\tand.setLeftInput(b1);\n\t\tand.setRightInput(b2);\n\t\tand.eval();\n\t\tnot.setInput(b1);\n\t\tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n\t\tassertEquals(Boolean.FALSE, or.eval());\n\t\tassertEquals(Boolean.FALSE, circuit.eval());\n//\t\t==========================================\n\t\tb1 = Boolean.FALSE;\n \tb2 = Boolean.TRUE;\n// \tand.eval();\n// \tnot.eval();\n \tassertEquals(Boolean.FALSE, circuit.eval());\n// \t============================================\n \tDouble d1 = 0.0;\n \tDouble d2 = 1.0;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n\t\tnot.setInput(d1);\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(1.0), or.eval());\n// \t============================================\n \td1 = 0.5;\n \td2 = 0.5;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n// \t============================================\n \ttry {\n \td1 = 0.5;\n \td2 = 2.0;\n \tand.setLeftInput(d1);\n \t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n \t\tor.setLeftInput(and.getOutput());\n \t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n \t} catch (IllegalArgumentException e) {\n \t\tSystem.err.println(\"IllegalArgumentException: \" + e.getMessage());\n \t}\n\n }", "private Term parseLogicalAnd(final boolean required) throws ParseException {\n Term t1 = parseComparison(required);\n while (t1 != null) {\n /*int tt =*/ _tokenizer.next();\n if (isSpecial(\"&&\") || isKeyword(\"and\")) {\n Term t2 = parseComparison(true);\n if ((t1.isB() && t2.isB()) || !isTypeChecking()) {\n t1 = new Term.AndB(t1, t2);\n } else {\n reportTypeErrorB2(\"'&&' or 'and'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "@Override\n public JsonNode visit(JmesPathAndExpression andExpression, JsonNode input) throws InvalidTypeException {\n JsonNode lhsNode = andExpression.getLhsExpr().accept(this, input);\n JsonNode rhsNode = andExpression.getRhsExpr().accept(this, input);\n if (lhsNode == BooleanNode.TRUE) {\n return rhsNode;\n } else {\n return lhsNode;\n }\n }", "public void setAndOr (String AndOr);", "@Override\n public BinaryType orBinary(BinaryType BinaryType) {\n int n = BinaryType.getValue().length();\n StringBuilder resultado = new StringBuilder();\n for (int i = 0; i < n; i++){\n boolean b1 = BinaryType.getValue().charAt(i) == '1';\n boolean b2 = this.getValue().charAt(i) == '1';\n resultado.append((b1 || b2) ? '1' : '0');\n }\n return TypeFactory.getBinaryType(resultado.toString());\n }", "public Object visitBitwiseAndExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a & (Long) b;\n }\n else {\n result = parens(a) + \" & \" + parens(b);\n }\n \n return result;\n }", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "@OperationMeta(opType = OperationType.INFIX)\n public static boolean or(boolean b1, boolean b2) {\n return b1 | b2;\n }", "public node simplify() {\n node n = null;\n Object[] o = children().toArray();\n int l = o.length;\n if ( l == 1 )\n return (node) o[0];\n\n node orr = (node) o[0];\n node atmost1 = (node) o[0];\n\n for ( int i=1; i<l; i++ ) {\n orr = new or( orr, (node) o[i] );\n atmost1 = new atmostone( atmost1, (node) o[i] );\n }\n node result = (new and(orr, atmost1)).simplify();\n return result;\n }", "public Operation zCombinedAnd(Operation op)\r\n {\r\n if (op.equals(this))\r\n {\r\n return this;\r\n }\r\n return null;\r\n }", "public boolean containsOrOperator() {\r\n\t\tfor (int n = 0; n < elements.size(); ++n) {\r\n\t\t\tObject ob = elements.get(n);\r\n\t\t\tif (ob instanceof Operator.OrOperator) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public Void visit(LogicalExpression nd, SuccessorInfo i) {\n Expression left = nd.getLeft();\n writeSuccessor(nd, First.of(left));\n if (\"&&\".equals(nd.getOperator()))\n visitWithSuccessors(left, First.of(nd.getRight()), i.getSuccessors(false));\n else visitWithSuccessors(left, i.getSuccessors(true), First.of(nd.getRight()));\n nd.getRight().accept(this, i);\n return null;\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "void visit(final OrCondition orCondition);", "Expr bool() throws IOException {\n\t\tExpr e = join();\n\t\twhile (look.tag == Tag.OR) {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Or(tok, e,join());\n\t\t}\n\t\treturn e;\n\t}", "@Override\n\tpublic Object visit(ASTCondAnd node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" and \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTRelational node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "IRequirement or(IRequirement constraint);", "public FluentExp<Boolean> or (SQLExpression<Boolean> expr)\n {\n return Ops.or(this, expr);\n }", "public boolean getOR() {\n return OR;\n }", "public bit or(bit other)\n\t{\n\t\tbit orBit = new bit();\n\t\t\n\t\tif(bitHolder.getValue() == 1)\n\t\t{\n\t\t\torBit.setValue(1);\n\t\t}else if(other.getValue() == 1)\n\t\t{\n\t\t\torBit.setValue(1);\n\t\t}else\n\t\t{\n\t\t\torBit.setValue(0);\n\t\t}\n\t\t\n\t\treturn orBit;\n\t}", "@Override\n\tpublic void VisitAndNode(BunAndNode Node) {\n\n\t}", "public StatementNode getStatementNodeOnTrue();", "public final void operator() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:129:2: ( AND | OR )\r\n int alt23=2;\r\n int LA23_0 = input.LA(1);\r\n\r\n if ( (LA23_0==AND) ) {\r\n alt23=1;\r\n }\r\n else if ( (LA23_0==OR) ) {\r\n alt23=2;\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 23, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt23) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:129:4: AND\r\n {\r\n match(input,AND,FOLLOW_AND_in_operator527); \r\n out(\" and \");\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:130:4: OR\r\n {\r\n match(input,OR,FOLLOW_OR_in_operator534); \r\n out(\" or \");\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@Override\n public Expression visit(LogicalOpNode node) {\n\n Label trueLabel = new Label ();\n Label falseLabel = new Label ();\n Label endLabel = new Label ();\n\n process(node, trueLabel, falseLabel);\n\n cat.footoredo.mx.entity.Variable variable = tmpVariable(node.getType());\n\n label (trueLabel);\n assign (node.getLocation(), ref(variable), new Integer(Type.INT8, 1));\n jump (endLabel);\n\n label (falseLabel);\n assign (node.getLocation(), ref(variable), new Integer(Type.INT8, 0));\n jump (endLabel);\n\n label (endLabel);\n\n return isStatement() ? null : ref (variable);\n }", "public Node typeCheck(ContextVisitor tc) throws SemanticException {\n Type l = left.type();\n\tType r = right.type();\n\n\tTypeSystem ts = tc.typeSystem();\n\tContext context = tc.context();\n\n\tif (op == GT || op == LT || op == GE || op == LE) {\n\t if (! l.isNumeric()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have numeric operands, not type \" +\n l + \".\", left.position());\n\t }\n\n if (! r.isNumeric()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have numeric operands, not type \" +\n r + \".\", right.position());\n\t }\n\n\t return type(ts.Boolean());\n\t}\n\n\tif (op == EQ || op == NE) {\n if (! ts.isCastValid(l, r, context) && ! ts.isCastValid(r, l, context)) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have operands of similar type.\",\n\t\t position());\n\t }\n\n\t return type(ts.Boolean());\n\t}\n\n\tif (op == COND_OR || op == COND_AND) {\n\t if (! l.isBoolean()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have boolean operands, not type \" +\n l + \".\", left.position());\n\t }\n\n\t if (! r.isBoolean()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have boolean operands, not type \" +\n r + \".\", right.position());\n\t }\n\n\t return type(ts.Boolean());\n\t}\n\n\tif (op == ADD) {\n\t if (ts.isSubtype(l, ts.String(), context) || ts.isSubtype(r, ts.String(), context)) {\n if (!ts.canCoerceToString(r, tc.context())) {\n throw new SemanticException(\"Cannot coerce an expression \" + \n \"of type \" + r + \" to a String.\", \n right.position());\n }\n if (!ts.canCoerceToString(l, tc.context())) {\n throw new SemanticException(\"Cannot coerce an expression \" + \n \"of type \" + l + \" to a String.\", \n left.position());\n }\n\n return precedence(Precedence.STRING_ADD).type(ts.String());\n }\n\t}\n\n\tif (op == BIT_AND || op == BIT_OR || op == BIT_XOR) {\n\t if (l.isBoolean() && r.isBoolean()) {\n\t\treturn type(ts.Boolean());\n\t }\n\t}\n\n if (op == ADD) {\n if (! l.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or String operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! r.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or String operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n if (op == BIT_AND || op == BIT_OR || op == BIT_XOR) {\n if (! ts.isImplicitCastValid(l, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or boolean operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! ts.isImplicitCastValid(r, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or boolean operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n if (op == SUB || op == MUL || op == DIV || op == MOD) {\n if (! l.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! r.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n if (op == SHL || op == SHR || op == USHR) {\n if (! ts.isImplicitCastValid(l, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! ts.isImplicitCastValid(r, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n\tif (op == SHL || op == SHR || op == USHR) {\n\t // For shift, only promote the left operand.\n\t return type(ts.promote(l));\n\t}\n\n\treturn type(ts.promote(l, r));\n }", "@Test\n public void equalityForDifferentBinaryOps() {\n XPathStringLiteral leftStringExpr = new XPathStringLiteral(\"left side\");\n XPathNumericLiteral zero = new XPathNumericLiteral(0d);\n\n // Setup expressions to test equality over.\n // Note: these binary expressions make semantic sense\n XPathArithExpr additionExpr = new XPathArithExpr(XPathArithExpr.ADD, leftStringExpr, zero);\n XPathArithExpr additionExprClone = new XPathArithExpr(XPathArithExpr.ADD, leftStringExpr, zero);\n XPathArithExpr subtractExpr = new XPathArithExpr(XPathArithExpr.SUBTRACT, leftStringExpr, zero);\n\n XPathBoolExpr andExpr = new XPathBoolExpr(XPathBoolExpr.AND, leftStringExpr, zero);\n XPathBoolExpr andExprClone = new XPathBoolExpr(XPathBoolExpr.AND, leftStringExpr, zero);\n XPathBoolExpr orExpr = new XPathBoolExpr(XPathBoolExpr.OR, leftStringExpr, zero);\n\n XPathCmpExpr lessThanExpr = new XPathCmpExpr(XPathCmpExpr.LT, leftStringExpr, zero);\n XPathCmpExpr greaterThanExpr = new XPathCmpExpr(XPathCmpExpr.GT, leftStringExpr, zero);\n\n XPathEqExpr eqExpr = new XPathEqExpr(XPathEqExpr.EQ, leftStringExpr, zero);\n XPathEqExpr neqExpr = new XPathEqExpr(XPathEqExpr.NEQ, leftStringExpr, zero);\n\n XPathUnionExpr union = new XPathUnionExpr(leftStringExpr, zero);\n XPathUnionExpr differentUnion = new XPathUnionExpr(zero, zero);\n\n // basic equality tests over same subclass\n Assert.assertEquals(\"Same + expression reference is equal\", additionExpr, additionExpr);\n Assert.assertEquals(\"Same + expression is equal\", additionExpr, additionExprClone);\n Assert.assertNotEquals(\"+ not equal to -\", additionExpr, subtractExpr);\n Assert.assertEquals(\"Same && expression reference is equal\", andExpr, andExpr);\n Assert.assertEquals(\"Same && expression is equal\", andExpr, andExprClone);\n Assert.assertNotEquals(\"&& not equal to ||\", andExpr, orExpr);\n Assert.assertEquals(\"Same < expression is equal\", lessThanExpr, lessThanExpr);\n Assert.assertNotEquals(\"< not equal to >\", lessThanExpr, greaterThanExpr);\n Assert.assertEquals(\"Same == expression is equal\", eqExpr, eqExpr);\n Assert.assertNotEquals(\"== not equal to !=\", eqExpr, neqExpr);\n\n // make sure different binary expressions with same op code aren't equal\n Assert.assertNotEquals(\"+ not equal to &&\", additionExpr, andExpr);\n Assert.assertNotEquals(\"+ not equal to <\", additionExpr, lessThanExpr);\n Assert.assertNotEquals(\"+ not equal to ==\", additionExpr, eqExpr);\n Assert.assertNotEquals(\"- not equal to ||\", subtractExpr, orExpr);\n Assert.assertNotEquals(\"- not equal to >\", subtractExpr, greaterThanExpr);\n Assert.assertNotEquals(\"- not equal to !=\", subtractExpr, neqExpr);\n\n // make sure union equality, which doesn't have an op code, works\n Assert.assertEquals(\"same union instance is equal to itself\", union, union);\n Assert.assertNotEquals(union, differentUnion);\n Assert.assertNotEquals(\"+ not equal to union\", additionExpr, union);\n }", "public static BinaryExpression andAlso(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public boolean getOR() {\n return OR;\n }", "NetworkNodeType getIsA();", "@Override \n\tpublic void caseAOpExpr(AOpExpr node){\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tswitch (expType){\n\t\t\tcase AND :\n\t\t\tcreateShortCircuitAnd(node);\n\t\t\t\tbreak;\n\t\t\tcase OR :\n\t\t\tcreateShortCircuiteOR(node);\n\t\t\t\tbreak;\n\t\t\tcase ADD :\n\t\t\t\tType left = nodeTypes.get(node.getLeft()); \n\t\t\t\tif (left == Type.STRING_TYPE){\n\t\t\t\t\tthis.createStringConcat(node);\n\t\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\tdefault : \n\t\t\t\tsuper.caseAOpExpr(node); \n\t\t}\n\t}", "@Override\n\tpublic Object visit(ASTEquality node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "public final EObject ruleOr() throws RecognitionException {\n EObject current = null;\n\n Token lv_operator_2_0=null;\n EObject this_And_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3834:28: ( (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3835:1: (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3835:1: (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3836:5: this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )*\n {\n \n newCompositeNode(grammarAccess.getOrAccess().getAndParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleAnd_in_ruleOr8609);\n this_And_0=ruleAnd();\n\n state._fsp--;\n\n \n current = this_And_0; \n afterParserOrEnumRuleCall();\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:1: ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )*\n loop34:\n do {\n int alt34=2;\n int LA34_0 = input.LA(1);\n\n if ( (LA34_0==58) ) {\n alt34=1;\n }\n\n\n switch (alt34) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:2: () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:2: ()\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3845:5: \n \t {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getOrAccess().getBooleanOperationLeftAction_1_0(),\n \t current);\n \t \n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3850:2: ( (lv_operator_2_0= '||' ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3851:1: (lv_operator_2_0= '||' )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3851:1: (lv_operator_2_0= '||' )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3852:3: lv_operator_2_0= '||'\n \t {\n \t lv_operator_2_0=(Token)match(input,58,FOLLOW_58_in_ruleOr8636); \n\n \t newLeafNode(lv_operator_2_0, grammarAccess.getOrAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0());\n \t \n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getOrRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"operator\", lv_operator_2_0, \"||\");\n \t \t \n\n \t }\n\n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3865:2: ( (lv_right_3_0= ruleAnd ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3866:1: (lv_right_3_0= ruleAnd )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3866:1: (lv_right_3_0= ruleAnd )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3867:3: lv_right_3_0= ruleAnd\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getOrAccess().getRightAndParserRuleCall_1_2_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleAnd_in_ruleOr8670);\n \t lv_right_3_0=ruleAnd();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getOrRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"And\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop34;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Override\n\tpublic void VisitBinaryNode(BinaryOperatorNode Node) {\n\n\t}", "@Override\n public BinaryType andBinary(BinaryType BinaryType) {\n int n = BinaryType.getValue().length();\n StringBuilder resultado = new StringBuilder();\n for (int i = 0; i < n; i++){\n boolean b1 = BinaryType.getValue().charAt(i) == '1';\n boolean b2 = this.getValue().charAt(i) == '1';\n resultado.append((b1 && b2) ? '1' : '0');\n }\n return TypeFactory.getBinaryType(resultado.toString());\n }", "@Override\n public boolean visit(JsBinaryOperation x, JsContext<JsExpression> ctx) {\n return !x.getOperator().isAssignment()\n || !(x.getArg1() instanceof JsStringLiteral);\n }", "Expression andExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = eqExpression();\r\n\t\twhile(isKind(OP_AND)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = eqExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "Operator.Type getOperation();", "static boolean binaryOperator(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"binaryOperator\")) return false;\n boolean r;\n r = multiplicativeOperator(b, l + 1);\n if (!r) r = additiveOperator(b, l + 1);\n if (!r) r = shiftOperator(b, l + 1);\n if (!r) r = relationalOperator(b, l + 1);\n if (!r) r = consumeToken(b, EQ_EQ);\n if (!r) r = bitwiseOperator(b, l + 1);\n return r;\n }", "public final EObject ruleLogicalOrExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_2=null;\r\n EObject this_LogicalAndExpression_0 = null;\r\n\r\n EObject lv_rightOperand_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2579:28: ( (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )* ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2580:1: (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )* )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2580:1: (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )* )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2581:5: this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getLogicalAndExpressionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleLogicalAndExpression_in_ruleLogicalOrExpression5902);\r\n this_LogicalAndExpression_0=ruleLogicalAndExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_LogicalAndExpression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2589:1: ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )*\r\n loop41:\r\n do {\r\n int alt41=2;\r\n int LA41_0 = input.LA(1);\r\n\r\n if ( (LA41_0==47) ) {\r\n alt41=1;\r\n }\r\n\r\n\r\n switch (alt41) {\r\n \tcase 1 :\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2589:2: () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2589:2: ()\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2590:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getLogicalOrExpressionAccess().getLogicalOrExpressionLeftOperandAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t otherlv_2=(Token)match(input,47,FOLLOW_47_in_ruleLogicalOrExpression5923); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_2, grammarAccess.getLogicalOrExpressionAccess().getVerticalLineVerticalLineKeyword_1_1());\r\n \t \r\n \t }\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2599:1: ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2600:1: (lv_rightOperand_3_0= ruleLogicalAndExpression )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2600:1: (lv_rightOperand_3_0= ruleLogicalAndExpression )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2601:3: lv_rightOperand_3_0= ruleLogicalAndExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getRightOperandLogicalAndExpressionParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleLogicalAndExpression_in_ruleLogicalOrExpression5944);\r\n \t lv_rightOperand_3_0=ruleLogicalAndExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getLogicalOrExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"rightOperand\",\r\n \t \t\tlv_rightOperand_3_0, \r\n \t \t\t\"LogicalAndExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop41;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "private interface OperationOverNodes {\n\t\tvoid operate(Node node);\n\t}", "@Override\n\t\t\tpublic Ast binaryOp(BinaryOp ast, Void arg) {\n\t\t\t\tsuper.binaryOp(ast, arg);\n\n\t\t\t\ttry {\n\t\t\t\t\tExpr left = ast.left();\n\t\t\t\t\tExpr right = ast.right();\n\t\t\t\t\tInteger intValue = null;\n\t\t\t\t\tBoolean boolValue = null;\n\n\t\t\t\t\tswitch (ast.operator) {\n\t\t\t\t\tcase B_TIMES:\n\t\t\t\t\t\tintValue = asInt(left) * asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_DIV:\n\t\t\t\t\t\tintValue = asInt(left) / asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_MOD:\n\t\t\t\t\t\tintValue = asInt(left) % asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_PLUS:\n\t\t\t\t\t\tintValue = asInt(left) + asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_MINUS:\n\t\t\t\t\t\tintValue = asInt(left) - asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_AND:\n\t\t\t\t\t\tboolValue = asBool(left) && asBool(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_OR:\n\t\t\t\t\t\tboolValue = asBool(left) || asBool(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_LESS_THAN:\n\t\t\t\t\t\tboolValue = asInt(left) < asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_LESS_OR_EQUAL:\n\t\t\t\t\t\tboolValue = asInt(left) <= asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_GREATER_THAN:\n\t\t\t\t\t\tboolValue = asInt(left) > asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_GREATER_OR_EQUAL:\n\t\t\t\t\t\tboolValue = asInt(left) >= asInt(right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_EQUAL:\n\t\t\t\t\t\tboolValue = areEqual(left, right);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase B_NOT_EQUAL:\n\t\t\t\t\t\tboolValue = areEqual(left, right);\n\t\t\t\t\t\tif (boolValue != null)\n\t\t\t\t\t\t\tboolValue = !boolValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn replace(ast, intValue, boolValue);\n\t\t\t\t} catch (NotConstantException exc) {\n\t\t\t\t\t// non-constant operands: make no change.\n\t\t\t\t\treturn ast;\n\t\t\t\t} catch (ArithmeticException exc) {\n\t\t\t\t\t// division by zero etc: make no change.\n\t\t\t\t\treturn ast;\n\t\t\t\t}\n\t\t\t}", "@ZenCodeType.Operator(ZenCodeType.OperatorType.OR)\n default IData or(IData other) {\n \n return notSupportedOperator(OperatorType.OR);\n }", "private Object eval(OrExpr expr) {\n if (expr.getExpr().size() == 1) {\n return eval(expr.getExpr().get(0));\n }\n\n boolean result = false;\n for (AndExpr e : expr.getExpr()) {\n Object res = eval(e);\n if (res instanceof Boolean) {\n result = result || (Boolean) res;\n } else {\n throw new RaydenScriptException(\"Expression error: Part expression result is not a boolean. Type: '\" + res.getClass() + \"'\");\n }\n\n if (result) {\n return true;\n }\n }\n return false;\n }", "public final EObject ruleOrOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_2=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4396:28: ( ( () (otherlv_1= 'or' | otherlv_2= '||' ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4397:1: ( () (otherlv_1= 'or' | otherlv_2= '||' ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4397:1: ( () (otherlv_1= 'or' | otherlv_2= '||' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4397:2: () (otherlv_1= 'or' | otherlv_2= '||' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4397:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4398:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getOrOperatorAccess().getOrOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4403:2: (otherlv_1= 'or' | otherlv_2= '||' )\r\n int alt51=2;\r\n int LA51_0 = input.LA(1);\r\n\r\n if ( (LA51_0==47) ) {\r\n alt51=1;\r\n }\r\n else if ( (LA51_0==48) ) {\r\n alt51=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 51, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt51) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4403:4: otherlv_1= 'or'\r\n {\r\n otherlv_1=(Token)match(input,47,FOLLOW_47_in_ruleOrOperator9526); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getOrOperatorAccess().getOrKeyword_1_0());\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4408:7: otherlv_2= '||'\r\n {\r\n otherlv_2=(Token)match(input,48,FOLLOW_48_in_ruleOrOperator9544); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getOrOperatorAccess().getVerticalLineVerticalLineKeyword_1_1());\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Override\n public R visit(ConditionalOrExpression n, A argu) {\n R _ret = null;\n n.conditionalAndExpression.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic String visitBoolExpr(BoolExprContext ctx) {\n\t\tint childrenNo=ctx.children.size();\n\t\tif (childrenNo == 3 )\n\t\t{\n\t\t\tParseTree n=ctx.getChild(1);\t\t\t\n\t\t\tif (!(n instanceof TerminalNode)) return visit(n); //( boolExpr ) \n\t\t\telse if(n.equals(ctx.COMP())) {\n\t\t\t\tString firstOpType=visit(ctx.getChild(0)); //|arExpr COMP arExpr\n\t\t\t\tString secondOpType=visit(ctx.getChild(2)); \n\t\t\t\tif(!((firstOpType.equals(\"int\"))&&(secondOpType.equals(\"int\")))) throw new RuntimeException(\"you can only compare integer types\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}else if(n==ctx.EQ()){\t\t\t\t\t\t\t\t\t\t\t//|arExpr EQ arExpr\n\t\t\t\tString firstOpType=visit(ctx.getChild(0)); \n\t\t\t\tString secondOpType=visit(ctx.getChild(2)); \t\t\t\t\n\t\t\t\tif(!(((firstOpType.equals(\"int\"))&&(secondOpType.equals(\"int\")))||((firstOpType.equals(\"char\"))&&(secondOpType.equals(\"char\"))))) throw new RuntimeException(\"you can only use\"\n\t\t\t\t\t\t+ \"\\\"==\\\" operator on integer or character types\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}else if(n==ctx.AND()||n==ctx.OR()){ //|boolExpr (AND|OR)boolExpr\n\t\t\t\tString firstOpType=visit(ctx.getChild(0));\n\t\t\t\tString secondOpType=visit(ctx.getChild(2));\n\t\t\t\tif(!(firstOpType.equals(\"boolean\"))&&(secondOpType.equals(\"boolean\"))) throw new RuntimeException(\"you can only use boolean operators on boolean expressions\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}\n\t\t} else if (childrenNo == 2 ) { //|NOT boolExpr\n\t\t\tString exprType=visit(ctx.getChild(1));\n\t\t\tif (!exprType.equals(\"boolean\")) throw new RuntimeException(\"NOT operator works only with boolean expresssions\");\n\t\t\t\treturn \"boolean\";\n\t\t}else {\t\t\t\t\t\t\t\t//|(ID|property|BOOLEANLIT|arrIdExpr|methodCall)\n\t\t\tParseTree n=ctx.getChild(0);\n\t\t\tif (n instanceof TerminalNode) {\t\t\t\t\n\t\t\t\tif (n==ctx.BOOLEANLIT()) return \"boolean\";\n\t\t\t\telse if(n==ctx.ID()){\n\t\t\t\t\tString key=visitTerminal((TerminalNode)n);\n\t\t\t\t\tRecord id= table.lookup(key);\n\t\t\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\t\t\treturn id.getReturnType();\n\t\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t}else {\n\t\t\t\tString type=visit(ctx.getChild(0));\n\t\t\t\treturn type;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn null; //for debug\n\t}", "public T caseLogicalOrExpression(LogicalOrExpression object)\n {\n return null;\n }", "public String visit(AndExpression n, Object argu) \n\t{\n\t\tString _ret=null;\n\t String e0 = n.f0.accept(this, argu);\n\t String e1 = n.f2.accept(this, argu);\n\t \n\t if (e0.equals(\"boolean\") && e1.equals(\"boolean\"))\n\t {\n\t \t_ret = \"boolean\";\n\t }\n\t return _ret;\n\t}", "public Rule typeAndOrId()\n \t{\n \t\treturn firstOf(sequence(type(), id()), type()/*, id()*/);\n \t}", "public LogicGateAND() {\r\n\t\t// Initialize input and output ports\r\n\t\tsuper(Operators.AND, new IDynamicInterface(2), new IFixedInterface(new IPort()));\r\n\t}", "@Test\n \tpublic void whereClauseForNodeDirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 1));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -1)\n \t\t);\n \t}", "public final PythonParser.or_test_return or_test(expr_contextType ctype) throws RecognitionException {\n PythonParser.or_test_return retval = new PythonParser.or_test_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token or=null;\n List list_right=null;\n PythonParser.and_test_return left = null;\n\n PythonParser.and_test_return right = null;\n right = null;\n PythonTree or_tree=null;\n RewriteRuleTokenStream stream_OR=new RewriteRuleTokenStream(adaptor,\"token OR\");\n RewriteRuleSubtreeStream stream_and_test=new RewriteRuleSubtreeStream(adaptor,\"rule and_test\");\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1046:5: (left= and_test[ctype] ( (or= OR right+= and_test[ctype] )+ | -> $left) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1046:7: left= and_test[ctype] ( (or= OR right+= and_test[ctype] )+ | -> $left)\n {\n pushFollow(FOLLOW_and_test_in_or_test4287);\n left=and_test(ctype);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_and_test.add(left.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1047:9: ( (or= OR right+= and_test[ctype] )+ | -> $left)\n int alt81=2;\n int LA81_0 = input.LA(1);\n\n if ( (LA81_0==OR) ) {\n alt81=1;\n }\n else if ( (LA81_0==EOF||LA81_0==NEWLINE||LA81_0==NAME||LA81_0==AS||LA81_0==FOR||LA81_0==IF||LA81_0==ORELSE||(LA81_0>=RPAREN && LA81_0<=COMMA)||(LA81_0>=SEMI && LA81_0<=DOUBLESLASHEQUAL)||LA81_0==RBRACK||(LA81_0>=RCURLY && LA81_0<=BACKQUOTE)) ) {\n alt81=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 81, 0, input);\n\n throw nvae;\n }\n switch (alt81) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1047:11: (or= OR right+= and_test[ctype] )+\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1047:11: (or= OR right+= and_test[ctype] )+\n int cnt80=0;\n loop80:\n do {\n int alt80=2;\n int LA80_0 = input.LA(1);\n\n if ( (LA80_0==OR) ) {\n alt80=1;\n }\n\n\n switch (alt80) {\n \tcase 1 :\n \t // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1047:12: or= OR right+= and_test[ctype]\n \t {\n \t or=(Token)match(input,OR,FOLLOW_OR_in_or_test4303); if (state.failed) return retval; \n \t if ( state.backtracking==0 ) stream_OR.add(or);\n\n \t pushFollow(FOLLOW_and_test_in_or_test4307);\n \t right=and_test(ctype);\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_and_test.add(right.getTree());\n \t if (list_right==null) list_right=new ArrayList();\n \t list_right.add(right.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt80 >= 1 ) break loop80;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(80, input);\n throw eee;\n }\n cnt80++;\n } while (true);\n\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:1050:8: \n {\n\n // AST REWRITE\n // elements: left\n // token labels: \n // rule labels: retval, left\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_left=new RewriteRuleSubtreeStream(adaptor,\"rule left\",left!=null?left.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 1050:8: -> $left\n {\n adaptor.addChild(root_0, stream_left.nextTree());\n\n }\n\n retval.tree = root_0;}\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n if (or != null) {\n retval.tree = actions.makeBoolOp((left!=null?((PythonTree)left.tree):null), boolopType.Or, list_right);\n }\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "boolean hasOperator();", "boolean isOp();", "public static BinaryExpression and(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "private Object visitOperatorNode(SimpleNode node, Object data)\n\t{\n\t\tfinal FormulaSemantics semantics = (FormulaSemantics) data;\n\t\tOperator op = node.getOperator();\n\t\tif (op == null)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\"Parse Error: Object of type \" + node.getClass()\n\t\t\t\t\t+ \" expected to have an operator, none was found\");\n\t\t\treturn semantics;\n\t\t}\n\t\tif (node.jjtGetNumChildren() != 2)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\tgetInvalidCountReport(node, 2));\n\t\t\treturn semantics;\n\t\t}\n\t\tNode child1 = node.jjtGetChild(0);\n\t\tchild1.jjtAccept(this, data);\n\t\t//Consistent with the \"fail fast\" behavior in the implementation note\n\t\tif (!semantics.getInfo(FormulaSemanticsUtilities.SEM_VALID).isValid())\n\t\t{\n\t\t\treturn semantics;\n\t\t}\n\t\t//Need to capture now\n\t\t@SuppressWarnings(\"PMD.PrematureDeclaration\")\n\t\tClass<?> format1 =\n\t\t\t\tsemantics.getInfo(FormulaSemanticsUtilities.SEM_FORMAT)\n\t\t\t\t\t.getFormat();\n\n\t\tNode child2 = node.jjtGetChild(1);\n\t\tchild2.jjtAccept(this, semantics);\n\t\t//Consistent with the \"fail fast\" behavior in the implementation note\n\t\tif (!semantics.getInfo(FormulaSemanticsUtilities.SEM_VALID).isValid())\n\t\t{\n\t\t\treturn semantics;\n\t\t}\n\t\tClass<?> format2 =\n\t\t\t\tsemantics.getInfo(FormulaSemanticsUtilities.SEM_FORMAT)\n\t\t\t\t\t.getFormat();\n\t\tClass<?> returnedFormat =\n\t\t\t\tfm.getOperatorLibrary().processAbstract(op, format1, format2);\n\t\t//null response means the library couldn't find an appropriate operator\n\t\tif (returnedFormat == null)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\"Parse Error: Operator \" + op.getSymbol()\n\t\t\t\t\t+ \" cannot process children: \" + format1.getSimpleName()\n\t\t\t\t\t+ \" and \" + format2.getSimpleName() + \" found in \"\n\t\t\t\t\t+ node.getClass().getName());\n\t\t\treturn semantics;\n\t\t}\n\t\tsemantics.setInfo(FormulaSemanticsUtilities.SEM_FORMAT,\n\t\t\tnew FormulaFormat(returnedFormat));\n\t\treturn semantics;\n\t}", "public boolean rightDistributive( Operator op){\n\t return false;\n }", "@Override\n public Node visit(BinaryExpression nd, Void v) {\n if (\"??\".equals(nd.getOperator())) return nd;\n return nd.getLeft().accept(this, v);\n }", "public Type visit(If n) {\n\t\tif (!(n.e.accept(this) instanceof BooleanType)) {\n\t\t\t//Erro:\n\t\t\tSystem.out.println(\"A condição do if deve ser do tipo Boolean\");\n\t\t}\n\n\t\tn.s1.accept(this);\n\t\tn.s2.accept(this);\n\t\treturn new BooleanType();\n\t}", "@Override\n\tpublic void visit(BitwiseXor arg0) {\n\t\t\n\t}", "public Object visitBinaryExpr(GoIRBinaryExprNode node){\n\t\tString l = node.getType();\n\t\tif(l!= null) {//already discovered type of children\n\t\t\treturn l;\n\t\t}\n\t\tl = (String) node.getLeft().accept(this);\n\t\tString r = (String) node.getRight().accept(this);\n\t\tGoException error = Compare(l,r,\"visitbinary\");\n\t\tif(error != null) {\n\t\t\tthrow error;\n\t\t}\n\t\tnode.setType(l);//so it doesnt have to repeatedly check\n\t\t// like 3+3+3+3+3... would make a big tree and we dont need to repeatedly check\n\t\treturn l;\n\t}", "@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}", "public abstract Operand<T> result();", "public final void mT__186() throws RecognitionException {\n try {\n int _type = T__186;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:184:8: ( 'or' )\n // InternalMyDsl.g:184:10: 'or'\n {\n match(\"or\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test\n \tpublic void whereClauseForNodeIndirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<\", \"_node23.right_token\", \"_node42.left_token\")\n \t\t);\n \t}", "private static boolean checkOrOperations(String expression, Lexemes lexemes, SymbolTable table) {\n\t\tif (expression.contains(\"or\")) {\n\t\t\tString[] arr = expression.split(\"or\");\n\t\t\tint finalIndex = arr.length - 1;\n\n\t\t\tfor (int i = 0; i <= finalIndex; i++) {\n\t\t\t\tString s = arr[i];\n\t\t\t\tif (table.contains(s)) {\n\t\t\t\t\tint id = table.getIdOfVariable(s);\n\t\t\t\t\tlexemes.insertLexeme(\"ID\", ((Integer) id).toString());\n\t\t\t\t} else {\n\n\t\t\t\t\tif (s.equals(\"true\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"true\");\n\t\t\t\t\t} else if (s.equals(\"false\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"false\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!checkEqualsToOperations(s.trim(), lexemes, table)) return false;\n\t\t\t\t\t}\n\n\t\t\t\t\t// check if the current word is a variable\n\t\t\t\t\tif (i < finalIndex) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"LOGOP\", \"or\");\n\t\t\t\t\t} else if (expression.endsWith(\"or\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"LOGOP\", \"or\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (!checkEqualsToOperations(expression.trim(), lexemes, table)) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean isRealNode();", "public boolean isRealNode();" ]
[ "0.6903334", "0.6873004", "0.6683395", "0.66380346", "0.66048825", "0.64967793", "0.6466478", "0.64597666", "0.6405361", "0.63971037", "0.6362044", "0.6339865", "0.6333405", "0.63324094", "0.6278217", "0.62659913", "0.6256569", "0.6256458", "0.6194792", "0.6163915", "0.61124885", "0.6096867", "0.6084062", "0.6074331", "0.60527", "0.60381263", "0.5985768", "0.5962553", "0.5932126", "0.5887473", "0.58853024", "0.58445257", "0.5835146", "0.5816021", "0.5809516", "0.5793951", "0.5750693", "0.57242507", "0.5715202", "0.5713723", "0.5713328", "0.5709764", "0.57084006", "0.5702784", "0.5700694", "0.5693632", "0.5679819", "0.56737804", "0.56568956", "0.56252015", "0.5619377", "0.5597936", "0.5593388", "0.55864996", "0.5574743", "0.5573309", "0.5571103", "0.55432445", "0.55394274", "0.5531141", "0.5529649", "0.5522793", "0.55194426", "0.5514554", "0.55070466", "0.5504262", "0.5502406", "0.5486832", "0.5485435", "0.5470058", "0.5460036", "0.54573804", "0.5452536", "0.54414445", "0.5440806", "0.5437495", "0.5429732", "0.5419863", "0.5413642", "0.5404805", "0.5403913", "0.54027677", "0.5401305", "0.5400961", "0.5393952", "0.5384563", "0.5383137", "0.5378871", "0.53778565", "0.53749245", "0.5374432", "0.5369442", "0.5360414", "0.5351561", "0.5347145", "0.5345732", "0.5342835", "0.53408176", "0.5333557", "0.5331569", "0.5331569" ]
0.0
-1
this method should return a string which can be used to weave runtime conditions for aspect matching
@Override public String getCondition() { return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String toString() {\n\t\treturn \"aspect beaqn impl\";\r\n\t}", "java.lang.String getCondition();", "@Override\n public String toString() {\n return String.format(\"MyCustomRule[shouldIfail=%b]\", shouldIfail);\n }", "String getCondition();", "@Override\n\tpublic String toString () {\n\t\treturn \"[\" + phonstringCondition + \" (\" + minProb + \", \" + maxProb + \")\" + \"]\";\n\t}", "public String toString(){\r\n\t\tString cons = \"Conditions\\n\";\r\n\t\t//enhanced for loop could also be used\r\n\t\tfor(int i = 0; i<conditions.size(); i++){\r\n\t\t\tcons += conditions.get(i).getName()+\"\\n\";\r\n\t\t}\r\n\t\treturn \"Name : \" + fname + \" \" + lname+\"\\nDate Of Birth: \" + age+ \"\\n\" + cons; \r\n\t}", "String getFullEffectWithExampleParametersAsString();", "public String toString()\r\n {\r\n return String.format(getTexto()+\"|\"+getCondition());\r\n }", "public String toString() {\n\n try {\n\tStringBuffer text = new StringBuffer();\n\tif (m_test != null) {\n\t text.append(\"If \");\n\t for (Test t = m_test; t != null; t = t.m_next) {\n\t if (t.m_attr == -1) {\n\t text.append(\"?\");\n\t } else {\n\t text.append(m_instances.attribute(t.m_attr).name() + \" = \" +\n\t\t\t m_instances.attribute(t.m_attr).value(t.m_val));\n\t }\n\t if (t.m_next != null) {\n\t text.append(\"\\n and \");\n\t }\n\t }\n\t text.append(\" then \");\n\t}\n\ttext.append(m_instances.classAttribute().value(m_classification) + \"\\n\");\n\tif (m_next != null) {\n\t text.append(m_next.toString());\n\t}\n\treturn text.toString();\n } catch (Exception e) {\n\treturn \"Can't print Prism classifier!\";\n }\n }", "public String toString()\n\t\t{\n\t\t\tif (computedToString == null)\n\t\t\t{\n\t\t\t\tsynchronized(ExecutionPolicy.class)\n\t\t\t\t{\n\t\t\t\t\tcomputedToString = new StringBuilder().append(indent()).append(\"<AND>\\n\").append(super.toString()).append(indent()).append(\"</AND>\\n\").toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn computedToString;\n\t\t}", "@Override public String getName()\n{\n return base_condition.getName() + \"@\" + min_time + \"-\" + max_time;\n}", "public String getConditionExpression()\r\n\t\t{\r\n\t\t\tStringBuilder builder = new StringBuilder(\"parameters[\").append(index).append(\"]\");\r\n\r\n\t\t\tif(embeddedProperty != null)\r\n\t\t\t{\r\n\t\t\t\tbuilder.append(\".\").append(embeddedProperty);\r\n\t\t\t}\r\n\r\n\t\t\treturn builder.toString();\r\n\t\t}", "private String E19Conditions() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 60;\n int leftMargin = 17;\n String tmp1 = \" \";\n String tmp2 = \" \";\n String tmp3 = \" \";\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_CONDITIONS + \"\\n\\n\");\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 0);\n\n if (data.getRiverstat().getMile() != HydroConstants.MISSING_VALUE) {\n tmp1 = String.format(\"%-6.1f\", data.getRiverstat().getMile());\n }\n if (data.getRiverstat().getDa() != HydroConstants.MISSING_VALUE) {\n tmp2 = String.format(\"%-6.1f\", data.getRiverstat().getDa());\n }\n if (data.getRiverstat().getPool() != HydroConstants.MISSING_VALUE) {\n tmp3 = String.format(\"%-6.1f\", data.getRiverstat().getPool());\n }\n\n buffer.append(String.format(\n \" MILES ABOVE MOUTH: %s%sDRAINAGE AREA: %s%sPOOL STAGE: %s\",\n tmp1, \" \", tmp2, \" \", tmp3));\n buffer.append(\"\\n\\n\\n\");\n\n buffer.append(\" STREAM BED: \");\n\n if (data.getDescrip().getBed() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getBed(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REACH: \");\n if (data.getDescrip().getReach() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getReach(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REGULATION: \");\n if (data.getDescrip().getRes() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getRes(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" DIVERSION: \");\n if (data.getDescrip().getDivert() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getDivert(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" WINTER: \");\n if (data.getDescrip().getIce() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getIce(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" TOPOGRAPHY: \");\n if (data.getDescrip().getTopo() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getTopo(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REMARKS: \");\n if (data.getDescrip().getRemark() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getRemark(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(0, buffer.toString()));\n\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String footer = createFooter(data, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_CONDITIONS, \"CONDITIONS\", null,\n E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n return buffer.toString();\n }", "private String toRules(){\n\n if (numInstances() == 0)\n\treturn \"No Rules (Empty Exemplar)\";\n\n String s = \"\", sep = \"\";\n\t\n for(int i = 0; i < numAttributes(); i++){\n\t \n\tif(i == classIndex())\n\t continue;\n\t \n\tif(attribute(i).isNumeric()){\n\t if(m_MaxBorder[i] != m_MinBorder[i]){\n\t s += sep + m_MinBorder[i] + \"<=\" + attribute(i).name() + \"<=\" + m_MaxBorder[i];\n\t } else {\n\t s += sep + attribute(i).name() + \"=\" + m_MaxBorder[i];\n\t }\n\t sep = \" ^ \";\n\t \n\t} else {\n\t s += sep + attribute(i).name() + \" in {\";\n\t String virg = \"\";\n\t for(int j = 0; j < attribute(i).numValues() + 1; j++){\n\t if(m_Range[i][j]){\n\t s+= virg;\n\t if(j == attribute(i).numValues())\n\t\ts += \"?\";\n\t else\n\t\ts += attribute(i).value(j);\n\t virg = \",\";\n\t }\n\t }\n\t s+=\"}\";\n\t sep = \" ^ \";\n\t}\t \n }\n s += \" (\"+numInstances() +\")\";\n return s;\n }", "public String toString()\n\t\t{\n\t\t\tif (computedToString == null)\n\t\t\t{\n\t\t\t\tsynchronized(ExecutionPolicy.class)\n\t\t\t\t{\n\t\t\t\t\tcomputedToString = new StringBuilder().append(indent()).append(\"<OR>\\n\").append(super.toString()).append(indent()).append(\"</OR>\\n\").toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn computedToString;\n\t\t}", "public String toString()\n\t\t{\n\t\t\tsynchronized(ExecutionPolicy.class)\n\t\t\t{\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\ttoStringIndent++;\n\t\t\t\tif (rules == null) sb.append(indent()).append(\"null\\n\");\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfor (ExecutionPolicy ep: rules) sb.append(ep.toString());\n\t\t\t\t}\n\t\t\t\ttoStringIndent--;\n\t\t\t\treturn sb.toString();\n\t\t\t}\n\t\t}", "public String getEvaluationCondition()\r\n {\r\n return evaluationCondition;\r\n }", "public String toString()\n\t\t{\n\t\t\tif (computedToString == null)\n\t\t\t{\n\t\t\t\tsynchronized(ExecutionPolicy.class)\n\t\t\t\t{\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tsb.append(indent()).append(\"<NOT>\\n\");\n\t\t\t\t\ttoStringIndent++;\n\t\t\t\t\tif (rule == null) sb.append(indent()).append(\"null\\n\");\n\t\t\t\t\telse sb.append(rule.toString());\n\t\t\t\t\ttoStringIndent--;\n\t\t\t\t\tsb.append(indent()).append(\"</NOT>\\n\");\n\t\t\t\t\tcomputedToString = sb.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn computedToString;\n\t\t}", "public String getConditiondescription() {\r\n return conditiondescription;\r\n }", "public static String toString(int[]cond){\n\t\tString s=\"\";\n\t\tfor (int i =0; i<13; i++)\n\t\t{\n\t\t\t\ts = s +conditions[i]+ \": \"+ cond[i]+ \"\\n\";\n\t\t\t\tSystem.out.println(s);\n\t\t}\n\t\treturn s;\n\t}", "public String getInitCond() {\n Object ref = initCond_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n initCond_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String toString() {\n StringBuilder out = new StringBuilder(\"Requirements:\\n\");\n for (Fact fact: requiredFacts) {\n out.append(fact.toString());\n if (requiredFacts.indexOf(fact) < requiredFacts.size() - 1) out.append(reqIsAnd ? \"AND\\n\" : \"OR\\n\");\n }\n return out.toString();\n }", "public String getAssessmentandReportingPostconditions() {\n return assessmentandReportingPostconditions;\n }", "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (!modifiable) {\n\t\t\tsb.append(\"final \");\n\t\t}\n\t\tsb.append(path.toString());\n\t\tif (conditional) {\n\t\t\tsb.append(\" ?= \");\n\t\t} else {\n\t\t\tsb.append(\" = \");\n\t\t}\n\t\tsb.append(\"null;\");\n\t\treturn sb.toString();\n\t}", "public String toString() {\n\t\tString contents = \"\";\n\t\tif (scenario != null) {\n\t\t\tif (controller.getWorld().getHasScenarios()) {\n\t\t\t\tcontents += \"Scenario: \" + scenario + \"\\n\";\n\t\t\t}\n\t\t\tcontents += \"Number of runs: \" + numOfRuns + \"\\n\";\n\t\t\tcontents += \"Trial duration: \" + trialDuration + \"\\n\";\n\t\t\tcontents += \"Number of trials: \" + numOfTrials + \"\\n\";\n\t\t}\n\t\treturn contents;\n\t}", "public String getRuntimeExpr() {\n switch (provider) {\n case MATH:\n return \"Math.\" + runtimeName;\n case JIFFLE:\n // _FN is the instance of JiffleFunctions in AbstractJiffleRuntime\n return \"_FN.\" + runtimeName;\n case PROXY:\n return runtimeName;\n default:\n throw new IllegalStateException(\"Internal compiler error: getRuntimeExpr\");\n }\n }", "private String getAspectShown( Identifiable identifiable ) {\n String aspectShown = null;\n List<String> aspectsShown = aspects.get( identifiable.getId() );\n if ( aspectsShown != null && !aspectsShown.isEmpty() ) {\n aspectShown = aspectsShown.get( 0 );\n }\n return aspectShown;\n }", "@Override\n public String toString()\n {\n\n StringBuilder sb = new StringBuilder();\n\n if ( type != null )\n {\n sb.append( type );\n }\n\n if ( dnAttributes )\n {\n sb.append( \":dn\" );\n }\n\n if ( matchingRule == null )\n {\n\n if ( type == null )\n {\n return \"Extended Filter wrong syntax\";\n }\n }\n else\n {\n sb.append( ':' ).append( matchingRule );\n }\n\n sb.append( \":=\" ).append( matchValue );\n\n return sb.toString();\n }", "public String toString()\n\t{\n\t\tStringBuilder sb = new StringBuilder(\"Suspect: \");\n\t\t\n\t\tsb.append(\"disease = \").append(disease).append(\"; \");\n\t\tsb.append(\"visit = \").append(visit).append(\".\");\n\t\t\n\t\treturn sb.toString();\n\t}", "public String winCondition() {\r\n\t\tif (hasOneOfEach()) {\r\n\t\t\treturn \"Congratulations! You've won the Safari Game! You caught one of each type of Pokémon!\";\r\n\t\t}\r\n\t\tif (hasFiveOfTwo()) {\r\n\t\t\treturn \"Congratulations! You've won the Safari Game! You caught two each of five types of Pokémon!\";\r\n\t\t}\r\n\t\tif (hasTwoOfFive()) {\r\n\t\t\treturn \"Congratulations! You've won the Safari Game! You caught five each of two types Pokémon!\";\r\n\t\t}\r\n\t\treturn \"You did not win yet! Keep trying!\";\r\n\t}", "private String generateConfigurationString() {\n\t\tStringBuilder configuration = new StringBuilder();\n\t\tconfigurationHolder.entrySet().stream().forEach(line -> {\n\t\t\tconfiguration.append(line.getKey()+\"=\"+line.getValue()+\"\\n\");\n\t\t});\n\t\treturn configuration.toString();\n\t}", "public String toString() {\n\t\tString resultString = \"I am a weighted Instances object.\\r\\n\" + \"I have \" + numInstances()\n\t\t\t\t+ \" instances and \" + (numAttributes() - 1) + \" conditional attributes.\\r\\n\"\n\t\t\t\t+ \"My weights are: \" + Arrays.toString(weights) + \"\\r\\n\" + \"My data are: \\r\\n\"\n\t\t\t\t+ super.toString();\n\n\t\treturn resultString;\n\t}", "public String toString() {\n\n if (m_rules == null) {\n return \"Prism: No model built yet.\";\n }\n return \"Prism rules\\n----------\\n\" + m_rules.toString();\n }", "public String toString() {\n return this.grammarRules.keySet() + \"\";\n\t}", "@Override\r\n public String dumpOf ()\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n if (evaluation != null) {\r\n sb.append(String.format(\" evaluation=%s%n\", evaluation));\r\n }\r\n\r\n Shape physical = (getShape() != null) ? getShape().getPhysicalShape() : null;\r\n if (physical != null) {\r\n sb.append(String.format(\" physical=%s%n\", physical));\r\n }\r\n\r\n if (forbiddenShapes != null) {\r\n sb.append(String.format(\" forbiddenShapes=%s%n\", forbiddenShapes));\r\n }\r\n\r\n if (timeRational != null) {\r\n sb.append(String.format(\" rational=%s%n\", timeRational));\r\n }\r\n\r\n return sb.toString();\r\n }", "public String prepareMatrixTestRequest() {\n Preconditions.checkState(getDeviceConfigurationCount() > 0, \"There should be at least one combination in a matrix test request!\");\n\n StringBuffer bf = new StringBuffer();\n\n boolean firstDim = true;\n for (CloudConfigurationDimension dimension : getDimensions()) {\n if(!firstDim) {\n bf.append(\" && \");\n }\n firstDim = false;\n StringBuffer dimensionRequest = prepareDimensionRequest(dimension);\n if (dimension.getEnabledTypes().size() > 1) {\n bf.append(\"(\").append(dimensionRequest).append(\")\");\n } else {\n bf.append(dimensionRequest);\n }\n }\n return bf.toString();\n\n //String s= \"(DEVICE=='nexus5' || DEVICE=='nexus7') && OSVERSION=='jellybean' && LANGUAGE=='english'\";\n }", "private String getRulesOfBestSolutionAsHumanReadableString() {\n\t\t// TODO change this to actually save the text in a file, and maybe in a cleaner format...\n\t\tIndividual bestSolution = this.controller.getBestSolution();\n\t\t\n\t\tVector<Rule> bestSolutionRules = bestSolution.getRules();\n\n\t\tString humanReadableRulesOfBestSolution = \"Add element to summary if (\";\n\t\tfor (int i = 0; i < bestSolutionRules.size(); i++) {\n\t\t\thumanReadableRulesOfBestSolution += \" ( \"; \n\t\t\tint j = 0;\n\t\t\tfor (Entry<String, Integer> entry : bestSolutionRules.get(i).getThresholds().entrySet()) {\n\t\t\t\t\n\t\t\t\thumanReadableRulesOfBestSolution += entry.getKey() + \" > \" + entry.getValue();\n\t\t\t\tString logicalConnector = ( j < bestSolutionRules.get(i).getAndBetweens().size() ? (bestSolutionRules.get(i).getAndBetweens().get(j) ? \" && \" : \" OR \") : (\"\"));\n\t\t\t\thumanReadableRulesOfBestSolution += logicalConnector;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\thumanReadableRulesOfBestSolution += \" )\";\n\t\t\tif ( bestSolutionRules.size() - 1 > i ) {\n\t\t\t\thumanReadableRulesOfBestSolution += \" || \"; \n\t\t\t}\n\t\t}\n\t\thumanReadableRulesOfBestSolution += \")\\n\";\n\t\t\n\t\treturn humanReadableRulesOfBestSolution;\n\t}", "@Override\n public void buildAspecto() {\n this.personaje.setAspecto(\"Se presenta con rasgos humanos, rodeado de circulos de agua.\");\n }", "public String toString(){\r\n\t\treturn \"This email passes \"+rulesPassed+\" rules\";\r\n\t}", "@Override\n public String toString() {\n StringBuilder buf = new StringBuilder();\n buf.append(Time.toUsefulFormat(time));\n buf.append(\" \" + actionType.name());\n buf.append(\" author=[\" + author + \"]\");\n buf.append(\" target=\" + target.name());\n buf.append(\" path=\" + path);\n buf.append(\" ipath=\" + ipath);\n \n return buf.toString();\n }", "public String buildFilter() {\n String qs = \"\";\n Set<Map.Entry<String, String>> set = instance.arguments.entrySet();\n\n for (Map.Entry<String, String> entry : set) {\n qs += entry.getKey() + \"=\" + entry.getValue() + \"&\";\n }\n return qs.substring(0, qs.length() - 1);\n }", "public String toDebugString(RuleSet rs){\n\t\tString res = \"\";\n\t\tif(body != null)\n\t\t\tfor(Integer e : body){\n\t\t\t\tres = res + (res.equals(\"\") ? \"\" : \" & \") + OWLPrinter.getString(rs.debugLookup(e));\n\t\t\t}\n\n\t\tres += \" -> \";\n\t\tif(head != null) res += OWLPrinter.getString(rs.debugLookup(head));\n\t\telse{\n\t\t\tres += OWLPrinter.getString(rs.debugLookup(axiom));\n\t\t\tif(define != null){\n\t\t\t\tres += \" def \" + OWLPrinter.getString(rs.debugLookup(define));\n\t\t\t}\n\t\t}\n\n\t\t//if(head instanceof OWLAxiom) \tres += \" -> \" + ClassPrinter.printAxiom((OWLAxiom) head);\n\t\t//else \t\t\t\t\t\t\tres += \" -> \" + ClassPrinter.printClass(head);\n\t\treturn res;\n\t}", "public Aspect getAspect() { return Aspect.ALCHEMY; }", "public static String buildGuardConditionString(EList<String> conditions,\r\n\t\t\tIL1TranslationManager translationManager, IL1Element source, TargetLanguage targetLanguage) {\r\n\t\tString guardCode = \"(\";\r\n\t\tfor (int i = 0; i < conditions.size(); i++) {\r\n\t\t\tString g = conditions.get(i);\r\n\t\t\tString gLine = \"\";\r\n\t\t\t\r\n\t\t\tif (g.equals(\"TRUE\"))\r\n\t\t\t{\r\n\t\t\t\tgLine = \"TRUE\";\r\n\t\t\t}\r\n\t\t\telse if (g.equals(\"FALSE\"))\r\n\t\t\t{\r\n\t\t\t\tgLine = \"FALSE\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tgLine = translationManager.translatePredicateExpression(\r\n\t\t\t\t\t\tg, source,\r\n\t\t\t\t\t\ttargetLanguage);\r\n\t\t\t}\r\n\t\t\tguardCode = guardCode + gLine;\r\n\t\t\tif (i + 1 < conditions.size() && !gLine.trim().equals(\"\")) {\r\n\t\t\t\tguardCode = guardCode + \" and \";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn guardCode + \")\";\r\n\t}", "public String getCollectCondition()\n\t{\n\t\tStringBuffer stbf = new StringBuffer(256) ;\n\t\tboolean existFlg = false ;\n\n\t\tfor (int i = 0; i < _searchKeyList.size(); i++)\n\t\t{\n\t\t\tKey ky = (Key)_searchKeyList.get(i) ;\n\t\t\tif (ky.getTableCollect() != null)\n\t\t\t{\n\n\t\t\t\t//#CM708969\n\t\t\t\t// Edit acquisition Condition + acquisition column when acquisition Condition is described clearly. \n\t\t\t\tif (!ky.getTableCollect().trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tstbf.append(ky.getTableCollect()) ;\n\t\t\t\t\tstbf.append(\"(\") ;\n\t\t\t\t\tstbf.append(ky.getTableColumn()) ;\n\t\t\t\t\tstbf.append(\") \") ;\n\t\t\t\t\tint wPnt = ky.getTableColumn().indexOf(\".\") ;\n\n\t\t\t\t\tif (wPnt >= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tstbf.append(ky.getTableColumn().substring((wPnt + 1))) ;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tstbf.append(ky.getTableColumn()) ;\n\t\t\t\t\t}\n\t\t\t\t\tstbf.append(\", \") ;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tstbf.append(ky.getTableColumn()) ;\n\t\t\t\t\tstbf.append(\", \") ;\n\t\t\t\t}\n\n\t\t\t\tif (existFlg == false)\n\t\t\t\t\texistFlg = true ;\n\t\t\t}\n\t\t}\n\t\t//#CM708970\n\t\t// Return '*' as all item acquisition when data is not set in the key value. \n\t\tif (existFlg == false)\n\t\t\treturn null ;\n\n\t\t//#CM708971\n\t\t// The last \"\"is removed because it is extra. \n\t\tint ep = stbf.toString().lastIndexOf(\",\") ;\n\t\treturn stbf.toString().substring(0, ep) ;\n\t}", "@Override\n public String toString() {\n if (tree != null) {\n\n String s = tree.render();\n\n s += \"\\n\\nNumber of positive rules: \"\n + getMeasure(\"measureNumPositiveRules\") + \"\\n\";\n s += \"Number of conditions in positive rules: \"\n + getMeasure(\"measureNumConditionsInPositiveRules\") + \"\\n\";\n\n return s;\n } else {\n return \"No model built yet!\";\n }\n }", "String rulesAsText();", "private String m145803a() {\n if (!this.f119494f) {\n return \"running\";\n }\n if (this.f119495g != null) {\n return \"failed\";\n }\n return \"succeeded\";\n }", "public static String globalInfo() {\n return \"This is a normation method based on Fitness Sharing. It adds a penalty for too similar individuals on the standard Normation method.\";\n }", "@Override\n public String getInitCond() {\n Object ref = initCond_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n initCond_ = s;\n return s;\n }\n }", "cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();", "@Override\n public String toString() {\n String isStudyAbroadTextRepresentation = (isStudyAbroad) ? \":study abroad\" : \"\";\n return String.format(\"%s:international%s\", super.toString(), isStudyAbroadTextRepresentation);\n }", "public String toString ()\n\t{\n\t\tString s = \"\";\n for (Production production : productions.values()) s += production + \"\\n\";\n\t\treturn s;\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getEvaluationResultIdentifier() != null) sb.append(\"EvaluationResultIdentifier: \" + getEvaluationResultIdentifier() + \",\");\n if (getComplianceType() != null) sb.append(\"ComplianceType: \" + getComplianceType() + \",\");\n if (getResultRecordedTime() != null) sb.append(\"ResultRecordedTime: \" + getResultRecordedTime() + \",\");\n if (getConfigRuleInvokedTime() != null) sb.append(\"ConfigRuleInvokedTime: \" + getConfigRuleInvokedTime() + \",\");\n if (getAnnotation() != null) sb.append(\"Annotation: \" + getAnnotation() + \",\");\n if (getResultToken() != null) sb.append(\"ResultToken: \" + getResultToken() );\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString() {\r\n\t\tString s = \"Alarm Function \";\r\n\t\t\r\n\t\ts += (this.isActivationRequest)? \"Activation {\": \"Deactivation {\";\r\n\t\t\r\n\t\ts += \"sensor = \" + SPINESensorConstants.sensorCodeToString(sensor) + \", \";\r\n\t\ts += \"dataType = \" + SPINEFunctionConstants.functionalityCodeToString(SPINEFunctionConstants.FEATURE, dataType) + \", \";\r\n\t\ts += \"valueType = \" + SPINESensorConstants.channelBitmaskToString(valueType) + \", \";\r\n\t\ts += \"lowerThreshold = \" + lowerThreshold + \", \";\r\n\t\ts += \"upperThreshold = \" + upperThreshold + \", \";\r\n\t\ts += \"alarmType = \" + SPINEFunctionConstants.functionalityCodeToString(SPINEFunctionConstants.ALARM, alarmType) + \"}\";\r\n\t\t\r\n\t\treturn s;\r\n\t}", "public String getTccConfigInstrument() {\n InstPhoenix inst = (InstPhoenix) _oe.getInstrument();\n PhoenixParams.Filter f = inst.getFilter();\n // See WDBA-37 - J\n return f == PhoenixParams.Filter.J9232 ? \"PHOENIX4_J\" : \"PHOENIX4\";\n }", "public String getCondition() {\n return condition;\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.ruleController.toString();\n\t}", "public String toString() {\n\treturn \"gate \" + name + \" const \" + delay;\n }", "public String getConfigString()\n {\n return debug ? \"debug\" : \"release\";\n }", "public String toString()\r\n\t{\r\n\t final String TAB = \" \";\r\n\t \r\n\t String retValue = \"\";\r\n\t \r\n\t retValue = \"Scenario ( \"\r\n\t + super.toString() + TAB\r\n\t + \"key = \" + this.key + TAB\r\n\t + \"description = \" + this.description + TAB\r\n\t + \"response = \" + this.response + TAB\r\n\t + \"delayInMilliSec = \" + this.delayInMilliSec + TAB\r\n\t + \" )\";\r\n\t\r\n\t return retValue;\r\n\t}", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(128894);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"InstanceId:\").append(this.ddx);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppId:\").append(this.ddc);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppVersion:\").append(this.ddd);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppState:\").append(this.dgQ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppType:\").append(this.ddz);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CostTimeMs:\").append(this.ddA);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"Scene:\").append(this.cVR);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"StartTimeStampMs:\").append(this.ddB);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"EndTimeStampMs:\").append(this.ddC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"path:\").append(this.bUh);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreload:\").append(this.ddg);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreloadPageFrame:\").append(this.deD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"networkTypeStr:\").append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(128894);\n return stringBuffer2;\n }", "public String getGuardExpression()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(this.hasAttribute(guardExpressionString))\n\t\t\t\treturn this.getAttribute(guardExpressionString).getValue();\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"\";\n\t}", "public String toString () {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"[RelevantObjectsCommand in context \");\n stringBuffer.append(relevantStateVariables.toString());\n stringBuffer.append(\" with respect to \");\n stringBuffer.append(relevancyRelationship.cyclify());\n stringBuffer.append(\" output state variable: \");\n stringBuffer.append(relevantObjects.toString());\n stringBuffer.append(\"]\");\n return stringBuffer.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Environment size: \");\n sb.append(environmentSize);\n sb.append(\"\\n\");\n sb.append(\"Maximum number of iterations: \");\n sb.append(maxIterations);\n sb.append(\"\\n\");\n sb.append(\"Number of environment simulations: \");\n sb.append(numEnvironmentRuns);\n\n if (environment instanceof EnvironmentAI) {\n sb.append(\"\\n\");\n sb.append(\"Number of inputs: \").append(numInputs);\n sb.append(\"\\n\");\n sb.append(\"Number of hidden units: \").append(numHiddenUnits);\n sb.append(\"\\n\");\n sb.append(\"Number of outputs: \").append(numOutputs);\n sb.append(\"\\n\");\n sb.append(\"Activation function(s): \").append(activationFunctions);\n }\n\n return sb.toString();\n }", "private String toString2(){\n String s;\n Enumeration enu = null;\n s = \"Exemplar[\";\n if (numInstances() == 0) {\n\treturn s + \"Empty]\";\n }\n s += \"{\";\n enu = enumerateInstances();\n while(enu.hasMoreElements()){\n\ts = s + \"<\" + enu.nextElement().toString() + \"> \";\n }\n s = s.substring(0, s.length()-1);\n s = s + \"} {\" + toRules() + \"} p=\" + m_PositiveCount + \" n=\" + m_NegativeCount + \"]\";\n return s;\n }", "public abstract String getRuntimeDescription();", "public String globalInfo() {\n\n\t\treturn \"A supervised attribute filter that can be used to select \"\n\t\t\t\t+ \"attributes. It is very flexible and allows various search \"\n\t\t\t\t+ \"and evaluation methods to be combined.\";\n\t}", "public String getAnalyserSetup() {\n\t\tList<String> analyserNames = new ArrayList<>(this.enabledAnalysers);\n\n\t\tCollections.sort(analyserNames);\n\n\t\treturn StringUtils.join(analyserNames, \"_\");\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getRuleVariables() != null)\n sb.append(\"RuleVariables: \").append(getRuleVariables());\n sb.append(\"}\");\n return sb.toString();\n }", "public static String getRuntimeMetadata() {\n StringBuilder s = new StringBuilder();\n String version;\n\n version = kotlinVersion();\n if (version != null) {\n s.append(\",kt=\").append(version);\n }\n\n version = scalaVersion();\n if (version != null) {\n s.append(\",sc=\").append(version);\n }\n\n version = clojureVersion();\n if (version != null) {\n s.append(\",clj=\").append(version);\n }\n\n version = groovyVersion();\n if (version != null) {\n s.append(\",gy=\").append(version);\n }\n\n version = jRubyVersion();\n if (version != null) {\n s.append(\",jrb=\").append(version);\n }\n\n return s.toString();\n }", "String getInitCond();", "static String frameToString(RecordedFrame frame, boolean lineNumbers) {\n StringBuilder builder = new StringBuilder();\n RecordedMethod method = frame.getMethod();\n RecordedClass clazz = method.getType();\n if (clazz == null) {\n builder.append(\"<<\");\n builder.append(frame.getType());\n builder.append(\">>\");\n } else {\n builder.append(clazz.getName());\n }\n builder.append(\"#\");\n builder.append(method.getName());\n builder.append(\"()\");\n if (lineNumbers) {\n builder.append(\":\");\n if (frame.getLineNumber() == -1) {\n builder.append(\"(\" + frame.getType() + \" code)\");\n } else {\n builder.append(frame.getLineNumber());\n }\n }\n return builder.toString();\n }", "@Override\r\n\t\tpublic String toString() {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\treturn \"Threshold:\"+t+\"\\tMat:[\"+src.rows()+\",\"+src.cols()+\":\"+src.channels()+\"]\";\r\n\t\t}", "public String toString()\n/* */ {\n/* 885 */ StringBuilder result = new StringBuilder();\n/* 886 */ for (int i = 0; i < this.ruleSets.length; i++) {\n/* 887 */ result.append(this.ruleSets[i].toString());\n/* */ }\n/* 889 */ return result.toString();\n/* */ }", "public String toString() {\n return getClass().getName() + \"[\" + paramString() + \"]\";\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getMinHealthyPercentage() != null)\n sb.append(\"MinHealthyPercentage: \").append(getMinHealthyPercentage()).append(\",\");\n if (getInstanceWarmup() != null)\n sb.append(\"InstanceWarmup: \").append(getInstanceWarmup());\n sb.append(\"}\");\n return sb.toString();\n }", "public String description(DurableObject obj) {\n\t\treturn mapper.apply(obj.condition());\n\t}", "public String toString(){\n\t\treturn \"RUN\";\n\t}", "public String getActualCriteria(GLState pGLState) {\n return Build.MODEL;\n }", "public String detect() {\n // Find all activation contexts with traces of length 3,\n // exclude traces containing SequenceNodes (they do not yield\n // viable candidates for super-instructions),\n // sort them by activation counts in descending order,\n // fetch the top CONSIDER_TOP_CONTEXTS activation contexts\n // and construct a candidate for each of them.\n List<ActivationContext> sorted =\n contexts.keySet().stream().filter(context -> context.getNumberOfClasses() == 3)\n .filter(context -> !Arrays.asList(context.getTrace())\n .contains(SequenceNode.class.getName()))\n .sorted(Comparator.comparingLong(context -> contexts.get(context)).reversed())\n .collect(Collectors.toList());\n Set<Candidate> candidates = new HashSet<>();\n\n for (ActivationContext context : sorted) {\n candidates.add(constructCandidate(context));\n }\n\n // Sort the candidates by their score and format the results\n List<Candidate> tops =\n candidates.stream().sorted(CandidateSelector::candidateByScoreAndPrint)\n .limit(CONSIDER_TOP_CONTEXTS)\n .collect(Collectors.toList());\n\n StringBuilder builder = new StringBuilder();\n for (Candidate top : tops) {\n builder.append(top.prettyPrint()).append('\\n');\n builder.append(String.format(\"(%d activations)\", top.getScore())).append(\"\\n\\n\");\n }\n return builder.toString();\n }", "public interface Aspect {\n /**\n * Deployment model, when no aspect name is specified\n *\n * @org.codehaus.backport175.DefaultValue(\"perJVM\")\n */\n String value();\n\n /**\n * Deployment model, when aspect name is specified\n *\n * @org.codehaus.backport175.DefaultValue(\"perJVM\")\n */\n String deploymentModel();\n\n /**\n * Aspect name (defaults to fully qualified name of aspect class)\n */\n String name();\n}", "OverallCondition(String condition) {\n this.condition = condition;\n }", "private String production() {\r\n\t\tint[] prod=tile.getProductionNeedsMet();\r\n\t\tString out=\"Production Met: \"+prod[0]+\" || Production Not Met: \"+prod[1];\r\n\t\treturn out;\r\n\t}", "@Override\n public String toString() {\n return \"\\n AntMode {\"\n + (antEfficiency != null ? \" antEfficiency [\" + antEfficiency + \"]\" : \"\")\n + (antFreqs != null ? \" antFreqs [\" + antFreqs + \"]\" : \"\")\n + (antGain != null ? \" antGain [\" + antGain + \"]\" : \"\")\n + (antPattern != null ? \" antPattern [\" + antPattern + \"]\" : \"\")\n + (beamType != null ? \" beamType [\" + beamType + \"]\" : \"\")\n + (description != null ? \" description [\" + description + \"]\" : \"\")\n + (horzBwMax != null ? \" horzBwMax [\" + horzBwMax + \"]\" : \"\")\n + (horzBwMin != null ? \" horzBwMin [\" + horzBwMin + \"]\" : \"\")\n + (horzScanRate != null ? \" horzScanRate [\" + horzScanRate + \"]\" : \"\")\n + (horzScanSector != null ? \" horzScanSector [\" + horzScanSector + \"]\" : \"\")\n + (horzScanSpeed != null ? \" horzScanSpeed [\" + horzScanSpeed + \"]\" : \"\")\n + (horzScanType != null ? \" horzScanType [\" + horzScanType + \"]\" : \"\")\n + (maxPower != null ? \" maxPower [\" + maxPower + \"]\" : \"\")\n + (modeID != null ? \" modeID [\" + modeID + \"]\" : \"\")\n + (modeName != null ? \" modeName [\" + modeName + \"]\" : \"\")\n + (modeUse != null ? \" modeUse [\" + modeUse + \"]\" : \"\")\n + (motionType != null ? \" motionType [\" + motionType + \"]\" : \"\")\n + (observedLobeAnalysis != null ? \" observedLobeAnalysis [\" + observedLobeAnalysis + \"]\" : \"\")\n + (observedPolarisationAnalysis != null ? \" observedPolarisationAnalysis [\" + observedPolarisationAnalysis + \"]\" : \"\")\n + (observedScanAnalysis != null ? \" observedScanAnalysis [\" + observedScanAnalysis + \"]\" : \"\")\n + (polarisationAngle != null ? \" polarisationAngle [\" + polarisationAngle + \"]\" : \"\")\n + (polarisationType != null ? \" polarisationType [\" + polarisationType + \"]\" : \"\")\n + (portIsolation != null ? \" portIsolation [\" + portIsolation + \"]\" : \"\")\n + (rotationDirection != null ? \" rotationDirection [\" + rotationDirection + \"]\" : \"\")\n + (rotationRateMax != null ? \" rotationRateMax [\" + rotationRateMax + \"]\" : \"\")\n + (rotationRateMin != null ? \" rotationRateMin [\" + rotationRateMin + \"]\" : \"\")\n + (sectBlanking != null ? \" sectBlanking [\" + sectBlanking + \"]\" : \"\")\n + (vertBwMax != null ? \" vertBwMax [\" + vertBwMax + \"]\" : \"\")\n + (vertBwMin != null ? \" vertBwMin [\" + vertBwMin + \"]\" : \"\")\n + (vertScanAngleMax != null ? \" vertScanAngleMax [\" + vertScanAngleMax + \"]\" : \"\")\n + (vertScanAngleMin != null ? \" vertScanAngleMin [\" + vertScanAngleMin + \"]\" : \"\")\n + (vertScanRate != null ? \" vertScanRate [\" + vertScanRate + \"]\" : \"\")\n + (vertScanSpeed != null ? \" vertScanSpeed [\" + vertScanSpeed + \"]\" : \"\")\n + (vertScanType != null ? \" vertScanType [\" + vertScanType + \"]\" : \"\")\n + (vswr != null ? \" vswr [\" + vswr + \"]\" : \"\")\n + \"}\";\n }", "public String getParamString() {\n\t\tStringBuilder s = new StringBuilder();\n\t\tif (!((image instanceof SATImage ) ||\n\t\t\t\t(image instanceof IMAImage ))) {\n\t\t\ts.append(super.getParamString());\n\t\t} \n\t\ts.append(stringShort);\n\t\ts.append(\"(\");\n\t\ts.append(\")\");\n\t\treturn s.toString();\n\t}", "public static String debugString()\n {\n return\n \"ECSDefaults:\" + '\\n'\n + '\\t' + \"DefaultFilterState=\" + getDefaultFilterState() +'\\n'\n + '\\t' + \"DefaultFilterAttributeState=\" + getDefaultFilterAttributeState() +'\\n'\n + '\\t' + \"DefaultAttributeEqualitySign='\" + getDefaultAttributeEqualitySign() +\"'\\n\"\n + '\\t' + \"DefaultBeginStartModifier='\" + getDefaultBeginStartModifier() + \"'\\n\"\n + '\\t' + \"DefaultEndStartModifier='\" + getDefaultEndStartModifier() + \"'\\n\"\n + '\\t' + \"DefaultBeginEndModifier='\" + getDefaultBeginEndModifier() + \"'\\n\"\n + '\\t' + \"DefaultEndEndModifier='\" + getDefaultEndEndModifier() + \"'\\n\"\n + '\\t' + \"DefaultAttributeQuoteChar=\" + getDefaultAttributeQuoteChar() + '\\n'\n + '\\t' + \"DefaultAttributeQuote=\" + getDefaultAttributeQuote() +'\\n'\n + '\\t' + \"DefaultEndElement=\" + getDefaultEndElement() +'\\n'\n + '\\t' + \"DefaultCodeset='\" + getDefaultCodeset() + \"'\\n\"\n + '\\t' + \"DefaultPosition=\" + getDefaultPosition() +'\\n'\n + '\\t' + \"DefaultCaseType=\" + getDefaultCaseType() +'\\n'\n + '\\t' + \"DefaultStartTag='\" + getDefaultStartTag() + \"'\\n\"\n + '\\t' + \"DefaultEndTag='\" + getDefaultEndTag() + \"'\\n\"\n + '\\t' + \"DefaultPrettyPrint=\" + getDefaultPrettyPrint();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getViolationTarget() != null)\n sb.append(\"ViolationTarget: \").append(getViolationTarget()).append(\",\");\n if (getViolationTargetDescription() != null)\n sb.append(\"ViolationTargetDescription: \").append(getViolationTargetDescription()).append(\",\");\n if (getPartialMatches() != null)\n sb.append(\"PartialMatches: \").append(getPartialMatches()).append(\",\");\n if (getPossibleSecurityGroupRemediationActions() != null)\n sb.append(\"PossibleSecurityGroupRemediationActions: \").append(getPossibleSecurityGroupRemediationActions());\n sb.append(\"}\");\n return sb.toString();\n }", "public String toString(){\n\t\treturn logicalClass.toString();\n\t}", "public String toString() {\n\t\treturn \"Air Condition Instance: \" \n\t\t\t\t+ \"SerialNumber=\" + serialNumber + \", \" \n\t\t\t\t+ \"\\npowerState= \" + powerState + \", \"\n\t\t\t\t+ \"\\nfirstTimeOn= \" + firstTimeOn + \", \" \n\t\t\t\t+ \"\\nlastTimeOn= \" + lastTimeOn + \", \" \n\t\t\t\t+ \"\\nmode= \"+ mode + \", \" \n\t\t\t\t+ \"\\ntemperature= \" + temperature + \", \"\n\t\t\t\t+ \"\\nspeed= \" + speed;\n\t}", "@Override\n public String toString() {\n return \"FalseSampler\";\n }", "public String globalInfo() {\n return \"Class for building and using a PRISM rule set for classification. \"\n + \"Can only deal with nominal attributes. Can't deal with missing values. \"\n + \"Doesn't do any pruning.\\n\\n\"\n + \"For more information, see \\n\\n\"\n + getTechnicalInformation().toString();\n }", "private String _buildWhereCondition(Vector conditions){\n String strConditions = \"\";\n if(conditions != null){\n strConditions = clsPopulateFunctions.joinVector(conditions, \" AND \");\n }\n return strConditions;\n }", "public static String perTypeWithinFieldForTarget(UnresolvedType aspectType) {\n \t\treturn makeName(aspectType.getNameAsIdentifier(), \"ptwAspectInstance\");\n \t}", "public static String [] getCond(){\n\t\treturn conditions;\n\t}", "private String getTitleString(String actionStr)\n\t\t{\n\t\t\treturn (actionStr + \" \" + PATTERN_STR.toLowerCase() + \" : \" + filterKind + \" \" + FILTER_STR);\n\t\t}", "public String toString() {\r\n\t\tStringBuilder s = new StringBuilder(\"\");\r\n\t\tif (objective != null) {\r\n\t\t\ts.append(\"Objective: \").append(objective.getName())\r\n\t\t\t .append('=').append(objective.getDomain())\r\n\t\t\t .append('\\n');\r\n\t\t}\r\n\t\tfor (Variable v : variables) {\r\n\t\t\ts.append(v.getName()).append('=').append(v.getDomain())\r\n\t\t\t .append('\\n');\r\n\t\t}\r\n\t\tfor (Constraint c : constraints) {\r\n\t\t\ts.append(c.toString()).append('\\n');\r\n\t\t}\r\n\t\treturn s.toString();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(ThmProcessUtil.isaActProc + \" \" + name);\n\t\t\n\t\tif (!param.isEmpty()) {\n\t\t\tsb.append (\" = \\n\");\n\t\t\tfor (String s : param) {\n\t\t\t\tsb.append(s + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tsb.append(ThmProcessUtil.isaProcBegin + \"\\n\" + \n\t\t\t\t body + \"\\n\" + ThmProcessUtil.isaProcEnd);\n\n\t\treturn sb.toString();\n\t}", "public String getFilterString() {\n if (filterManager == null) return \"\";\n \n // Get list of all filters.\n List<Filter<E>> filterList = filterManager.getFiltersInUse();\n \n // Create dump of all filters.\n StringBuilder buf = new StringBuilder();\n for (Filter<E> filter : filterList) {\n if (buf.length() > 0) buf.append(\", \"); \n buf.append(filter.toString());\n }\n \n return buf.toString();\n }", "public String conToString(Condition condition) {\n if (condition instanceof LaxCondition) {\n return conToString((LaxCondition) condition);\n } else if (condition instanceof AndCondition) {\n return conToString((AndCondition) condition);\n } else if (condition instanceof OrCondition) {\n return conToString((OrCondition) condition);\n } else if (condition instanceof ImpliesCondition) {\n return conToString((ImpliesCondition) condition);\n }\n //shouldn't happen\n assert false;\n return null;\n }" ]
[ "0.6182226", "0.5840758", "0.581931", "0.5711169", "0.56136334", "0.55940217", "0.5482848", "0.54518944", "0.54466355", "0.5389597", "0.5378018", "0.536555", "0.5360045", "0.5264843", "0.52172786", "0.520262", "0.51277274", "0.5120198", "0.5089512", "0.5067043", "0.5061524", "0.50580764", "0.50532943", "0.5053244", "0.5037276", "0.50160915", "0.49919122", "0.498085", "0.49782068", "0.49654093", "0.49624753", "0.49565294", "0.4948953", "0.49383464", "0.4936174", "0.4924768", "0.49229053", "0.4918652", "0.49171212", "0.49111697", "0.49092188", "0.49090603", "0.48890704", "0.4888904", "0.48753124", "0.48706093", "0.48687595", "0.486432", "0.4853844", "0.4852655", "0.48512197", "0.48503608", "0.48435986", "0.48391795", "0.4832007", "0.4825905", "0.48170796", "0.48153615", "0.48101217", "0.48047847", "0.48030645", "0.48011756", "0.47905403", "0.47904715", "0.47818956", "0.47813958", "0.47772127", "0.4766083", "0.47641033", "0.47618973", "0.4749699", "0.47465703", "0.47402525", "0.47361705", "0.47342435", "0.47322118", "0.47297108", "0.47275153", "0.47267708", "0.47225827", "0.47170952", "0.4715079", "0.47149342", "0.47136512", "0.47087264", "0.4707591", "0.47044277", "0.47013292", "0.47010174", "0.4699721", "0.46952802", "0.4694416", "0.46860114", "0.46833923", "0.46833906", "0.46767372", "0.46643746", "0.46624574", "0.4660832", "0.46552825" ]
0.47197512
80
this method should lookup if the found rule returns any value and check if this corresponds to the this pointcut expression
protected boolean checkRuleReturn(Node node, String compareToNodeToken) { while (node != null && !(node.getConcreteNodeType().equals("keyword") && node.getToken().startsWith("with"))) node = node.getNextCSTNode(); if (node == null) return true; String ruleDeclarationName; for (ASTNode astn : AspectWeaver.getInstance().getAstNodes().get("RuleDeclaration")) { ruleDeclarationName = astn.getFirst().getFirst().getToken(); //check if the current rule declaration is the one with the name of the searching one if (Pattern.matches(compareToNodeToken, ruleDeclarationName)) { //collect all nodes inside the rule definition which have the same token as the returnOrResult node LinkedList<Node> children = AspectTools.getNodesWithName(astn, node.getNextCSTNode().getToken()); //return xor of returnRequired and children.isEmpty() return node.getToken().equals("with") ^ children.isEmpty(); } } //no rule declaration found - should not occur, because its has already been tested if compareToNodeToken exists inside the matches(..) method return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void visit(ExistsExpression arg0) {\n\n\t}", "@Override\n\tpublic void visit(ExistsExpression arg0) {\n\t\t\n\t}", "@Override\n public boolean hasFindRule(ProblemSearchRule rule) {\n throw new AssertionError(\"This method should not be called.\");\n }", "@Override\r\n public boolean invokeRuleMethod(BusinessRule rule) {\r\n boolean result = super.invokeRuleMethod(rule);\r\n cleanErrorMessages();\r\n return result;\r\n }", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "public boolean hasObjective(){ return this.hasParameter(1); }", "@Override\n protected void runReturnAnnotationHandler() {\n checkContainsAny(MSG_CONSTRUCTOR_WITH_RETURN_ANNOTATION,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.CHECK_RETURN_VALUE,\n NullnessAnnotation.NONNULL, NullnessAnnotation.NULLABLE,\n NullnessAnnotation.OVERRIDE);\n }", "Object getTargetexists();", "@Override\n\tpublic boolean evaluar(Calculable cal) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void reportRuleInvocation(Rule rule, Triple triple, DataObject dataObject) {\n\t\t\n\t}", "@Override\r\n\tpublic boolean contains(ISchedulingRule rule) {\n\t\treturn rule instanceof TraceAndCodeModelRule;\r\n\t}", "@Override\n\tpublic boolean isSatisfied(Object arg0, Object arg1, OValContext arg2,\n\t\t\tValidator arg3) throws OValException {\n\t\treturn false;\n\t}", "@Override\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n for (Map.Entry<String, RequiredFunctionalExtension> behaviorEntry : myRequiredBehaviorById.entrySet()) {\n Object returnObj = behaviorEntry.getValue().invoke(proxy, method, args);\n if (SuccessorStrategy.NO_FOUND_CODE.equals(returnObj)) {\n continue;\n }\n return returnObj;\n }\n return SuccessorStrategy.NO_FOUND_CODE;\n }", "@Override\n\tpublic boolean evaluarPropuesta(Oferta o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void reportLookupRuleInvocation(Rule rule, String label,\n\t\t\tString code, VocabularyMatchResult result)\n\t\t\tthrows Exception {\n\t\t\n\t}", "protected DebugRuleElementMatch() {/* intentionally empty block */}", "private boolean makeReturnable(Statement statement) throws LookupException {\n if (statement.metadata(ASSIGNMENT) == null) {\n Expression e = statement.nearestDescendants(Expression.class).get(0);\n if (!e.getType().name().equals(\"void\")) {\n Statement returnStatement = oFactory().createReturnStatement(e);\n statement.replaceWith(returnStatement);\n return true;\n }\n }\n\n return false;\n }", "@Override\n public Pointcut getPointcut() {\n return new AnnotationMatchingPointcut(DynamicDataSource.class, DataSource.class);\n }", "boolean hasParameterValue();", "@Override\n\tpublic IStatus validate(IValidationContext ctx) {\n\n\t\tEObject target = ctx.getTarget();\n\n\t\tif (query.check(target)) {\n\t\t\treturn ctx.createSuccessStatus();\n\t\t} else {\n\t\t\t// OCL constraints only support the target object as an extraction\n\t\t\t// variable and result locus, as OCL has no way to provide\n\t\t\t// additional extractions. Also, there is no way for the OCL\n\t\t\t// to access the context object\n\t\t\tfinal CustomTypeHandlersService service = OCLActivator.getDefault().getService(CustomTypeHandlersService.class);\n\n\t\t\treturn ctx.createFailureStatus(service.wrapObjectIfNeeded(target));\n\t\t}\n\t}", "@Override\n public MethodOutcome nonExistentSourceOutcome() {\n return new MethodOutcome(MethodOutcome.Type.RETURNS_FALSE);\n }", "public boolean shouldExecute() {\n return this.goalOwner.getTeam() == null ? false : super.shouldExecute();\n }", "@Override\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "public boolean evaluate() {\r\n\t\t\tif (this.isKnownValue()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// handle the case when this.getValue() is null\r\n\t\t\tif (this.getValue() == null) {\r\n\t\t\t\t// if the value is null, then we just need to see if expected evaluation is also null\r\n\t\t\t\treturn this.getCurrentEvaluation() == null;\r\n\t\t\t}\r\n\t\t\t// if entities have the same name, they are equals.\r\n\t\t\tif (this.getCurrentEvaluation().getName().equalsIgnoreCase(this.getValue().getName())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "public boolean matchResult() {\n return !pathMatchDependencies.isEmpty();\n }", "protected abstract T criterion(Result r);", "boolean hasAnnotationValue();", "private void applyTheRule() throws Exception {\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"IM APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n System.out.println();\n if (parameter.rule.equals(\"1\")) {\n Rule1.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"2\")) {\n Rule2.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3\")) {\n Rule3.all(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3a\")) {\n Rule3.a(resultingModel);\n\n }\n\n if (parameter.rule.equals(\"3b\")) {\n Rule3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"3c\")) {\n Rule3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"4\")) {\n Rule4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"4a\")) {\n Rule4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"4b\")) {\n Rule4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"4c\")) {\n Rule4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r1\")) {\n Reverse1.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r2\")) {\n Reverse2.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3\")) {\n Reverse3.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3a\")) {\n Reverse3.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3b\")) {\n Reverse3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3c\")) {\n Reverse3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4\")) {\n Reverse4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4a\")) {\n Reverse4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4b\")) {\n Reverse4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4c\")) {\n Reverse4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"5\")){\n Rule5.apply(resultingModel);\n }\n\n System.out.println(\"IM DONE APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n\n this.resultingModel.addRule(parameter);\n //System.out.println(this.resultingModel.name);\n this.resultingModel.addOutputInPath();\n }", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\r\n\tpublic void satisfy() {\n\t\t\r\n\t}", "boolean exactMatch(FlowRule rule);", "private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }", "public abstract boolean isSatisfied();", "boolean isSetSearchRecurrenceRule();", "@Override\n protected void runReturnAnnotationHandler() {\n checkContainsAny(MSG_RETURN_VALUE_WITH_NONNULL_BY_DEFAULT,\n NullnessAnnotation.RETURN_VALUES_ARE_NONNULL_BY_DEFAULT);\n checkContainsAny(MSG_RETURN_VALUE_WITH_NULLABLE,\n NullnessAnnotation.NULLABLE);\n checkContainsAll(MSG_CONTRADICTING_RETURN_VALUE_ANNOTATIONS, NullnessAnnotation.NONNULL,\n NullnessAnnotation.CHECK_FOR_NULL);\n checkContainsAll(MSG_OVERRIDDEN_METHOD_WITH_CHECK_RETURN_VALUE,\n NullnessAnnotation.CHECK_RETURN_VALUE, NullnessAnnotation.OVERRIDE);\n checkRedundancyDueToClassLevelAnnotation(MSG_REDUNDANT_NONNULL_BY_DEFAULT_ANNOTATION,\n NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT);\n checkRedundancyDueToClassLevelAnnotation(MSG_REDUNDANT_NULLABLE_BY_DEFAULT_ANNOTATION,\n NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT);\n\n final DetailAST ast = getAst();\n if (isVoid(ast)) {\n checkContainsAny(MSG_VOID_WITH_CHECK_RETURN_VALUE_ANNOTATION,\n NullnessAnnotation.CHECK_RETURN_VALUE);\n }\n if (isPrimitiveType(ast)) {\n checkContainsAny(MSG_PRIMITIVES_WITH_NULLNESS_ANNOTATION,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.NONNULL,\n NullnessAnnotation.NULLABLE);\n }\n else {\n final NullnessAnnotation annotation = getParentMethodOrClassAnnotation(\n NullnessAnnotation.RETURN_VALUES_ARE_NONNULL_BY_DEFAULT);\n final boolean returnValuesAreNonnullByDefault = annotation\n == NullnessAnnotation.RETURN_VALUES_ARE_NONNULL_BY_DEFAULT;\n final boolean isMethodOverridden = isMethodOverridden();\n\n if (returnValuesAreNonnullByDefault) {\n if (!isMethodOverridden) {\n checkContainsAny(MSG_REDUNDANT_NONNULL_RETURN_ANNOTATION,\n NullnessAnnotation.NONNULL);\n }\n }\n else {\n checkContainsNone(MSG_RETURN_WITHOUT_NULLNESS_ANNOTATION,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.NONNULL,\n NullnessAnnotation.OVERRIDE);\n }\n\n if (isMethodOverridden && !allowOverridingReturnValue) {\n checkContainsAny(MSG_OVERRIDDEN_METHODS_ALLOW_ONLY_NONNULL,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.NULLABLE);\n }\n\n if (isMethodOverridden) {\n checkContainsAny(MSG_NEED_TO_INHERIT_PARAM_ANNOTATIONS,\n NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT);\n }\n }\n }", "Object findOperatorNeedCheck();", "ReturnedValueEvaluationCondition getReturnedValue();", "@Test\n\tpublic void testScenario04_ControllingWhichMethodsRun() throws Exception {\n\t\tSpelExpressionParser parser = new SpelExpressionParser();\n\t\tStandardEvaluationContext ctx = new StandardEvaluationContext();\n\n\t\tctx.setRootObject(new Supervisor(\"Ben\")); // so non-qualified references 'hasRole()' 'hasIpAddress()' are invoked against it;\n\n\t\tctx.addMethodResolver(new MyMethodResolver()); // NEEDS TO OVERRIDE THE REFLECTION ONE - SHOW REORDERING MECHANISM\n\t\t// Might be better with a as a variable although it would work as a property too...\n\t\t// Variable references using a '#'\n//\t\tSpelExpression expr = parser.parseExpression(\"(hasRole('SUPERVISOR') or (#a < 1.042)) and hasIpAddress('10.10.0.0/16')\");\n\t\tExpression expr = parser.parseRaw(\"(hasRole(3) or (#a < 1.042)) and hasIpAddress('10.10.0.0/16')\");\n\n\t\tBoolean value = null;\n\n\t\tctx.setVariable(\"a\",1.0d); // referenced as #a in the expression\n\t\tvalue = expr.getValue(ctx,Boolean.class);\n\t\tassertThat((boolean) value).isTrue();\n\n//\t\t\tctx.setRootObject(new Manager(\"Luke\"));\n//\t\t\tctx.setVariable(\"a\",1.043d);\n//\t\t\tvalue = (Boolean)expr.getValue(ctx,Boolean.class);\n//\t\t\tassertFalse(value);\n\t}", "@Override\n protected void runHandler() {\n checkContainsAny(MSG_PARAM_DEFINITIONS_WITH_CHECK,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.CHECK_RETURN_VALUE);\n checkContainsAny(MSG_PARAM_DEFINITION_WITH_OVERRIDE,\n NullnessAnnotation.OVERRIDE);\n checkContainsAny(MSG_PARAM_DEFINITION_WITH_NONNULL_BY_DEFAULT,\n NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT);\n checkContainsAny(MSG_PARAM_DEFINITION_WITH_NULLABLE_BY_DEFAULT,\n NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT);\n checkContainsAny(MSG_PARAM_DEFINITION_WITH_RETURN_DEFAULT,\n NullnessAnnotation.RETURN_VALUES_ARE_NONNULL_BY_DEFAULT);\n checkContainsAll(MSG_PARAM_NONNULL_AND_NULLABLE,\n NullnessAnnotation.NONNULL, NullnessAnnotation.NULLABLE);\n\n final DetailAST ast = getAst();\n if (isPrimitiveType(ast)) {\n checkContainsAny(MSG_PRIMITIVES_WITH_NULLNESS_ANNOTATION,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.NONNULL,\n NullnessAnnotation.NULLABLE);\n }\n else {\n final NullnessAnnotation firstAncestorAnnotation =\n getParentMethodOrClassAnnotation(\n NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT,\n NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT);\n final boolean isMethodOverridden = isMethodOverridden();\n final boolean parametersAreNonnullByDefault = firstAncestorAnnotation\n == NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT;\n final boolean parametersAreNullableByDefault = firstAncestorAnnotation\n == NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT;\n\n if (isMethodOverridden && !allowOverridingParameter) {\n checkContainsAny(MSG_OVERRIDDEN_WITH_INCREASED_CONSTRAINT,\n NullnessAnnotation.NONNULL);\n }\n if (parametersAreNonnullByDefault) {\n checkContainsAny(MSG_REDUNDANT_NONNULL_PARAM_ANNOTATION,\n NullnessAnnotation.NONNULL);\n }\n if (parametersAreNullableByDefault) {\n checkContainsAny(MSG_REDUNDANT_NULLABLE_PARAM_ANNOTATION,\n NullnessAnnotation.NULLABLE);\n }\n\n if (!isMethodOverridden && !parametersAreNonnullByDefault\n && !parametersAreNullableByDefault) {\n checkContainsNone(MSG_PARAMETER_WITHOUT_NULLNESS_ANNOTATION,\n NullnessAnnotation.NONNULL, NullnessAnnotation.NULLABLE);\n }\n }\n }", "@Override\r\n\tpublic void rule1() {\n\t\tSystem.out.println(\"인터페이스 ISports1메소드 --> rule()\");\r\n\t}", "@Override\n public Void visitUnknown(AnnotationValue av, TypeMirror expectedType) {\n defaultAction(av, expectedType);\n return null;\n }", "@Override\r\n\tpublic IPredicateRule getSingleHdlRule(IToken tok) {\n\t\treturn null;\r\n\t}", "public int resultRule(Instance inst) {\n\n if (m_test == null || m_test.satisfies(inst)) {\n\treturn m_classification;\n } else {\n\treturn -1;\n }\n }", "Object getPropertyexists();", "void checkPrerequisite() throws ActionNotPossibleException;", "@Override\n protected void runHandler() {\n checkContainsAny(MSG_ILLEGAL_CLASS_LEVEL_ANNOTATION,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.CHECK_RETURN_VALUE,\n NullnessAnnotation.NONNULL, NullnessAnnotation.NULLABLE);\n checkContainsAll(MSG_CONTRADICTING_CLASS_LEVEL_ANNOTATIONS,\n NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT,\n NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT);\n }", "protected abstract Class<? extends ValidationRule> ruleBeingTested();", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}", "public boolean effectiveBooleanValue(XPathContext context) throws XPathException {\n ItemType type = argument[0].getItemType(context.getConfiguration().getTypeHierarchy());\n if (type == AnyItemType.getInstance()) {\n return super.effectiveBooleanValue(context);\n } else {\n return argument[0].effectiveBooleanValue(context);\n }\n }", "@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}", "@Override\n protected void runHandler() {\n checkContainsAll(MSG_CONTRADICTING_CLASS_LEVEL_ANNOTATIONS,\n NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT,\n NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT);\n runReturnAnnotationHandler();\n }", "private void defaultAnnotationShouldNotBeFound(String filter) throws Exception {\n restAnnotationMockMvc.perform(get(\"/api/annotations?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n\n // Check, that the count call also returns 0\n restAnnotationMockMvc.perform(get(\"/api/annotations/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"0\"));\n }", "@Override\n\tpublic boolean containsValue(Object arg0) {\n\t\treturn false;\n\t}", "@Test\n public void testPredicate2() throws Exception {\n final RuleDescr rule = ((RuleDescr) (parse(\"rule\", \"rule X when Foo(eval( $var.equals(\\\"xyz\\\") )) then end\")));\n final PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n final List<?> constraints = pattern.getConstraint().getDescrs();\n TestCase.assertEquals(1, constraints.size());\n final ExprConstraintDescr predicate = ((ExprConstraintDescr) (constraints.get(0)));\n TestCase.assertEquals(\"eval( $var.equals(\\\"xyz\\\") )\", predicate.getExpression());\n }", "@Override\r\n\t\tprotected boolean visit(final Type type) {\r\n\t\t\tChecker.notNull(\"parameter:type\", type);\r\n\r\n\t\t\tfinal Method method = type.findMethod(this.getMethodName(), this.getParameterTypes());\r\n\t\t\tfinal boolean skipRemaining = method != null;\r\n\t\t\tif (skipRemaining) {\r\n\t\t\t\tthis.setFound(method);\r\n\t\t\t}\r\n\t\t\treturn skipRemaining;\r\n\t\t}", "private boolean matchesDesiredResult(Object result)\n {\n return ((result == null) && (m_desiredResult == null)) || m_desiredResult.equals(result);\n }", "private static UnaryPredicate bepred() {\n return new UnaryPredicate() {\n public boolean execute(Object o) {\n\tif (o instanceof BulkEstimate) {\n\t return ((BulkEstimate)o).isComplete();\n }\n\treturn false;\n }\n };\n }", "@Override\n void execute(RolapEvaluator evaluator) {\n }", "@Override\n\t\t\t\tpublic boolean accept(Match a) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Test\n\tpublic void shouldFireAssertIfAllPresentFailedWithNull() {\n\n\t\tval mapa = new LinkedHashMap<String, String>();\n\t\tmapa.put(\"name\", \"myproject\");\n\t\tmapa.put(\"project_type\", \"billable\");\n\t\tmapa.put(\"start_date\", \"1-1-15\");\n\t\truleObj.setData(mapa);\n\n\t\tkSession = kbase.newStatefulKnowledgeSession();\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tEvaluator eval = (Evaluator) ruleObj;\n\t\tkSession.insert(eval);\n\t\tkSession.insert(list);\n\n\t\tint actualNumberOfRulesFired = kSession.fireAllRules();\n\n\t\tassertEquals(list.size(), 1);\n\t}", "@Pointcut(\"(@annotation(HasRole) || @within(HasRole))\")\n public void annotated() {\n }", "public Predicate usedFirstBodyPredicate() {\n\t\tif (!bodyAtomsPositive.isEmpty()) {\n\t\t\treturn (bodyAtomsPositive.get(0)).getPredicate();\n\t\t} else if (!bodyAtomsNegative.isEmpty()) {\n\t\t\treturn (bodyAtomsNegative.get(0)).getPredicate();\n\t\t}\n\t\tthrow new RuntimeException(\"Encountered NonGroundRule with empty body, which should have been treated as a fact.\");\n\t}", "@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}", "@Override\n public Object proceed() throws Throwable {\n if (this.currentInterceptorIndex == this.interceptorsAndDynamicMethodMatchers.size() - 1) {\n return invokeJoinpoint();\n }\n\n Object interceptorOrInterceptionAdvice =\n this.interceptorsAndDynamicMethodMatchers.get(++this.currentInterceptorIndex);\n\n if (interceptorOrInterceptionAdvice instanceof MyMethodIntercept) {\n // Evaluate dynamic method matcher here: static part will already have\n // been evaluated and found to match.\n MyMethodIntercept mi =\n (MyMethodIntercept) interceptorOrInterceptionAdvice;\n Class<?> targetClass = (this.targetClass != null ? this.targetClass : this.method.getDeclaringClass());\n return mi.invoke(this);\n // Dynamic matching failed.\n // Skip this interceptor and invoke the next in the chain.\n } else {\n return proceed();\n }\n }", "@Override\n\tpublic int getCurrentCriterion() {\n\t\treturn 0;\n\t}", "@Pointcut(\"execution(* com.oocl.daluplo.calc.*.*(..))\")\n private void selectAll(){}", "Rule getRule();", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "abstract boolean hasFunctionSelfArgument(Object definedOn);", "@Override\n public boolean applyThis() {\n Unit source = (Unit) ref.getSourceObj();\n Ref REF = ref.getCopy();\n Condition conditions = new OrConditions(\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.MY_ITEM),\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.MY_WEAPON));\n if (!new SelectiveTargeting(conditions).select(REF)) {\n ref.getActive().setCancelled(true);\n return false;\n }\n HeroItem item = (HeroItem) REF.getTargetObj();\n conditions = new Conditions(\n // ++ Max distance?\n new DistanceCondition(ref.getActive().getIntParam(PARAMS.RANGE, false) + \"\"),\n // new NumericCondition(\"{match_c_n_of_actions}\", \"1\"),\n new CanActCondition(KEYS.MATCH),\n new NotCondition(ConditionMaster.getSelfFilterCondition()),\n DC_ConditionMaster\n .getSelectiveTargetingTemplateConditions(SELECTIVE_TARGETING_TEMPLATES.ANY_ALLY));\n // non-immobile, ++facing?\n if (!new SelectiveTargeting(conditions).select(REF)) {\n ref.getActive().setCancelled(true);\n return false;\n }\n\n Unit unit = (Unit) REF.getTargetObj();\n\n boolean result = roll(source, unit, item);\n if (item instanceof QuickItem) {\n QuickItem quickItem = (QuickItem) item;\n source.removeQuickItem(quickItem);\n if (result) {\n unit.addQuickItem(quickItem);\n } else {\n dropped(item, unit);\n }\n\n } else {\n source.unequip(item, null);\n if (result) {\n unit.addItemToInventory(item); // TODO equip in hand if\n }\n// possible? spend AP?\n else {\n dropped(item, unit);\n }\n\n }\n // ref.getObj(KEYS.ITEM);\n return true;\n }", "@Test\n public void canDetect_ParameterAnnotation_OneRuntimeRetention_OneSourceRetention() {\n final MethodInfo methodInfo = classInfo.getMethodInfo()\n .getSingleMethod(\"oneRuntimeRetention_OneSourceRetention\");\n\n assertThat(methodInfo.hasParameterAnnotation(ParamAnnoRuntime.class)).isTrue();\n }", "protected Object evaluate(Expression xPathCondition, DynaBean contextBean, Object currentContextNode,\n String leafRefValue, QName leafQName) {\n logDebug(\"Evalute for xpath {} contextBean {} currentContextNode {} leafRefValue {} leafQName {}\", xPathCondition, contextBean,\n currentContextNode, leafRefValue, leafQName);\n Object value = null;\n Expression ex = xPathCondition;\n Expression xPathForValidation = null;\n Expression xPath = xPathCondition;\n \n DSExpressionValidator childValidator = m_validators.get(xPathCondition.getClass());\n if (childValidator != null) {\n logDebug(\"Found a validator {} for xpath {}\", childValidator, xPathCondition);\n Object result = childValidator.evaluate(xPathCondition, contextBean, currentContextNode, leafRefValue, leafQName);\n logDebug(\"--> XPath {} evaluates to {}\", xPathCondition, result);\n return result;\n }\n \n if (isLocationPathWithSteps(ex) && !hasParentSteps(ex)){\n xPathForValidation = removePrefixes(xPath);\n JXPathContext context = getContext(contextBean);\n\n if (currentContextNode == null && xPath.toString().contains(DataStoreValidationUtil.CURRENT_PATTERN)) {\n // indicates the node is not created yet.\n value = true;\n } else if (leafRefValue != null) {\n value = validateLeafRef(context, xPathForValidation.toString(), leafRefValue);\n } else {\n value = context.getValue(xPathForValidation.toString());\n }\n logDebug(\"evaluate value is {} for xpath {} contextBean {}\", value, xPathForValidation, contextBean);\n\n if ((value == null || (value instanceof Boolean && !((Boolean) value))) && isAbsolutePath(ex)) {\n if (leafRefValue == null) {\n value = validateAbsolutePath(xPathCondition, contextBean, currentContextNode, leafRefValue, leafQName);\n } else if (leafRefValue != null && ex instanceof LocationPath){\n LocationPath newPath = (LocationPath) ex;\n if (isContextBeanAtFirstStep(newPath, contextBean, leafRefValue)){\n newPath = DataStoreValidationUtil.excludeFirstStep(newPath);\n }\n ModelNode contextNode = DataStoreValidationUtil.isReadable(contextBean, ModelNodeWithAttributes.MODEL_NODE)?(ModelNode) contextBean.get(ModelNodeWithAttributes.MODEL_NODE):null;\n DataSchemaNode schemaNode = contextNode==null? null:SchemaRegistryUtil.getSchemaNodeForXpath(contextNode.getSchemaRegistry(), contextNode.getModelNodeSchemaPath(), (LocationPath) removePrefixes(newPath));\n if((schemaNode != null && !schemaNode.isConfiguration()) || (schemaNode == null && isXPathForStateValidation(contextBean, newPath))) {\n // if the path is for state validation\n if (isStateValidation(contextBean, newPath)) {\n value = evaluateStateData(newPath, contextBean, null, leafRefValue, leafQName);\n } else {\n // the next step is not state\n value = evaluateStateInPath(newPath, contextBean, currentContextNode, leafRefValue, leafQName);\n }\n }\n }\n }\n }\n\n if (value == null || (value instanceof Boolean && !((Boolean) value))) {\n if (DataStoreValidationUtil.isCoreOperation(ex)) {\n // xpath is an expression a/b/c = 'a'\n value = getExpressionValue(contextBean, currentContextNode, leafRefValue, leafQName, (CoreOperation) ex);\n } else if (isLocationPathWithSteps(ex)) {\n if (xPathForValidation != null && ((LocationPath) ex).getSteps()[0].getAxis() == Compiler.AXIS_PARENT) {\n // xpath is already processed and has a parent step\n String stepName = DataStoreValidationUtil.getLocalName(((LocationPath) ex).getSteps()[0]);\n if (xPathForValidation != null && stepName != null) {\n stepName = ModelNodeDynaBeanFactory.getDynaBeanAttributeName(stepName);\n String contextName = ModelNodeDynaBeanFactory.getDynaBeanAttributeName(contextBean.getDynaClass().getName());\n if (!(DataStoreValidationUtil.isReadable(contextBean, stepName) && !contextName.equals(stepName))) {\n // if contextBean already has the first step of the location step and\n // xPathForValidation is not null, indicating it is built\n // the dynaBean name and stepName are not same (meaning container/attribute do not share the same name)\n // then we are good to validate\n value = validateLocationPath(contextBean, (LocationPath) ex, currentContextNode, leafRefValue, leafQName);\n } else {\n logDebug(\"Path already evaluated at bean {} for {}\", contextBean, ex);\n }\n }\n } else if (isContextBeanAtFirstStep(ex, contextBean, leafRefValue)) {\n value = validatePathAtContextBean(xPathCondition, contextBean, currentContextNode, leafRefValue, leafQName);\n } else if (((LocationPath) ex).getSteps()[0].getAxis() != Compiler.AXIS_PARENT\n && !isfirstStepSameAsRootNode(ex, contextBean)) {\n /**\n * If this is an absolute path starting with one of the root Nodes and the current ContextBean is on a different tree\n * than the first step of this tree, well lets try and validate on a different Root Node that this xPath wants.\n */\n ModelNode modelNode = getRootNodeFor(ex);\n if (modelNode != null) {\n value = evaluate(xPathCondition, (DynaBean) modelNode.getValue(), currentContextNode, leafRefValue, leafQName);\n } else {\n logDebug(\"No config tree identified for expression {}\", ex);\n }\n } else {\n value = validateLocationPath(contextBean, (LocationPath) ex, currentContextNode, leafRefValue, leafQName);\n }\n } else {\n LOGGER.warn(null, \"ex {} not evaluated. Neither a locationPath/coreOperation or a coreFunction\", ex.toString());\n }\n\n } else {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(null,\n \"{} is neither at first step, is not a core operation and does not have a parent for contextBean or a locationPath {}\",\n ex, ModelNodeDynaClass.getContextBeanName(contextBean));\n }\n }\n logDebug(\"--> XPath {} evaluates to {}\", xPathCondition, value);\n return value;\n }", "@Pointcut(\"execution(* com.iamscratches.aopdemo.dao.*.get*(..))\")\n\tpublic void getter() {}", "@Override\r\n\tpublic void dustKnowledgeInfoSourceFind(DustEntity type, DustEntity expression, DustEntity processor)\r\n\t\t\tthrows Exception {\n\r\n\t}", "boolean isNilSearchRecurrenceRule();", "protected boolean applyImpl() throws Exception\n {\n MBeanServer mbeanServer = (MBeanServer) getCorrectiveActionContext()\n .getContextObject(CorrectiveActionContextConstants.Agent_MBeanServer);\n ObjectName objectName = (ObjectName) getCorrectiveActionContext()\n .getContextObject(CorrectiveActionContextConstants.MBean_ObjectName);\n\n Object result = mbeanServer.invoke(objectName, m_methodName, m_parameters, m_signature);\n\n return matchesDesiredResult(result);\n }", "boolean isEvaluable();", "public Optional<RewriteResult<A, ?>> one(final TypeRewriteRule rule) {\n return Optional.empty();\n }", "private int evaluateCondition(int iIndex, SeqActivity iTarget) {\n\n\t\tif (_Debug) {\n\t\t\tSystem.out.println(\" :: SeqConditionSet --> BEGIN - \" + \"evaluateCondition\");\n\t\t\tSystem.out.println(\" ::--> \" + iIndex);\n\t\t}\n\n\t\tint result = EVALUATE_UNKNOWN;\n\n\t\t// Make sure this condition exists\n\t\tif (iIndex < mConditions.size()) {\n\n\t\t\tSeqCondition cond = mConditions.get(iIndex);\n\n\t\t\tif (_Debug) {\n\t\t\t\tSystem.out.println(\" ::--> Evaluate :: \" + cond.mCondition);\n\t\t\t}\n\n\t\t\t// evaluate the current condtion\n\t\t\tif (cond.mCondition.equals(SeqCondition.ALWAYS)) {\n\t\t\t\tresult = EVALUATE_TRUE;\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.NEVER)) {\n\t\t\t\tresult = EVALUATE_FALSE;\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.SATISFIED)) {\n\t\t\t\tif (iTarget.getObjStatus(cond.mObjID, mRollup)) {\n\t\t\t\t\tresult = (iTarget.getObjSatisfied(cond.mObjID, mRollup)) ? EVALUATE_TRUE : EVALUATE_FALSE;\n\t\t\t\t} else {\n\t\t\t\t\tresult = EVALUATE_UNKNOWN;\n\t\t\t\t}\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.OBJSTATUSKNOWN)) {\n\t\t\t\tresult = iTarget.getObjStatus(cond.mObjID, mRollup) ? EVALUATE_TRUE : EVALUATE_FALSE;\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.OBJMEASUREKNOWN)) {\n\t\t\t\tresult = iTarget.getObjMeasureStatus(cond.mObjID, mRollup) ? EVALUATE_TRUE : EVALUATE_FALSE;\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.OBJMEASUREGRTHAN)) {\n\t\t\t\tif (iTarget.getObjMeasureStatus(cond.mObjID, mRollup)) {\n\t\t\t\t\tresult = (iTarget.getObjMeasure(cond.mObjID, mRollup) > cond.mThreshold) ? EVALUATE_TRUE : EVALUATE_FALSE;\n\t\t\t\t} else {\n\t\t\t\t\tresult = EVALUATE_UNKNOWN;\n\t\t\t\t}\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.OBJMEASURELSTHAN)) {\n\t\t\t\tif (iTarget.getObjMeasureStatus(cond.mObjID, mRollup)) {\n\n\t\t\t\t\tresult = (iTarget.getObjMeasure(cond.mObjID, mRollup) < cond.mThreshold) ? EVALUATE_TRUE : EVALUATE_FALSE;\n\t\t\t\t} else {\n\t\t\t\t\tresult = EVALUATE_UNKNOWN;\n\t\t\t\t}\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.COMPLETED)) {\n\t\t\t\tif (iTarget.getProgressStatus(mRollup)) {\n\t\t\t\t\tresult = iTarget.getAttemptCompleted(mRollup) ? EVALUATE_TRUE : EVALUATE_FALSE;\n\t\t\t\t} else {\n\t\t\t\t\tresult = EVALUATE_UNKNOWN;\n\t\t\t\t}\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.PROGRESSKNOWN)) {\n\t\t\t\tresult = iTarget.getProgressStatus(mRollup) ? EVALUATE_TRUE : EVALUATE_FALSE;\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.ATTEMPTED)) {\n\t\t\t\tresult = iTarget.getActivityAttempted() ? EVALUATE_TRUE : EVALUATE_FALSE;\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.ATTEMPTSEXCEEDED)) {\n\t\t\t\tif (iTarget.getAttemptLimitControl()) {\n\t\t\t\t\tlong maxAttempt = iTarget.getAttemptLimit();\n\n\t\t\t\t\t// Check if this limit condition exists\n\t\t\t\t\tif (maxAttempt >= 0) {\n\t\t\t\t\t\tresult = (iTarget.getNumAttempt() >= maxAttempt) ? EVALUATE_TRUE : EVALUATE_FALSE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.TIMELIMITEXCEEDED)) {\n\t\t\t\t// add later with other time tracking implementation...\n\t\t\t\t// -+- TODO -+-\n\t\t\t} else if (cond.mCondition.equals(SeqCondition.OUTSIDETIME)) {\n\n\t\t\t\t// add later with other time tracking implementation...\n\t\t\t\t// -+- TODO -+-\n\t\t\t}\n\n\t\t\t// Account for condition operator\n\t\t\tif (cond.mNot && result != EVALUATE_UNKNOWN) {\n\t\t\t\tif (_Debug) {\n\t\t\t\t\tSystem.out.println(\" ::--> Negate Result\");\n\t\t\t\t}\n\n\t\t\t\tresult = (result == EVALUATE_FALSE) ? EVALUATE_TRUE : EVALUATE_FALSE;\n\t\t\t}\n\t\t}\n\n\t\tif (_Debug) {\n\t\t\tSystem.out.println(\" ::--> \" + ((result == 1) ? \"True\" : \"False\"));\n\t\t\tSystem.out.println(\" :: SeqConditionSet --> END - \" + \"evaluateCondition\");\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\r\n\tpublic boolean canExecute(ICustomContext context) {\n\t\tboolean ret = false;\r\n\t\tPictogramElement[] pes = context.getPictogramElements();\r\n\t\tif (pes != null && pes.length == 1) {\r\n\t\t\tObject bo = getBusinessObjectForPictogramElement(pes[0]);\r\n\t\t\tif (bo instanceof Interface) {\r\n\t\t\t\tret = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "@Override\n\tprotected boolean checkOverride(IEventInstance eventInstance, Operand operand) {\n\t\treturn false;\n\t}", "@Override\n public String visit(NormalAnnotationExpr n, Object arg) {\n return null;\n }", "public NotRule(ExecutionPolicy rule)\n\t\t{\n\t\t\tthis.rule = rule;\n\t\t}", "@Override\n public boolean applies() {\n return true;\n }", "public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }", "@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntityTameable.isTamed())\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntityTameable.getOwner();\n\n\t\t\tif (var1 == null)\n\t\t\t\treturn false;\n\t\t\telse {\n\t\t\t\ttheTarget = var1.getLastAttacker();\n\t\t\t\tfinal int var2 = var1.getLastAttackerTime();\n\t\t\t\treturn var2 != field_142050_e\n\t\t\t\t\t\t&& isSuitableTarget(theTarget, false)\n\t\t\t\t\t\t&& theEntityTameable.func_142018_a(theTarget, var1);\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void checkPolicyRefChain(final TopLevelPolicyElementEvaluator nonNullRefResultPolicy, final EvaluationContext evalCtx, final Optional<EvaluationContext> mdpCtx)\n {\n }", "public T caseRule(Rule object)\n {\n return null;\n }", "@Override\n public boolean preconditionsSatisfied() {\n return true;\n }", "@Override\n public boolean shouldRiderSit()\n {\n return entityData.get(SHOULD_SIT);\n }", "@Override\n public void matchOver(Result result) {\n }", "@Override\n\tprotected String doIntercept(ActionInvocation arg0) throws Exception {\n\t\treturn null;\n\t}", "public boolean shouldExecute() {\n\t\treturn true;\n\t}", "private void defaultAnnotationShouldBeFound(String filter) throws Exception {\n restAnnotationMockMvc.perform(get(\"/api/annotations?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(annotation.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].start\").value(hasItem(DEFAULT_START.toString())))\n .andExpect(jsonPath(\"$.[*].end\").value(hasItem(DEFAULT_END.toString())))\n .andExpect(jsonPath(\"$.[*].annotationText\").value(hasItem(DEFAULT_ANNOTATION_TEXT)));\n\n // Check, that the count call also returns 1\n restAnnotationMockMvc.perform(get(\"/api/annotations/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"1\"));\n }", "int evaluate(ISeqActivity iThisActivity) {\n\n\t\tif (_Debug) {\n\t\t\tSystem.out.println(\" :: SeqConditionSet --> BEGIN - evaluate\");\n\t\t\tSystem.out.println(\" :: --> RETRY == \" + mRetry);\n\t\t}\n\n\t\tint result = EVALUATE_UNKNOWN;\n\n\t\t// Make sure we have a valid target activity \n\t\tif (iThisActivity != null) {\n\n\t\t\tif (_Debug) {\n\t\t\t\tSystem.out.println(\" ::--> Set - \" + mCombination);\n\n\t\t\t\tif (mConditions != null) {\n\t\t\t\t\tSystem.out.println(\" ::--> [\" + mConditions.size() + \"]\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\" ::--> NULL\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (mConditions != null) {\n\t\t\t\t// Evaluate this rule's conditions\n\t\t\t\tif (mCombination.equals(COMBINATION_ALL)) {\n\t\t\t\t\tresult = EVALUATE_TRUE;\n\n\t\t\t\t\tfor (int i = 0; i < mConditions.size(); i++) {\n\t\t\t\t\t\tint thisEval = evaluateCondition(i, (SeqActivity) iThisActivity);\n\n\t\t\t\t\t\tif (thisEval != EVALUATE_TRUE) {\n\t\t\t\t\t\t\tresult = thisEval;\n\n\t\t\t\t\t\t\t// done with this evaluation\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (mCombination.equals(COMBINATION_ANY)) {\n\t\t\t\t\t// Assume we have enought information to evaluate\n\t\t\t\t\tresult = EVALUATE_FALSE;\n\n\t\t\t\t\tfor (int i = 0; i < mConditions.size(); i++) {\n\t\t\t\t\t\tint thisEval = evaluateCondition(i, (SeqActivity) iThisActivity);\n\n\t\t\t\t\t\tif (thisEval == EVALUATE_TRUE) {\n\t\t\t\t\t\t\tresult = EVALUATE_TRUE;\n\n\t\t\t\t\t\t\t// done with this evaluation\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if (thisEval == EVALUATE_UNKNOWN) {\n\t\t\t\t\t\t\t// Something is missing...\n\t\t\t\t\t\t\tresult = EVALUATE_UNKNOWN;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Reset the 'retry' flag\n\t\tmRetry = false;\n\n\t\tif (_Debug) {\n\t\t\tSystem.out.println(\" ::--> \" + result);\n\t\t\tSystem.out.println(\" :: SeqConditionSet --> END - evaluate\");\n\t\t}\n\n\t\treturn result;\n\n\t}", "public interface Rule {\n\n /**\n * Process this security event and detects whether this represents a security breach from the perspective of this rule\n * \n * @param event\n * event to process\n * @return security breach - either a breach or not (could be delayed)\n */\n SecurityBreach isSecurityBreach(SecurityEvent event);\n\n /**\n * Detects whether this rule is applicable in the in-passed security mode. Each rule guarantees to return the very same value of this method at\n * runtime. E.g. if this method returns true for an instance, it is guaranteed it will always return true within the lifecycle of this object\n * \n * @param securityMode\n * security mode to test applicability of this rule against\n * @return true if so, false otherwise\n */\n boolean isApplicable(SecurityMode securityMode);\n\n /**\n * Detects whether this rule is enabled or not\n * \n * @return true if so, false otherwise\n */\n boolean isEnabled();\n\n /**\n * Get human readable description of this rule. It should be a unique string compared to all other rules\n * \n * @return unique description of this rule\n */\n String getDescription();\n\n /**\n * Gets Unique ID of this Rule\n * \n * @return integer identification of this rule\n */\n int getId();\n\n /**\n * Update this rule based on the in-passed rule detail (e.g. whether it is enabled, etc)\n * \n * @param ruleDetail\n * rule detail to use to update this rule\n */\n void updateFrom(RuleDetail ruleDetail);\n}", "boolean isCriterionSpecified();", "public boolean hasRuleSelector()\n {\n return (this.ruleSelector != null) && !this.ruleSelector.equals(\"\");\n }" ]
[ "0.576771", "0.5757408", "0.5710599", "0.5617362", "0.55804193", "0.53254795", "0.5297989", "0.52882415", "0.52814215", "0.5256929", "0.5212955", "0.51867497", "0.5173399", "0.5166958", "0.5119344", "0.50990343", "0.50977564", "0.5069876", "0.5063862", "0.50633293", "0.5046971", "0.50441563", "0.5033157", "0.5018611", "0.5006552", "0.49914223", "0.49814388", "0.49698943", "0.49671784", "0.49671784", "0.49671784", "0.496698", "0.4965307", "0.4959036", "0.49528134", "0.49312305", "0.4917249", "0.49029082", "0.48952156", "0.4877796", "0.48739418", "0.48713467", "0.48495203", "0.4844754", "0.48388368", "0.48379642", "0.4823145", "0.48127794", "0.4798893", "0.47892493", "0.47889182", "0.478749", "0.477531", "0.4774445", "0.47691163", "0.4767711", "0.4763407", "0.47627428", "0.4762438", "0.4761419", "0.4755551", "0.47546685", "0.4752948", "0.47520968", "0.47473818", "0.4741099", "0.47375357", "0.47369176", "0.47338545", "0.4733606", "0.4733189", "0.47327718", "0.47237885", "0.4722335", "0.47188723", "0.47173226", "0.47153205", "0.4713799", "0.47132963", "0.471005", "0.47039798", "0.46982828", "0.46971405", "0.46926096", "0.46908394", "0.4689983", "0.4686415", "0.46863163", "0.46828127", "0.46822396", "0.46819744", "0.4674663", "0.46703595", "0.46690556", "0.4658144", "0.46578062", "0.46563205", "0.46543315", "0.4645972", "0.46453387" ]
0.5006691
24
return the letExpression of the child(ren) or the empty String. This is used for the implementation of cflow
public String getLetExpression() { String letExpression = ""; List<ASTNode> children = this.getAbstractChildNodes(); if (children.size() == 1 && children.get(0) instanceof PointCutASTNode) letExpression = ((PointCutASTNode) children.get(0)).getLetExpression(); else if (children.size() == 2 && children.get(0) instanceof PointCutASTNode && children.get(1) instanceof PointCutASTNode) { String leftChild = ((PointCutASTNode) children.get(0)).getLetExpression(); String rightChild = ((PointCutASTNode) children.get(1)).getLetExpression(); if (!leftChild.isEmpty() && !rightChild.isEmpty()) letExpression = leftChild + ", " + rightChild; else letExpression = leftChild + rightChild; } return letExpression; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Element compileLet() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\t\tboolean array = false;\n\t\tElement letParent = document.createElement(\"letStatement\");\n\n\t\t// let\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tletParent.appendChild(ele);\n\n\t\t// identifier\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tvarName = jTokenizer.returnTokenVal();\n\t\tele = createXMLnode(tokenType);\n\t\tletParent.appendChild(ele);\n\n\t\t// Checks if the variable is an array element\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\tif (token.equals(\"[\")) {\n\t\t\tarray = true;\n\t\t\t//Pushing base address\n\t\t\twriter.writePush(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t\t// [\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tletParent.appendChild(ele);\n\n\t\t\t// Pushing the offset, the expression that comes after [\n\t\t\tjTokenizer.advance();\n\t\t\tletParent.appendChild(compileExpression());\n\t\t\t\n\t\t\t// ]\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tletParent.appendChild(ele);\n\t\t\tjTokenizer.advance();\n\t\t\t\n\t\t\t//Adding the two to find the address of the element\n\t\t\twriter.writeArithmetic(\"add\");\n\t\t}\n\n\t\t// =\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tletParent.appendChild(ele);\n\n\t\t// compiling the expression on the right side of the equals\n\t\tjTokenizer.advance();\n\t\tletParent.appendChild(compileExpression());\n\n\t\t// ;\n\t\tjTokenizer.advance();\n\t\tele = createXMLnode(jTokenizer.tokenType());\n\t\tletParent.appendChild(ele);\n\t\t\n\t\t//If it was an array, we have to push the result of the expression to the address\n\t\t//of the specific element\n\t\tif (array) {\n\t\t\t// *(base+offset)=expression\n\t\t\twriter.writePop(\"temp\", 0);\n\n\t\t\t// base +index->that\n\t\t\twriter.writePop(\"pointer\", 1);\n\n\t\t\t// Expression -> *(base+index)\n\t\t\twriter.writePush(\"temp\", 0);\n\t\t\twriter.writePop(\"that\", 0);\n\t\t} \n\t\t//If not array, just pop it to the variable directly\n\t\telse {\n\t\t\twriter.writePop(symTable.lookup(varName).kind, symTable.lookup(varName).index);\n\t\t}\n\n\t\treturn letParent;\n\t}", "public Node getExpression() {\r\n return expression;\r\n }", "private Expr expression() {\n return assignment();\n }", "ASTNode rebuild() {\n ASTNode child = null;\n switch (this.type) {\n case \"else if statement\":\n child = children.get(0);\n break;\n\n default:\n }\n\n return this;\n }", "@Override\n\tpublic String visitExpression(ExpressionContext ctx) {\n\t\tif(ctx.getChildCount() == 3){\n\t\t\treturn visit(ctx.getChild(1));\n\t\t}\n\t\tParseTree cur = ctx.getChild(0);\n\t\tif(!(cur instanceof TerminalNode)){\n\t\t\treturn visit(cur);\n\t\t}\n\t\telse if(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\treturn id.getReturnType();\n\t\t}\n\t\telse if (cur==ctx.BOOLEANLIT()) return \"boolean\";\n\t\telse if (cur==ctx.STRING()) return \"String\";\n\t\treturn null;\n\t}", "private String translateExpression(PropertyExpression e) {\n if (e.getObjectExpression() instanceof BinaryExpression) {\n BinaryExpression be = (BinaryExpression) e.getObjectExpression();\n if (be.getOperation().getText().equals(\"[\")) {\n String left = translateExpression(be.getLeftExpression());\n if (left.equals(inputName)) {\n return withInputSuffix(e.getPropertyAsString()) + \"[\" + translateExpression(be.getRightExpression()) + \"]\";\n }\n }\n }\n\n\n String obj = translateExpression(e.getObjectExpression());\n //TODO fix for \"not in main case\"\n //if (obj.equals(outputName) && shaderType.equals(\"vs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(outputName)) return withOutputSuffix(e.getPropertyAsString());\n //TODO fix for \"not in main case\"\n //if (obj.equals(inputName) && shaderType.equals(\"fs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(inputName)) return withInputSuffix(e.getPropertyAsString());\n //if (obj.equals(outputName)) return e.getPropertyAsString();\n //if (obj.equals(inputName)) return e.getPropertyAsString();\n if (obj.equals(\"\")) return e.getPropertyAsString();\n if ((e.getObjectExpression() instanceof BinaryExpression)) return \"(\" + obj + \").\" + e.getPropertyAsString();\n return obj + \".\" + e.getPropertyAsString();\n }", "public Node simpleExpression(Node n_parent) {\r\n\r\n if(token.get(lookAheadPossition).contains(\"ident(\")||token.get(lookAheadPossition).contains(\"num(\")||token.get(lookAheadPossition).contains(\"boollit(\")||token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: simpleExpression::if \"+n_parent.getData());\r\n Node makeown = new Node (\"makeown\");\r\n Node n_factor = this.term(makeown);\r\n //if (!(n_parent==null)) {n_parent.setNodeChild(n_factor); }//simpleExpression(n_factor); }\r\n //if (n_parent.getData().contains(\"-\")) {n_parent.setNodeChild(n_factor); simpleExpression(n_factor); } /////////************add\r\n //addNode = simpleExpressionNode.addChild(\"Add\");\r\n return(this.restSimpleExpression(n_parent,n_factor ));\r\n }\r\n return(null);\r\n }", "protected LambdaTerm getParent() { return parent; }", "public Expression getExpression() {\n if (this.expression == null) {\n // lazy init must be thread-safe for readers\n synchronized (this) {\n if (this.expression == null) {\n preLazyInit();\n this.expression = new SimpleName(this.ast);\n postLazyInit(this.expression, EXPRESSION_PROPERTY);\n }\n }\n }\n return this.expression;\n }", "public void expression(Node n_parent) {\r\n if(token.get(lookAheadPossition).contains(\"ident(\")||token.get(lookAheadPossition).contains(\"num(\")||token.get(lookAheadPossition).contains(\"boollit(\")||token.get(lookAheadPossition).equals(\"LP\")){\r\n System.out.println(\":: expression::if- \"+n_parent.getData());\r\n\r\n Node makeown = new Node (\"makeown\");\r\n Node n_factor = this.simpleExpression(makeown);\r\n\r\n //compNode = expressionNode.addChild(\"Compare\");\r\n //Node n_connect =\r\n this.restExpression(n_parent,n_factor);\r\n //n_parent.setNodeChild(n_connect);\r\n }\r\n }", "@Override\n protected DagNode evaluate(DagNode parent, Bindings bindings) {\n // type acts as storage for the status\n DagEdge bound = bindings.getBinding(_varName, getType());\n if (bound == null) {\n if (getType() == Bindings.LOCAL) {\n // first occurence of this var, bind the variable name\n // to the given node. This is on the application side, where new bindings\n // are only relevant in expandVars, which is why the DagEdge is not\n // important, but the node, to establish coreferences.\n bound = new DagEdge((short) -1, parent);\n bindings.bind(_varName, bound, getType());\n } else {\n logger.warn(\"Unknown binding during application of rule: \" + this);\n return parent;\n }\n }\n // Avoid unwanted coreferences for atomic nodes\n if (bound.getValue().newEdgesAreEmpty()) {\n return bound.getValue().cloneFS();\n }\n return bound.getValue();\n }", "@Override\n\tpublic String visitSubexpr(SubexprContext ctx) {\n\t\t\n\t\tif(ctx.getChildCount()==1)\n\t\t{\n\t\t\treturn visitValue(ctx.value())\t;\t}\n\t\telse\n\t\t{\n\t\t\tString result = \"\";\n\t\t\tresult = \"temp\"+count.count++;\n\t\t\tif(ctx.getChild(1).getText().equals(\"*\"))\n\t\t\t{\n\t\t\t\n\t\t\t\n\t\t\tsb.append(\"MUL \"+visit(ctx.children.get(0))+\" \"+visitValue(ctx.value())+\" \"+ result+\"\\n\");\n\t\t\treturn result;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(\"DIV \"+visit(ctx.children.get(0))+ \" \"+visitValue(ctx.value())+\" \"+result+\"\\n\");\n\t\t\t\treturn \tresult;\n\t\t\t}\n\t\t}\n\t\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString string = \"\";\r\n\t\tif (expressionTree.getNumberOfChildren()==0)\r\n\t\t\treturn expressionTree.getValue();\r\n\t\telse{\r\n\t\t\tstring += \"(\";\r\n\t\t\tfor (int i = 0; i < expressionTree.getNumberOfChildren(); i++){\r\n\t\t\t\tTree<String> subtree = expressionTree.getChild(i);\r\n\t\t\t\tif (subtree.getNumberOfChildren()==0)\r\n\t\t\t\t\tstring += subtree.getValue();\r\n\t\t\t\telse\r\n\t\t\t\t\tstring += (new Expression(subtree.toString())).toString()+\" \";\r\n\t\t\t\tif (i < expressionTree.getNumberOfChildren()-1)\r\n\t\t\t\t\tstring += \" \" + expressionTree.getValue()+\" \";\r\n\t\t\t}\r\n\t\t\tstring += \")\";\r\n\t\t}\r\n\t\treturn string;\r\n\t}", "public CompoundExpression getParent (){\n return _parent;\n }", "public String toYield() {\n\t\tif (label == null && numChildren <= 0)\n\t\t\treturn \"\";\n\t\tif (isEmptyString)\n\t\t\treturn \"\";\n\t\tif (numChildren == 0)\n\t\t\treturn label.toString();\n\t\tStringBuffer ret = new StringBuffer();\n\t\tif (numChildren > 0) {\n\t\t\tfor (int i = 0; i < numChildren; i++) {\n\t\t\t\tret.append(children[i].toYield());\n\t\t\t\tif (i < (numChildren-1) && !children[i].isEmptyString)\n\t\t\t\t\tret.append(\" \");\n\t\t\t}\n\t\t}\n\t\t//\telse\n\t\t//\t ret.append(\":\"+label.hashCode());\n\t\treturn ret.toString();\n\t}", "String getExpression();", "String getExpression();", "public Node term(Node n_parent) {\r\n\r\n if (token.get(lookAheadPossition).contains(\"ident(\") || token.get(lookAheadPossition).contains(\"num(\") || token.get(lookAheadPossition).contains(\"boollit(\") || token.get(lookAheadPossition).equals(\"LP\")) {\r\n System.out.println(\":: term:if:\" + n_parent.getData());\r\n Node n_factor = this.factor(n_parent);\r\n //if (n_parent.getData().contains(\"*\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"DIV\")) {n_parent.setNodeChild(n_factor); }\r\n //if (n_parent.getData().contains(\"MOD\")) {n_parent.setNodeChild(n_factor); }\r\n //if (!(n_parent.getData().equals(\"makeown\"))) {n_parent.setNodeChild(n_factor); }\r\n return (this.restTerm(n_parent, n_factor));\r\n } else {\r\n\r\n return (null);\r\n }\r\n }", "@Override\n\tpublic WhereNode getRightChild() {\n\t\treturn null;\n\t}", "public String innerString(Expr e)\n {\n if (e.getPrecedence() < this.getPrecedence())\n return StringUtil.embed(e.toString());\n else\n return e.toString();\n }", "@Override\n\tpublic String visitExpr(ExprContext ctx) {\n\t\t\t\t\n\t\t\tif(ctx.getChildCount()==1)\n\t\t\t{\n\t\t\t\treturn visitSubexpr(ctx.subexpr());\n\t\t\t}\n\t\t\telse\n\t\t\t\t\n\t\t\t{\n\t\t\t\tString result = \"\";\n\t\t\t\t\n\t\t\t\t\tresult = \"temp\"+ count.count++;\n\t\t\t\tif(ctx.getChild(1).getText().equals(\"+\"))\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"ADD \"+visit(ctx.children.get(0))+\" \"+visitSubexpr(ctx.subexpr())+\" \"+result+\"\\n\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"SUB \"+visit(ctx.children.get(0))+\" \"+visitSubexpr(ctx.subexpr())+\" \"+ result+\"\\n\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t}\n\t\n\n\t\t\n\t}", "public String symbolic() {\n return parent + \"/\" + symbolic;\n }", "LogicExpression getExpr();", "@Override\n public String visit(TextBlockLiteralExpr n, Object arg) {\n return null;\n }", "public String getChild() {\n return child;\n }", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "public String getExpression() {\r\n return tree.infixExpression();\r\n }", "java.lang.String getParent();", "java.lang.String getParent();", "public String toString() {\n\t\t//|| (this.equals(new StatementParse(\"sequence\", 0)))\n\t\tif (this.equals(Parser.FAIL)) {\n\t\t\treturn \"\";\n\t\t}\n String result = \"\";\n result += \"(\";\n result += this.name;\n for (Parse child: this.children) {\n \tresult += \" \" + child.toString();\n }\n result += \")\";\n return result;\t\n }", "Expr rel() throws IOException {\n\t\tExpr e = expr();\t\t\t\t\t\t\t\t\t\t\t// expr ge expr | expr > expr | expr\n\t\tswitch (look.tag) {\n\t\tcase '<':\n\t\tcase Tag.LE:\n\t\tcase Tag.GE:\n\t\tcase '>':\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\treturn new Rel(tok, e, expr());\n\t\tdefault:\n\t\t\treturn e;\n\t\t}\n\t}", "public String getLhsName() {\n Xnode lhs = getLhs();\n if(lhs != null) {\n return (lhs.opcode() == Xcode.VAR) ? lhs.value() :\n lhs.matchSeq(Xcode.VAR_REF, Xcode.VAR).value();\n }\n return \"\";\n }", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}", "@Override\n\tpublic WhereNode getLeftChild() {\n\t\treturn null;\n\t}", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "String getLiteral();", "String getLiteral();", "public CompoundExpression getParent()\r\n\t\t{\r\n\t\t\treturn _parent;\r\n\t\t}", "public String getExpression() {\n return _expression;\n }", "public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }", "public Expr getExpression()\n {\n Parser.validateExpr(expression, analysis);\n return expression;\n }", "public char parentSide() {\n\t\t\tif (this.getParent().getKey() == -1) {\n\t\t\t\treturn 'N';\n\t\t\t}\n\t\t\tif (this.key == this.parent.getRight().getKey()) {\n\t\t\t\treturn 'R';\n\t\t\t}\n\t\t\treturn 'L';\n\t\t}", "public String toString() {\n return m_expression;\n }", "public Let getLet(){\n return let;\n }", "@Override\n public String toString() {\n Helpers f = new Helpers();\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n if (super.isBonus()) {\n // x * y -> xy\n if (left instanceof Var && right instanceof Var) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // 4 * x -> 4x\n if (right instanceof Var) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // x * 4 -> 4x\n if (left instanceof Var) {\n return \"(\" + right.toString() + \"\" + left.toString() + \")\";\n }\n // 4 * (x^2) -> 4(x^2)\n if (right instanceof Pow) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // 4 * (xy) -> 4xy\n if (right instanceof Mult) {\n if (((Mult) right).getLeft() instanceof Var && ((Mult) right).getRight() instanceof Var) {\n return \"(\" + left.toString() + \"\" + f.removeOuterParentheses(right.toString()) + \")\";\n }\n }\n }\n return \"(\" + left.toString() + \" * \" + right.toString() + \")\";\n }", "default String getTranslatedExpression() {\n if ( getTranslatedExpressionObject() == null ) return \"\";\n else return getTranslatedExpressionObject().getTranslatedExpression();\n }", "@Override\n public String visit(ExpressionStmt n, Object arg) {\n return null;\n }", "Expr getExpr();", "public Literal getDeepLiteral(XDI3Segment contextNodeXri);", "public Expression getExpression() {\r\n\t\treturn this.expression;\r\n\t}", "@Override\n\tpublic String visitValue(ValueContext ctx) {\n\t \n\t\t\n\t return ctx.getChild(0).getText();\n\t\t\n\t\t\n\t}", "public Node term()\r\n\t{\r\n\t\tNode lhs = negaposi();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.TIMES\r\n\t\t\t\t||token == Lexer.Token.DIVIDE)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = negaposi(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.TIMES)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Mul(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.DIVIDE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Div(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "public Expression getExpression() {\n \treturn nullCheck;\n }", "public String getContextualizedLabel() {\n\t\tString completeLbl = CodeUnit.getLabel(getRepo(), getArtFrag(), null, true);//this.getLabel();\r\n\t\t\r\n\t\t// strip number for anon class (shows in tooltip)\r\n\t\tif (RSECore.isAnonClassName(completeLbl))\r\n\t\t\tcompleteLbl = RSECore.stripAnonNumber(completeLbl);\r\n\t\t\r\n\t\tTitledArtifactEditPart parentTAFEP = this.getParentTAFEP();\r\n\t\tif (parentTAFEP != null) {\r\n\t\t\tString contextLbl = null;\r\n\t\t\tcontextLbl = getCntxLabel(parentTAFEP);\r\n\t\t\tif (completeLbl.startsWith(contextLbl) && !contextLbl.equals(\".\")) {\r\n\t\t\t\tcompleteLbl = completeLbl.substring(contextLbl.length());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcompleteLbl = strTruncEnd(completeLbl, \".*\");\r\n\t\tcompleteLbl = strTruncBeg(completeLbl, \".\");\r\n\t\tif (completeLbl.length() == 0) completeLbl = \".\";\r\n\t\treturn completeLbl;\r\n\t}", "private Text rel() {\n\t\tText rel = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn rel;\r\n\t}", "Expression relExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = addExpression();\r\n\t\twhile(isKind(OP_LT,OP_GT,OP_LE,OP_GE)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = addExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Override\n\tpublic String visitReturnSt(ReturnStContext ctx){\n\t\treturn visit(ctx.getChild(1));\n\t}", "public Expr left() {\n\treturn this.left;\n }", "public Expr right() {\n\treturn this.right;\n }", "public String getLexeme() {\n\t\treturn _lexeme;\n\t}", "@Override\n\tpublic Object visit(ASTLetClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"let \");\n\t\tint numOfChild = node.jjtGetNumChildren();\n\t\tboolean first = true;\n\t\tfor (int i = 0; i < numOfChild; i++) {\n\t\t\tif (first)\n\t\t\t\tfirst = false;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\",\");\n\t\t\t\tprintIndent(indent + 2);\n\t\t\t}\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, data);\n\t\t}\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "private void jetCastExprStr(){\n\t\tCastExpr castExpr = (CastExpr) rExpr;\n\t\tValue immValue = castExpr.getOp();\n\t\tif(immValue instanceof Local){\n\t\t\tthis.exprStr = fileGenerator.getRenameOf(immValue, false, this.stmtIdx);\n\t\t}else{\n\t\t\tthis.exprStr = immValue.toString();\n\t\t}\n\t}", "@Override\n public String parenthesize() {\n StringBuilder out = new StringBuilder();\n out.append(\"[\");\n out.append(this.leftChild.parenthesize());\n out.append(\" \");\n out.append(this.oper.getId());\n out.append(\" \");\n out.append(this.rightChild.parenthesize());\n out.append(\"]\");\n return out.toString();\n }", "DExpression getExpression();", "Expr expr() throws IOException {\n\t\tExpr e = term();\n\t\twhile (look.tag == '+' || look.tag == '-') {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Arith(tok, e, term());\n\t\t}\n\t\treturn e;\n\t}", "protected String getIntermediateFormula() {\n if ( isGlobal() ) {\n return globalConstraint;\n } else if ( isRoleBased() ) {\n return roleMapToFormula();\n } else {\n // rls is disabled\n return EMPTY_STRING;\n }\n }", "public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}", "private String getAltBlockParentType() {\n\t\tRegSetProperties parent = getRegSetParent();\n\t\tString blockBase = ((parent == null) || parent.getBaseName().isEmpty())? \"\" : \"_\" + parent.getBaseName();\n\t\treturn altModelRootType + blockBase; \n\t}", "static AST getChainParent(JavaNode node)\n {\n JavaNode parent = node.getParent();\n\n switch (parent.getType())\n {\n case JavaTokenTypes.EXPR :\n\n /**\n * @todo maybe more operators make sense?\n */\n case JavaTokenTypes.PLUS :\n //case JavaTokenTypes.NOT_EQUAL:\n //case JavaTokenTypes.EQUAL:\n return getChainParent(parent);\n\n default :\n return parent;\n }\n }", "LogicExpression getLeftExp();", "com.google.type.Expr getCelExpression();", "public Operator getChild() {\r\n\t\treturn child;\r\n\t}", "public String genCode() {\n StringBuilder childCode = new StringBuilder();\n for (Node node : this.getChildren()) {\n childCode.append(node.genCode());\n }\n return childCode.toString();\n }", "public Fork getRight() {\n\t\treturn right;\n\t}", "@Override\n\tpublic ASTNode getLeftChild() {\n\t\treturn this.leftChild ;\n\t}", "@Override\n\tpublic ASTNode getRightChild() {\n\t\treturn this.rightChild ;\n\t}", "public Stmt\ngetHirBody();", "public String returnLexeme(){ return lexeme; }", "LogicExpression getLeft();", "public PrimaryExpression getExpression()\r\n {\r\n\treturn m_expression;\r\n }", "XExpression getExpression();", "@Override\n public String visitLiteralExpr(Expr.Literal expr) {\n if(expr.getValue() == null) return \"null\";\n if(expr.getValue() instanceof String) return String.format(\"\\\"%s\\\"\", expr.getValue());\n return expr.getValue().toString();\n }", "public Node getExpressionOrigin() {\n return element;\n }", "public String getExpressionName() {\n return ExpressionDefines.getNameById( id );\n }", "private String E() throws SyntaxException, ParserException {\n\t\tswitch (current) {\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\t\t// E -> L\n\t\t\t\treturn L();\n\t\t\tcase '(':\n\t\t\t\t// E -> (S)\n\t\t\t\teat('(');\n\t\t\t\tString pe = S();\n\t\t\t\teat(')');\n\t\t\t\treturn pe;\n\t\t\tdefault:\n\t\t\t\tthrow new SyntaxException(ErrorType.NO_RULE,current);\n\t\t}\n\t}", "public AST getLeft() {\n\t\treturn left;\n\t}", "@Override\n\tpublic Literal getLiteral() {\n\t\treturn heldObj.getLiteral();\n\t}", "LogicExpression getRightExp();", "private void thisToNameExpression(Expression replacee) {\n NameExpression replacer = eFactory().createNeioNameExpression(lastElement);\n replacee.replaceWith(replacer);\n }", "public String toString() {\n\t\tcheckRep();\n\t\treturn (this.getLabel() + \" pointing to \" + this.getChild());\n\t}", "public Object getExpression();", "public String getLhs() {\n\t\treturn lhs;\n\t}", "OclExpressionCS getBodyExpression();", "public Expression eliminateLet() {\n\treturn new UnaryPrimitiveApplication(operator,\n\t\t\t\t\t argument.eliminateLet());\n }", "@Override\n\tpublic String visitCompexpr(CompexprContext ctx) {\n\t\t\n\t\tif(ctx.getChildCount()==3)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tif(ctx.getChild(1).getText().equals(\"==\"))\n\t\t\t{\n\t\t\t\treturn \"EQL \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\">=\"))\n\t\t\t{\n\t\t\t\treturn \"GTE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"<=\"))\n\t\t\t{\n\t\t\t\treturn \"LTE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"<\"))\n\t\t\t{\n\t\t\t\treturn \"LT \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\">\"))\n\t\t\t{\n\t\t\t\treturn \"GT \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"~=\"))\n\t\t\t{\n\t\t\t\treturn \"NE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t}\n\t\telse if(ctx.getChildCount()==1)\n\t\t{\n\t\t\n\t\t\treturn ctx.getChild(0).getText();\n\t\t}\n\t\treturn \"\";\n\t\n\t\t\n\t\t\n\t\t\n\t}" ]
[ "0.5790494", "0.5408686", "0.5405777", "0.53999794", "0.534301", "0.5280472", "0.5247037", "0.5222519", "0.5218019", "0.52099216", "0.5196082", "0.5180457", "0.51791614", "0.51587623", "0.51575804", "0.5116512", "0.5116512", "0.5108542", "0.51069856", "0.5101034", "0.5094423", "0.5049205", "0.50479925", "0.5024555", "0.50166", "0.50128454", "0.50128454", "0.50128454", "0.50128454", "0.5009386", "0.50071186", "0.50071186", "0.50064933", "0.499678", "0.49677214", "0.49613652", "0.49142018", "0.4907366", "0.4907366", "0.4907366", "0.4897612", "0.4897612", "0.48940703", "0.48908654", "0.488186", "0.48735726", "0.48616976", "0.48560575", "0.48547933", "0.48532578", "0.48527804", "0.48518163", "0.48495278", "0.48301566", "0.48225066", "0.48213196", "0.48148277", "0.48123014", "0.48077372", "0.47963813", "0.4776607", "0.47737288", "0.47734678", "0.47700328", "0.47685203", "0.4766373", "0.47572497", "0.47306335", "0.47168976", "0.47124138", "0.47095454", "0.470449", "0.46997625", "0.4686068", "0.46813902", "0.46762532", "0.46744984", "0.46704108", "0.46686527", "0.46679747", "0.46675602", "0.46629855", "0.46552482", "0.4654631", "0.46484178", "0.46442983", "0.46423978", "0.4640719", "0.4636417", "0.46350884", "0.46336251", "0.4631637", "0.4622035", "0.4618456", "0.46178332", "0.46158653", "0.46071547", "0.46067128", "0.46048337", "0.4601113" ]
0.7111594
0
return the dynamic bindings extracted from the call stack according to the cflow expressions of the pointcut. The consistency of bindings has to be taken into account in case of BinAnd.
public String getCflowBindings() { String cflowCondotion = ""; List<ASTNode> children = this.getAbstractChildNodes(); if (children.size() == 1 && children.get(0) instanceof PointCutASTNode) cflowCondotion = ((PointCutASTNode) children.get(0)).getCflowBindings(); else if (children.size() == 2 && children.get(0) instanceof PointCutASTNode && children.get(1) instanceof PointCutASTNode) { String leftChild = ((PointCutASTNode) children.get(0)).getCflowBindings(); String rightChild = ((PointCutASTNode) children.get(1)).getCflowBindings(); if (!leftChild.isEmpty() && !rightChild.isEmpty()) cflowCondotion = leftChild + " + " + rightChild; else cflowCondotion = leftChild + rightChild; } return cflowCondotion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Exp> varBind() {\n List<Exp> lBind = new ArrayList<Exp>();\n for (int i = 0; i < size(); i++) {\n Exp f = get(i);\n if ((f.type == VALUES) || (f.isFilter() && f.size() > 0)) {\n Exp bind = f.first();\n if (bind.type() == OPT_BIND) {\n if (bind.isBindCst()) {\n // ?x = cst\n lBind.add(bind);\n } else {\n // filter has BIND\n // TODO: when there is a UNION, variables of BIND may not be all bound \n // so we cannot bind here\n //add(i, bind);\n //i++;\n }\n }\n }\n }\n return lBind;\n }", "Expression getBindingExpression();", "public ArrayList<String> getNeedBindingVars(){\n\t\tArrayList<String> vars = new ArrayList<String>();\n\t\tfor(int i=0; i<terms.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tSourceAttribute sa = source.getAttr(i);\n\t\t\tString var = t.getVar();\n\t\t\tif(t.needsBinding(sa.needsBinding())){\n\t\t\t\tif(t instanceof FunctionTerm){\n\t\t\t\t\tvars.addAll(t.getFunction().getNeedBindingVars());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tvars.add(var);\n\t\t\t}\n\t\t}\n\t\treturn vars;\n\t}", "private void addBinders(int n, Binder[] binder, List<Condition> conds)\n {\n List<Binder> binder0 = new ArrayList<Binder>(n);\n for (int i=0; i<n; i++)\n binder0.add(transform(binder[i]));\n for (Condition c : conds)\n {\n Expression ce = n == 0 ? c.exp : new LetExp(binder0, c.exp);\n conditions.add(c.clone(ce));\n }\n }", "@Nonnull\n SystemScriptBindings getBindings();", "private void addParBinders(Binder[] binder, List<Condition> conds)\n {\n int n = binder.length;\n List<Binder> binder0 = new ArrayList<Binder>(n);\n for (int i=0; i<n; i++)\n binder0.add(transform(binder[i]));\n for (Condition c : conds)\n {\n Expression ce = n == 0 ? c.exp : new LetParExp(binder0, c.exp);\n conditions.add(c.clone(ce));\n }\n }", "public static DynamicExpression dynamic(CallSiteBinder binder, Class type, Expression[] expression) { throw Extensions.todo(); }", "public static DynamicExpression dynamic(CallSiteBinder binder, Class type, Expression expression0, Expression expression1, Expression expression2, Expression expression3) { throw Extensions.todo(); }", "public static DynamicExpression dynamic(CallSiteBinder binary, Class type, Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public ArrayList<Binding> unifies(AST ast, ArrayList<Binding> bindings){\n ArrayList<Binding> full_bindings = new ArrayList<Binding>();\n ArrayList<Binding> left_bindings = left.unifies(ast, bindings); \n //go through rhs and try to generate the new bindings\n for(Binding b : left_bindings){\n //pass in the binding\n //System.out.println(b.toString());\n //System.out.println(right.formatString());\n AST newQuery = right.apply(b);\n //System.out.println(newQuery.toString());\n\n ArrayList<Binding> resultBindings = null;\n if(newQuery instanceof Conjunct || newQuery instanceof Disjunct){\n resultBindings = Database.getInstance().query(newQuery, true);\n } else {\n resultBindings = Database.getInstance().query(newQuery);\n }\n \n for(Binding r : resultBindings)\n {\n //System.out.println(\"Mergings Bindings:\");\n //System.out.println(b.toString());\n //System.out.println(\"-and-\");\n //System.out.println(r.toString());\n //System.out.println(\">>\");\n //System.out.println(b.merge(r).toString() + \"\\n\");\n full_bindings.add(b.merge(r));\n }\n }\n return full_bindings;\n }", "public TableRep extractBindings(int predId) throws RemoteException, Error;", "public Iterator getBindings() {\r\n\t\treturn bindings == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(bindings.values());\r\n\t}", "public static DynamicExpression dynamic(CallSiteBinder binder, Class type, Iterable<Expression> expressions) { throw Extensions.todo(); }", "public static DynamicExpression dynamic(CallSiteBinder binder, Class type, Expression expression) { throw Extensions.todo(); }", "public abstract int getBindingVariable();", "public static DynamicExpression dynamic(CallSiteBinder binary, Class type, Expression expression0, Expression expression1, Expression expression2) { throw Extensions.todo(); }", "private List<HashMap<ComparableExpression, HashSet<ComparableExpression>>> computeClosureRelations(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cEq,\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cLeq,\n HashMap<ComparableExpression, HashSet<ComparableExpression>> cLt) {\n // init relations\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rEq;\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLeq;\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rLt;\n // compute them\n rEq = union(transitiveClosure(cEq), selfInverses(transitiveClosure(union(cEq, cLeq))));\n rLeq = subtract(transitiveClosure(union(rEq, cLeq)), rEq);\n rLt = transitiveClosure(union(\n composition(union(rEq, rLeq), cLt),\n composition(cLt, union(rEq, rLeq)),\n cLt\n ));\n return Arrays.asList(rEq, rLeq, rLt);\n }", "private void addGetChildBindings() {\n\t\tthis.pathBindingClass.addImports(Binding.class, List.class);\n\t\tGMethod children = this.pathBindingClass.getMethod(\"getChildBindings\").returnType(\"List<Binding<?>>\")\n\t\t\t\t.addAnnotation(\"@Override\");\n\t\tchildren.body.line(\"List<Binding<?>> bindings = new java.util.ArrayList<Binding<?>>();\");\n\t\tfor (String foundSubBinding : this.foundSubBindings) {\n\t\t\tchildren.body.line(\"bindings.add(this.{}());\", foundSubBinding);\n\t\t}\n\t\tchildren.body.line(\"return bindings;\");\n\t}", "Binding getBinding();", "public List<CRightHandSide> getBindedExpression(\n AccessPath path,\n List<AbstractState> otherStates,\n int level)\n throws UnrecognizedCCodeException {\n if (level <= 0) {\n return Lists.newArrayList();\n }\n BindingPoint bindPoint;\n List<CRightHandSide> candidates = new ArrayList<>();\n if (path.startFromGlobal()) {\n bindPoint = globalDefs.get(AccessPath.toStrList(path));\n } else {\n bindPoint = localDefs.get(AccessPath.toStrList(path));\n }\n if (bindPoint != null && bindPoint instanceof ProgramBinding) {\n CFAEdge thisEdge = ((ProgramBinding) bindPoint).definition;\n CRightHandSide rightHand = BindUtils.extractRightHandSide(thisEdge, path);\n if (rightHand != null) {\n candidates.add(rightHand);\n }\n if (rightHand instanceof CLeftHandSide) {\n AccessPath newPath = ((CLeftHandSide) rightHand).accept(new AccessPathExtractorForLHS\n (otherStates));\n if (newPath != null) {\n candidates.addAll(getBindedExpression(newPath, otherStates, level - 1));\n }\n }\n }\n return candidates;\n }", "public interface Binding {\n\n /**\n * Get the declared type of the variable\n * @return the declared type\n */\n\n public SequenceType getRequiredType();\n\n /**\n * Evaluate the variable\n * @param context the XPath dynamic evaluation context\n * @return the result of evaluating the variable\n */\n\n public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException;\n\n /**\n * Indicate whether the binding is local or global. A global binding is one that has a fixed\n * value for the life of a query or transformation; any other binding is local.\n * @return true if the binding is global\n */\n\n public boolean isGlobal();\n\n /**\n * If this is a local variable held on the local stack frame, return the corresponding slot number.\n * In other cases, return -1.\n * @return the slot number on the local stack frame\n */\n\n public int getLocalSlotNumber();\n\n /**\n * Get the name of the variable\n * @return the name of the variable, as a structured QName\n */\n\n public StructuredQName getVariableQName();\n\n}", "public Map<String, String> getPointBindings() {\n return pointBindings;\n }", "IIndexFragmentBinding[] findBindings(char[][] names, IndexFilter filter, IProgressMonitor monitor) throws CoreException;", "public static List<VariableDeclaration> getBindingManagementVars()\n {\n return FrameworkDefs.bindingManagementVars; \n }", "IIndexFragmentBinding[] findBindings(Pattern[] patterns, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException;", "boolean simpleBind(Filter f){\n// List<String> list = f.getVariables();\n// \n// for (Exp exp : this){\n// if (exp.isEdge() || exp.isPath() || exp.isValues() || exp.isBind()){\n// \n// }\n// }\n \n return true;\n }", "public java.util.List<com.google.api.HttpRule> getAdditionalBindingsList() {\n return additionalBindings_;\n }", "public void executeBindings() {\n block95: {\n block98: {\n var1_1 = this;\n synchronized (this) {\n var2_2 = this.H;\n this.H = var4_3 = 0L;\n }\n var6_4 = this.p;\n var7_5 = this.q;\n var8_6 = this.o;\n var9_7 = 767L & var2_2;\n var11_8 = var9_7 == var4_3 ? 0 : (var9_7 < var4_3 ? -1 : 1);\n var12_9 = 32768L;\n var14_10 = 65536L;\n var16_11 = 600L;\n var18_12 = 592L;\n var20_13 = 759L;\n var22_14 = null;\n if (var11_8 == false) break block98;\n if (var6_4 != null) {\n var23_15 = var6_4.L;\n } else {\n var11_8 = 0;\n var23_15 = null;\n }\n var24_16 = 4;\n var25_18 = 5.6E-45f;\n var1_1.updateLiveDataRegistration(var24_16, (LiveData)var23_15);\n if (var23_15 != null) {\n var23_15 = (Boolean)var23_15.getValue();\n } else {\n var11_8 = 0;\n var23_15 = null;\n }\n var11_8 = (long)ViewDataBinding.safeUnbox((Boolean)var23_15);\n var26_19 = var2_2 & var20_13;\n var24_16 = (int)(var26_19 == var4_3 ? 0 : (var26_19 < var4_3 ? -1 : 1));\n if (var24_16 != 0) {\n if (var11_8 != false) {\n var2_2 |= var12_9;\n } else {\n var26_19 = 16384L;\n var2_2 |= var26_19;\n }\n }\n if ((var24_16 = (int)((cfr_temp_0 = (var26_19 = var2_2 & var18_12) - var4_3) == 0L ? 0 : (cfr_temp_0 < 0L ? -1 : 1))) != 0) {\n var26_19 = var11_8 != false ? 0x200000L : 0x100000L;\n var2_2 |= var26_19;\n }\n if ((var24_16 = (int)((cfr_temp_1 = (var26_19 = var2_2 & var16_11) - var4_3) == 0L ? 0 : (cfr_temp_1 < 0L ? -1 : 1))) != 0) {\n var28_20 = var11_8 ^ 1;\n if (var24_16 != 0) {\n if (var28_20 != 0) {\n var29_21 = 131072L;\n var2_2 |= var29_21;\n } else {\n var2_2 |= var14_10;\n }\n }\n } else {\n var28_20 = 0;\n }\n if ((var24_16 = (int)((cfr_temp_2 = (var29_21 = var2_2 & var18_12) - var4_3) == 0L ? 0 : (cfr_temp_2 < 0L ? -1 : 1))) != 0) {\n if (var11_8 != false) {\n var24_16 = 1065353216;\n var25_18 = 1.0f;\n break block95;\n } else {\n var24_16 = 1053609165;\n var25_18 = 0.4f;\n }\n break block95;\n } else {\n var24_16 = 0;\n var25_18 = 0.0f;\n }\n break block95;\n }\n var11_8 = 0;\n var23_15 = null;\n var24_17 = false;\n var25_18 = 0.0f;\n var28_20 = 0;\n }\n var29_21 = 644L;\n var31_22 = var2_2 & var29_21;\n var33_23 = var31_22 == var4_3 ? 0 : (var31_22 < var4_3 ? -1 : 1);\n var34_24 = 524288L;\n var36_25 = 262144L;\n var38_26 = 2;\n if (var33_23 != false) {\n if (var7_5 != null) {\n var39_27 = var7_5.K();\n var40_28 /* !! */ = var39_27;\n } else {\n var41_29 = false;\n var40_28 /* !! */ = null;\n }\n var1_1.updateLiveDataRegistration(var38_26, (LiveData)var40_28 /* !! */ );\n if (var40_28 /* !! */ != null) {\n var42_30 = (Boolean)var40_28 /* !! */ .getValue();\n } else {\n var43_31 = false;\n var42_30 = null;\n }\n var44_32 = ViewDataBinding.safeUnbox((Boolean)var42_30) ^ true;\n if (var33_23 != false) {\n var2_2 = var44_32 ? (var2_2 |= var34_24) : (var2_2 |= var36_25);\n }\n if (var44_32) {\n var45_33 = 1065353216;\n var46_34 = 1.0f;\n } else {\n var45_33 = 1053609165;\n var46_34 = 0.4f;\n }\n var47_35 = var46_34;\n } else {\n var41_29 = false;\n var40_28 /* !! */ = null;\n var43_31 = false;\n var42_30 = null;\n var44_32 = false;\n var39_27 = null;\n var47_35 = 0.0f;\n }\n var48_36 = 768L;\n var50_37 = var2_2 & var48_36;\n var45_33 = var50_37 == var4_3 ? 0 : (var50_37 < var4_3 ? -1 : 1);\n if (var45_33 != false && var8_6 != null) {\n var52_38 = var1_1.C;\n if (var52_38 == null) {\n var1_1.C = var52_38 = new a2$e();\n }\n var52_38 = var52_38.b((SetStabilizerFragment$c)var8_6);\n var53_39 = var1_1.D;\n if (var53_39 == null) {\n var1_1.D = var53_39 = new a2$a();\n }\n var53_39 = var53_39.b((SetStabilizerFragment$c)var8_6);\n var54_40 = var1_1.E;\n if (var54_40 == null) {\n var1_1.E = var54_40 = new a2$b();\n }\n var54_40 = var54_40.b((SetStabilizerFragment$c)var8_6);\n var55_41 = var1_1.F;\n if (var55_41 == null) {\n var1_1.F = var55_41 = new a2$c();\n }\n var55_41 = var55_41.b((SetStabilizerFragment$c)var8_6);\n var56_42 = var1_1.G;\n if (var56_42 == null) {\n var1_1.G = var56_42 = new a2$d();\n }\n var8_6 = var56_42.b((SetStabilizerFragment$c)var8_6);\n } else {\n var57_43 = 0;\n var54_40 = null;\n var55_41 = null;\n var8_6 = null;\n var52_38 = null;\n var38_26 = 0;\n var53_39 = null;\n }\n var14_10 = 65536L & var2_2;\n var50_37 = 0L;\n var58_44 = var14_10 == var50_37 ? 0 : (var14_10 < var50_37 ? -1 : 1);\n if (var58_44 != false) {\n if (var6_4 != null) {\n var56_42 = var6_4.E;\n } else {\n var58_44 = 0;\n var56_42 = null;\n var59_45 = 0.0f;\n }\n var60_46 = 3;\n var1_1.updateLiveDataRegistration(var60_46, (LiveData)var56_42);\n if (var56_42 != null) {\n var56_42 = (Boolean)var56_42.getValue();\n } else {\n var58_44 = 0;\n var56_42 = null;\n var59_45 = 0.0f;\n }\n var58_44 = (long)ViewDataBinding.safeUnbox((Boolean)var56_42);\n } else {\n var58_44 = 0;\n var59_45 = 0.0f;\n var56_42 = null;\n }\n var61_47 = var2_2 & 32768L;\n var50_37 = 0L;\n var60_46 = (int)(var61_47 == var50_37 ? 0 : (var61_47 < var50_37 ? -1 : 1));\n if (var60_46 != 0) {\n if (var7_5 != null) {\n var40_28 /* !! */ = var7_5.K();\n }\n var63_48 = 2 != 0;\n var1_1.updateLiveDataRegistration((int)var63_48, (LiveData)var40_28 /* !! */ );\n if (var40_28 /* !! */ != null) {\n var42_30 = var7_5 = var40_28 /* !! */ .getValue();\n var42_30 = (Boolean)var7_5;\n }\n var63_48 = ViewDataBinding.safeUnbox((Boolean)var42_30);\n var41_29 = true;\n var44_32 = var63_48 ^ 1;\n var12_9 = var2_2 & var29_21;\n var61_47 = 0L;\n cfr_temp_3 = var12_9 - var61_47;\n var63_48 = (boolean)(cfr_temp_3 == 0L ? 0 : (cfr_temp_3 < 0L ? -1 : 1));\n if (var63_48) {\n var2_2 = var44_32 ? (var2_2 |= var34_24) : (var2_2 |= var36_25);\n }\n } else {\n var61_47 = 0L;\n }\n var63_48 = (boolean)((cfr_temp_4 = (var2_2 & var20_13) - var61_47) == 0L ? 0 : (cfr_temp_4 < 0L ? -1 : 1));\n var12_9 = 0x2000000L;\n if (var63_48) {\n if (var11_8 == false) {\n var44_32 = false;\n var39_27 = null;\n }\n if (var63_48) {\n if (var44_32) {\n var2_2 |= var12_9;\n } else {\n var31_22 = 0x1000000L;\n var2_2 |= var31_22;\n }\n }\n var63_48 = var44_32;\n } else {\n var63_48 = false;\n var7_5 = null;\n }\n var31_22 = var2_2 & var16_11;\n var64_49 = 0L;\n var60_46 = (int)(var31_22 == var64_49 ? 0 : (var31_22 < var64_49 ? -1 : 1));\n if (var60_46 == 0) ** GOTO lbl-1000\n if (var28_20 != 0) {\n var58_44 = 1;\n var59_45 = 1.4E-45f;\n }\n if (var60_46 != 0) {\n var66_50 = var58_44 != false ? 0x800000L : 0x400000L;\n var2_2 |= var66_50;\n }\n if (var58_44 == false) {\n var58_44 = 8;\n var59_45 = 1.1E-44f;\n } else lbl-1000:\n // 2 sources\n\n {\n var58_44 = 0;\n var59_45 = 0.0f;\n var56_42 = null;\n }\n var66_50 = 0L;\n cfr_temp_5 = (var12_9 &= var2_2) - var66_50;\n var41_29 = cfr_temp_5 == 0L ? 0 : (cfr_temp_5 < 0L ? -1 : 1);\n if (var41_29) {\n if (var6_4 != null) {\n var40_28 /* !! */ = var6_4.G;\n } else {\n var41_29 = false;\n var40_28 /* !! */ = null;\n }\n var43_31 = 5 != 0;\n var1_1.updateLiveDataRegistration((int)var43_31, (LiveData)var40_28 /* !! */ );\n if (var40_28 /* !! */ != null) {\n var40_28 /* !! */ = (Boolean)var40_28 /* !! */ .getValue();\n } else {\n var41_29 = false;\n var40_28 /* !! */ = null;\n }\n var41_29 = ViewDataBinding.safeUnbox((Boolean)var40_28 /* !! */ );\n } else {\n var41_29 = false;\n var40_28 /* !! */ = null;\n }\n var66_50 = var2_2 & var20_13;\n var31_22 = 0L;\n var43_31 = (boolean)(var66_50 == var31_22 ? 0 : (var66_50 < var31_22 ? -1 : 1));\n var66_50 = 2048L;\n if (var43_31) {\n if (!var63_48) {\n var41_29 = false;\n var40_28 /* !! */ = null;\n }\n if (var43_31) {\n if (var41_29) {\n var2_2 |= var66_50;\n } else {\n var31_22 = 1024L;\n var2_2 |= var31_22;\n }\n }\n } else {\n var41_29 = false;\n var40_28 /* !! */ = null;\n }\n var31_22 = var2_2 & var66_50;\n var64_49 = 0L;\n var43_31 = (boolean)(var31_22 == var64_49 ? 0 : (var31_22 < var64_49 ? -1 : 1));\n var31_22 = 4096L;\n if (var43_31) {\n if (var6_4 != null) {\n var68_51 = var6_4.H;\n var69_53 = var58_44;\n var70_54 = var59_45;\n } else {\n var69_53 = var58_44;\n var70_54 = var59_45;\n var60_46 = 0;\n var68_51 = null;\n }\n var58_44 = 0;\n var59_45 = 0.0f;\n var56_42 = null;\n var1_1.updateLiveDataRegistration(0, (LiveData)var68_51);\n if (var68_51 != null) {\n var68_51 = (Boolean)var68_51.getValue();\n } else {\n var60_46 = 0;\n var68_51 = null;\n }\n var60_46 = (int)ViewDataBinding.safeUnbox((Boolean)var68_51);\n if (var43_31) {\n if (var60_46 != 0) {\n var36_25 = 8192L;\n var2_2 |= var36_25;\n } else {\n var2_2 |= var31_22;\n }\n }\n } else {\n var69_53 = var58_44;\n var70_54 = var59_45;\n var58_44 = 0;\n var59_45 = 0.0f;\n var56_42 = null;\n var60_46 = 0;\n var68_52 = null;\n }\n if (var43_31 = (boolean)((cfr_temp_6 = (var31_22 = var2_2 & var31_22) - (var36_25 = 0L)) == 0L ? 0 : (cfr_temp_6 < 0L ? -1 : 1))) {\n if (var6_4 != null) {\n var6_4 = var6_4.I;\n } else {\n var71_55 = false;\n var6_4 = null;\n }\n var43_31 = true;\n var1_1.updateLiveDataRegistration((int)var43_31, (LiveData)var6_4);\n if (var6_4 != null) {\n var22_14 = var6_4 = var6_4.getValue();\n var22_14 = (Boolean)var6_4;\n }\n var71_55 = ViewDataBinding.safeUnbox(var22_14);\n } else {\n var43_31 = true;\n var71_55 = false;\n var6_4 = null;\n }\n var72_56 = var2_2 & var66_50;\n var66_50 = 0L;\n var45_33 = var72_56 == var66_50 ? 0 : (var72_56 < var66_50 ? -1 : 1);\n if (var45_33 != false) {\n if (var60_46 != 0) {\n var71_55 = var43_31;\n }\n } else {\n var71_55 = false;\n var6_4 = null;\n }\n if (!(var43_31 = (boolean)((cfr_temp_7 = (var20_13 = var2_2 & var20_13) - var66_50) == 0L ? 0 : (cfr_temp_7 < 0L ? -1 : 1))) || !var41_29) {\n var71_55 = false;\n var6_4 = null;\n }\n var14_10 = var2_2 & var18_12;\n var41_29 = var14_10 == var66_50 ? 0 : (var14_10 < var66_50 ? -1 : 1);\n var58_44 = 11;\n var59_45 = 1.5E-44f;\n if (var41_29) {\n var1_1.a.setEnabled((boolean)var11_8);\n var1_1.f.setEnabled((boolean)var11_8);\n var1_1.g.setEnabled((boolean)var11_8);\n var1_1.t.setEnabled((boolean)var11_8);\n var1_1.u.setEnabled((boolean)var11_8);\n var1_1.x.setEnabled((boolean)var11_8);\n var1_1.y.setEnabled((boolean)var11_8);\n var1_1.z.setEnabled((boolean)var11_8);\n var1_1.A.setEnabled((boolean)var11_8);\n var1_1.h.setEnabled((boolean)var11_8);\n var1_1.i.setEnabled((boolean)var11_8);\n var1_1.j.setEnabled((boolean)var11_8);\n var1_1.k.setEnabled((boolean)var11_8);\n var1_1.l.setEnabled((boolean)var11_8);\n var40_28 /* !! */ = var1_1.m;\n var40_28 /* !! */ .setEnabled((boolean)var11_8);\n var11_8 = ViewDataBinding.getBuildSdkInt();\n if (var11_8 >= var58_44) {\n var23_15 = var1_1.s;\n var23_15.setAlpha(var25_18);\n }\n }\n if ((var11_8 = (cfr_temp_8 = (var74_57 = var2_2 & var48_36) - (var18_12 = 0L)) == 0L ? 0 : (cfr_temp_8 < 0L ? -1 : 1)) != false) {\n var23_15 = var1_1.f;\n var23_15.setOnClickListener((View.OnClickListener)var8_6);\n var1_1.g.setOnClickListener((View.OnClickListener)var53_39);\n var8_6 = var1_1.v;\n var8_6.setOnClickListener((View.OnClickListener)var54_40);\n var1_1.w.setOnClickListener((View.OnClickListener)var55_41);\n var54_40 = var1_1.y;\n var54_40.setOnClickListener(var52_38);\n }\n if ((var57_43 = (cfr_temp_9 = (var4_3 = var2_2 & var29_21) - (var76_58 = 0L)) == 0L ? 0 : (cfr_temp_9 < 0L ? -1 : 1)) != 0 && (var57_43 = ViewDataBinding.getBuildSdkInt()) >= var58_44) {\n var1_1.v.setAlpha(var47_35);\n var54_40 = var1_1.w;\n var54_40.setAlpha(var47_35);\n }\n if ((var57_43 = (int)((cfr_temp_10 = (var4_3 = 724L & var2_2) - (var76_58 = 0L)) == 0L ? 0 : (cfr_temp_10 < 0L ? -1 : 1))) != 0) {\n var54_40 = var1_1.v;\n var54_40.setEnabled(var63_48);\n }\n if (var43_31) {\n var54_40 = var1_1.w;\n var54_40.setEnabled(var71_55);\n }\n if (var71_55 = (cfr_temp_11 = (var2_2 &= var16_11) - (var4_3 = 0L)) == 0L ? 0 : (cfr_temp_11 < 0L ? -1 : 1)) {\n var6_4 = var1_1.B;\n var58_44 = var69_53;\n var59_45 = var70_54;\n var6_4.setVisibility((int)var69_53);\n }\n }", "public abstract TypeBindings bindingsForBeanType();", "public Variable[] getStackVariables();", "public boolean needsBinding(){\n\t\tArrayList<String> bindVars = getNeedBindingVars();\n\t\tif(bindVars.isEmpty())\n\t\t\treturn false;\n\t\telse return true;\n\t}", "boolean hasIsBinding();", "IIndexFragmentBinding[] findBindings(char[] name, boolean filescope, IndexFilter filter, IProgressMonitor monitor) throws CoreException;", "void setBind() {\n for (int i = 1; i < size(); i++) {\n Exp f = get(i);\n if (f.isFilter() && f.size() > 0) {\n Exp bind = f.first();\n if (bind.type() == OPT_BIND\n // no bind (?x = ?y) in case of JOIN\n && (!Query.testJoin || bind.isBindCst())) {\n int j = i - 1;\n while (j > 0 && get(j).isFilter()) {\n j--;\n }\n if (j >= 0) {\n Exp g = get(j);\n if ((g.isEdge() || g.isPath())\n && (bind.isBindCst() ? g.bind(bind.first().getNode()) : true)) {\n bind.status(true);\n g.setBind(bind);\n }\n }\n }\n }\n }\n }", "public interface YCoolBindings {\n /**\n * The porpouse of this method is to store any bind, because depending on\n * the circunstances it can be caught by garbadge collector.\n * @param bind_name Binding name\n * @param bind Bind itself\n */\n public void yAddBind(String bind_name, ObservableValue<? extends Number> bind);\n\n /**\n * @param pivo The porcentage point of the object, for example, 0 is the\n * leftmost point of the object, 0.5 is the middle and 1 is the rightmost\n * point (it is not limited from 0 to 1, you can go further).\n * @return A DoubleBinding that is linked to the X location of the object, in\n * other words, whenever the X location of the object changes, the\n * DoubleBinding will change automaticaly with it. (this bind is linked to\n * the X location but the opposite is not true).\n */\n public DoubleBinding yTranslateXbind(double pivo);\n\n /**\n * @param pivo The porcentage point of the object, for example, 0 is the\n * upper point of the object, 0.5 is the middle and 1 is the bottom point (it\n * is not limited from 0 to 1, you can go further).\n * @return A DoubleBinding that is linked to the Y location of the object, in\n * other words, whenever the Y location of the object changes, the\n * DoubleBinding will change automaticaly with it. (this bind is linked to\n * the Y location but the opposite is not true).\n */\n public DoubleBinding yTranslateYbind(double pivo);\n\n /**\n * Links the X position of the object with an observable value, so whenever\n * it changes, the object's X position will change too.\n *\n * @param bind_name The name for this link.\n * @param X The observable value to link the object's X position.\n * @param pivo The porcentage point of the object, for example, 0 is the\n * leftmost point of the object, 0.5 is the middle and 1 is the rightmost\n * point (it is not limited from 0 to 1, you can go further).\n */\n public void yBindTranslateX(String bind_name, ObservableValue<? extends Number> X, double pivo);\n\n /**\n * Links the Y position of the object with an observable value, so whenever\n * it changes, the object's Y position will change too.\n *\n * @param bind_name The name for this link.\n * @param Y The observable value to link the object's Y position.\n * @param pivo The porcentage point of the object, for example, 0 is the\n * upper point of the object, 0.5 is the middle and 1 is the bottom point (it\n * is not limited from 0 to 1, you can go further).\n */\n public void yBindTranslateY(String bind_name, ObservableValue<? extends Number> Y, double pivo);\n\n /**\n * @param stroke_included If you want the stroke of the object to be part of\n * the new width, mark this as true.\n * @return A DoubleBinding that is linked to the width of the object, in\n * other words, whenever the width of the object changes, the DoubleBinding\n * will change automaticaly with it. (this bind is linked to the width but\n * the opposite is not true).\n */\n public DoubleBinding yWidthBind(boolean stroke_included);\n\n /**\n * @param stroke_included If you want the stroke of the object to be part of\n * the new height, mark this as true.\n * @return A DoubleBinding that is linked to the height of the object, in\n * other words, whenever the height of the object changes, the DoubleBinding\n * will change automaticaly with it. (this bind is linked to the height but\n * the opposite is not true).\n */\n public DoubleBinding yHeightBind(boolean stroke_included);\n\n /**\n * Links the width of the object with an observable value, so whenever it\n * changes, the object's width will change too.\n *\n * @param bind_name The name for this link.\n * @param width The observable value to link the object's width.\n * @param stroke_included If you want the stroke of the object to be part of\n * the new width, mark this as true.\n */\n public void yBindWidth(String bind_name, ObservableValue<? extends Number> width, boolean stroke_included);\n\n /**\n * Links the height of the object with an observable value, so whenever it\n * changes, the object's height will change too.\n *\n * @param bind_name The name for this link.\n * @param height The observable value to link the object's height.\n * @param stroke_included If you want the stroke of the object to be part of\n * the new height, mark this as true.\n */\n public void yBindHeight(String bind_name, ObservableValue<? extends Number> height, boolean stroke_included);\n\n /**\n * Breaks any bind created previously based on the name of the bind.\n * @param bind_name Name of the bind to be broken.\n */\n public void yUnbind(String bind_name);\n}", "public void executeBindings() {\n block43: {\n block45: {\n block48: {\n block47: {\n block46: {\n var1_1 = this;\n synchronized (this) {\n var2_2 = this.u;\n this.u = var4_3 = 0L;\n }\n var6_4 = this.n;\n var7_5 = this.m;\n var8_6 = (long)63 & var2_2;\n var10_7 /* !! */ = var8_6 == var4_3 ? 0 : (var8_6 < var4_3 ? -1 : 1);\n var11_8 = 42;\n var13_9 = 57;\n var15_10 = 41;\n var17_11 = 0;\n var18_12 = null;\n if (var10_7 /* !! */ == false) break block45;\n var19_13 = var2_2 & var13_9;\n cfr_temp_0 = var19_13 - var4_3;\n var10_7 /* !! */ = (long)(cfr_temp_0 == 0L ? 0 : (cfr_temp_0 < 0L ? -1 : 1));\n if (var10_7 /* !! */ == false) break block46;\n if (var6_4 != null) {\n var21_14 = var6_4.f;\n } else {\n var10_7 /* !! */ = 0;\n var21_14 = null;\n }\n var1_1.updateLiveDataRegistration(0, (LiveData)var21_14);\n if (var21_14 != null) {\n var21_14 = (Boolean)var21_14.getValue();\n } else {\n var10_7 /* !! */ = 0;\n var21_14 = null;\n }\n var10_7 /* !! */ = (long)ViewDataBinding.safeUnbox((Boolean)var21_14);\n var19_13 = var2_2 & var15_10;\n var22_15 = var19_13 == var4_3 ? 0 : (var19_13 < var4_3 ? -1 : 1);\n if (var22_15 != 0) {\n var19_13 = var10_7 /* !! */ != false ? 512L : 256L;\n var2_2 |= var19_13;\n }\n if ((var22_15 = (cfr_temp_1 = (var19_13 = var2_2 & var15_10) - var4_3) == 0L ? 0 : (cfr_temp_1 < 0L ? -1 : 1)) == 0) break block47;\n if (var10_7 /* !! */ != false) {\n var22_15 = 1065353216;\n var23_16 = 1.0f;\n } else {\n var22_15 = 1053609165;\n var23_16 = 0.4f;\n }\n var24_18 = var22_15;\n var25_19 = var23_16;\n break block48;\n }\n var10_7 /* !! */ = 0;\n var21_14 = null;\n }\n var24_18 = 0;\n var25_19 = 0.0f;\n }\n var19_13 = var2_2 & var11_8;\n var22_15 = var19_13 == var4_3 ? 0 : (var19_13 < var4_3 ? -1 : 1);\n if (var22_15 == 0) ** GOTO lbl-1000\n if (var6_4 != null) {\n var26_20 = var6_4.h;\n } else {\n var22_15 = 0;\n var23_16 = 0.0f;\n var26_20 = null;\n }\n var17_11 = 1;\n var1_1.updateLiveDataRegistration(var17_11, var26_20);\n if (var26_20 != null) {\n var18_12 = (String)var26_20.getValue();\n } else lbl-1000:\n // 2 sources\n\n {\n var17_11 = 0;\n var18_12 = null;\n }\n var27_22 = 44;\n var29_23 = var2_2 & var27_22;\n var22_15 = var29_23 == var4_3 ? 0 : (var29_23 < var4_3 ? -1 : 1);\n if (var22_15 != 0) {\n if (var6_4 != null) {\n var6_4 = var6_4.g;\n } else {\n var31_24 = 0;\n var32_25 = 0.0f;\n var6_4 = null;\n }\n var33_26 = 2;\n var34_27 = 2.8E-45f;\n var1_1.updateLiveDataRegistration(var33_26, (LiveData)var6_4);\n if (var6_4 != null) {\n var6_4 = (Boolean)var6_4.getValue();\n } else {\n var31_24 = 0;\n var32_25 = 0.0f;\n var6_4 = null;\n }\n var31_24 = (int)ViewDataBinding.safeUnbox((Boolean)var6_4);\n if (var22_15 != 0) {\n if (var31_24 != 0) {\n var2_2 |= 128L;\n var35_29 = 2048L;\n } else {\n var2_2 |= (long)64;\n var35_29 = 1024L;\n }\n var2_2 |= var35_29;\n }\n var33_26 = 8;\n var34_27 = 1.1E-44f;\n if (var31_24 != 0) {\n var22_15 = var33_26;\n var23_16 = var34_27;\n } else {\n var22_15 = 0;\n var23_16 = 0.0f;\n var26_20 = null;\n }\n if (var31_24 != 0) {\n var37_30 = 0;\n var38_31 = 0.0f;\n } else {\n var37_30 = var33_26;\n var38_31 = var34_27;\n }\n var33_26 = (int)var10_7 /* !! */ ;\n var31_24 = var24_18;\n var32_25 = var25_19;\n var21_14 = var18_12;\n var17_11 = var22_15;\n var22_15 = var37_30;\n var23_16 = var38_31;\n break block43;\n } else {\n var33_26 = var10_7 /* !! */ ;\n var31_24 = var24_18;\n var32_25 = var25_19;\n var22_15 = 0;\n var23_16 = 0.0f;\n var26_20 = null;\n var21_14 = var18_12;\n var17_11 = 0;\n var18_12 = null;\n }\n break block43;\n }\n var31_24 = 0;\n var32_25 = 0.0f;\n var6_4 = null;\n var17_11 = 0;\n var18_12 = null;\n var10_7 /* !! */ = 0;\n var21_14 = null;\n var33_26 = 0;\n var34_28 = 0.0f;\n var22_15 = 0;\n var23_17 = 0.0f;\n var26_21 = null;\n }\n var39_32 = (cfr_temp_2 = (var13_9 &= var2_2) - var4_3) == 0L ? 0 : (cfr_temp_2 < 0L ? -1 : 1);\n var40_33 = 48;\n if (var39_32 != false) {\n if (var7_5 != null) {\n var42_34 = var1_1.q;\n if (var42_34 == null) {\n var1_1.q = var42_34 = new h$d();\n }\n var42_34 = var42_34.b((LoginQuickFragment$b)var7_5);\n } else {\n var42_34 = null;\n }\n var43_35 = var2_2 & var40_33;\n var24_18 = var43_35 == var4_3 ? 0 : (var43_35 < var4_3 ? -1 : 1);\n if (var24_18 != 0 && var7_5 != null) {\n var45_36 = var1_1.r;\n if (var45_36 == null) {\n var1_1.r = var45_36 = new h$a();\n }\n var45_36 = var45_36.b((LoginQuickFragment$b)var7_5);\n var46_37 = var1_1.s;\n if (var46_37 == null) {\n var1_1.s = var46_37 = new h$b();\n }\n var46_37 = var46_37.b((LoginQuickFragment$b)var7_5);\n var47_38 /* !! */ = var1_1.t;\n if (var47_38 /* !! */ == null) {\n var47_38 /* !! */ = new h$c();\n var1_1.t = var47_38 /* !! */ ;\n }\n var7_5 = var47_38 /* !! */ .b((LoginQuickFragment$b)var7_5);\n } else {\n var48_39 = 0;\n var7_5 = null;\n var45_36 = null;\n var46_37 = null;\n }\n } else {\n var48_39 = 0;\n var7_5 = null;\n var45_36 = null;\n var46_37 = null;\n var42_34 = null;\n }\n var15_10 = var2_2 & var40_33;\n var49_40 = var15_10 == var4_3 ? 0 : (var15_10 < var4_3 ? -1 : 1);\n if (var49_40 != false) {\n var1_1.a.setOnClickListener((View.OnClickListener)var42_34);\n var47_38 /* !! */ = var1_1.c;\n var47_38 /* !! */ .setOnClickListener((View.OnClickListener)var7_5);\n var1_1.e.setOnClickListener((View.OnClickListener)var45_36);\n var7_5 = var1_1.l;\n var7_5.setOnClickListener((View.OnClickListener)var46_37);\n }\n if ((var48_39 = (cfr_temp_3 = (var11_8 = (long)44 & var2_2) - var4_3) == 0L ? 0 : (cfr_temp_3 < 0L ? -1 : 1)) != 0) {\n var1_1.a.setVisibility(var22_15);\n var1_1.b.setVisibility(var17_11);\n var1_1.c.setVisibility(var17_11);\n var1_1.d.setVisibility(var22_15);\n var1_1.p.setVisibility(var17_11);\n var1_1.g.setVisibility(var17_11);\n var1_1.h.setVisibility(var17_11);\n var1_1.i.setVisibility(var22_15);\n var7_5 = var1_1.j;\n var7_5.setVisibility(var17_11);\n }\n if ((var17_11 = (int)((cfr_temp_4 = (var50_41 = (long)32 & var2_2) - var4_3) == 0L ? 0 : (cfr_temp_4 < 0L ? -1 : 1))) != 0) {\n var18_12 = var1_1.b;\n var7_5 = d.v.a.c.b(this.getRoot().getContext());\n var18_12.setText((CharSequence)var7_5);\n }\n if ((var17_11 = (int)((cfr_temp_5 = (var50_41 = (long)41 & var2_2) - var4_3) == 0L ? 0 : (cfr_temp_5 < 0L ? -1 : 1))) != 0 && (var17_11 = ViewDataBinding.getBuildSdkInt()) >= (var48_39 = 11)) {\n var18_12 = var1_1.h;\n var18_12.setAlpha(var32_25);\n }\n if (var39_32 != false) {\n var6_4 = var1_1.h;\n ViewBindingAdapter.setOnClick((View)var6_4, var42_34, (boolean)var33_26);\n }\n if ((var31_24 = (int)((cfr_temp_6 = (var2_2 &= (var50_41 = (long)42)) - var4_3) == 0L ? 0 : (cfr_temp_6 < 0L ? -1 : 1))) != 0) {\n var6_4 = var1_1.i;\n l.a.q.g0.u.n((TextView)var6_4, (String)var21_14, null, null);\n }\n }", "public ArrayList<JavaScope> getArguments() {\n\t\tArrayList<JavaScope> ret = new ArrayList<JavaScope>();\n\t\tfor (TypeContainer t : this.sig)\n\t\t\tret.add(t.item);\n\t\t\n\t\treturn ret;\n\t}", "public DCPList getBinding() {\n return binding;\n }", "public java.util.List<? extends com.google.api.HttpRuleOrBuilder> \n getAdditionalBindingsOrBuilderList() {\n return additionalBindings_;\n }", "public final FormalParamNode[][] getBdedQuantSymbolLists() {\n return boundedBoundSymbols;\n }", "public void bindArguments() {\n\n\t\tif (this.arguments != null) {\n\t\t\t// by default arguments in abstract/native methods are considered to be used (no complaint is expected)\n\t\t\tif (this.binding == null) {\n\t\t\t\tfor (int i = 0, length = this.arguments.length; i < length; i++) {\n\t\t\t\t\tthis.arguments[i].bind(this.scope, null, true);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tboolean used = this.binding.isAbstract() || this.binding.isNative();\n\t\t\tfor (int i = 0, length = this.arguments.length; i < length; i++) {\n\t\t\t\tArgument argument = this.arguments[i];\n\t\t\t\targument.bind(this.scope, this.binding.parameters[i], used);\n\t\t\t\tif (argument.annotations != null) {\n\t\t\t\t\tthis.binding.tagBits |= TagBits.HasParameterAnnotations;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean hasPendingBindings() {\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.aot;\t Catch:{ all -> 0x0021 }\n r2 = 0;\n r4 = 1;\n r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r5 == 0) goto L_0x000c;\n L_0x000a:\n monitor-exit(r6);\t Catch:{ all -> 0x0021 }\n return r4;\n L_0x000c:\n monitor-exit(r6);\t Catch:{ all -> 0x0021 }\n r0 = r6.dvj;\n r0 = r0.hasPendingBindings();\n if (r0 == 0) goto L_0x0016;\n L_0x0015:\n return r4;\n L_0x0016:\n r0 = r6.dvg;\n r0 = r0.hasPendingBindings();\n if (r0 == 0) goto L_0x001f;\n L_0x001e:\n return r4;\n L_0x001f:\n r0 = 0;\n return r0;\n L_0x0021:\n r0 = move-exception;\n monitor-exit(r6);\t Catch:{ all -> 0x0021 }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.kyc.b.v.hasPendingBindings():boolean\");\n }", "public static DynamicExpression makeDynamic(Class type, CallSiteBinder binder, Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public interface ScriptBinding\n{\n /**\n * Returns the list of variables this ScriptBinding provides, mapped by variable name.\n * @return The list of variables, or null if no variable is provided.\n */\n public Map<String, Object> getVariables();\n \n /**\n * Returns the list of variables descriptions, mapped by variable name.\n * This list does not have to match the getVariables return value, but the description is used to inform the user of the existence and usability of each variable.\n * @return The list of variables descriptions, or null if no description is provided.\n */\n public Map<String, I18nizableText> getVariablesDescriptions();\n\n /**\n * Allows clean up of variables created during the getVariables call.\n * @param variables The map of variables.\n */\n public void cleanVariables(Map<String, Object> variables);\n \n /**\n * Returns the JavaScript functions to inject at the start of the script, in the form of a single String prepended to the script.\n * @return The functions text, or null if no function is provided.\n */\n public String getFunctions();\n \n /**\n * Returns the list of functions descriptions, mapped by function name.\n * This list does not have to match the functions returned by getFunctions, but the description is used to inform the user of the existence and usability of each function.\n * @return The list of functions descriptions, or null if no description is provided.\n */\n public Map<String, I18nizableText> getFunctionsDescriptions();\n \n /**\n * Process the script result if there are any specificities for this console data.\n * @param result The result\n * @return The result processed, or null if this console data does not have any processing to do. \n * @throws ScriptException If a processing error occurs.\n */\n public Object processScriptResult(Object result) throws ScriptException;\n}", "public com.google.api.HttpRule getAdditionalBindings(int index) {\n return additionalBindings_.get(index);\n }", "public abstract BindPredictor getBindPredictor();", "public void executeBindings() {\n long l10;\n long l11;\n long l12;\n Button button;\n long l13;\n li$b li$b;\n li$a li$a;\n boolean bl2;\n int n10;\n int n11;\n long l14;\n long l15;\n Object object;\n boolean bl3;\n Object object2;\n long l16;\n long l17;\n li li2;\n block18: {\n block17: {\n block16: {\n boolean bl4;\n li2 = this;\n synchronized (this) {\n l17 = this.m;\n this.m = l16 = 0L;\n }\n object2 = this.g;\n bl3 = this.h;\n object = this.f;\n l15 = 9;\n long l18 = l17 & l15;\n l14 = l18 == l16 ? 0 : (l18 < l16 ? -1 : 1);\n n11 = 8;\n n10 = 0;\n if (l14 == false) break block16;\n if (object2 != null) {\n bl4 = ((VersionInfo)object2).isForceUpdate();\n object2 = ((VersionInfo)object2).getNoticeLine();\n } else {\n bl2 = false;\n object2 = null;\n bl4 = false;\n li$a = null;\n }\n if (l14 != false) {\n long l19 = bl4 ? (long)32 : (long)16;\n l17 |= l19;\n }\n if (!bl4) break block17;\n l14 = n11;\n break block18;\n }\n bl2 = false;\n object2 = null;\n }\n l14 = 0;\n }\n long l20 = 10;\n long l21 = l17 & l20;\n long l22 = l21 == l16 ? 0 : (l21 < l16 ? -1 : 1);\n if (l22 != false) {\n if (l22 != false) {\n l21 = bl3 ? 128L : (long)64;\n l17 |= l21;\n }\n if (bl3) {\n n11 = 0;\n li$b = null;\n }\n n10 = n11;\n }\n if ((bl3 = (l13 = (l21 = l17 & (long)12) - l16) == 0L ? 0 : (l13 < 0L ? -1 : 1)) && object != null) {\n li$b = li2.k;\n if (li$b == null) {\n li2.k = li$b = new li$b();\n }\n li$b = li$b.b((c$a)object);\n li$a = li2.l;\n if (li$a == null) {\n li2.l = li$a = new li$a();\n }\n object = li$a.b((c$a)object);\n } else {\n object = null;\n n11 = 0;\n li$b = null;\n }\n if (bl3) {\n li2.a.setOnClickListener((View.OnClickListener)object);\n button = li2.b;\n button.setOnClickListener((View.OnClickListener)li$b);\n }\n if (bl3 = (l12 = (l11 = l17 & l15) - l16) == 0L ? 0 : (l12 < 0L ? -1 : 1)) {\n li2.a.setVisibility((int)l14);\n button = li2.j;\n u.n((TextView)button, (String)object2, null, null);\n object2 = li2.e;\n object2.setVisibility((int)l14);\n }\n if (bl2 = (l10 = (l17 &= (l11 = (long)10)) - l16) == 0L ? 0 : (l10 < 0L ? -1 : 1)) {\n object2 = li2.c;\n object2.setVisibility(n10);\n }\n }", "public java.util.List<com.google.api.HttpRule> getAdditionalBindingsList() {\n return java.util.Collections.unmodifiableList(\n instance.getAdditionalBindingsList());\n }", "public boolean hasPendingBindings() {\n /*\n r5 = this;\n monitor-enter(r5);\n r0 = r5.mDirtyFlags;\t Catch:{ all -> 0x0018 }\n r2 = 0;\n r4 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n r0 = 1;\n if (r4 == 0) goto L_0x000c;\n L_0x000a:\n monitor-exit(r5);\t Catch:{ all -> 0x0018 }\n return r0;\n L_0x000c:\n monitor-exit(r5);\t Catch:{ all -> 0x0018 }\n r1 = r5.include;\n r1 = r1.hasPendingBindings();\n if (r1 == 0) goto L_0x0016;\n L_0x0015:\n return r0;\n L_0x0016:\n r0 = 0;\n return r0;\n L_0x0018:\n r0 = move-exception;\n monitor-exit(r5);\t Catch:{ all -> 0x0018 }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: ru.rocketbank.r2d2.databinding.ActivityDiscountDetailsBinding.hasPendingBindings():boolean\");\n }", "public Variable[] getLocals();", "protected List <Binding> getBindings(boolean doCreate)\n{\n List <Binding> bindings = (List)get(\"RibsBindings\");\n if(bindings==null && doCreate)\n put(\"RibsBindings\", bindings = new ArrayList());\n return bindings;\n}", "public interface KeyBindingContext extends SoliloquyClass {\n /**\n * @return A List of the KeyBindings in this context\n */\n List<KeyBinding> bindings();\n\n /**\n * @return True, if and only if all lower contexts' bindings are blocked\n */\n boolean getBlocksAllLowerBindings();\n\n /**\n * @param blocksLowerBindings Sets whether all lower contexts' bindings are blocked\n */\n void setBlocksAllLowerBindings(boolean blocksLowerBindings);\n}", "Code compStmt(final Code andThen, final mil.Block breakBlock, final mil.Block contBlock) { // var = init\n return init.compTail(new TailCont() {\n Code with(final Tail t) {\n return new Bind(ve.getVar(), t, andThen);\n }\n });\n }", "public static DynamicExpression makeDynamic(Class type, CallSiteBinder binder, Expression expression0, Expression expression1, Expression expression2) { throw Extensions.todo(); }", "@Override\n public ExpressionToStringContext withBindings(Map<String, String> bindings) {\n SerializationContext serializationContext = new SerializationContext(getFunctions(), bindings, typeContext(), serializedFunctions());\n return new ExpressionToStringContext(serializationContext, wrappedToStringContext, path, parent);\n }", "public int getAdditionalBindingsCount() {\n return additionalBindings_.size();\n }", "public void resolveTwoWayBindings()\n {\n // If there are any two-way bindings, only partially built, now is the time\n // to finish them.\n completeTwoWayBindings();\n \n Map<String, BindingExpression> destinationMap = new HashMap<String, BindingExpression>();\n\n for (BindingExpression bindingExpression : bindingExpressions)\n {\n // Note that this just strips the parens on the edges of the expression.\n // It's possible the expression was an inline expression which got parsed to\n // something like '(a.text) + \".\" + (b.text)'. Since this would never be part of a two-way bind\n // it probably doesn't matter that when the parens are stripped it ends up\n // as 'a.text) + \".\" + (b.text'.\n String sourceExpression = TextGen.stripParens(bindingExpression.getSourceExpression());\n \n String destinationPath = bindingExpression.getDestinationPath(false);\n BindingExpression match = destinationMap.get(sourceExpression);\n\n if ((match != null) && destinationPath.equals(TextGen.stripParens(match.getSourceExpression())))\n {\n bindingExpression.setTwoWayCounterpart(match);\n }\n else\n {\n destinationMap.put(destinationPath, bindingExpression);\n } \n }\n }", "public ArrayList<Predicate> expandInConjunctiveFormula(){\n\t\tArrayList<Predicate> formula = new ArrayList<Predicate>();\n\t\t\n\t\t// (x, (0,2)) (y,1) \n\t\t//holds positions of the vars\n\t\tHashtable<String,ArrayList<String>> pos = new Hashtable<String,ArrayList<String>>();\n\t\t//(const3, \"10\")\n\t\t//holds vars that have constants assigned\n\t\tHashtable<String,String> constants = new Hashtable<String,String>();\n\t\t\n\t\tRelationPredicate p = this.clone();\n\t\t//rename each term to a unique name\n\t\tfor(int i=0; i<p.terms.size(); i++){\n\t\t\tTerm t = p.terms.get(i);\n\t\t\tt.changeVarName(i);\n\n\t\t}\n\t\tformula.add(p);\n\n\t\tArrayList<String> attrsOld = getVarsAndConst();\n\t\tArrayList<String> attrsNew = p.getVarsAndConst();\n\n\t\t\n\t\tfor(int i=0; i<attrsOld.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tif(t instanceof ConstTerm){\n\t\t\t\t//get the constant value\n\t\t\t\tconstants.put(attrsNew.get(i),t.getVal());\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> posVals = pos.get(attrsOld.get(i));\n\t\t\tif(posVals==null){\n\t\t\t\tposVals=new ArrayList<String>();\n\t\t\t\tpos.put(attrsOld.get(i),posVals);\n\t\t\t}\n\t\t\tposVals.add(String.valueOf(i));\n\n\t\t}\n\t\t\n\t\t//System.out.println(\"Position of attrs=\" + pos + \" Constants= \" + constants);\n\t\n\t\t//deal with var equality x0=x2\n\t\tIterator<String> it = pos.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tArrayList<String> vals = pos.get(key);\n\t\t\tif(vals.size()>1){\n\t\t\t\t//add x0=x2 & x2=x9, etc\n\t\t\t\tfor(int i=1; i<vals.size(); i++){\n\t\t\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i)));\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i+1)));\n\t\t\t\t\tVarTerm v1 = new VarTerm(key);\n\t\t\t\t\tv1.changeVarName(Integer.valueOf(vals.get(i-1)).intValue());\n\t\t\t\t\tp1.addTerm(v1);\n\t\t\t\t\tVarTerm v2 = new VarTerm(key);\n\t\t\t\t\tv2.changeVarName(Integer.valueOf(vals.get(i)).intValue());\n\t\t\t\t\tp1.addTerm(v2);\n\t\t\t\t\tformula.add(p1);\n\t\t\t\t\t//i=i+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//deal with constants\n\t\tit = constants.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tString val = constants.get(key);\n\t\t\t//it's a constant\n\t\t\t//add const3=\"10\"\n\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\tp1.addTerm(new VarTerm(key));\n\t\t\tp1.addTerm(new ConstTerm(val));\n\t\t\tformula.add(p1);\n\t\t}\n\t\treturn formula;\n\t}", "private void registerBindings(){\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.programming.project.name\", String.class, this.kdtEntrys, \"curProject.text\");\r\n\t\tdataBinder.registerBinding(\"entry\", com.kingdee.eas.fdc.contract.contractsplit.ContractPCSplitBillEntryInfo.class, this.kdtEntrys, \"userObject\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.longNumber\", String.class, this.kdtEntrys, \"pcNumber.text\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.name\", String.class, this.kdtEntrys, \"pcName.text\");\r\n\t\tdataBinder.registerBinding(\"entry.scale\", java.math.BigDecimal.class, this.kdtEntrys, \"scale.text\");\r\n\t\tdataBinder.registerBinding(\"entry.amount\", java.math.BigDecimal.class, this.kdtEntrys, \"amount.text\");\r\n\t\tdataBinder.registerBinding(\"entry.programmingContract.amount\", java.math.BigDecimal.class, this.kdtEntrys, \"pcAmount.text\");\r\n\t\tdataBinder.registerBinding(\"amount\", java.math.BigDecimal.class, this.txtAmount, \"value\");\r\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\r\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\t\t\r\n\t}", "public com.google.api.HttpRule getAdditionalBindings(int index) {\n return instance.getAdditionalBindings(index);\n }", "static boolean ForBindingDetails(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ForBindingDetails\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_);\n r = VarName(b, l + 1);\n r = r && ForBindingDetails_1(b, l + 1);\n r = r && ForBindingDetails_2(b, l + 1);\n r = r && ForBindingDetails_3(b, l + 1);\n r = r && consumeToken(b, K_IN);\n r = r && ExprSingle(b, l + 1);\n exit_section_(b, l, m, r, false, FLWORExprRecover_parser_);\n return r;\n }", "CloseableIteration<BindingSet, QueryEvaluationException> evaluate(TupleExpr expr, BindingSet bindings) {\n BindingSetPipeIterator root = new BindingSetPipeIterator();\n evaluateTupleExpr(root.pipe, expr, bindings);\n return root;\n }", "@Override\n\tpublic Object get(String name, Scriptable start) {\n\t\tObject result = super.get(name, start);\n\t\tif(result == NOT_FOUND && unwrap().appliedBindings.size() > 0) {\n\t\t\tfor(XBLBinding binding : unwrap().appliedBindings) {\n\t\t\t\t// Check fields:\n\t\t\t\tXBLField field = binding.getField(name);\n\t\t\t\tif(field != null && field.getInitializer() != null) {\n\t\t\t\t\tFunction init = asFunction(field.getInitializer());\n\t\t\t\t\tfield.setInitializer(init);\n\t\t\t\t\tresult = init.call(Context.getCurrentContext(), getParentScope(), this, new Object[]{});\n\t\t\t\t\tput(name, this, result);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Check property getters:\n\t\t\t\tXBLProperty prop = binding.getProperty(name);\n\t\t\t\tif(prop != null && prop.getGetter() != null) {\n\t\t\t\t\tFunction getter = asFunction(prop.getGetter());\n\t\t\t\t\tprop.setGetter(getter);\n\t\t\t\t\tresult = getter.call(Context.getCurrentContext(), getParentScope(), this, new Object[]{});\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Check methods:\n\t\t\t\tXBLMethod method = binding.getMethod(name);\n\t\t\t\tif(method != null && method.getBody() != null) {\n\t\t\t\t\tresult = asFunction(method.getBody());\n\t\t\t\t\tmethod.setBody(result);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn convertReturnValue(result);\n\t}", "private void applyBindings(Bindings bindings) {\n\t\tfor (Map.Entry<String, Object> binding : bindings.entrySet()) {\n\t\t\tluaState.pushJavaObject(binding.getValue());\n\t\t\tString variableName = binding.getKey();\n\t\t\tint lastDotIndex = variableName.lastIndexOf('.');\n\t\t\tif (lastDotIndex >= 0) {\n\t\t\t\tvariableName = variableName.substring(lastDotIndex + 1);\n\t\t\t}\n\t\t\tluaState.setGlobal(variableName);\n\t\t}\n\t}", "private int countConditions (CtMethod<?> ifin){\n int conditionCount = 0;\n List<String> foundConditions = new ArrayList<>();\n List<CtIf> ifCalls = ifin.getElements(new TypeFilter<CtIf>(CtIf.class));\n for (CtIf ifObject : ifCalls){\n if (ifObject.getCondition() != null){\n if (ifObject.getCondition().toString().contains(\"&&\") || ifObject.getCondition().toString().contains(\"||\")){\n if (!foundConditions.contains(ifObject.getCondition().toString())) {\n foundConditions.add(ifObject.getCondition().toString());\n conditionCount++;\n }\n }\n }\n }\n List<CtWhile> whileCalls = ifin.getElements(new TypeFilter<CtWhile>(CtWhile.class));\n for (CtWhile whileObject : whileCalls){\n if (whileObject.getLoopingExpression() != null){\n if (whileObject.getLoopingExpression().toString().contains(\"&&\") || whileObject.getLoopingExpression().toString().contains(\"||\")){\n if (!foundConditions.contains(whileObject.getLoopingExpression().toString())) {\n foundConditions.add(whileObject.getLoopingExpression().toString());\n conditionCount++;\n }\n }\n }\n }\n return conditionCount;\n }", "IIndexFragmentBinding[] findBindingsForPrefix(char[] prefix, boolean filescope, IndexFilter filter, IProgressMonitor monitor) throws CoreException;", "public yandex.cloud.api.access.Access.ListAccessBindingsResponse listAccessBindings(yandex.cloud.api.access.Access.ListAccessBindingsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getListAccessBindingsMethod(), getCallOptions(), request);\n }", "public interface ICondition\n{\n\n /**\n * called when we are sure we are done with this condition\n */\n public void dispose();\n\n /**\n * attempt to clone this condition before it will be bound in the\n * instantiation phase. We pass the current bindings so that the condition can\n * do an early rejection if possible.\n * \n * @param model\n * @param variableBindings\n * @return a writable copy of the condition that will be bound\n * @throws CannotMatchException\n * if there is no way this condition can be matched\n */\n public ICondition clone(IModel model, Map<String, Object> variableBindings)\n throws CannotMatchException;\n\n /**\n * Iteratively perform the resolution and binding for this condition. If this\n * condition defines any variables, they are placed into the bindings map for\n * other conditions to exploit. Similarly, it will resolve any bindings that\n * it needs in order to be matched. If at any point the condition determines\n * that it cannot be matched, the exception is to be thrown. Similarly, if\n * isIterative is false, and there are unresolved bindings, the exception\n * should be thrown. <br>\n * Otherwise, the number of unresolved bindings is returned which allows the\n * instantiation calculation determine if another resolution round is\n * required.\n * \n * @return number of unresolved variables\n */\n public int bind(IModel model, Map<String, Object> variableBindings,\n boolean isIterative) throws CannotMatchException;\n}", "public Exp bind(Node qnode, Node node) {\n Exp bind = create(NODE, qnode);\n Exp value = create(NODE, node);\n bind.add(value);\n Exp and = this;\n if (this.type() != AND) {\n and = create(AND, this);\n }\n and.add(0, bind);\n return and;\n }", "private void registerBindings(){\n\t\tdataBinder.registerBinding(\"supplier.supplierBusinessMode.name\", String.class, this.txtBusinessMode, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.inviteType.name\", String.class, this.txtInviteType, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.name\", String.class, this.txtSupplierName, \"text\");\n\t\tdataBinder.registerBinding(\"supplier\", com.kingdee.eas.fdc.invite.supplier.SupplierStockInfo.class, this.prmtSupplier, \"data\");\n\t\tdataBinder.registerBinding(\"number\", String.class, this.txtNumber, \"text\");\n\t\tdataBinder.registerBinding(\"evaluationType\", com.kingdee.eas.fdc.invite.supplier.SupplierEvaluationTypeInfo.class, this.prmtEvaluationType, \"data\");\n\t\tdataBinder.registerBinding(\"template\", com.kingdee.eas.fdc.invite.supplier.SupplierAppraiseTemplateInfo.class, this.prmtTemplate, \"data\");\n\t\tdataBinder.registerBinding(\"description\", String.class, this.txtRemark, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.purchaseOrgUnit.name\", String.class, this.txtOrg, \"text\");\n\t\tdataBinder.registerBinding(\"lygcScore\", java.math.BigDecimal.class, this.txtLYGCScore, \"value\");\n\t\tdataBinder.registerBinding(\"lyhRate\", java.math.BigDecimal.class, this.txtLYHScore, \"value\");\n\t\tdataBinder.registerBinding(\"isOver\", boolean.class, this.cbIsOver, \"selected\");\n\t\tdataBinder.registerBinding(\"srcGrade\", com.kingdee.eas.fdc.invite.supplier.GradeSetUpInfo.class, this.prmtSrcGrade, \"data\");\n\t\tdataBinder.registerBinding(\"srcLevel\", com.kingdee.eas.fdc.invite.supplier.LevelSetUpInfo.class, this.prmtSrcLevel, \"data\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\n\t\tdataBinder.registerBinding(\"lygcRate\", java.math.BigDecimal.class, this.txtLYGCRate, \"value\");\n\t\tdataBinder.registerBinding(\"lyhScroe\", java.math.BigDecimal.class, this.txtLYHRate, \"value\");\n\t\tdataBinder.registerBinding(\"amount\", java.math.BigDecimal.class, this.txtAmount, \"value\");\n\t\tdataBinder.registerBinding(\"supplier.storageNumber\", String.class, this.txtStorageNumber, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.storageDate\", java.util.Date.class, this.pkStorageDate, \"value\");\n\t\tdataBinder.registerBinding(\"supplier.manager\", String.class, this.txtManager, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.contractor\", String.class, this.txtContractor, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.authorizePerson\", String.class, this.txtLinkPerson, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.authorizePhone\", String.class, this.txtLinkPhone, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.contractorPhone\", String.class, this.txtContractorPhone, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.managerPhone\", String.class, this.txtManagerPhone, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.partProject\", String.class, this.txtPartProject, \"text\");\n\t\tdataBinder.registerBinding(\"supplier.authorizeJob\", String.class, this.txtLinkJob, \"text\");\n\t\tdataBinder.registerBinding(\"bizDate\", java.util.Date.class, this.pkBizDate, \"value\");\n\t\tdataBinder.registerBinding(\"grade\", com.kingdee.eas.fdc.invite.supplier.GradeSetUpInfo.class, this.prmtGrade, \"data\");\n\t\tdataBinder.registerBinding(\"level\", com.kingdee.eas.fdc.invite.supplier.LevelSetUpInfo.class, this.prmtLevel, \"data\");\n\t\tdataBinder.registerBinding(\"isPass\", boolean.class, this.cbIsPass, \"selectedItem\");\t\t\n\t}", "public void onBindMethods() {\n super.onBindMethods();\n addMethodProxy((MethodProxy) new GetAddress());\n }", "public void setBindings(Binding[] binds) {\n this.binds = binds;\n }", "public void setBindings(Binding[] binds) {\n this.binds = binds;\n }", "public int getBindingCount() { List bindings = getBindings(false); return bindings!=null? bindings.size() : 0; }", "public static ExtractedExpression extractFunctionCalls(AbstractExpression exp) {\n\t\tExtractedExpression ee = new ExtractedExpression(exp);\n\t\tAbstractFunctionCall fc = exp.getEmbeddedFunctionCall();\n\t\twhile (fc != null) {\n\t\t\tString var = FreeVarNameProvider.getFreeVariable(\"subst\");\n\t\t\tee.rewrite(var, fc);\n\t\t\tfc = ee.getExpression().getEmbeddedFunctionCall();\n\t\t}\n\t\treturn ee;\n\t}", "public static DynamicExpression makeDynamic(Class type, CallSiteBinder binder, Iterable<Expression> arguments) { throw Extensions.todo(); }", "public boolean hasPendingBindings() {\n synchronized (this) {\n long l10 = this.H;\n long l11 = 0L;\n long l12 = l10 == l11 ? 0 : (l10 < l11 ? -1 : 1);\n if (l12 == false) return false;\n return (boolean)((long)1);\n }\n }", "final int getNumberOfBoundedBoundSymbols() {\n if (this.boundedBoundSymbols == null) return 0;\n\n int num = 0;\n for (int i = 0; i < this.boundedBoundSymbols.length; i++) {\n if (this.tupleOrs[i]) {\n num++;\n }\n else {\n num += this.boundedBoundSymbols[i].length;\n }\n }\n return num;\n }", "private void registerBindings(){\t\t\n\t}", "private void registerBindings(){\t\t\n\t}", "public com.google.api.HttpRuleOrBuilder getAdditionalBindingsOrBuilder(\n int index) {\n return additionalBindings_.get(index);\n }", "public java.lang.String[] getBindingKey() {\r\n return bindingKey;\r\n }", "public static DynamicExpression makeDynamic(Class type, CallSiteBinder binder, Expression expression0, Expression expression1, Expression expression2, Expression expression3) { throw Extensions.todo(); }", "public authenticationlocalpolicy_vpnglobal_binding[] get_authenticationlocalpolicy_vpnglobal_bindings() throws Exception {\n\t\treturn this.authenticationlocalpolicy_vpnglobal_binding;\n\t}", "public String getAllBindingNamespaceDeclarations() \t \n { \t \n return BindingExpression.getNamespaceDeclarations(getAllBindingNamespaces()); \t \n }", "public XtypeGrammarAccess.JvmLowerBoundAndedElements getJvmLowerBoundAndedAccess() {\r\n\t\treturn gaXtype.getJvmLowerBoundAndedAccess();\r\n\t}", "public void testConjunctionInQueryVarResolvesWhenBindingsMatch() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), f(x)], (?- f(X), g(X)), [[X <-- x]]]\");\n }", "public XtypeGrammarAccess.JvmLowerBoundAndedElements getJvmLowerBoundAndedAccess() {\n\t\treturn gaXtype.getJvmLowerBoundAndedAccess();\n\t}", "public XtypeGrammarAccess.JvmLowerBoundAndedElements getJvmLowerBoundAndedAccess() {\n\t\treturn gaXtype.getJvmLowerBoundAndedAccess();\n\t}", "private void registerBindings(){\n\t\tdataBinder.registerBinding(\"number\", String.class, this.txtNumber, \"text\");\n\t\tdataBinder.registerBinding(\"changeDate\", java.util.Date.class, this.pkChangeDate, \"value\");\n\t\tdataBinder.registerBinding(\"srcRoom\", com.kingdee.eas.fdc.sellhouse.RoomInfo.class, this.f7Room, \"data\");\n\t\tdataBinder.registerBinding(\"bizType\", com.kingdee.eas.fdc.sellhouse.ChangeBizTypeEnum.class, this.comboBizType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"changeReason\", com.kingdee.eas.fdc.sellhouse.ChangeReasonInfo.class, this.f7ChangeReson, \"data\");\n\t\tdataBinder.registerBinding(\"handler\", com.kingdee.eas.base.permission.UserInfo.class, this.f7Handler, \"data\");\n\t\tdataBinder.registerBinding(\"attachEntry\", com.kingdee.eas.fdc.sellhouse.ChangeManageAttachEntryInfo.class, this.kdtAttachEntry, \"userObject\");\n\t\tdataBinder.registerBinding(\"attachEntry.property\", com.kingdee.eas.fdc.sellhouse.PropertyEnum.class, this.kdtAttachEntry, \"property.text\");\n\t\tdataBinder.registerBinding(\"attachEntry.context\", String.class, this.kdtAttachEntry, \"context.text\");\n\t\tdataBinder.registerBinding(\"description\", String.class, this.txtRemark, \"text\");\n\t\tdataBinder.registerBinding(\"customerPhone\", String.class, this.txtTel, \"text\");\n\t\tdataBinder.registerBinding(\"isSignChangeName\", boolean.class, this.cbIsSignChangeName, \"selected\");\n\t\tdataBinder.registerBinding(\"quitAmount\", java.math.BigDecimal.class, this.txtQuitAmount, \"value\");\n\t\tdataBinder.registerBinding(\"bizDate\", java.util.Date.class, this.pkBizDate, \"value\");\n\t\tdataBinder.registerBinding(\"payType\", com.kingdee.eas.fdc.sellhouse.SHEPayTypeInfo.class, this.f7PayType, \"data\");\n\t\tdataBinder.registerBinding(\"agioScheme\", com.kingdee.eas.fdc.sellhouse.AgioSchemeInfo.class, this.f7AgioScheme, \"data\");\n\t\tdataBinder.registerBinding(\"agioDesc\", String.class, this.txtAgioDes, \"text\");\n\t\tdataBinder.registerBinding(\"lastAgio\", java.math.BigDecimal.class, this.txtAgio, \"value\");\n\t\tdataBinder.registerBinding(\"dealTotalAmount\", java.math.BigDecimal.class, this.txtDealTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"contractTotalAmount\", java.math.BigDecimal.class, this.txtContractTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"sellAmount\", java.math.BigDecimal.class, this.txtSellAmount, \"value\");\n\t\tdataBinder.registerBinding(\"planningCompensate\", java.math.BigDecimal.class, this.txtPlanningCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"cashSalesCompensate\", java.math.BigDecimal.class, this.txtCashSalesCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"areaCompensate\", java.math.BigDecimal.class, this.txtAreaCompensate, \"value\");\n\t\tdataBinder.registerBinding(\"dealBuildPrice\", java.math.BigDecimal.class, this.txtDealBuildPrice, \"value\");\n\t\tdataBinder.registerBinding(\"contractBuildPrice\", java.math.BigDecimal.class, this.txtContractBuildPrice, \"value\");\n\t\tdataBinder.registerBinding(\"planningArea\", java.math.BigDecimal.class, this.txtPlanningArea, \"value\");\n\t\tdataBinder.registerBinding(\"preArea\", java.math.BigDecimal.class, this.txtPreArea, \"value\");\n\t\tdataBinder.registerBinding(\"actualArea\", java.math.BigDecimal.class, this.txtActualArea, \"value\");\n\t\tdataBinder.registerBinding(\"contractRoomPrice\", java.math.BigDecimal.class, this.txtContractRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"dealRoomPrice\", java.math.BigDecimal.class, this.txtDealRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"valuationType\", com.kingdee.eas.fdc.sellhouse.CalcTypeEnum.class, this.comboValuationType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"accFundAmount\", java.math.BigDecimal.class, this.txtAFundAmount, \"value\");\n\t\tdataBinder.registerBinding(\"loanAmount\", java.math.BigDecimal.class, this.txtLoanAmount, \"value\");\n\t\tdataBinder.registerBinding(\"sellType\", com.kingdee.eas.fdc.sellhouse.SellTypeEnum.class, this.comboSellType, \"selectedItem\");\n\t\tdataBinder.registerBinding(\"strdBuildingPrice\", java.math.BigDecimal.class, this.txtBuildingPrice, \"value\");\n\t\tdataBinder.registerBinding(\"strdRoomPrice\", java.math.BigDecimal.class, this.txtRoomPrice, \"value\");\n\t\tdataBinder.registerBinding(\"srcRoom.roomModel.name\", String.class, this.txtRoomModel, \"text\");\n\t\tdataBinder.registerBinding(\"strdTotalAmount\", java.math.BigDecimal.class, this.txtStandardTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"attachmentAmount\", java.math.BigDecimal.class, this.txtAttachPropertyTotalAmount, \"value\");\n\t\tdataBinder.registerBinding(\"fitmentTotalAmount\", java.math.BigDecimal.class, this.txtFitmentAmount1, \"value\");\n\t\tdataBinder.registerBinding(\"isFitmentToContract\", boolean.class, this.chkIsFitmentToContract, \"selected\");\n\t\tdataBinder.registerBinding(\"fitmentStandard\", com.kingdee.eas.fdc.sellhouse.DecorationStandardInfo.class, this.f7FitmentStandard, \"data\");\n\t\tdataBinder.registerBinding(\"fitmentPrice\", java.math.BigDecimal.class, this.txtFitmentPrice, \"value\");\n\t\tdataBinder.registerBinding(\"fitmentTotalAmount\", java.math.BigDecimal.class, this.txtFitmentAmount, \"value\");\n\t\tdataBinder.registerBinding(\"creator\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtCreator, \"data\");\n\t\tdataBinder.registerBinding(\"createTime\", java.sql.Timestamp.class, this.pkCreateTime, \"value\");\n\t\tdataBinder.registerBinding(\"auditTime\", java.util.Date.class, this.pkAuditDate, \"value\");\n\t\tdataBinder.registerBinding(\"auditor\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtAuditor, \"data\");\n\t\tdataBinder.registerBinding(\"lastUpdateUser\", com.kingdee.eas.base.permission.UserInfo.class, this.prmtModifier, \"data\");\n\t\tdataBinder.registerBinding(\"lastUpdateTime\", java.sql.Timestamp.class, this.pkModifyDate, \"value\");\n\t\tdataBinder.registerBinding(\"details\", String.class, this.details, \"text\");\n\t\tdataBinder.registerBinding(\"changeType\", com.kingdee.eas.fdc.sellhouse.ChangeTypeEnum.class, this.cbChangeType, \"selectedItem\");\t\t\n\t}", "public BindElements getBindAccess() {\n\t\treturn pBind;\n\t}", "public int[] getConditions() { return conditional; }", "protected Type[] getJoinPointArgumentTypes() {\n return new Type[]{Type.getType(m_calleeMemberDesc)};\n }", "@Override\n\tpublic List<Component> caseExprBinary(ExprBinary expr) {\n\t\tint sizeInBits = assignTarget.getVariable().getType().getSizeInBits();\n\t\t// Get the Variables\n\t\tVar e1 = ((ExprVar) expr.getE1()).getUse().getVariable();\n\t\tVar e2 = ((ExprVar) expr.getE2()).getUse().getVariable();\n\t\tList<Var> inVars = new ArrayList<Var>();\n\t\tinVars.add(e1);\n\t\tinVars.add(e2);\n\t\t// Component component = null;\n\t\tif (expr.getOp() == OpBinary.BITAND) {\n\t\t\tcurrentComponent = new AndOp();\n\t\t} else if (expr.getOp() == OpBinary.BITOR) {\n\t\t\tcurrentComponent = new OrOp();\n\t\t} else if (expr.getOp() == OpBinary.BITXOR) {\n\t\t\tcurrentComponent = new XorOp();\n\t\t} else if (expr.getOp() == OpBinary.DIV) {\n\t\t\tcurrentComponent = new DivideOp(sizeInBits);\n\t\t} else if (expr.getOp() == OpBinary.DIV_INT) {\n\t\t\tcurrentComponent = new DivideOp(sizeInBits);\n\t\t} else if (expr.getOp() == OpBinary.EQ) {\n\t\t\tcurrentComponent = new EqualsOp();\n\t\t} else if (expr.getOp() == OpBinary.GE) {\n\t\t\tcurrentComponent = new GreaterThanEqualToOp();\n\t\t} else if (expr.getOp() == OpBinary.GT) {\n\t\t\tcurrentComponent = new GreaterThanOp();\n\t\t} else if (expr.getOp() == OpBinary.LE) {\n\t\t\tcurrentComponent = new LessThanEqualToOp();\n\t\t} else if (expr.getOp() == OpBinary.LOGIC_AND) {\n\t\t\tcurrentComponent = new And(2);\n\t\t} else if (expr.getOp() == OpBinary.LOGIC_OR) {\n\t\t\tcurrentComponent = new Or(2);\n\t\t} else if (expr.getOp() == OpBinary.LT) {\n\t\t\tcurrentComponent = new LessThanOp();\n\t\t} else if (expr.getOp() == OpBinary.MINUS) {\n\t\t\tcurrentComponent = new SubtractOp();\n\t\t} else if (expr.getOp() == OpBinary.MOD) {\n\t\t\tcurrentComponent = new ModuloOp();\n\t\t} else if (expr.getOp() == OpBinary.NE) {\n\t\t\tcurrentComponent = new NotEqualsOp();\n\t\t} else if (expr.getOp() == OpBinary.PLUS) {\n\t\t\tcurrentComponent = new AddOp();\n\t\t} else if (expr.getOp() == OpBinary.SHIFT_LEFT) {\n\t\t\tint log2N = MathStuff.log2(sizeInBits);\n\t\t\tcurrentComponent = new LeftShiftOp(log2N);\n\t\t} else if (expr.getOp() == OpBinary.SHIFT_RIGHT) {\n\t\t\tint log2N = MathStuff.log2(sizeInBits);\n\t\t\tcurrentComponent = new RightShiftOp(log2N);\n\t\t} else if (expr.getOp() == OpBinary.TIMES) {\n\t\t\tcurrentComponent = new MultiplyOp(expr.getType().getSizeInBits());\n\t\t}\n\t\t// currentComponent.setNonRemovable();\n\t\tPortUtil.mapInDataPorts(currentComponent, inVars, portDependency,\n\t\t\t\tportGroupDependency);\n\t\treturn null;\n\t}", "public void testVariableBindingFromQueryPropagatesAccrossConjunction() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f(X) :- g(X), h(X))], (?- f(x)), [[]]]\");\n }", "@Override\n protected DagNode evaluate(DagNode parent, Bindings bindings) {\n // type acts as storage for the status\n DagEdge bound = bindings.getBinding(_varName, getType());\n if (bound == null) {\n if (getType() == Bindings.LOCAL) {\n // first occurence of this var, bind the variable name\n // to the given node. This is on the application side, where new bindings\n // are only relevant in expandVars, which is why the DagEdge is not\n // important, but the node, to establish coreferences.\n bound = new DagEdge((short) -1, parent);\n bindings.bind(_varName, bound, getType());\n } else {\n logger.warn(\"Unknown binding during application of rule: \" + this);\n return parent;\n }\n }\n // Avoid unwanted coreferences for atomic nodes\n if (bound.getValue().newEdgesAreEmpty()) {\n return bound.getValue().cloneFS();\n }\n return bound.getValue();\n }", "private static Expression constructBinaryFilterTreeWithAnd(List<Expression> expressions) {\n if (expressions.size() == 2) {\n return new LogicAndExpression(expressions.get(0), expressions.get(1));\n } else {\n return new LogicAndExpression(\n expressions.get(0),\n constructBinaryFilterTreeWithAnd(expressions.subList(1, expressions.size())));\n }\n }", "public Term bind(Term[] binding)\n {\n return this;\n }", "public Binding getBinding() {\n\t\treturn binding;\n\t}", "@Override\n public int getBindingVariable() {\n return BR.data;\n }" ]
[ "0.5582578", "0.53791666", "0.5275495", "0.49826223", "0.49315357", "0.48488635", "0.48445258", "0.47746822", "0.46583164", "0.4652941", "0.46457186", "0.46075565", "0.4601281", "0.4574099", "0.4565899", "0.45532423", "0.45246017", "0.4478363", "0.44721836", "0.44456935", "0.44304076", "0.4397469", "0.43967602", "0.43436024", "0.43142027", "0.43101057", "0.43084913", "0.42877793", "0.42833048", "0.42652965", "0.42575914", "0.42525977", "0.4245325", "0.42115748", "0.42060804", "0.4182719", "0.41737014", "0.4167508", "0.41594887", "0.41417676", "0.41307145", "0.41191754", "0.41160753", "0.41115445", "0.41039768", "0.40959686", "0.40959287", "0.40958363", "0.40946013", "0.40878573", "0.40835914", "0.40834138", "0.40789896", "0.40738177", "0.40692553", "0.40666083", "0.4057589", "0.4055001", "0.40475452", "0.4043463", "0.40419176", "0.40271127", "0.4000611", "0.39994913", "0.39906204", "0.39836633", "0.39799464", "0.39787534", "0.39679363", "0.3960956", "0.3952734", "0.3930945", "0.3930945", "0.39241102", "0.3915479", "0.39137125", "0.39028132", "0.38996512", "0.38955823", "0.38955823", "0.38937578", "0.38868248", "0.38843295", "0.3878776", "0.38775095", "0.38654274", "0.38638967", "0.386347", "0.386347", "0.3857698", "0.38576436", "0.38401017", "0.38342798", "0.38296992", "0.38245532", "0.38199908", "0.38162592", "0.3814392", "0.38080713", "0.38056526" ]
0.5317543
2
returns the type of the PointCutNodeElement
public static String getNodeType() { return NODE_TYPE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Type getElementType();", "TypeElement getTypeElement();", "public GraphElementType getElementType();", "ElementType getElementType();", "public String getElementType() {\n\t\treturn (element_type);\n\t}", "public Class getType(ElementList element) {\r\n return element.type();\r\n }", "XClass getType();", "public TypeElement getTypeElement() {\n return this.te;\n }", "NodeType getType();", "public final solarpowerconversioncalculator.proxies.ElementType getElementType()\n\t{\n\t\treturn getElementType(getContext());\n\t}", "public String getType() {\n\t\treturn String.valueOf(this.pieceType);\n\t}", "public Class getType();", "public Type getPointedType() {\n return getChild();\n }", "public String getElementType()\n {\n return elementType;\n }", "public Class getType();", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType();", "public Class getType(ElementMap element) {\r\n return element.valueType();\r\n }", "Classifier getType();", "@Override\n\tpublic Type getType() {\n\t\treturn nodeList.get(nodeList.size() - 1).getType();\n\t}", "public Class getType(Element element) {\r\n Class type = element.type();\r\n \r\n if(type == void.class) {\r\n return contact.getType();\r\n }\r\n return type;\r\n }", "MediaPackageElement.Type getElementType();", "public String getType(JmmNode node) {\n switch (node.getKind()) {\n case \"Add\":\n case \"Sub\":\n case \"Mul\":\n case \"Div\":\n return \"int\";\n\n case \"LessThan\":\n case \"And\":\n case \"Not\":\n return \"boolean\";\n\n case \"Var\":\n return getVariableSymbol(node.get(\"name\")).getType().getName();\n default:\n return null;\n }\n }", "public abstract AbstractNodeType getType();", "@Nonnull Class<? extends DataElement> getDataElementType();", "public FeedType getType();", "public int getType() {\n validify();\n return Client.INSTANCE.pieceGetType(ptr);\n }", "NeuronType getType();", "@java.lang.Override\n public speech.multilang.Params.DecisionPointParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.DecisionPointParams.Type result = speech.multilang.Params.DecisionPointParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.DecisionPointParams.Type.UNKNOWN : result;\n }", "@java.lang.Override public speech.multilang.Params.DecisionPointParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.DecisionPointParams.Type result = speech.multilang.Params.DecisionPointParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.DecisionPointParams.Type.UNKNOWN : result;\n }", "public String getElementClass ();", "type getType();", "EClass getType();", "EClass getType();", "Class<?> getNodeType() {\n return nodeType;\n }", "public Type getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public ShapeType getType() {\n\t\t\treturn type.get();\n\t\t}", "public int getType();", "public int getType();", "public int getType();", "public int getType();", "public int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "public String getType() {\r\n return this.getClass().getName();\r\n }", "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();", "public NodeType getType() {\n return type;\n }", "public Type getType() {\n return this.te.getType();\n }", "public Class<?> getType() {\n return this.value.getClass();\n }", "public ASTType getTypeNode() {\n return (ASTType) getChild(0);\n }", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();" ]
[ "0.6417793", "0.6379186", "0.6292404", "0.6199553", "0.61893964", "0.6148979", "0.6038894", "0.6012842", "0.5969634", "0.59519005", "0.5926597", "0.59074837", "0.5906813", "0.58920574", "0.5832201", "0.5823299", "0.5818022", "0.5788673", "0.5788163", "0.57255775", "0.57146734", "0.5690185", "0.56569815", "0.56546587", "0.5647039", "0.56284505", "0.55915856", "0.55870324", "0.5578719", "0.5571264", "0.5566056", "0.55157775", "0.55157775", "0.5508936", "0.5493231", "0.5490295", "0.5490295", "0.5490295", "0.5490295", "0.5490295", "0.5490295", "0.5490295", "0.5490295", "0.5490295", "0.5490295", "0.5490295", "0.5490295", "0.5490295", "0.5489551", "0.54889494", "0.54889494", "0.54889494", "0.54889494", "0.54889494", "0.54713017", "0.54713017", "0.54713017", "0.54713017", "0.54713017", "0.54713017", "0.54713017", "0.54713017", "0.54593617", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54552764", "0.54501766", "0.54345053", "0.54306036", "0.5428594", "0.54221016", "0.54221016", "0.54221016", "0.54221016", "0.54221016", "0.54221016", "0.54221016", "0.54221016", "0.54221016" ]
0.0
-1
Perform any necessary initialization in the constructor
public Entity3() { int[] neighbor_costs = {7, 999, 2, 0}; for (int i = 0; i < NetworkSimulator.NUMENTITIES; i++) { Arrays.fill(distanceTable[i], 999); } for (int i = 0; i < NetworkSimulator.NUMENTITIES; i++) { distanceTable[NODE_NUM][i] = neighbor_costs[i]; } System.out.println(); System.out.println("--------------------------------"); System.out.println("Initial distance table for Node " + NODE_NUM); System.out.println("--------------------------------"); printDT(); for (int neighbor : NEIGHBORS) { Packet dtPacket = new Packet(NODE_NUM, neighbor, neighbor_costs); NetworkSimulator.toLayer2(dtPacket); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initialize() {\n \t\n }", "protected void initialize() {}", "protected void initialize() {}", "protected void init() {\n }", "private void init() {\n }", "@Override public void init()\n\t\t{\n\t\t}", "public void init() {\n \n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "public void initialize() {\n // empty for now\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "private void initialize() {\n }", "public void initialize()\n {\n }", "public void init() {\n\t\t}", "public void initialize(){\n\t\t//TODO: put initialization code here\n\t\tsuper.initialize();\n\t\t\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "protected void init() {\n\t}", "protected void init() {\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "protected void init() {\n // to override and use this method\n }", "public void init() {\r\n\t\t// to override\r\n\t}", "protected void initialize() {\n\n\t}", "protected void init() {\n init(null);\n }", "public void init() {}", "public void init() {}", "protected void initialize() {\n\t\t\n\t}", "protected void initialize() {\n\t\t\n\t}", "protected void init(){\n }", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "protected void initialize()\r\n {\n }", "public void init() {\r\n\r\n\t}", "protected void initialize()\n\t{\n\t}", "public void init() { }", "public void init() { }", "protected void _init(){}", "@Override\r\n\tpublic void init() {}", "private void initialize() {\n\t}", "@Override\n protected void init() {\n }", "protected void initialize() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "protected void initialize() {\n // Attribute Load\n this.attributeMap.clear();\n this.attributeMap.putAll(this.loadAttribute());\n // RuleUnique Load\n this.unique = this.loadRule();\n // Marker Load\n this.marker = this.loadMarker();\n // Reference Load\n this.reference = this.loadReference();\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "private void initialize() {\n\t\t\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init(){\n \n }", "public void initialize() {\n // TODO\n }", "public void init(){}", "public void initialize() {\r\n }", "protected void initialize() {\n\n }", "private void _init() {\n }", "public void init() {\n\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 public void init() {\n }", "public void initialize() {\n }", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "public void init() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "private void init() {\n\n\n\n }", "public void init()\n {\n }", "@Override\n\t\tprotected void initialise() {\n\n\t\t}", "public void initialize() {\n\t}", "public void initialize() {\n\t}", "@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "@Override\r\n public void initialize()\r\n {\n }", "public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}" ]
[ "0.79693174", "0.794238", "0.794238", "0.7812528", "0.77864915", "0.7782707", "0.77824086", "0.77806073", "0.77806073", "0.77806073", "0.77806073", "0.77478355", "0.77478355", "0.7734337", "0.7724463", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.77087826", "0.76969427", "0.7671101", "0.7667962", "0.76582754", "0.7653298", "0.7651808", "0.7651808", "0.76429296", "0.76259196", "0.7623028", "0.76195055", "0.7607377", "0.760726", "0.7600167", "0.7600167", "0.7599395", "0.7599395", "0.7579725", "0.7578185", "0.7577357", "0.7568394", "0.75680655", "0.7567797", "0.7567797", "0.75603414", "0.755963", "0.7559286", "0.7559197", "0.7550541", "0.7548626", "0.75455195", "0.75454634", "0.75454634", "0.75454634", "0.75454634", "0.75159276", "0.75142384", "0.75142384", "0.75142384", "0.75105", "0.7497966", "0.7494241", "0.749357", "0.749212", "0.7491212", "0.74910015", "0.74748033", "0.74748033", "0.74748033", "0.7470215", "0.74425155", "0.74396294", "0.74396294", "0.74396294", "0.7439349", "0.7439349", "0.7439349", "0.743331", "0.74304646", "0.74303454", "0.7424848", "0.7400049", "0.7394212", "0.7379979", "0.7379979", "0.73782474", "0.7375338", "0.7368268" ]
0.0
-1
Handle updates when a packet is received. Students will need to call NetworkSimulator.toLayer2() with new packets based upon what they send to update. Be careful to construct the source and destination of the packet correctly. Read the warning in NetworkSimulator.java for more details.
public void update(Packet p) { int[] min_distance = new int[NetworkSimulator.NUMENTITIES]; boolean table_changed = false; System.out.println(); System.out.println("--------------------------------"); System.out.println("update() for Node " + NODE_NUM); System.out.println("--------------------------------"); System.out.println("Packet Sender: Node " + p.getSource()); for (int i = 0; i < NetworkSimulator.NUMENTITIES; i++) { int current_cost = distanceTable[NODE_NUM][i]; int source_cost = distanceTable[NODE_NUM][p.getSource()]; int packet_cost = p.getMincost(i); if (source_cost + packet_cost < current_cost) { min_distance[i] = source_cost + packet_cost; distanceTable[NODE_NUM][i] = min_distance[i]; table_changed = true; } else { min_distance[i] = current_cost; } distanceTable[p.getSource()][i] = packet_cost; } if (table_changed) { System.out.println("*Distance table changed*"); System.out.println("Minimum distances sent: " + Arrays.toString(min_distance)); for (int neighbor : NEIGHBORS) { Packet dtPacket = new Packet(NODE_NUM, neighbor, min_distance); NetworkSimulator.toLayer2(dtPacket); } } else { System.out.println("Distance table not changed."); } printDT(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onPacket(JPackectX packet) {\r\n System.out.println(\"Packet Received:\\n\\t\" + packet.toString());\r\n if (packet.getType() == JPacketTypeX.UPDATE) {\r\n try {\r\n //null for now\r\n }\r\n catch (Exception e) {\r\n }\r\n }\r\n }", "@Override\n\t\tpublic void gotPacket(Packet packet) {\n\t\t\tif(packet.contains(IpV4Packet.class)){\t\n\t\n\t\t\t\tbyte[] rec = obtainPackets4Source(packet);\n\t\t\t\t\n\t\t\t\t//if(!useBatch4Pcap){\n\t\t\t\t//\tpublishEntry(topic,rec);\n\t\t\t\t//}else{\n\t\t\t\t if(rec!=null){\n\t\t\t\t\tcacheUpdate(topic,rec);\n\t\t\t\t }else{\n\t\t\t\t\t log.warn(\"packet is null!\");\n\t\t\t\t }\n\t\t\t\t//}\n\t\t\t}\n\t\t\t\n\t\t}", "protected abstract void handlePacket(DatagramPacket packet);", "public void receivedUpdateFromServer();", "public void handlePacket(int pkt) throws MathLinkException {\n switch (pkt) {\n case 3: {\n ** break;\n }\n case 8: {\n ** break;\n }\n case 4: {\n ** break;\n }\n case 16: {\n ** break;\n }\n case 6: {\n ** break;\n }\n case 5: {\n ** break;\n }\n case 7: {\n type = this.getType();\n if (type == 43) {\n this.handleCallPacket();\n ** break;\n }\n if (this.getFEServerLink() == null) ** break;\n feLink = this.getFEServerLink();\n feLink.putFunction(\"CallPacket\", 1);\n feLink.transferExpression(this);\n this.transferExpression(feLink);\n ** break;\n }\n case 1: \n case 21: {\n if (this.getFEServerLink() == null) ** break;\n fe = this.getFEServerLink();\n fe.putFunction(pkt == 21 ? \"InputStringPacket\" : \"InputPacket\", 1);\n fe.put(this.getString());\n fe.flush();\n this.newPacket();\n this.put(fe.getString());\n this.flush();\n ** break;\n }\n case 11: \n case 12: {\n if (this.getFEServerLink() == null) ** break;\n if (this.accumulatingPS == null) {\n this.accumulatingPS = new StringBuffer(34000);\n }\n this.accumulatingPS.append(this.getString());\n if (pkt != 12) ** break;\n fe = this.getFEServerLink();\n fe.putFunction(\"FrontEnd`FrontEndExecute\", 1);\n fe.putFunction(\"FrontEnd`NotebookWrite\", 2);\n fe.putFunction(\"FrontEnd`SelectedNotebook\", 0);\n fe.putFunction(\"Cell\", 2);\n fe.putFunction(\"GraphicsData\", 2);\n fe.put(\"PostScript\");\n fe.put(this.accumulatingPS.toString());\n fe.put(\"Graphics\");\n fe.flush();\n this.accumulatingPS = null;\n ** break;\n }\n case 2: \n case 101: {\n fe = this.getFEServerLink();\n if (fe != null) {\n fe.putFunction(\"FrontEnd`FrontEndExecute\", 1);\n fe.putFunction(\"FrontEnd`NotebookWrite\", 2);\n fe.putFunction(\"FrontEnd`SelectedNotebook\", 0);\n fe.putFunction(\"Cell\", 2);\n fe.transferExpression(this);\n fe.put(this.lastPktWasMsg != false ? \"Message\" : \"Print\");\n fe.flush();\n ** break;\n }\n if (pkt != 101) ** break;\n this.getFunction();\n ** break;\n }\n case 100: {\n feLink = this.getFEServerLink();\n if (feLink == null) ** GOTO lbl83\n mark = this.createMark();\n try {\n wrapper = this.getFunction();\n if (!wrapper.name.equals(\"FrontEnd`FrontEndExecute\")) {\n feLink.putFunction(\"FrontEnd`FrontEndExecute\", 1);\n }\n }\n finally {\n this.seekMark(mark);\n this.destroyMark(mark);\n }\n feLink.transferExpression(this);\n feLink.flush();\n break;\nlbl83: // 1 sources:\n this.getFunction();\n ** break;\n }\nlbl85: // 2 sources:\n default: {\n ** GOTO lbl98\n }\n }", "public void update(Packet p, Node node) {\n }", "void handlePacket(String devReplyStr);", "@Override\n public void update(Observable o, Object arg) {\n if (o instanceof ReceiveDataObservable){\n ReceiveDataObservable receive = (ReceiveDataObservable) o;\n int distance = receive.getDistance();\n float eAx = receive.getErrorAngleX()/100;\n float eAy = receive.getErrorAngleY()/100;\n \n this.handleIncomingData(distance, eAx, eAy); \n }\n else if (o instanceof ReceiveVideoObservable){\n BufferedImage buff = ((ReceiveVideoObservable) o).getBuff();\n this.handleIncomingVideo(buff);\n \n }\n else{\n System.out.println(\"Not instance of DH\");\n }\n }", "public void handleIncoming() {\n\t\t// parse the packet payload\n\t\tPair<Packet,Integer> pp = fwdr.receivePkt();\n\t\tPacket p = pp.left; int lnk = pp.right;\n\n\t\tString[] lines = p.payload.split(\"\\n\");\n\t\tif (!lines[0].equals(\"RPv0\")) return;\n\n\t\tString[] chunks = lines[1].split(\":\");\n\t\tif (!chunks[0].equals(\"type\")) return;\n\t\tString type = chunks[1].trim();\n\t\t\n\t\t// if it's an route advert, call handleAdvert\n\t\tif (type.equals(\"advert\")){\n\t\t\thandleAdvert(lines, lnk);\n\t\t}\n\t\t// if it's an link failure advert, call handleFailureAdvert\n\t\tif (type.equals(\"fadvert\")){\n\t\t\thandleFailureAdvert(lines, lnk);\n\t\t}\n\t\t// if it's a hello, echo it back\n\t\tif (type.equals(\"hello\")){\n\t\t\tchunks = lines[2].split(\":\");\n\t\t\tif (!chunks[0].equals(\"timestamp\")) return;\n\t\t\tString timestamp = chunks[1].trim();\n\t\t\tp.payload = String.format(\"RPv0\\ntype: echo\\n\"\n\t\t\t\t\t+ \"timestamp: %s \\n\", timestamp);\n\t\t\tfwdr.sendPkt(p, lnk);\n\t\t}\n\t\t// else it's a reply to a hello packet\n\t\t// use timestamp to determine round-trip delay\n\t\t// use this to update the link cost using exponential\n\t\t// weighted moving average method\n\t\t// also, update link cost statistics\n\t\t// also, set gotReply to true\n\t\telse {\n\t\t\tchunks = lines[2].split(\":\");\n\t\t\tif (!chunks[0].equals(\"timestamp\")) return;\n\t\t\tString timeString = chunks[1].trim();\n\t\t\tdouble timestamp = Double.parseDouble(timeString);\n\t\t\tdouble rtDelay = now - timestamp;\n\n\t\t\tLinkInfo link = lnkVec.get(lnk);\n\t\t\tlink.helloState = 3;\n\t\t\tlink.cost = rtDelay/2;\n\t\t\tRoute rt = new Route();\n\t\t\trt.outLink = lnk;\n\t\t\tboolean match = false;\n\t\t\tfor (Route rte : rteTbl){\n\t\t\t\tif (rte.outLink == lnk){\n\t\t\t\t\trt = rte;\n\t\t\t\t\tmatch = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\tRoute newRt = rt;\n\t\t\tlink.count = 0;\n\t\t\tlink.totalCost = 0;\n\t\t\tfor (LinkInfo l : lnkVec){\n\t\t\t\tif(l.helloState != 0){\n\t\t\t\t\tlink.count++;\n\t\t\t\t\tlink.totalCost += l.cost;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnewRt.cost = link.cost;\n\t\t\tif (updateRoute(rt,newRt)){\n\t\t\t\tlink.cost = rt.cost;\n\t\t\t}\n\t\t\tif (link.cost > link.maxCost){\n\t\t\t\tlink.maxCost = link.cost;\n\t\t\t}\n\t\t\tif (link.cost < link.minCost){\n\t\t\t\tlink.minCost = link.cost;\n\t\t\t}\n\t\t\tlink.gotReply = true;\n\t\t\tlnkVec.set(lnk, link);\n\t\t}\n\n\t}", "public void packetReceiver(Socket socket);", "public abstract void receive(CommNode source, Object packet, simulation.timebased.Simulator simulator);", "public void packetReceived(Pdu packet);", "private void processPacket(Packet msg, int sourceClientID)\n\t{\n\t\tif (msg.getPacketID() == 1)\n\t\t{\n\t\t\t// Position updates, broadcast to everyone else\n\t\t\tPCSPosRotUpdate posUpdate = (PCSPosRotUpdate)msg;\n\t\t\t\n\t\t\t// CSPosRotUpdate\n\t\t\t// Get the specific entity to update\n\t\t\tEntityPlayer player = (EntityPlayer) entityMap.getEntity(posUpdate.clientID, EntityPlayer.class);\n\t\t\t\n\t\t\t// If non-existant, move on (probably a stale id)\n\t\t\tif (player == null)\n\t\t\t\treturn;\n\t\t\t\n\t\t\tSystem.out.printf(\"\\t Ply%d-Pos: (%f, %f, %f) - (%f, %f)\\n\", posUpdate.clientID, posUpdate.xPos, posUpdate.yPos, posUpdate.zPos, posUpdate.pitch, posUpdate.yaw);\n\t\t\tplayer.setPos(posUpdate.xPos, posUpdate.yPos, posUpdate.zPos);\n\t\t\tplayer.setVelocity(posUpdate.xVel, posUpdate.yVel, posUpdate.zVel);\n\t\t\tplayer.setOrientation(posUpdate.pitch, posUpdate.yaw);\n\t\t\tplayer.xAccel = posUpdate.xAccel;\n\t\t\tplayer.zAccel = posUpdate.zAccel;\n\t\t\t\n\t\t\tplayer.isFlying = posUpdate.isFlying;\n\t\t\tplayer.isSneaking = posUpdate.isSneaking;\n\t\t\tplayer.isSprinting = posUpdate.isSprinting;\n\t\t\t\n\t\t\tclientChannels.write(posUpdate);\n\t\t}\n\t\telse if (msg.getPacketID() == 5)\n\t\t{\n\t\t\t// Block place, handle that\n\t\t\tPCSPlaceBlock blockPlace = (PCSPlaceBlock)msg;\n\t\t\tRaycastResult lastHit = blockPlace.hitResult;\n\t\t\tBlock block = blockPlace.placingBlock;\n\t\t\t\n\t\t\t// If the block can't be placed, don't place it\n\t\t\tif(!block.canPlaceBlock(\n\t\t\t\t\tinstance.world,\n\t\t\t\t\tlastHit.blockX + lastHit.face.getOffsetX(),\n\t\t\t\t\tlastHit.blockY + lastHit.face.getOffsetY(),\n\t\t\t\t\tlastHit.blockZ + lastHit.face.getOffsetZ()))\n\t\t\t\treturn;\n\t\t\t\n\t\t\tinstance.world.setBlock(\n\t\t\t\t\tlastHit.blockX + lastHit.face.getOffsetX(),\n\t\t\t\t\tlastHit.blockY + lastHit.face.getOffsetY(),\n\t\t\t\t\tlastHit.blockZ + lastHit.face.getOffsetZ(),\n\t\t\t\t\tblock);\n\t\t\tblock.onBlockPlaced(\n\t\t\t\t\tinstance.world,\n\t\t\t\t\tlastHit.blockX + lastHit.face.getOffsetX(),\n\t\t\t\t\tlastHit.blockY + lastHit.face.getOffsetY(),\n\t\t\t\t\tlastHit.blockZ + lastHit.face.getOffsetZ());\n\t\t\t\n\t\t\t// Broadcast to the other players\n\t\t\t// TODO: Correct for misplaces\n\t\t\tclientChannels.write(blockPlace);\n\t\t}\n\t\telse if (msg.getPacketID() == 6)\n\t\t{\n\t\t\t// Block break, handle that\n\t\t\tPCSBreakBlock blockBreak = (PCSBreakBlock)msg;\n\t\t\tRaycastResult lastHit = blockBreak.hitResult;\n\t\t\t\n\t\t\t// Break the block, with the appropriate block callbacks being called\n\t\t\tBlock block = instance.world.getBlock(lastHit.blockX, lastHit.blockY, lastHit.blockZ);\n\t\t\tblock.onBlockBroken(instance.world, lastHit.blockX, lastHit.blockY, lastHit.blockZ);\n\t\t\tinstance.world.setBlock(lastHit.blockX, lastHit.blockY, lastHit.blockZ, Blocks.AIR);\n\t\t\t\n\t\t\t// Broadcast to the other players\n\t\t\t// TODO: Correct for mis-breaks\n\t\t\tclientChannels.write(blockBreak);\n\t\t}\n\t\telse if (msg.getPacketID() == 7)\n\t\t{\n\t\t\t// Load the requested chunk column\n\t\t\tPCLoadChunkColumn loadRequest = (PCLoadChunkColumn)msg;\n\t\t\t// Get the channel id\n\t\t\tChannelId channelId = clientToChannelId.get(sourceClientID);\n\t\t\t\n\t\t\t// No id found means stale id\n\t\t\tif (channelId == null)\n\t\t\t\treturn;\n\t\t\t\n\t\t\tChannel clientChannel = clientChannels.find(channelId);\n\t\t\t\n\t\t\t// Null channel means stale id\n\t\t\tif (clientChannel == null)\n\t\t\t\treturn;\n\t\t\t\n\t\t\t// Send back the chunk column\n\t\t\tif (sendChunkColumnTo(loadRequest.columnX, loadRequest.columnZ, clientChannel))\n\t\t\t{\n\t\t\t\t// TODO: Queue up requests\n\t\t\t\tSystem.out.println(\"Fulfilled rq for \" + loadRequest.columnX + \", \" + loadRequest.columnZ + \" to Ply\" + sourceClientID);\n\t\t\t\t// Flush pending requests\n\t\t\t\tclientChannel.flush();\n\t\t\t}\n\t\t}\n\t}", "private void packetHandler(int[] packet)\n {\n boolean startMemoryRead= true;\n if(packet[0]==Constants.STARTCHAR && packet[3]==Constants.ENDCHAR)\n {\n\n switch (packet[1]) {\n case Constants.LIGHTSENSVAL:\n messageView.append(\"Ljussensorvärde är\"+ packet[2] + \"\\n\");\n lightSensorValueView.setText(Integer.toString(packet[2]));\n break;\n case Constants.POTVAL:\n messageView.append(\"Potentiometervärde är\"+ packet[2] + \"\\n\");\n potSensorValueView.setText(Integer.toString(packet[2]));\n break;\n case Constants.MEMVAL:\n dataStream.add(packet[2]);\n break;\n case Constants.READMEMORY:\n switch (packet[2])\n {\n case Constants.BEGIN:\n startMemoryRead = true;\n messageView.append(\"Börjar läsa data\");\n break;\n case Constants.DONE:\n startMemoryRead = false;\n messageView.append(\"läst klart data\");\n GraphActivity.updateData(dataStream);\n break;\n\n }\n\n }\n }\n }", "protected void bInput(Packet packet)\r\n {\r\n \t\t\r\n \t\tif(!isCorrupted(packet)&&packet.getSeqnum()==expected_seq_num)\r\n \t\t{\r\n \t\t\t\r\n \t\tSystem.out.println(\"|bInput| : packet \"+Integer.toString(packet.getSeqnum())+\"is received correctly.\"); \r\n \t\t\tString data = packet.getPayload();\r\n \t\t\ttoLayer5(data);\r\n \t\t\tSystem.out.println(\"|bInput| : payload is sent to Layer 5\"); \r\n \t\t\tint check = makeCheckSum(expected_seq_num,ACK_ACKed,DATA_EMPTY);\r\n \t\t\tpacketBuffer = new Packet(expected_seq_num,ACK_ACKed,check,DATA_EMPTY);\r\n \t\t\tSystem.out.println(\"|bInput| : packet with seq number:\"+Integer.toString(expected_seq_num)+\" is stored in Buffer\"); \r\n \t\t\ttoLayer3(1,packetBuffer);\r\n \t\t\tSystem.out.println(\"|bInput| : packet with seq number:\"+Integer.toString(expected_seq_num)+\" is sent\"); \r\n \t\t\texpected_seq_num = (expected_seq_num+1)% LimitSeqNo;\r\n\t\t\tSystem.out.println(\"|bInput| : expected_seq_num becomes: \"+ expected_seq_num+\".\");\r\n \t\t\t\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\t\r\n \t\tSystem.out.println(\"packet is not correct or corrupted, sent ACK \"+packetBuffer.getSeqnum()+\" back to sender\"); \r\n \t\t\ttoLayer3(1,packetBuffer);\r\n \t\t\tSystem.out.println(\"|bInput| : packet with seq number:\"+Integer.toString(packetBuffer.getSeqnum())+\" is sent\");\r\n \t\t}\r\n \t\r\n \t/*\r\n \t\tif(state_receiver == STATE_WAIT_FOR_0_FROM_BELOW)\r\n \t\t{\r\n \t\t\tif(isCorrupted(packet)) //Ack = -1 means NAK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"bInput: received packet is corrupted\");\r\n \t\t\t\t//public Packet(int seq, int ack, int check)\r\n \t\t\t\tint seq = -1;\r\n \t\t\t\tint ack = ACK_ACKed_1;\r\n \t\t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY);\r\n \t\t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY); //NAK: seq = -1, ack = -1\r\n \t\t\t\ttoLayer3(1,resendpkt);\r\n \t\t\t\tSystem.out.println(\"bInput: send ACK 1\");\r\n \t\t\t}\r\n \t \t\telse \r\n \t \t\t{\r\n \t \t\t\tSystem.out.println(\"bInput: received packet is not corrupted\");\r\n \t \t\t\tif(packet.getSeqnum()==1)\r\n \t \t\t\t{\r\n \t \t\t\t\tint seq = -1;\r\n \t \t\t\tint ack = ACK_ACKed_1;\r\n \t \t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY); //ACK: seq = -1, ack = 1\r\n \t \t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY);\r\n \t \t\t\ttoLayer3(1,resendpkt); //send back ACK\r\n \t \t\t\tSystem.out.println(\"bInput: send ACK 1\");\r\n \t \t\t\t}\r\n \t \t\t\telse if(packet.getSeqnum()==0)\r\n \t \t\t\t{\r\n \t \t\t\t\tString data = packet.getPayload();\r\n \t \t\t\ttoLayer5(data);\r\n \t \t\t\tSystem.out.println(\"bInput: layer5 received packet 0\");\r\n \t \t\t\t\tint seq = -1;\r\n \t \t\t\tint ack = ACK_ACKed_0;\r\n \t \t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY); //ACK: seq = -1, ack = 1\r\n \t \t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY);\r\n \t \t\t\ttoLayer3(1,resendpkt); //send back ACK\r\n \t \t\t\tSystem.out.println(\"bInput: send ACK 0\");\r\n \t \t\t\tstate_receiver = STATE_WAIT_FOR_1_FROM_BELOW;\r\n \t \t\t\t}\r\n \t \t\t}\r\n \t\t}\r\n \t\t\r\n \t\telse if(state_receiver == STATE_WAIT_FOR_1_FROM_BELOW)\r\n \t\t{\r\n \t\t\tif(isCorrupted(packet)) \r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"bInput: received packet is corrupted\");\r\n \t\t\t\t//public Packet(int seq, int ack, int check)\r\n \t\t\t\tint seq = -1;\r\n \t\t\t\tint ack = ACK_ACKed_0;\r\n \t\t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY);\r\n \t\t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY); //NAK: seq = -1, ack = -1\r\n \t\t\t\ttoLayer3(1,resendpkt);\r\n \t\t\t\tSystem.out.println(\"bInput: send ACK 0\");\r\n \t\t\t}\r\n \t \t\telse \r\n \t \t\t{\r\n \t \t\t\tSystem.out.println(\"bInput: received packet is not corrupted\");\r\n \t \t\t\tif(packet.getSeqnum()==0)\r\n \t \t\t\t{\r\n \t \t\t\t\tint seq = -1;\r\n \t \t\t\tint ack = ACK_ACKed_0;\r\n \t \t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY); //ACK: seq = -1, ack = 1\r\n \t \t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY);\r\n \t \t\t\ttoLayer3(1,resendpkt); //send back ACK\r\n \t \t\t\tSystem.out.println(\"bInput: send ACK 0\");\r\n \t \t\t\t}\r\n \t \t\t\telse if(packet.getSeqnum()==1)\r\n \t \t\t\t{\r\n \t \t\t\t\tString data = packet.getPayload();\r\n \t \t\t\ttoLayer5(data);\r\n \t \t\t\tSystem.out.println(\"bInput: layer5 received packet 1\");\r\n \t \t\t\t\tint seq = -1;\r\n \t \t\t\tint ack = ACK_ACKed_1;\r\n \t \t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY); //ACK: seq = -1, ack = 1\r\n \t \t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY);\r\n \t \t\t\ttoLayer3(1,resendpkt); //send back ACK\r\n \t \t\t\tSystem.out.println(\"bInput: send ACK 1\");\r\n \t \t\t\tstate_receiver = STATE_WAIT_FOR_0_FROM_BELOW;\r\n \t \t\t\t}\r\n \t \t\t}\r\n \t\t}\r\n \t\t*/\r\n }", "public void process(Player player) {\n if (playerPacketId != -1) {\n updatePlayer(player, createUpdate(true));\n }\n if (npcPacketId != -1) {\n updateMobs(player, createUpdate(false));\n }\n //grounditem update\n }", "public void deliver(Packet packet) {\n \n }", "public void processPacket(IServerPlayNetHandler handler) {\n handler.handleRecipeBookUpdate(this);\n }", "@Override\n public void processPacket(UUID playerUUID, PacketBase packet) {\n System.out.println();\n System.out.println(\"Processing packet @ \" + packet);\n System.out.println();\n if(packet instanceof ClientSendInputPacket) {\n Direction direction = ((ClientSendInputPacket) packet).getClientInputType().getDirection();\n Player movingPlayer = currentPlayers.get(playerUUID);\n movingPlayer.getPlayerEntity().move(movingPlayer.getPlayerEntity().getLocation().getOffsetDirectionLocation(direction), EntityMovementType.WALKING);\n }\n }", "protected void aInput(Packet packet)\r\n {\r\n \t\tif(!isCorrupted(packet))\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"|aInput| : packet\"+ packet.getSeqnum()+\"is received without corruption.\");\r\n \t\t\t\tint offset = ((packet.getSeqnum()+1) % LimitSeqNo - window_base);\r\n \t\t\t\tif(offset>1)\r\n \t\t\t\t{\r\n \t\t\t\t\tSystem.out.println(\"|aInput| : window_base: \"+window_base);\r\n \t\t\t\t\tSystem.out.println(\"|aInput| : next sequence number: \"+ Integer.toString((packet.getSeqnum()+1) % LimitSeqNo));\r\n \t\t\t\t\tSystem.out.println(\"|aInput| : offset: \"+offset);\r\n \t\t\t\t}\r\n \t\t\t\twindow_base = (packet.getSeqnum()+1) % LimitSeqNo;;\r\n \t\t\t\t\r\n \t\t\t\tif(messageCongestionBuffer.size()>0)\r\n \t\t\t\t{\r\n \t\t\t\t\tString data = messageCongestionBuffer.get(0).getData();\r\n \t\t \t\t\tmessageCongestionBuffer.remove(0);\r\n \t\t \t\t\r\n \t\t \t\t//public Packet(int seq, int ack, int check, String newPayload)\r\n \t\t \t\t\r\n \t\t \t\t\tint seq = next_seq_num % LimitSeqNo;\r\n \t\t \t\t\tint ack = ACK_NOT_USED;\r\n \t\t \t\t\tint check = makeCheckSum(seq,ack,data);\r\n \t\t \t\t\tpacketBufferAry[next_seq_num % LimitSeqNo] = new Packet(seq,ack,check,data);\r\n \t\t \t\t\tSystem.out.println(\"|aInput| : packet with seq number:\"+Integer.toString(next_seq_num)+\" is made\");\r\n \t\t \t\t\ttoLayer3(0,packetBufferAry[next_seq_num % LimitSeqNo]); //udt_send\r\n \t\t \t\t\tSystem.out.println(\"|aInput| : packet with seq number:\"+Integer.toString(next_seq_num)+\" is sent\");\r\n \t\t \t\t\t\r\n \t\t \t\t\tnext_seq_num = (next_seq_num+1)% LimitSeqNo;\t\r\n \t\t \t\tSystem.out.println(\"|aInput| : next_seq_num now becomes: \"+next_seq_num+\".\");\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t\tSystem.out.println(\"|aInput| : window_base becomes: \"+ window_base+\".\");\r\n \t\t\t\t\r\n \t\t\t\tif(window_base == next_seq_num)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t\tSystem.out.println(\"|aInput| : timer is stopped\");\r\n \t\t\t\t\t\tstopTimer(0);\r\n \t\t\t\t\t}\r\n \t\t\t\telse\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tSystem.out.println(\"|aInput| : timer is restarted\");\r\n \t\t\t\t\t\tstopTimer(0);\r\n \t\t\t\t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\t\t\t}\r\n \t\t\t}\r\n \t\r\n \t/*\r\n \t\tif(state_sender==STATE_WAIT_FOR_ACK_OR_NAK_0)\r\n \t\t{\r\n \t\t\t\r\n \t\t\tif(isCorrupted(packet)) //corrupted \r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: received packet 0 is corrupted\");\r\n \t\t\t\t//resendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse if(packet.getAcknum()== ACK_ACKed_1) \r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 1 is received\");\r\n \t\t\t\t//resendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse //Ack = 1 or bigger mean ACK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 0 is received\");\r\n \t\t\t\t\r\n \t\t\t\tstate_sender = STATE_WAIT_FOR_CALL_1_FROM_ABOVE;\r\n \t\t\t\tSystem.out.println(\"aInput: sender timer is stopped\");\r\n \t\t\t\tstopTimer(0); \r\n \t\t\t}\r\n \t\t\t\r\n \t\t}\r\n \t\telse if(state_sender==STATE_WAIT_FOR_ACK_OR_NAK_1)\r\n \t\t{\r\n \t\t\tif(isCorrupted(packet)) //corrupted\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: received packet 1 is corrupted\");\r\n \t\t\t\t//esendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse if(packet.getAcknum()==ACK_ACKed_0)//Ack = -1 means NAK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 0 is received\");\r\n \t\t\t\t//resendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse //Ack = 1 or bigger mean ACK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 1 is received\");\r\n \t\t\t\tstate_sender = STATE_WAIT_FOR_CALL_0_FROM_ABOVE;\r\n \t\t\t\tSystem.out.println(\"aInput: sender timer is stopped\");\r\n \t\t\t\tstopTimer(0); \r\n \t\t\t}\r\n \t\t}\r\n \t\t*/\r\n \t\t\r\n\r\n }", "private void processPacket(DatagramPacket packet) {\n String data = new String(packet.getData());\n if (data.startsWith(\"/c/\")) {\n int ID = UniqueIdentifier.getIdentifier();\n clients.add(new ServerClient(data.split(\"/c/|/e/\")[1], packet.getAddress(), packet.getPort(), ID));\n System.out.println(\"Client connected with the name: '\" + data.split(\"/c/|/e/\")[1] + \"' @ \" + packet.getAddress() + \":\" + packet.getPort() + \" and is now using the ID: \" + ID);\n send((\"/c/\" + ID + \"/e/\").getBytes(), packet.getAddress(), packet.getPort());\n } else if (data.startsWith(\"/d/\")) {\n disconnect(Integer.parseInt(data.split(\"/d/|/e/\")[1]), true);\n } else if (data.startsWith(\"/sa/\")) {\n sendToAll((\"/m/\" + data.split(\"/sa/|/e/\")[1] + \"/e/\").getBytes());\n } else if (data.startsWith(\"/s/\")) { //TODO - FIX INDIVIDUAL PACKET SENDING\n String decodedData = data.split(\"/s/|/e/\")[1];\n String targetID = decodedData;\n targetID = targetID.substring(targetID.indexOf(\"&\") + 1);\n targetID = targetID.substring(0, targetID.indexOf(\"&\"));\n int id = Integer.parseInt(targetID);\n decodedData = decodedData.replace(\"&\" + id + \"&\", \"\");\n ServerClient targetClient = null;\n for (ServerClient item : clients) {\n if (item.getID() == id) {\n targetClient = item;\n break;\n }\n }\n assert targetClient != null;\n send(decodedData.getBytes(), targetClient.getAddress(), targetClient.getPort());\n } else if (data.startsWith(\"/p/\")) {\n clientResponse.add(Integer.parseInt(data.split(\"/p/|/e/\")[1]));\n } else if (data.startsWith(\"/dp/\")) {\n sendToAll(data.substring(0, data.length() - 3).getBytes());\n } else {\n System.out.println(packet.getAddress() + \":\" + packet.getPort() + \" sent an unknown packet: \" + data);\n }\n }", "public void recv(SimEnt source, Event event)\n\t{\n\t\tif(event instanceof Migrate) \n\t\t{\n\t\t\tSystem.out.println(\"Router attempts to change interface for node \" +((Migrate) event).source().networkId() + \" to interface \" +((Migrate) event).newInterface());\n\t\t\t((Migrate) event).newLink(moveInterface(((Migrate) event).source(),((Migrate) event).newInterface()));\n\t\t\tsend(getInterface(((Migrate) event).source()),event,0);\n\t\t}\n\t\telse if(event instanceof Disconnect) {\n\t\t\tLink link = (Link) removeFromInterface(((Disconnect) event).source());\n\t\t\tlink.removeConnector(this);\n\t\t}\n\t\telse if(event instanceof UniqueAddr) {\n\t\t\tSystem.out.println(toString() +\" handles a request to test if address is unique\");\n\t\t\t((UniqueAddr)event).setUnique(uniqueAddress(((UniqueAddr)event).getAddr()));\n\t\t\tsend(source, event, 0);\n\t\t}\n\t\telse if(event instanceof Solicit)\n\t\t{\n\t\t\tSystem.out.println(this.toString() + \" Received Solicitation request from Node \" + ((Solicit)event).source());\n\t\t\tadvertise();\n\t\t}\n\t\telse if(event instanceof Advertisement)\n\t\t{\n\t\t\tSystem.out.println(this.toString() + \" Received Advertisement from Router \" + ((Advertisement)event).source());\n\t\t}\n\t\telse if(event instanceof BindingRequest) {\n\t\t\tBindingRequest br = (BindingRequest) event;\n\t\t\tif(br.destination().SameAddress(getAddr())) {\n\t\t\t\tSystem.out.println(this.toString()+ \" received a binding request\");\n\t\t\t\tsend(_HA, br, 0);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Router \" + this.getAddr().networkId() + \".\" + this.getAddr().nodeId() + \" handles packet with seq: \" + ((Message) event).seq()+\" from node: \"+((Message) event).source().networkId()+\".\" + ((Message) event).source().nodeId() + \" at time: \"+SimEngine.getTime() );\n\t\t\t\tSimEnt sendNext = getInterface(br.destination());\n\t\t\t\tSystem.out.println(\"Router sends to node: \" + ((Message) event).destination().networkId()+\".\" + ((Message) event).destination().nodeId());\t\n\t\t\t\tsend (sendNext, event, _now);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if (event instanceof Message)\n\t\t{\n\t\t\t//System.out.println(\"Router \" + this.getAddr().networkId() + \".\" + this.getAddr().nodeId() + \" handles packet with seq: \" + ((Message) event).seq()+\" from node: \"+((Message) event).source().networkId()+\".\" + ((Message) event).source().nodeId() + \" at time: \"+SimEngine.getTime());\n\t\t\tSimEnt sendNext = getInterface(((Message) event).destination());\n\t\t\t//System.out.println(\"Router sends to node: \" + ((Message) event).destination().networkId()+\".\" + ((Message) event).destination().nodeId());\t\t\n\t\t\tsend (sendNext, event, _now);\n\t\t}\n\t}", "@Override\n\tpublic void onPacketData(NetworkManager network, Packet250CustomPayload packet, Player player)\n\t{\n\n\t}", "@Override\n\tpublic void update()\n\t{\n\t\tfor (int i = 0; i < 16 && !processQueue.isEmpty(); i++)\n\t\t{\n\t\t\tProcessEntry entry = processQueue.remove();\n\t\t\tprocessPacket(entry.packet, entry.sourceClient);\n\t\t}\n\t\t\n\t\t// Flush pending packets\n\t\tclientChannels.flush();\n\t}", "@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer2 has received update!\");\r\n\t}", "@Override\n\tpublic void update(Game game) {\n\t\t\n\t\tObject packet = game.connectionManager.mostRecentPacket;\n\t\tif (packet instanceof StatePacket)\n\t\t{\n\t\t\tgame.manager.receiveUpdate(game, (StatePacket) packet);\n\t\t}\n\t}", "public void handleAPIFrame(byte[] packet, int packetLen) {\n\t\t\n\t\t\n\t\tint packetType = packet[0] & 0xff;\n\t\t\n\t\t// This can only be an echo from a remote packet injected by the relay.\n\t\t// Don't want it going back out. Drop it.\n\t\tif (packetType == 0x91) {\n\t\t\t//log.debug (\"Local->Remote: not relaying packet type 0x91 as it can only be source from a real XBee\");\n\t\t\treturn;\n\t\t}\n\t\tif (packetType == 0x8B) {\n\t\t\t//log.info (\"Local->Remote: dropping packet type 0x8B as it can only originate from a real XBee\");\n\t\t\treturn;\n\t\t}\n\t\tlog.info(\"Local->Remote: \" + ByteFormatUtils.byteArrayToString(packet,0,packetLen));\n\n\t\ttry {\n\t\t\tXBeeUtil.writeAPIFrameToStream(packet, packetLen, out);\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void processPacket(String packet) {\n try {\n Log.e(\"info\", packet);\n JSONObject obj = new JSONObject(packet);\n JSONObject toSend = new JSONObject();\n String id = obj.getString(\"packet\");\n\n\n\n if (id.equals(\"acknowledge\")) {\n LocalPlayer ply = new LocalPlayer(activity);\n ply.identifier = socket.toString();\n ply.socket = socket;\n activity.playerMap.put(ply.identifier, ply);\n ply.latitude = 0;\n ply.longitude = 0;\n ply.bomb = false;\n ply.name = obj.getString(\"name\");\n ply.update();\n\n JSONObject playerObj = new JSONObject();\n\n playerObj.put(\"identifier\", ply.identifier);\n playerObj.put(\"latitude\", ply.latitude);\n playerObj.put(\"longitude\", ply.longitude);\n playerObj.put(\"name\", ply.name);\n playerObj.put(\"bomb\", ply.bomb);\n toSend.put(\"player\", playerObj);\n\n server.sendPacket(socket, \"initialize\", toSend);\n }\n else if (id.equals(\"bomb\")) {\n for (HashMap.Entry<String, LocalPlayer> entry : activity.playerMap.entrySet()) {\n entry.getValue().bomb = false;\n }\n LocalPlayer ply = activity.playerMap.get(obj.getString(\"identifier\"));\n if (ply.identifier.equals(activity.selfPlayer))\n Toast.makeText(activity, \"You got the bomb\", Toast.LENGTH_LONG).show();\n\n if (ply != null) {\n ply.bomb = true;\n }\n }\n else if (id.equals(\"location\")) {\n LocalPlayer ply = activity.playerMap.get(socket.toString());\n if (ply != null) {\n ply.longitude = obj.getDouble(\"longitude\");\n ply.latitude = obj.getDouble(\"latitude\");\n ply.update();\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "protected void recvSensorPacket(Object data_)\n\t{\t\n\t\tif ( data_ instanceof SensorPacket )\n\t\t{\n\t\t\tSensorPacket spkt = (SensorPacket)data_ ;\n\t\t\tif(nodeState.equals(NodeState.SLEEPING) && spkt.pktType!=DRLDiffApp.INTEREST_PKT){\n\t\t\t\tlog(Level.FINE,\"Dropping packet as currenly asleep..\"+spkt.getBody());\n\t\t\t\tlog(Level.FINE,\"Current task:\"+microLearner.currentTask+\", current state:\"+microLearner.currentState\n\t\t\t\t\t\t+\" time:\"+microLearner.timesteps+\" lastDiff:\"+microLearner.lastDiffusionParticipation+\" lastS:\"+microLearner.lastSourceParticipation);\n\t\t\t\treturn;\n\t\t\t}else{\n\t\t\t\tlog(Level.FINE,\"Received sensor packet:\"+spkt.getBody());\n\t\t\t}\n\t\t\tboolean process;\n\t\t\tswitch ( spkt.pktType )\n\t\t\t{\n\t\t\t\tcase DRLDiffApp.INTEREST_PKT :\n\t\t\t\t\tnoOfInterests++;\n\t\t\t\t\tInterestPacket interestPkt = (InterestPacket)spkt.getBody() ;\n\t\t\t\t\tprocess=macroLearner.interestArriveAtDownPort(interestPkt);\n\t\t\t\t\tif(process)\n\t\t\t\t\t\tmicroLearner.handleInterestPkt(interestPkt);\n\t\t\t\t\tinterestCachePrint();\n\t\t\t\t\tbreak ;\n\t\t\t\tcase DRLDiffApp.DATA_PKT :\n\t\t\t\t\tDataPacket dataPkt = (DataPacket)spkt.getBody() ;\n\t\t\t\t\tif(dataPkt.isHeartBeat()){\n\t\t\t\t\t\tnoOfHeartBeats++;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnoOfDataPkts++;\n\t\t\t\t\t}\n\t\t\t\t\tprocess=macroLearner.dataArriveAtDownPort(dataPkt);\n\t\t\t\t\tif(process){\n\t\t\t\t\t\tif(nid==sink_nid){\n\t\t\t\t\t\t\thandleSinkData(dataPkt);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tmicroLearner.handleDataPkt(dataPkt);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DRLDiffApp.REINFORCEMENT_PKT :\n\t\t\t\t\tnoOfReinforcements++;\n\t\t\t\t\tReinforcementPacket reinforcementPkt = (ReinforcementPacket)spkt.getBody() ;\n\t\t\t\t\tlog(Level.FINE,\"Received REINFORCEMENT:\"+reinforcementPkt);\n\t\t\t\t\t//interestCachePrint();\n\t\t\t\t\tmacroLearner.handleReinforcement(reinforcementPkt);\n\t\t\t\t\tmicroLearner.handleReinforcement(reinforcementPkt);\n\t\t\t\t\tbreak ;\n\t\t\t\tdefault :\n\t\t\t\t\tsuper.recvSensorPacket(data_) ;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tsuper.recvSensorPacket(data_) ;\n \t}", "void handleNewDataPacket(UDPAddress sender, UDPDataPacket packet) {\n Hashtable<Integer, UDPDataPacket> waitArea = null;\n Integer nextExpected = null; \n UDPDataPacket[] newMsg = null;\n\n // Store the message in the waiting area\n waitArea = (Hashtable<Integer, UDPDataPacket>) waitingPackets.get(sender);\n if (waitArea == null) {\n waitArea = new Hashtable<Integer, UDPDataPacket>();\n waitingPackets.put(sender, waitArea);\n }\n waitArea.put(new Integer(packet.seqNum), packet);\n // PRAGMA [DEBUG] Debug.out.println(\"*** UDPInstance ***: New packet put in waiting area\");\n\n // Figure out the next packet we expect from this sender\n nextExpected = (Integer) globalSeqNum.get(sender);\n if (nextExpected == null) {\n nextExpected = new Integer(0);\n globalSeqNum.put(sender, nextExpected);\n }\n // PRAGMA [DEBUG] Debug.out.println(\"*** UDPInstance ***: Next expected packet is \" + nextExpected);\n\n // Now keep processing packets until we either run out or we can't\n // find the next expected packet\n while ((!waitArea.isEmpty()) &&\n\t (waitArea.containsKey(nextExpected))) {\n\n // Get the next ready packet. Don't forget to delete it out of\n // the wait area.\n UDPDataPacket nextPack = (UDPDataPacket) waitArea.get(nextExpected);\n waitArea.remove(nextExpected);\n // PRAGMA [DEBUG] Debug.out.println(\"*** UDPInstance ***: Handling packet \" + nextPack);\n\n // If there is already a message being constructed for this\n // sender, then add the new packet to the end. Otherwise this\n // data packet must be the beginning of a new message.\n newMsg = (UDPDataPacket[]) nextMsg.get(sender);\n\n if (newMsg == null) {\n\t// Ok, this is the start of a new message. Need to figure out\n\t// how big the new message will be and allocate the\n\t// appropriate space for it.\n\t// PRAGMA [DEBUG] Debug.out.println(\"Starting new user level message\");\n\tnewMsg = new UDPDataPacket[nextPack.totPackets];\n\tnextMsg.put(sender, newMsg);\n }\n\n // Add the new packet\n newMsg[nextPack.streamNum] = nextPack;\n\n // Now check to see if the new message is completed. If so then\n // build a UDPMessage and store it in the msgsReceived queue.\n if ((nextPack.streamNum + 1) == nextPack.totPackets) {\n\t// PRAGMA [DEBUG] Debug.out.println(\"User level message complete, delivering\");\n\tbuildNewRcvdMsg(sender, newMsg);\n\tnextMsg.remove(sender);\n }\n\n // Increment next expected\n nextExpected = new Integer(nextExpected.intValue() + 1);\n globalSeqNum.put(sender, nextExpected);\n }\n\n // If we couldn't find the next message then generate a NACK\n if (!waitArea.isEmpty())\n generateNACK(sender, nextExpected.intValue());\n }", "@Override\n\t public void process(PacketContext context) {\n\t InboundPacket pkt = context.inPacket();\n Ethernet ethPkt = pkt.parsed();\n HostId id = HostId.hostId(ethPkt.getDestinationMAC());\n/*\n InboundPacket pkt = context.inPacket();\n Ethernet ethPkt = pkt.parsed();\n\t MacAddress hostId = ethPkt.getSourceMAC();\n HostId id = HostId.hostId(ethPkt.getDestinationMAC());\n\t DeviceId apId = pkt.receivedFrom().deviceId();\n*/\n // Do we know who this is for? If not, flood and bail.\n\t //log.info(\"Host id : {}\",id);\n\n Host dst = hostService.getHost(id);\n\n\t\n if (dst == null) {\n ipv6process(context, pkt);\n\t \n return;\n\t }\n/*\n\t if (pkt.receivedFrom().deviceId().equals(dst.location().deviceId())) {\n if (!context.inPacket().receivedFrom().port().equals(dst.location().port())) {\n\t\t log.info(\"Rule is installed.-1\");\n\t\t log.info(\"DeviceID: dst={}\", pkt.receivedFrom().deviceId(), dst.location().deviceId());\n installRule(context, dst.location().port());\n }\n return;\n }\n\t\t\t\t\n*/\t\n \t if((stPreApId.equals(stNowApId) && stype ==1) || (stPreApId.equals(stNowApId) && stype ==2)){\n\t\t log.info(\"##############test same ap -------------[ok]\\n\");\n\t\t log.info(\"checking preApId ={}, nowApId={} \\n\",stPreApId, stNowApId);\n\t\t //TODO ::\t\t\t\n\t Set<Path> paths = topologyService.getPaths(topologyService.currentTopology(), pkt.receivedFrom().deviceId(), dst.location().deviceId()); \n\t\t if (paths.isEmpty()) {\n\t\t // If there are no paths, flood and bail.\n\t\t //flood(context);\n\t\t return;\n\t\t }\n\t\t \n\t\t Path path = pickForwardPathIfPossible(paths,pkt.receivedFrom().port());\n\t\t if (path == null) {\n\t\t log.warn(\"Don't know where to go from here {} for {} -> {}\",\n\t\t pkt.receivedFrom(), ethPkt.getSourceMAC(), ethPkt.getDestinationMAC());\n\t\t //flood(context);\n\t\t return;\n\t\t }\n\t\t log.info(\"Rule is installed.-2\");\n\t\t log.info(\"port()={}, path()={}\", pkt.receivedFrom().port(), path);\n\t\t mkList(hostId, apId, flowNum, pkt.receivedFrom().port(), ethPkt.getSourceMAC(), ethPkt.getDestinationMAC(), stype);\n\t\t saveFlowInfo(ethPkt.getDestinationMAC(),pkt.receivedFrom().deviceId(), stype);\n\t\t // stype = 0;\n\n\t }\n\n\n\t if(! stPreApId.equals(stNowApId) && stype ==3){\n\t\tif(! stNowApId.equals(\"\")){\n\t\t\tlog.info(\"##############test handover -------------[ok]\\n\");\n\t\t\tlog.info(\"checking preApId ={}, nowApId={} \\n\",stPreApId, stNowApId);\n\t\t\tlog.info(\"test : {}\",destList2.size());\n\n\t\t\t/*for(int i =0; i<destList2.size();i++){\n\t\t\t\tlog.info(\"test type 2 cnt: {}\",i);\n\t\t\t\t//if(((DeviceId)desApList2.get(i)).equals(dst.location().deviceId())){\n\t\t\t\t\t Set<Path> paths = topologyService.getPaths(topologyService.currentTopology(), pkt.receivedFrom().deviceId(), dst.location().deviceId()); \n\t\t\t\t if (paths.isEmpty()){\n\t\t\t\t\treturn;\n\t\t\t\t }\n\t\t\t\t Path path = pickForwardPathIfPossible(paths, pkt.receivedFrom().port());\n\t\t\t\t if (path == null) {\n\t\t\t\t\tlog.warn(\"Don't know where to go from here\");\n\t\t\t\t\treturn;\n\t\t\t\t }\n\t\t\t\t log.info(\"Rule is installed.-3\");\n\t\t\t\t log.info(\"port()={}, path()={}\", pkt.receivedFrom().port(), path);\t\n\t\t\t\t // }\n\t\t\t}*/\n\n\t\t\tfor(int i =0; i<destList1.size();i++){\n\t\t\t\tlog.info(\"test type 1 cnt: {}\",i);\n\t\t\t\t//if(((DeviceId)desApList1.get(i)).equals(dst.location().deviceId())){\n\t\t\t\t\t Set<Path> paths = topologyService.getPaths(topologyService.currentTopology(), pkt.receivedFrom().deviceId(), dst.location().deviceId());\n\t\t\t\t if (paths.isEmpty()){\n\t\t\t\t\treturn;\n\t\t\t\t }\n\t\t\t\t Path path = pickForwardPathIfPossible(paths, pkt.receivedFrom().port());\n\t\t\t\t if (path == null) {\n\t\t\t\t\tlog.warn(\"Don't know where to go from here\");\n\t\t\t\t\treturn;\n\t\t\t\t }\n\t\t\t\t log.info(\"Rule is installed.-4\");\n\t\t\t\t log.info(\"port()={}, path()={}\", pkt.receivedFrom().port(), path);\t\n\t\t\t\t // }\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif (stype ==0) {\n\t\t\tlog.info(\"###-----------what is packet?\\n\");\n\t\t}\n\t\t\n\t }\n\t\tlog.info(\"#############-------------[waitting]\\n\");\n\t\t\n\t}", "public void onPacketReceived(Consumer<APINetworkPacket> consumer) {\n packetReceived.register(consumer);\n }", "@Override\n\tpublic void onUpdatePeersReceived(UpdateEvent arg0) {\n\t\t\n\t}", "public void processPacket(INetHandler handler)\r\n {\r\n this.processPacket((INetHandlerPlayClient)handler);\r\n }", "public void run() {\n\t\tPacket p = new Packet(SOURCE_ID, DESTINATION_ID, -1);\r\n\t\tp.type = PacketType.DATA;\r\n\t\tp.nextId = SOURCE_ID;\r\n\t\tp.setRoutingName(this.getClass().getSimpleName());\r\n\t\t\r\n\t\tinit();\r\n\t\t// First event: source node receive pkt from upper layer\r\n\t\tEvent first_e = new Event(EventType.PACKETRECEIVE, SOURCE_ID, p, currentTime, -1);\r\n\t\taddEvent(first_e);\r\n\t\t\r\n\t\twhile(state == State.NOTFINISHED)\r\n\t\t{\t\r\n\t\t\tif(eventList.size() > MAX_EVENT_SIZE)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"!!! ERROR: Scheduler too long !!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tif(eventId >= eventList.size())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"!!! EventListener Empty !!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\tSystem.out.println(\"*****Lista eventi da eseguire *****\");\r\n\t\t\tfor(int i = eventId; i < eventList.size(); i++)\r\n\t\t\t\tSystem.out.println(\"Evento \"+i+\" - \"+eventList.get(i));\r\n\t\t\tSystem.out.println(\"***********\");\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\t//System.out.println(\"event list size = \" + eventList.size());\r\n\t\t\te = eventList.get(eventId);\r\n\t\t\teventId++;\r\n\t\t\t\r\n\t\t\t// Node and time in which event happens\r\n\t\t\tcurrentNode = topo.get(e.nodeId);\r\n\t\t\tcurrentTime = e.time;\r\n\t\t\t\r\n\t\t\t// -------- PACKET IS BEING RECEIVED --------------------------------------------\r\n\t\t\tif(e.type == EventType.PACKETRECEIVE)\r\n\t\t\t{\t\t\t\r\n\t\t\t\tp = e.pkt;\r\n\t\t\t\tint nextId = p.nextId;\r\n\t\t\t\tif(!p.broad && currentNode.id != nextId) {\r\n\t\t\t\t\tSystem.out.println(\"SCHEDULER ERROR: current node is different than the node that received the packet.\");\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Check nodes connectivity\r\n\t\t\t\tif(p.getFromId() > -1 && topo.get(p.getFromId()).distance(topo.get(nextId)) > topo.getRange())\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Connection bewteen nodes does not exists.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treceive(p, topo.get(p.nextId));\r\n\t\t\t\t\r\n\t\t\t\t// DESTINATION REACHED - STOP\r\n\t\t\t\tif(p.type == PacketType.DATA && nextId == DESTINATION_ID) {\r\n\t\t\t\t\tstate = State.SUCCESS;\r\n\t\t\t\t\t//System.out.println(\"=== Packet delivered. Simulation STOP ===\");\r\n\t\t\t\t\thops = p.getHops();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} \r\n\t\t\t\t\t\r\n\t\t\t\t//packetSizes.add(calculatePacketSize());\r\n\t\t\t\t//trace.forward(topo.get(c_id), topo.get(nextNodeId), hops, calculatePacketSize(), state);\r\n\t\t\t\t\t\r\n\t\t\t\t// EXTRACT PACKET FROM EVENT\r\n\t\t\t\t\t\t\t\r\n\t\t\t}\t\r\n\t\t\r\n\t\t\t// -------- OTHER EVENT TYPES ----------------------------------------\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//TODO\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public void receivePackets() throws IOException {\n while (!Thread.interrupted()) {\n// long end = System.nanoTime();\n// System.out.println(\"recp2 \" + received + \" bytes in \" + (end - start)/1000 + \"mks \");\n\n byte[] packet = slip.recvPacket();\n\n if (packet != null && packet.length > 0) {\n// received = packet.length;\n// start = System.nanoTime();\n\n try {\n int ipVer = IP.readIPVersion(packet);\n if (ipVer == 4 && IP.readDestAddress(packet) == localAddress) {//todo check remote addr\n IP ip = new IP(packet);\n if (ip.protocol == 6 && ip.verify()) {\n long remoteAddress = ip.sourceAddress;\n int remotePort = ip.tcp.sourcePort;\n int localPort = ip.tcp.destPort;\n Long key = (remoteAddress << 32) | ((localPort & 0xFFFF) << 16) | (remotePort & 0xFFFF);\n TCPLink link;\n synchronized (links) {\n link = links.get(key);\n if (link != null) {\n// System.out.println(\"process incoming packet from port \" + ip.tcp.sourcePort + \" by \" + link.hashCode());\n } else {\n if ((ip.tcp.flags & TCP.SYN) == TCP.SYN) {\n\n link = TCPLinkFactory.create(ip.sourceAddress,\n remotePort, localPort, key, this);\n links.put(key, link);\n// System.out.println(\"process SYN packet \" + packet + \" by \" + link.hashCode());\n\n } else if (BuildConfig.DEBUG) {\n Log.e(TAG, \"BAD IP PACKET (no such connection exist) \" + key + \" \" + desc(ip) + \" FROM \" + slip.getISDesc() + \" \" + Utils.toHex(packet));\n }\n }\n }\n if (link != null) {\n link.processPacket(ip);\n }\n } else if (BuildConfig.DEBUG) {\n Log.w(TAG, \"BAD IP PACKET \" + desc(ip) + \" FROM \" + slip.getISDesc() + \" \" + Utils.toHex(packet));\n }\n\n } else if (BuildConfig.DEBUG) {\n Log.w(TAG, \"NOT OUR IP PACKET IPv\" + ipVer + \" TO \"\n + (ipVer == 4 ? Integer.toHexString(IP.readDestAddress(packet)) : \"unknown\")\n + \" desc \" + (ipVer == 4 ? desc(new IP(packet)) : \"unkn\") + \" hex \" + Utils.toHex(packet));\n }\n\n } catch (InterruptedException e) {\n readerAlive = false;\n if (BuildConfig.DEBUG) {\n Log.w(TAG, \"interrupted\");\n }\n return;\n } catch (IOException e) {\n if (BuildConfig.DEBUG) {\n Log.w(TAG, \"bad ip packet \" + e);\n }\n }\n }\n }\n readerAlive = false;\n }", "public void handlePacket(Ethernet etherPacket, Iface inIface)\n\t{\n\t\tSystem.out.println(\"*** -> Received packet: \" +\n etherPacket.toString().replace(\"\\n\", \"\\n\\t\"));\n\n\t\t/********************************************************************/\n\t\t/* TODO: Handle packets */\n\n\t\tMACAddress srcMAC = etherPacket.getSourceMAC();\n\t\tMACAddress dstMAC = etherPacket.getDestinationMAC();\n\n\t\tSwitchEntry srcEntry = new SwitchEntry(srcMAC, inIface);\n\t\tswitchTable.put(srcMAC, srcEntry);\t\t\t// learn src MAC\n\n\t\tif (switchTable.containsKey(dstMAC)) { // if learned, sent to corresponding iface\n\t\t\tSwitchEntry dstEntry = switchTable.get(dstMAC);\n\t\t\tIface outIface = dstEntry.getIface();\n\t\t\tsendPacket(etherPacket, outIface);\n\t\t\tif (DEBUG) {System.out.println(\"Contains key, send packet to \" + outIface);}\n\t\t}\n\t\telse { // if not learned, just broadcast\n\t\t\tif (DEBUG) {System.out.println(\"Haven't learned, broadcast...\");}\n\t\t\tfor (Iface ifa : interfaces.values()) {\n\t\t\t\tif (!inIface.equals(ifa)){ //broadcast except sender itself\n\t\t\t\t\tsendPacket(etherPacket, ifa);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/********************************************************************/\n\t}", "public void update(NetworkNode networkNode);", "@Override\n public Packet adaptOutgoing(Packet packet) {\n\n \t\t// Retrieve flow to which the packet belongs\n long flowId = packet.getFlowId();\n\n // Retrieve current flowlet of the flow\n int currentFlowlet = getCurrentFlowlet(flowId);\n\n // If the flowlet gap is exceeded, go to next flowlet\n if (flowletGapExceeded(flowId)) {\n currentFlowlet = Math.max(0, currentFlowlet + 1);\n setCurrentFlowlet(flowId, currentFlowlet);\n \n // Mark that this flow is now in lower priority\n this.lowPriorityFlows.put(flowId, (long)((TcpPacket)packet).getWindowSize());\n } \n \n if (this.lowPriorityFlows.containsKey(flowId)) {\n\n \t\t// check if we finished sending the congestion window\n PriorityHeader tcpPacket = (PriorityHeader) packet;\n \t\tlong remainingToSend = this.lowPriorityFlows.get(flowId);\n \t\t\n \t\t\tthis.lowPriorityFlows.put(flowId, remainingToSend - tcpPacket.getDataSizeByte());\n \t\t\ttcpPacket.increasePriority();\n \t\t\t\n \t\t\tif (this.lowPriorityFlows.get(flowId) <= 0){\n \t\t\t\tthis.lowPriorityFlows.remove(flowId);\n \t\t\t}\n }\n\n // Actually set flowlet identifier on the packet\n packet.setFlowletId(currentFlowlet);\n\n // Set the actual hash to be dependent on both flow id and flowlet identifier\n TcpHeader tcpHeader = (TcpHeader) packet;\n tcpHeader.setHashSrcDstFlowFlowletDependent();\n\n // Pass on to regular packet handling\n return packet;\n\n }", "private void processPacket(NetPacket packet) {\t\t\t\t\t\n\t\tNetPacketHandler[] handlers = NetAPI.getHandlers(packet);\n\t\t\n\t\tfor(NetPacketHandler handler : handlers) {\n\t\t\t// To avoid a handler locking up the receiver thread\n\t\t\t// We will shove them into a temporary thread\n\t\t\tHandlerThread p = new HandlerThread(handler, packet);\n\t\t\tp.start();\n\t\t\thandler.handle(packet);\n\t\t}\n\t}", "private void updateReceivedData(byte[] data) {\n }", "@Override\n public void onTrafficStatusUpdate() {\n\n }", "@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}", "void onPacket(IServerConnection<_ATTACHMENT> connection, ISendable packet) throws IOException;", "private void handlePingFrame() throws IOException {\n // read all of the ping payload\n byte[] pingPayload = consumePayload();\n outputPeer.writePong(pingPayload);\n }", "@Override\r\n\tpublic void packetLost(Connection connection, BaseDatagram lostDatagram)\r\n\t{\n\t\t\r\n\t}", "public void processEvent(Packet packet) {\r\n\t\tint eventCode = packet.eventCode;\r\n\t\t\r\n\t\tswitch(eventCode) {\r\n\t\t\tcase 0: registerPeer(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 2: insertFile(packet);\r\n\t\t\t //forwardPacket(packet);\r\n\t\t\t break;\r\n\t\t\tcase 3: findFile(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 4: processFileLocation(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 5: fileTransferReq(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 6: recFile(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 7: passingDHT(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 8: peerQuitting(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase 9: updateDHTPeerQuit(packet);\r\n\t\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void dispatchNetworkStateChange(NetworkInfo networkInfo) {\n this.handler.sendMessage(this.handler.obtainMessage(9, networkInfo));\n }", "public void handlePacket(Packet211TileDesc packet)\r\n/* 304: */ {\r\n/* 305: */ try\r\n/* 306: */ {\r\n/* 307:251 */ readFromPacket(packet);\r\n/* 308: */ }\r\n/* 309: */ catch (IOException e) {}\r\n/* 310:253 */ this.k.i(this.l, this.m, this.n);\r\n/* 311: */ }", "public void onUpdateTraffic(Message msg) {\n if (msg != null && msg.obj != null) {\n Bundle bundle = (Bundle) msg.obj;\n this.mHwHiStreamCHRManager.onUpdateQuality(bundle.getInt(\"wifiRxTraffic\"), bundle.getInt(\"cellularRxTraffic\"), bundle.getInt(\"wifiTxTraffic\"), bundle.getInt(\"celluarTxTraffic\"), bundle.getInt(\"monitoringUid\"));\n }\n }", "public void run() {\n\n\t\tObjectInputStream inputStream = null;\n\t\tObjectOutputStream outputStream = null;\n\n\t\ttry {\n\n\t\t\t// get packet from InputStream\n\t\t\tinputStream = new ObjectInputStream(this.socket.getInputStream());\n\t\t\tSOSPFPacket message = (SOSPFPacket) inputStream.readObject();\n\n\t\t\t// -----------------------------------------------------------------------------------------------------------------------------------------\n\t\t\t// check if message is HELLO message\n\t\t\tif (message.sospfType == 0) {\n\n\t\t\t\tSystem.out.println(\"\\nreceived HELLO from \" + message.neighborID + \";\");\n\n\t\t\t\t// message.neighborID identifies sender of packet\n\n\t\t\t\t// add a neighbour\n\t\t\t\tboolean addNeighbour = true;\n\n\t\t\t\t// check to see if sender is already a neighbour\n\t\t\t\tfor (Link currLink : router.ports) {\n\t\t\t\t\t// sender is already a neighbour (dont want to addNeighbour)\n\t\t\t\t\tif (currLink.router2.simulatedIPAddress.equals(message.neighborID)) {\n\t\t\t\t\t\taddNeighbour = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if sender is not already a neighbour, then add as neighbour\n\t\t\t\tif (addNeighbour) {\n\n\t\t\t\t\t// add a new Neighbour to myRouter\n\t\t\t\t\tif (router.ports.size() < 4) {\n\t\t\t\t\t\t// create new RouterDescription for Neighbour\n\t\t\t\t\t\tRouterDescription remoteRouter = new RouterDescription();\n\t\t\t\t\t\tremoteRouter.processIPAddress = message.srcProcessIP;\n\t\t\t\t\t\tremoteRouter.simulatedIPAddress = message.neighborID;\n\t\t\t\t\t\tremoteRouter.processPortNumber = message.srcProcessPort;\n\t\t\t\t\t\tremoteRouter.status = RouterStatus.INIT;\n\n\t\t\t\t\t\trouter.ports.add(new Link(router.rd, remoteRouter, message.srcWeight));\n\n\t\t\t\t\t\tSystem.out.println(\"set \" + message.neighborID + \" state to INIT;\");\n\n // cannot add new Neighbour because myRouter.ports are full\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"Error: Cannot add new Neighbour, ports are full\");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// Prepare response ---------------------------------------------------------------------\n\n\t\t\t\t// create new SOSPF packet with HELLO message\n\t\t\t\tSOSPFPacket response = new SOSPFPacket();\n\t\t\t\tresponse.sospfType = 0;\n\t\t\t\tresponse.neighborID = router.rd.simulatedIPAddress;\n\t\t\t\tresponse.srcProcessIP = router.rd.processIPAddress;\n\t\t\t\tresponse.srcProcessPort = router.rd.processPortNumber;\n\n\t\t\t\t// send response to client\n\t\t\t\toutputStream = new ObjectOutputStream(this.socket.getOutputStream());\n\t\t\t\toutputStream.writeObject(response);\n\n\t\t\t\t// get response from client\n\t\t\t\tresponse = (SOSPFPacket) inputStream.readObject();\n\n\t\t\t\t// confirm it is a HELLO response\n\t\t\t\tif (response.sospfType == 0) {\n\t\t\t\t\tSystem.out.println(\"received HELLO from \" + response.neighborID + \";\");\n\n\t\t\t\t\t// set myRouter.neighbourID.status to TWO_WAY\n\t\t\t\t\tfor (Link currLink : router.ports) {\n\t\t\t\t\t\t// check if already TWO WAY\n\t\t\t\t\t\tif (currLink.router2.simulatedIPAddress.equals(response.neighborID)) {\n\n\t\t\t\t\t\t\tcurrLink.router2.status = RouterStatus.TWO_WAY;\n\t\t\t\t\t\t\tSystem.out.println(\"set \" + response.neighborID + \" state to TWO_WAY;\");\n\n\t\t\t\t\t\t\tsendLSP(updateLSA(currLink, 0));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// message is Link State Packet\n\t\t\t\t//-----------------------------------------------------------------------------------------------------------------------------------------\n\t\t\t} else if (message.sospfType == 1) {\n//\t\t\t\tSystem.out.println(\" -- Received LSP -- \");\n\n\t\t\t\tfor (LSA receivedLSA : message.lsaArray) {\n\t\t\t\t\tLSA currentLSA = router.lsd._store.get(receivedLSA.linkStateID);\n\n\t\t\t\t\t//if the incoming LSA is newer than current or new router\n\t\t\t\t\tif (!router.lsd._store.containsKey(receivedLSA.linkStateID) || (receivedLSA.lsaSeqNumber > currentLSA.lsaSeqNumber)) {\n\t\t\t\t\t\t//System.out.println(\"NLSA : \" + message.lsaArray.lastElement().toString());\n\t\t\t\t\t\trouter.lsd._store.put(receivedLSA.linkStateID, receivedLSA);\n\n\t\t\t\t\t\tsendLSP(receivedLSA);\n\t\t\t\t\t}\n\t\t\t\t}\n\n // message is Exit Packet\n //-----------------------------------------------------------------------------------------------------------------------------------------\n\t\t\t} else if (message.sospfType == 2) {\n//\t\t\t System.out.println(\"INFO: Received a deletion request from \" + message.srcIP + \".\");\n\n\t\t\t // Create the response packet\n SOSPFPacket confirmDisconnect = new SOSPFPacket();\n confirmDisconnect.sospfType = 2;\n confirmDisconnect.srcIP = router.rd.simulatedIPAddress;\n confirmDisconnect.srcProcessPort = router.rd.processPortNumber;\n confirmDisconnect.dstIP = message.srcIP;\n confirmDisconnect.srcProcessIP = router.rd.processIPAddress;\n\n // Send the packet\n outputStream = new ObjectOutputStream(this.socket.getOutputStream());\n outputStream.writeObject(confirmDisconnect);\n outputStream.close();\n\n // Find the port that it belongs to\n int i = 0;\n Link deadLink = null;\n for (Link l : router.ports) {\n if (message.srcIP.equals(l.router2.simulatedIPAddress)) {\n deadLink = l;\n break;\n }\n else {\n i++;\n }\n }\n\n if (deadLink == null) {\n System.out.println(\"ERROR: Could not find the port to delete.\");\n throw new RuntimeException();\n }\n\n Link confirmDead = router.ports.remove(i);\n System.out.println(\"INFO: Removed \" + confirmDead.router2.simulatedIPAddress + \" from ports.\" );\n\n // updateLSA actually updates the LSD and LSA. This must always run, so don't nest this\n // inside sendLSP.\n LSA freshLSA = updateLSA(confirmDead, 1);\n sendLSP(freshLSA);\n// System.out.println(router.lsd._store.keySet());\n }\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tinputStream.close();\n\t\t\t\t//outputStream.close();\n\t\t\t\tthis.socket.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void receivePacket() throws IOException {\n\t\tDatagramPacket packet = new DatagramPacket(new byte[SERVER_PACKET_MAX_SIZE], SERVER_PACKET_MAX_SIZE);\n\t\tsocket.receive(packet);\n\t\t\n\t\tbyte[] data = packet.getData();\n\t\tbyte[] body = Arrays.copyOfRange(data, PACKET_HEADER_SIZE, data.length);\n\t\t\n\t\tHeaderData header = readHeader(Arrays.copyOf(data, PACKET_HEADER_SIZE));\n\t\t\n\t\ttry {\n\t\t\thandler.get(header.label).handle(header, body);\n\t\t}catch (NullPointerException e) {\n\t\t\tSystem.out.println(\"CLIENT: Received unknown packet type: \" + header.label);\n\t\t}\n\t}", "public void receive(Ip4Packet packet) {\n\t\tIp4Packet pkt2=receive();\n\t\tint data_len=pkt2.getPayloadLength();\n\t\tSystem.arraycopy(pkt2.getPayloadBuffer(),pkt2.getPayloadOffset(),packet.getPayloadBuffer(),packet.getPayloadOffset(),data_len);\n\t\tpacket.setPayloadLength(data_len);\n\t\tpacket.setSourceAddress(pkt2.getSourceAddress());\n\t\tpacket.setDestAddress(pkt2.getDestAddress());\n\t\tif (pkt2.hasOptions()) {\n\t\t\tint opts_len=pkt2.getOptionsLength();\n\t\t\tif (packet.getOptionsBuffer()==null) packet.setOptions((new byte[OPTIONS_BUFFER_SIZE]),0,OPTIONS_BUFFER_SIZE);\n\t\t\tSystem.arraycopy(pkt2.getOptionsBuffer(),pkt2.getOptionsOffset(),packet.getOptionsBuffer(),packet.getOptionsOffset(),opts_len);\n\t\t\tpacket.setOptionsLength(opts_len);\n\t\t}\n\t\telse {\n\t\t\tpacket.setOptionsLength(0);\n\t\t}\n\t}", "protected void manageMovement(boolean localUpdate, Player player, PacketBuilder packet) {\n int movementUpdateId = (localUpdate && (player.basicSettings().isTeleporting() || player.basicSettings().isMapRegionUpdate())) ? 3\n : (player.getDirections().getSecondDirection() != null ? 2\n : (player.getDirections().getDirection() != null ? 1\n : (player.getMasks().requiresUpdate() ? 0\n : -1)));\n /*\n * put basic movement header in\n */\n packet.putBits(1, movementUpdateId == -1 ? 0 : 1);\n\n if (movementUpdateId != -1) {\n /*\n * tell the client that our player teleported/changeregion, has movement, or is standing still.\n */\n packet.putBits(2, movementUpdateId);\n if (movementUpdateId == 3) {\n /**\n * Apply custom/scrambled bits for Teleport/region change\n */\n handleRegionChange(player, packet);\n } else if (movementUpdateId > 0) {\n /*\n * Write the primary sprite (i.e. walk direction).\n */\n packet.putBits(3, player.getDirections().getDirection().intValue());\n if (movementUpdateId == 2) {\n /*\n * Write the secondary sprite (i.e. run direction).\n */\n packet.putBits(3, player.getDirections().getSecondDirection().intValue());\n }\n /*\n * Write a flag indicating if a block update happened.\n */\n packet.putBits(1, player.getMasks().requiresUpdate() ? 1 : 0);\n }\n }\n }", "public void worldDataPacketReceived(int packetType, int serialPrefix, int serialNumber, int[] data, long timeMilli);", "public void processPacket(NetHandler par1NetHandler) {\n\t\tpar1NetHandler.handleSleep(this);\n\t}", "@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer3 has received update!\");\r\n\t}", "public interface EventListener\n{\n\n /**\n * This method is called when data is received from the DMM.\n *\n * <p>\n * More specifically, the received packet must be valid, then decoded, then the Data Object is updated, *then* this method is called.\n */\n public void dataUpdateEvent();\n\n}", "private void parsePacket() {\n\n // Request a new data buffer if no data is currently available.\n if (receiveBuffer == null) {\n socketHandle.read(DEFAULT_REQUEST_SIZE).addDeferrable(this, true);\n return;\n }\n\n // Attempt to parse the next packet. This can result in malformed message\n // exceptions which are passed back to the caller or buffer underflow exceptions\n // which result in a request for more data.\n final int startPosition = receiveBuffer.position();\n try {\n\n // Extract the main header byte and message length. If this fails the connection\n // is unrecoverable and must be closed.\n final int headerByte = 0xFF & receiveBuffer.get();\n final ControlPacketType controlPacketType = ControlPacketType.getControlPacketType(headerByte);\n if (controlPacketType == null) {\n throw new MalformedPacketException(\"Invalid control packet type\");\n }\n final int messageLength = VarLenQuantity.create(receiveBuffer).getValue();\n\n // Determine whether there is sufficient data in the buffer to parse the full\n // message. If not, request further data in an expanded buffer.\n if (messageLength > receiveBuffer.remaining()) {\n receiveBuffer.position(startPosition);\n fillReceiveBuffer(5 + messageLength);\n return;\n }\n\n // Parse the packet body, based on the known control packet type.\n ControlPacket parsedPacket;\n switch (controlPacketType) {\n case CONNECT:\n parsedPacket = ConnectPacket.parsePacket(messageLength, receiveBuffer);\n break;\n case CONNACK:\n parsedPacket = ConnackPacket.parsePacket(messageLength, receiveBuffer);\n break;\n case PUBLISH:\n parsedPacket = PublishPacket.parsePacket(headerByte, messageLength, receiveBuffer);\n break;\n case SUBSCRIBE:\n case UNSUBSCRIBE:\n parsedPacket = SubscribePacket.parsePacket(controlPacketType, messageLength, receiveBuffer);\n break;\n case SUBACK:\n parsedPacket = SubackPacket.parsePacket(messageLength, receiveBuffer);\n break;\n default:\n parsedPacket = ControlPacket.parsePacket(controlPacketType, messageLength, receiveBuffer);\n break;\n }\n\n // Include packet tracing if required.\n if (logger.getLogLevel() == Level.FINER) {\n logger.log(Level.FINER, \"RX \" + parsedPacket.tracePacket(false, false));\n } else if (logger.getLogLevel() == Level.FINEST) {\n logger.log(Level.FINEST, \"RX \" + parsedPacket.tracePacket(false, true));\n }\n\n // Hand off the received packet.\n deferredReceive.callback(parsedPacket);\n deferredReceive = null;\n\n // After parsing the packet, release any fully consumed buffers.\n if (!receiveBuffer.hasRemaining()) {\n socketService.releaseByteBuffer(receiveBuffer);\n receiveBuffer = null;\n }\n }\n\n // Request more data on a buffer underflow. This doubles the size of the request\n // buffer and then attempts to fill it.\n catch (final BufferUnderflowException error) {\n receiveBuffer.position(startPosition);\n fillReceiveBuffer(2 * receiveBuffer.remaining());\n }\n\n // Handle fatal errors.\n catch (final Exception error) {\n deferredReceive.errback(error);\n deferredReceive = null;\n }\n }", "int ReceivePacket();", "@Override\n public void update() {\n updateBuffs();\n }", "@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer1 has received update!\");\r\n\t}", "private void handleUpdateProxyEvent(UpdateProxyEvent event) throws AppiaEventException {\n \n \t\tevent.loadMessage();\n \n \t\t//Get the parameters\n \t\tEndpt servertThatSentEndpt = event.getServerThatSentEndpt();\n \t\tVsGroup[] passedGroups = event.getAllGroups();\n \n \t\t//Say that the view was received (this also merges the temporary views)\n \t\tUpdateManager.addUpdateMessageReceived(servertThatSentEndpt, passedGroups);\n \n \t\t//If i have received from all live servers\n \t\tif(UpdateManager.receivedUpdatesFromAllLiveServers(vs.view) && amIleader()){\n \t\t\tSystem.out.println(\"Received an update proxy event from all alive and I am leader\");\n \n \t\t\t//Let go get our temporary view\n \t\t\tVsGroup[] newGroupList= UpdateManager.getTemporaryUpdateList();\n \n \t\t\t//Send the nre decided view to all\n \t\t\tUpdateDecideProxyEvent updateDecideProxy = new UpdateDecideProxyEvent(newGroupList);\n \t\t\tsendToOtherServers(updateDecideProxy);\n \t\t\tsendToMyself(updateDecideProxy);\t\t\n \t\t}\n \t}", "@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}", "abstract void GetInfoPacket() ;", "public interface ImplPacketHandler {\n\n public void handlePacket(Packet packet);\n}", "private interface PacketHandler{\n\t\tpublic void onPacket(ByteBuffer data) throws Exception;\n\t}", "public void processPacket(IClientPlayNetHandler handler) {\n handler.handleEntityEffect(this);\n }", "public void handleNetworkOutput(Response response) {\n if (playerConnections.containsKey(response.getPlayerID())) playerConnections.get(response.getPlayerID()).sendResponse(response);\n }", "protected void updatePlayer(Player player, PacketBuilder packet) {\n\n /*\n * The update block packet holds update blocks and is send after the\n * master packet.\n */\n PacketBuilder updateBlock = new PacketBuilder();\n\n /*\n * Updates this player.\n */\n manageMovement(true, player, packet);\n masks(player, updateBlock, false);\n\n /*\n * Write the current size of the player list.\n */\n packet.putBits(8, player.getLocalPlayers().size());\n\n /*\n * Iterate through the local player list.\n */\n for (Iterator<Player> it$ = player.getLocalPlayers().iterator(); it$.hasNext(); ) {\n /*\n * Get the next player.\n */\n Player otherPlayer = it$.next();\n\n /*\n * If the player should still be in our list.\n */\n if (WorldModule.getLogic().getPlayers().contains(otherPlayer)\n && !otherPlayer.basicSettings().isTeleporting()\n && otherPlayer.getLocation().withinRange(\n player.getLocation())) {\n /*\n * Update the movement.\n */\n manageMovement(false, otherPlayer, packet);\n\n /*\n * Check if an update is required, and if so, send the update.\n */\n if (otherPlayer.getMasks().requiresUpdate()) {\n masks(otherPlayer, updateBlock, false);\n }\n } else {\n /*\n * Otherwise, remove the player from the list.\n */\n it$.remove();\n\n /*\n * Tell the client to remove the player from the list.\n */\n packet.putBits(1, 1);\n packet.putBits(2, 3);\n }\n }\n\n /*\n * Loop through every player.\n */\n for (Player otherPlayer : WorldModule.getLogic().getLocalPlayers(player.getLocation())) {\n /*\n * Check if there is room left in the local list.\n */\n if (player.getLocalPlayers().size() >= 255) {\n /*\n * There is no more room left in the local list. We cannot\n * add more players, so we just ignore the extra ones. They\n * will be added as other players get removed.\n */\n break;\n }\n\n /*\n * If they should not be added ignore them.\n */\n if (otherPlayer == null || otherPlayer == player\n || player.getLocalPlayers().contains(otherPlayer) || otherPlayer.isReleased()) {\n continue;\n }\n\n /*\n * Add the player to the local list if it is within distance.\n */\n player.getLocalPlayers().add(otherPlayer);\n\n /*\n * Add the player in the packet.\n */\n addPlayer(packet, player, otherPlayer);\n\n /*\n * Update the player, forcing the appearance flag.\n */\n masks(otherPlayer, updateBlock, true);\n }\n\n /*\n * Check if the update block is not empty.\n */\n if (updateBlock.getPosition() != 0) {\n /*\n * Write a magic id indicating an update block follows.\n */\n packet.putBits(11, 2047);\n packet.recalculateBitPosition();\n\n /*\n * Add the update block at the end of this packet.\n */\n packet.put(updateBlock.toPacket().getBytes());\n } else {\n /*\n * Terminate the packet normally.\n */\n packet.recalculateBitPosition();\n }\n /*\n * Write the packet.\n */\n player.write(packet.toPacket());\n }", "public void Process(VideoPacket p)\r\n {\r\n p.fillData();\r\n \r\n //if we've changed to a different number of packets/frame reset the state\r\n if(currentPacketCount != p.TotalPackets){\r\n //change the capacity of the buffer and update the format\r\n buffer = new VideoPacket[p.TotalPackets];\r\n currentPacketCount = p.TotalPackets;\r\n current_format = new VideoFormat(new String(p.fourcc), new Dimension(p.Width, p.Height), p.Width*p.Height, (new byte[0]).getClass(), p.fps);\r\n \r\n resetState();\r\n } else if (p.FrameID != currentFrameID){\r\n \t//we've received an out of order packet\r\n resetState();\r\n }\r\n\r\n currentFrameID = p.FrameID;\r\n\r\n buffer[p.PacketNumber-1] = p;\r\n\r\n //System.out.println(\"Received \" + p.PacketNumber + \"/\" + currentPacketCount);\r\n\r\n boolean allPacketsReceived = true;\r\n for (int i = 0; i < currentPacketCount; i++)\r\n {\r\n if(buffer[i] == null) allPacketsReceived = false;\r\n }\r\n\r\n if (allPacketsReceived){\r\n \tMergePackets();\r\n \tnextFrameReady();\r\n \tresetState();\r\n }\r\n \r\n\r\n }", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onNetworkInfoReceived(OnReceiverNetInfoEvent event){\n\n WifiP2pInfo info = event.getInfo();\n\n // InetAddress from WifiP2pInfo struc.\n groupOwnerAddress = info.groupOwnerAddress.getHostAddress();\n // String port = \"8888\";\n\n\n // After the group negotiation, we can determine the group owner\n // (server).\n if(info.groupFormed && info.isGroupOwner){\n Toast.makeText(getContext(), \"Group formed. Host\", Toast.LENGTH_SHORT).show();\n if(peersDialog.isShowing())peersDialog.dismiss();\n\n // starting a data thread with the latest connected device\n Wifip2pService mService = new Wifip2pService(getContext(), mHandler,port, true, groupOwnerAddress);\n // assign the name of the latest connect device to this thread so we keep track\n mService.deviceName = devicesConnected.get(devicesConnected.size() - 1);\n connectionThreads.add(mService);\n\n\n // One common case is creating a group owner thread and accepting\n // incoming connections.\n } else if(info.groupFormed){\n Toast.makeText(getContext(), \"Connected as Peer\", Toast.LENGTH_SHORT).show();\n if(peersDialog.isShowing())peersDialog.dismiss();\n\n // starting a data thread with the owner\n Wifip2pService mService = new Wifip2pService(getContext(), mHandler, port, false, groupOwnerAddress);\n mService.deviceName = devicesConnected.get(devicesConnected.size() - 1);\n connectionThreads.add(mService);\n\n }\n\n }", "@Listen\r\n public void onPacket(PacketEvent e) {\r\n\r\n if (e.getType().equalsIgnoreCase(Packet.Client.POSITION)) {\r\n if ((System.currentTimeMillis() - e.getUser().getCombatData().getLastUseEntityPacket()) < 1000L\r\n && Math.abs(e.getTo().getPitch() - e.getFrom().getPitch()) > 0.01) {\r\n double yaw = e.getUser().getMovementData().getTo().getYaw();\r\n double sensitivity = e.getUser().getMiscData().getClientSensitivity();\r\n\r\n float f = (float) (sensitivity * 0.6F + 0.2F);\r\n float gcd = f * f * f * 1.2F;\r\n\r\n yaw = -yaw % gcd;\r\n\r\n double real = Math.abs(e.getUser().getMovementData().getTo().getYaw());\r\n\r\n if (real == e.getUser().getCheckData().lastAimMDiff && yaw == e.getUser().getCheckData().lastAimMDiff2) {\r\n\r\n if ((System.currentTimeMillis() - e.getUser().getCheckData().lastAimMPossibleLag) < 1500L) {\r\n e.getUser().getCheckData().aimMVerbose++;\r\n } else {\r\n if (e.getUser().getCheckData().aimMVerbose > 0 && (System.currentTimeMillis() - e.getUser().getCheckData().lastAimMPossibleLag) > 1000l)\r\n e.getUser().getCheckData().aimMVerbose--;\r\n }\r\n\r\n e.getUser().getCheckData().lastAimMPossibleLag = System.currentTimeMillis();\r\n\r\n if (e.getUser().getCheckData().aimMVerbose > 2) {\r\n flag(e.getUser(), \"verbose=\"+e.getUser().getCheckData().aimMVerbose, \"spoof=\"+yaw, \"real=\"+real);\r\n }\r\n } else {\r\n if (e.getUser().getCheckData().aimMVerbose > 0 && TimeUtils.secondsFromLong(e.getUser().getCheckData().lastAimMPossibleLag) > 2L) {\r\n e.getUser().getCheckData().aimMVerbose--;\r\n }\r\n }\r\n\r\n e.getUser().getCheckData().lastAimMDiff = real;\r\n e.getUser().getCheckData().lastAimMDiff2 = yaw;\r\n\r\n }\r\n }\r\n }", "public void processPacket(NetHandler nethandler) {\r\n //ChatEvent chatevent = new ChatEvent(controller, a, ChatEvent.Direction.INCOMING);\r\n //controller.getEventManager().callEvent(chatevent);\r\n //if (!chatevent.isCancelled()) {\r\n \tif(!controller.processIncomingMessage(this.message)) {\r\n nethandler.handleChat(this);\r\n \t}\r\n //}\r\n }", "public interface IPacketReceivedCallback {\r\n\r\n void onPacketReceived(boolean isPacketReceived, SignalPacketDo signalPacketDo);\r\n\r\n}", "@Override\r\n\t\tpublic void run()\r\n\t\t{\r\n\r\n\t\t\t\r\n\t\t\twhile(clientsocket.isConnected())\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\t// get type for update. 1 for object update, 2 for new attack object\r\n\t\t\t\t\tint type = rdata.readInt();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(type == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString playerupdatestr = rdata.readUTF();\r\n\t\t\t\t\t\tJsonObject jsonObject = server.gson.fromJson(playerupdatestr, JsonObject.class);\r\n\t\t\t\t\t\tint index = findlistindex(jsonObject.get(\"ID\").getAsInt());\r\n\t\t\t\t\t\tArrayList<CollideObject> templist = server.cdc.collideObjectManager[mode].collideObjectList;\r\n\t\t\t\t\t\tCollideObject obj = server.gson.fromJson(jsonObject, templist.get(index).getClass());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttemplist.set(index,obj);\r\n\t\t\t\t\t\tif(obj.getFlag())\r\n\t\t\t\t\t\t\tserver.cdc.calculatecollide(mode);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tserver.broacast_update(mode , obj);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString classname = rdata.readUTF();\r\n\t\t\t\t\t\tint id = rdata.readInt();\r\n\t\t\t\t\t\tint index = findlistindex(id);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tserver.cdc.collideObjectManager[mode].addAttackObject(collideObjecctClass.valueOf(classname), server.idcount[mode], server.randposition(),(Character) server.cdc.collideObjectManager[mode].collideObjectList.get(index));\r\n\t\t\t\t\t\t++server.idcount[mode];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t//e.printStackTrace();\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "public void processRemoteSocketChanged(InetSocketAddress remoteSocket, InetSocketAddress previous) {\n // to be overridden by extending classes\n }", "private void sendUpdateConnectionInfo() {\n\n }", "@Override\n\tpublic void parse(Packet packet) {\n\t}", "public void run() {\n\t\ttry {\n\t\t\tif(!sender && (ois == null)) {\n\t\t\t\tSystem.out.println(\"(NetAPI) Starting Input Stream\");\n\t\t\t\tois = new ObjectInputStream(new BufferedInputStream(socket.getInputStream()));\n\t\t\t} else if(sender && (oos == null)) {\n\t\t\t\tSystem.out.println(\"(NetAPI) Starting Output Stream\");\n\t\t\t\toos = new ObjectOutputStream(socket.getOutputStream());\n\t\t\t}\n\t\t\t\n\t\t\twhile(alive) {\n\t\t\t\tif(sender) {\n\t\t\t\t\tsendNewPackets();\n\t\t\t\t} else {\n\t\t\t\t\treceiveNewPackets();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// Ignore\n\t\t\t\t}\n\t\t\t}\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"(NetAPI) Connection failed to stream \" + e.getMessage());\n\t\t}\n\t\t\n\t\tSystem.out.println(\"(NetAPI) Closing packet thread\");\n\t}", "@Override\n public void processMessage(final CardMovedProtocolMessage serverMessage) {\n final int fromPileIndex = serverMessage.getMessageData().getFromPileIndex();\n final int toPileIndex = serverMessage.getMessageData().getToPileIndex();\n\n //Pile is a local representation of what is going on on the server\n final PileModel fromPile = mPileManager.getPileWithIndex(fromPileIndex);\n final PileModel toPile = mPileManager.getPileWithIndex(toPileIndex);\n\n //get the card that is about to be moved\n final Card movedCard = fromPile.findCardByRankAndSuit(serverMessage.getMessageData().getMovedCard().getRank(), serverMessage.getMessageData().getMovedCard().getSuit());\n\n //make sure that the card that we want to move is actually in the pile\n if (movedCard == null) {\n //in some cases we placing intentionally the card away from it's pile even\n //before we get confirmation from server. In those cases the move card message\n //will just be ignored.\n return;\n }\n\n //remove the card from the pile and place into the other\n fromPile.removeCard(movedCard);\n toPile.addCard(movedCard);\n\n //we need to update both piles that had changes\n final IPileLayouter fromPileLayouter = mPileLayouterManager.getPileLayouterForPile(fromPile);\n final IPileLayouter toPileLayouter = mPileLayouterManager.getPileLayouterForPile(toPile);\n\n //make the actual layout\n\n //we want to layout only players piles and the stock pile, but not field piles when cards are moving from them\n if ((fromPileIndex != 1) && (fromPileIndex < ServiceLocator.locateService(PileManagerService.class).getFirstFiledPileindex()))\n fromPileLayouter.layout();\n\n //destination pile should be always layed out\n toPileLayouter.layout();\n }", "public void handleGamePacket(GameTransportPacket packet) {\n ProtocolObject gamePacket;\r\n gamePacket = styxDecoder.unpack(ByteBuffer.wrap(packet.gamedata));\r\n gamePacket.accept(this);\r\n }", "public void handleTopologyUpdateEvent() {\n\t\t\n\t\tif(!Constants.MY_ADDR.equals(Constants.CLIENT_ADDR))\n\t\t{\n\t\t\tif(RoutingInterface.instance().isConnected(session.getDestination()))\n\t\t\t{\n\t\t\t\t// Disable EOR\n\t\t\t\tsessionManager.setLive();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Enable EOR and put it into DT...\n\t\t\t\tsessionManager.setDT();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void onDataChanged(long timestamp, int msg) {\n\t\tif(msg==AgentMessage.ERROR.getCode()) \n\t\t\tToolBox.showRemoteErrorMessage(connBean, error);\n\t\t\n\t\tsynchronized (mutex) {\n setEnabled(false);\n if (solid != null && timestamp > lastestTimeStamp+1500*1000000) {\n int result = JOptionPane.showConfirmDialog(StartUI.getFrame(), \"The config of this lift has changed. Reload it?\", \"Update\",\n JOptionPane.YES_NO_OPTION);\n if (result == JOptionPane.OK_OPTION) {\n solid = null;\n event = new Parser_Event( connBean.getIp(), connBean.getPort() );\n setHot();\n }\n } else {\n setHot();\n }\n setEnabled(true);\n }\n\t}", "@Override\r\n\tpublic void onUpdateIO(int device, int type, int code, int value,\r\n\t\t\tint timestamp) {\n\t\t\r\n\t}", "public void update(Observable o, Object arg) {\n\t\tConnect4MoveMessage message = (Connect4MoveMessage) arg;\n\t\t\n\t\t// determine if this is a real move, or just a board clearing action\n\t\tboolean trivialUpdate = false;\n\t\tif (message.getColor() ==0) {\n\t\t\ttrivialUpdate = true;\n\t\t}\n\t\t\n\t\t// COMMON OPS TO ALL UPDATES:\n\t\t// update view:\n\t\tupdateView(message);\n\t\t// check for game end:\n\t\tcheckForGameEnd();\n\t\t\n\t\t// SINGLE PLAYER GAME:\n\t\tif (!networkGame && !trivialUpdate) {\n\t\t\t// if computer has made move, allow human player to move\n\t\t\tif (!gameFinished && message.getColor()==1) {\n\t\t\t\tcontroller.move();\n\t\t\t}\n\t\t}\n\t\t// NETWORK GAME\n\t\telse if (networkGame && !trivialUpdate){\n\t\t\t// if our turn to read, then read move\n\t\t\tif (reader && message.getColor()!=playerType) {\n\t\t\t\treadNetMessage();\n\t\t\t\t// move... (?)\n\t\t\t\tcontroller.move();\n\t\t\t}\n\t\t\t\n\t\t\t// send message over network if it's our move\n\t\t\tif (!reader && message.getColor()==this.playerType) {\n\t\t\t\tsendNetMessage(message);\n\t\t\t\treader = true;\n\t\t\t}\n\t\t}\n\t}", "public void handlePacket(byte[] data, InetAddress address, int port){\n\t\tString message = new String(data);\n\t\tPacketType type = lookupPacketType(message);\n\t\tString [] strData = message.substring(2).split(\",\");\n\t\t\n\t\t//server.display(\"Decompiled data: \" + type + \" \"+ Arrays.toString(strData));\n\n\t\tswitch(type){\n\t\t\tdefault:\n\t\t\tcase INVALID:\n\t\t\t\tbreak;\n\t\t\tcase LOGIN: \n\t\t\t\tlogin(strData[0],address,port);\n\t\t\t\tserver.sendDataAll(writePacket(PacketType.LOGIN, strData[0], \"\"), strData[0]);\n\t\t\t\tbreak;\n\t\t\tcase DISCONNECT: \n\t\t\t\tdisconnect(strData[0]);\n\t\t\t\tserver.sendDataAll(writePacket(PacketType.DISCONNECT, strData[0], \"\"), strData[0]);\n\t\t\t\tbreak;\n\t\t\tcase RESTART: restart(strData[0],strData[1]);\n\t\t\t\t\t\t //server.display(\"received restart from \" + strData[0] + \": \" + strData[1]);\n\t\t\t\tbreak;\n\t\t\tcase MOVE: \n\t\t\t\tmove(strData[0], strData[1], strData[2]);\n\t\t\t\tserver.sendDataAll(writePacket(PacketType.MOVE, strData[0], strData[1] + \",\" + strData[2]),strData[0]);\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\r\n\t\t\t\twhile (!socket.isClosed()) {\r\n\r\n\t\t\t\t\tString line;\r\n\r\n\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\tsocket.receive(recPacket);\r\n\r\n\t\t\t\t\t\tline = new String(recPacket.getData(), 0 , recPacket.getLength());\r\n\r\n\t\t\t\t\t\tbyte id = Byte.parseByte(line.substring(0, line.indexOf(\" \")));\r\n\r\n\t\t\t\t\t\tString payload = line.substring(line.indexOf(\" \") + 1, line.length());\r\n\r\n\t\t\t\t\t\tpacketMan.getPacketById(id).onRecieve(id, payload);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//System.out.println(payload);\r\n\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\r\n\t\t\t\t\t\tdisconnect();\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n rcvdp = new DatagramPacket(buf, buf.length);\n \n try {\n // receive the DP from the socket:\n RTPsocket.receive(rcvdp);\n \n // create an RTPpacket object from the DP\n RTPpacket rtp_packet = new RTPpacket(rcvdp.getData(), rcvdp.getLength());\n // System.out.println(rtp_packet.PayloadType);\n \n if (rtp_packet.getpayloadtype() == 26) { // rtp\n \n // update statistics\n receive++;\n lost += rtp_packet.getsequencenumber() - lastSequencenumber - 1;\n lastSequencenumber = rtp_packet.getsequencenumber();\n \n \n // add receveid package to ArrayList\n fec_packet.rcvdata(rtp_packet);\n \n } else if (rtp_packet.getpayloadtype() == 127 && fecEnabled) { // fec\n \n fec_packet.rcvfec(rtp_packet);\n }\n \n if (rtp_packet.gettimestamp() > timecounter) {\n printstatistik(rtp_packet.gettimestamp());\n lasttimestamp = rtp_packet.gettimestamp();\n timecounter +=1000;\n }\n \n \n } catch (InterruptedIOException iioe) {\n } catch (IOException ioe) {\n System.out.println(\"Exception caught: \" + ioe);\n }\n \n if(timecounter==20999){\n timer1.stop();\n }\n }", "@Override\n public void update(Observable observable, Object o) {\n if (o instanceof ObserverFlag){\n ObserverFlag observerFlag=(ObserverFlag) o;\n // Si on reçoit un packet on notifie nos observers en leur donnant le packet\n if (observerFlag.getFlag() == ObserverFlag.Flag.packetReceived){\n String received=observerFlag.getPacket().getClass().toString();\n System.out.println(\"Unicast : \"+received+\" from \"+observerFlag.getPacket().getSource().getPseudo()+\" at \"+observerFlag.getPacket().getSource().getAddress().toString());\n notifyObservers(observerFlag.getPacket());\n }else{\n // Sinon on supprime le Thread de notre liste.\n observable.deleteObserver(this);\n Discussion t=(Discussion) observable;\n chatRooms.remove(t.distant.getInetAddress());\n }\n }\n }", "private void handleDataPacket(TcpPacket packet) {\n\n // Invariants\n\n // For the sender, if the ACK message did not arrive, it will receive\n // another ACK+SYN message, which it will then again confirm.\n if (!this.isReceiver()) {\n assert(packet.isSYN() && packet.isACK());\n sendWithoutResend(\n ((FullExtTcpPacket) createPacket(\n 0, // Data size (byte)\n sendNextNumber, // Sequence number\n (packet.getSequenceNumber() + packet.getDataSizeByte() + (packet.isSYN() ? 1 : 0)), // Ack number\n true, // ACK\n false, // SYN\n packet.getECN() // ECE\n ).setEchoFlowletId(packet.getFlowletId()))\n .setEchoDepartureTime(packet.getDepartureTime())\n );\n return;\n }\n\n // The receiver is always at FIRST_SEQ_NUMBER+1, having sent only the ACK+SYN message\n assert(this.sendUnackNumber == FIRST_SEQ_NUMBER + 1);\n\n // Locally store sequence numbers\n long seqNumber = packet.getSequenceNumber();\n long ackNumber = (packet.getSequenceNumber() + packet.getDataSizeByte() + (packet.isSYN() ? 1 : 0));\n\n // Only advance if it is the packet on the left side of the receiver window\n if (receiveNextNumber == seqNumber) {\n receiveNextNumber = selectiveAckSet.determineReceiveNextNumber(ackNumber);\n\n // If it is not on the left side, we selectively acknowledge it\n } else if (seqNumber > receiveNextNumber) {\n selectiveAckSet.add(seqNumber, ackNumber);\n }\n\n // Send out the acknowledgment\n sendWithoutResend(\n ((FullExtTcpPacket) ((FullExtTcpPacket) (createPacket(\n 0, // Data size (byte)\n sendNextNumber, // Sequence number\n receiveNextNumber, // Ack number\n true, // ACK\n false, // SYN\n packet.getECN() // ECE\n ).setEchoFlowletId(packet.getFlowletId())))\n .setSelectiveAck(selectiveAckSet.createSelectiveAckData()))\n .setEchoDepartureTime(packet.getDepartureTime())\n );\n\n }", "public void refreshDataPacket() {\n ByteBuf buffer = PacketUtils.writePacket(getFreshFullDataPacket());\n setFullDataPacket(buffer);\n }", "public void updateDestination(){\r\n\t\tdestination.update_pc_arrivalFlows(flows);\r\n\t}", "public void network_changed(String _areas) {\n if ((_areas == null) || (areas == null)){\n return;\n }\n Log(\"Routing.network_changed(\"+_areas+\") not implemented yet\\n\");\n \n // If you have time, you must complete this function to address\n // handling SendIfChanges modifications! \n\n // It must call the method network_changed for all RoutingProcess objects\n // Starting from non-'0' areas, and running the '0' area at the end\n }", "@Override\n public void update(int bit)\n {\n this.mixer.update(bit);\n this.bpos = (this.bpos + 1) & 7;\n this.c0 = (this.c0 << 1) | bit;\n\n if (this.c0 > 255)\n { \n this.buffer[this.pos&MASK2] = (byte) this.c0;\n this.pos++;\n this.c4 = (this.c4 << 8) | (this.c0 & 0xFF);\n this.hash = (((this.hash*43707) << 4) + this.c4) & MASK1;\n final int shiftIsBinary = ((this.c4 >>> 31) | ((this.c4 & 0x00800000) >>> 23) | \n ((this.c4 & 0x00008000) >>> 15) | ((this.c4 & 0x80) >>> 7)) << 4;\n this.c0 = 1;\n\n // Select Neural Net\n this.mixer.setContext(this.c4 & 0x07FF);\n \n // Add contexts to NN\n this.addContext(this.c4 ^ (this.c4 & 0xFFFF));\n this.addContext(hash(C1, this.c4 << 24)); // hash with random primes\n this.addContext(hash(C2, this.c4 << 16)); \n this.addContext(hash(C3, this.c4 << 8));\n this.addContext(hash(C4, this.c4 & 0xF0F0F0F0));\n this.addContext(hash(C5, this.c4));\n this.addContext(hash(this.c4>>shiftIsBinary, \n (this.buffer[(this.pos-6)&MASK2]<<8)| (this.buffer[(this.pos-5)&MASK2]))); \n \n // Find match\n this.findMatch(); \n\n // Keep track of new match position\n this.hashes[this.hash] = this.pos;\n }\n\n // Add inputs to NN\n for (int i=this.ctxId-1; i>=0; i--)\n {\n if (this.cp[i] != 0)\n this.states[this.cp[i]] = STATE_TABLE[(this.states[this.cp[i]]<<1)|bit]; \n \n this.cp[i] = (this.ctx[i] + this.c0) & MASK3; \n this.mixer.addInput(SM[(i<<8)|this.states[this.cp[i]]]); \n }\n\n if (this.bpos == 7)\n this.ctxId = 0;\n \n if (this.matchLen > 0) \n this.addMatchContext();\n\n // Get prediction from NN\n int p = this.mixer.get();\n \n // Adjust with APM\n p = this.apm.get(bit, p, this.c0);\n this.pr = p + ((p - 2048) >>> 31); \n }", "public void receiveInfoFromServerC() throws IOException\n\t{\n\t\tstatus = fromServer.readInt();\n\n\t\tif (status == PLAYER1WINS)\n\t\t{\t\n\t\t\tsetMove(currentToken);\n\t\t\tPlatform.runLater(() -> lblStatus.setText(\"You've won!\")); \n\t\t\tcontinueToPlay = false;\n\t\t}\n\n\t\telse if (status == PLAYER2WINS)\n\t\t{\n\t\t\tsetMove(otherToken);\n\t\t\tPlatform.runLater(() -> lblStatus.setText(\"Game over - Player O has won!\"));\n\t\t\tcontinueToPlay = false;\n\t\t}\n\n\t\telse if (status == DRAW)\n\t\t{\n\t\t\tPlatform.runLater(() -> lblStatus.setText(\"Game over - It's a tie!\"));\n\t\t\tsetMove(otherToken);\n\t\t\tcontinueToPlay = false;\n\t\t}\n\t\telse if (status == WAIT)\n\t\t{\n\t\t\tsetMove(currentToken);\n\t\t\tPlatform.runLater(() -> lblStatus.setText(\"Other player's turn.\"));\n\t\t\tmyTurn = false; \n\t\t}\n\t\telse if (status == CONTINUE)\n\t\t{\n\t\t\tsetMove(otherToken);\n\t\t\tPlatform.runLater(() -> lblStatus.setText(\"Your turn.\"));\n\t\t\tmyTurn = true;\n\t\t}\n\t}", "@Override\n public void run()\n {\n try\n {\n MulticastSocket multicastSocket = new MulticastSocket(55559);\n //My chosen multicast ip.\n String multicastIP = \"224.0.159.82\";\n multicastSocket.joinGroup(InetAddress.getByName(multicastIP));\n //Receiver on continuous loop.\n while (receiverOn)\n {\n //Check network flag.\n if (frame.getSelectPanel().network())\n {\n DatagramPacket receivePacket = new DatagramPacket(receiveData, receiveData.length);\n multicastSocket.receive(receivePacket);\n byte[] b = receivePacket.getData();\n System.out.println(\"Receive: \" + b.length);\n ByteArrayInputStream bis = new ByteArrayInputStream(b);\n ObjectInput in = new ObjectInputStream(bis);\n\n try\n {\n int[] data = (int[]) in.readObject();\n System.out.println(\"This: \" + frame.getId() + \"\\tFrom: \" + data[0]);\n //Exclude messages that originated at this peer.\n if (data[0] != frame.getId())\n {\n //Action based on int at data[1]\n switch (data[1])\n {\n case Draw.CLEAR:\n case Draw.DRAW:\n case Draw.TEXT:\n case Draw.CIRCLE:\n case Draw.IMAGE:\n frame.getDraw().put(data);\n break;\n case REQ_IP:\n int key = data[0];\n String ip = String.format(\"%d.%d.%d.%d\", data[2], data[3], data[4], data[5]);\n frame.getPeerCache().addPeer(new Triple<>(key, ip, data[6]));\n int size = frame.getPeerCache().getSize();\n frame.getPeerCount().setText(String.format(\"Peer count: %d\", size));\n int[] myIp = frame.getMyIp();\n size = frame.getActionCache().getSize();\n int[] ipAns = {frame.getId(), ANS_IP, myIp[0], myIp[1], myIp[2], myIp[3], size};\n frame.getBroadcaster().put(ipAns);\n break;\n case ANS_IP:\n /*\n * 0 = id\n * 1 = data type\n * 2,3,4,6 = IP\n */\n key = data[0];\n ip = String.format(\"%d.%d.%d.%d\", data[2], data[3], data[4], data[5]);\n frame.getPeerCache().addPeer(new Triple<>(key, ip, data[6]));\n frame.getPeerCount().setText(\n String.format(\"Peer count: %d\", frame.getPeerCache().getSize()));\n break;\n case LEAVE_NOTE:\n ip = String.format(\"%d.%d.%d.%d\", data[2], data[3], data[4], data[5]);\n frame.getPeerCache().removePeer(ip);\n frame.getPeerCount().setText(\n String.format(\"Peer count: %d\", frame.getPeerCache().getSize()));\n break;\n case REQ_HISTORY:\n /*\n * 0 = id\n * 1 = data type\n * 2 = tarID\n * 3,4,5,6 = IP\n */\n if (data[2] == frame.getId())\n {\n ip = String.format(\"%d.%d.%d.%d\", data[3], data[4], data[5], data[6]);\n System.out.println(\"History request from \" + ip);\n UdpClient historyClient = new UdpClient(ip, frame.getActionCache());\n Thread historyThread = new Thread(historyClient);\n historyThread.start();\n }\n break;\n case CLEAR_REQ:\n String reqTitle = String.format(\"Peer %d has requested a clear.\", data[1]);\n int dialogResult = JOptionPane.showConfirmDialog(frame, \"Would you like to clear?\",\n reqTitle,\n JOptionPane.YES_NO_OPTION);\n if (dialogResult == JOptionPane.YES_OPTION)\n {\n int[] clear = {frame.getId(), Draw.CLEAR};\n frame.getDraw().put(clear);\n frame.clearAll();\n }\n break;\n case IMAGE_REQ:\n System.out.print(\"IMAGE REQUEST: \");\n System.out.println(data[2] + \" vs \" + frame.getId());\n if (data[2] == frame.getId())\n {\n ip = String.format(\"%d.%d.%d.%d\", data[4], data[5], data[6], data[7]);\n System.out.println(\"Image request from \" + ip);\n BufferedImage image = frame.getImageCache().get(data[3], data[7]);\n\n TcpClient tcpClient = new TcpClient(ip, image);\n Thread tcpThread = new Thread(tcpClient);\n tcpThread.start();\n }\n break;\n default:\n //Rogue packet protection.\n System.out.println(\"Received invalid packet.\");\n System.out.println(Arrays.toString(data));\n }\n }\n } catch (ClassNotFoundException | IndexOutOfBoundsException e)\n {\n //Rogue packet protection.\n //Message given, loop continues.\n System.out.println(\"Exception: Received invalid packet.\");\n e.printStackTrace();\n }\n }\n }\n } catch (IOException | InterruptedException e)\n {\n System.err.println(\"Error in Receiver class.\");\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void handle(PacketListener var1) {\n\t\tthis.a((class_id) var1);\n\t}", "private void receive() {\r\n\t\ttry {\r\n\t\t\trcvpkt = filter.read();\t\t\t\t\t\t\t// Simulates Transfer-Failures and Errors in the received data\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void update(int frameNo)\n {\n //This function is to be used for LRU and MRU\n }" ]
[ "0.6535403", "0.6351136", "0.6303009", "0.6208702", "0.618603", "0.6146007", "0.6019268", "0.6015066", "0.5992107", "0.59684545", "0.5958921", "0.5946138", "0.592764", "0.59237635", "0.5866382", "0.58559", "0.58475876", "0.58344156", "0.58059585", "0.57806796", "0.5758253", "0.5729073", "0.57281345", "0.5711497", "0.56724876", "0.56436014", "0.5640812", "0.56294566", "0.56236535", "0.5623355", "0.56200206", "0.5617436", "0.5616864", "0.5605131", "0.56050503", "0.5602275", "0.56015223", "0.55981255", "0.5592991", "0.5588716", "0.55801046", "0.5579847", "0.5577864", "0.5574047", "0.556991", "0.5564367", "0.5557334", "0.5543513", "0.55367815", "0.5534683", "0.55299115", "0.5527201", "0.55195194", "0.5516127", "0.55118656", "0.5493389", "0.548999", "0.548983", "0.5486422", "0.5480264", "0.547789", "0.54702246", "0.54677695", "0.5460544", "0.545285", "0.54420733", "0.5441302", "0.5438529", "0.54324305", "0.5417777", "0.54123294", "0.54020107", "0.539871", "0.5393719", "0.53754675", "0.53696346", "0.5368057", "0.53550357", "0.5347603", "0.5343953", "0.5328415", "0.5326521", "0.53241116", "0.5317982", "0.5311397", "0.53095156", "0.52982295", "0.5297727", "0.5293587", "0.5292093", "0.5287005", "0.5271678", "0.5271269", "0.5264209", "0.52568895", "0.5255851", "0.5255198", "0.5252823", "0.52479905", "0.5241576" ]
0.56904614
24
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.id
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "@Transient\n @Override\n public Integer getId()\n {\n return this.journalId;\n }", "public Integer getId() {\n\t\treturn loanId; //changed LoAn_Id to loanId\r\n\t}", "public int getRolesRolId(int row) throws DataStoreException {\r\n return getInt(row,ROLES_ROL_ID);\r\n }", "public int getRolesRolId() throws DataStoreException {\r\n return getInt(ROLES_ROL_ID);\r\n }", "public Integer getId() {\n return aao.getId();\n }", "@Override\r\n\tpublic Integer getIdRol(String usuario) {\t\r\n\t\tInteger rolId = null;\r\n\t\t\r\n\t\ttry\r\n\t\t{\t\t\t\r\n\t\t\trolId = jdbcTemplate.queryForObject(\r\n\t\t\t\t\tSQL_SELECT_ROL_USUARIO, \r\n\t\t\t\t\tnew RowMapper<Integer>() {\r\n\t\t\t\t public Integer mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t\t\t\t return rs.getInt(\"id\");\r\n\t\t\t\t }\r\n\t\t\t\t },\r\n\t\t\t\t\tusuario);\r\n\t\t}\r\n\t\tcatch(EmptyResultDataAccessException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn rolId;\t\r\n\t}", "@Override\r\n public int getsaleId() {\n return this.saleId;\r\n }", "public int getId() {\n return parameter.getId();\n }", "public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name = \"leadTypeId\")\n\tpublic Long getId()\n\t{\n\t\treturn super.getId();\n\t}", "private String getRowIdColumn(ConnectorTableMetadata meta)\n {\n String rowIdColumn = AccumuloTableProperties.getRowId(meta.getProperties());\n if (rowIdColumn == null) {\n rowIdColumn = meta.getColumns().get(0).getName();\n }\n return rowIdColumn.toLowerCase();\n }", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}", "public Long getResourceId(){\n return id;\n }", "long getSourceId();", "@Override\n\tpublic int getIDByName(String rolename) {\n\t\treturn this.RoleDao.getIDByName(rolename);\n\t}", "public String getAssetId();", "public Integer getRoleId() {\r\n return roleId;\r\n }", "public Integer getRoleid() {\r\n return roleid;\r\n }", "public java.lang.Long getId();", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Long getRoleid() {\n return roleid;\n }", "public Long getId(){\n\t\treturn id;\n\t}", "public int getAuditId();", "public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }", "public Long getId() {\n\t\t\t\treturn this.id;\n\t}", "public final int getId() {\n\t\treturn this.accessor.getId();\n\t}", "public Integer getIdRole() {\n\t\treturn idRole;\n\t}", "public Long getId() {\n return this.id.get();\n }", "public Long getId() {\r\n return this.id;\r\n }", "public Long getId() {\r\n return this.id;\r\n }", "public Long getId() {\r\n return this.id;\r\n }", "public Long getId() {\n\t\treturn null;\n\t}", "public java.lang.Long getIntAssetID()\n\t{\n\t\treturn intAssetID;\n\t}", "public Integer getRoleId() {\n\t\treturn roleId;\n\t}", "public Long getId() {\n\t\treturn this.id;\n\t\t\n\t}", "public BigDecimal getRoleId() {\r\n return roleId;\r\n }", "@Generated\n public Rol getRol() {\n Long __key = this.usu_rol_id;\n if (rol__resolvedKey == null || !rol__resolvedKey.equals(__key)) {\n __throwIfDetached();\n RolDao targetDao = daoSession.getRolDao();\n Rol rolNew = targetDao.load(__key);\n synchronized (this) {\n rol = rolNew;\n \trol__resolvedKey = __key;\n }\n }\n return rol;\n }", "public long getAuditLogId() {\n return auditLogId;\n }", "public Long getRoleId() {\r\n return roleId;\r\n }", "public Long getId() {\n\t\treturn this.id;\n\t}", "public Long getId() {\n\t\treturn this.id;\n\t}", "public Long getId() {\n\t\treturn this.id;\n\t}", "Long getInvoiceId();", "@Id\n @GeneratedValue\n @Column(name = \"JournalID\", unique = false, nullable = false, insertable = true, updatable = true)\n public Integer getJournalId() {\n return this.journalId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getOpportunityId() {\n return opportunityId;\n }", "public Long getId() {\n return this.id;\n }", "public Long getId() {\n return this.id;\n }", "public Long getId() {\n return this.id;\n }", "public long getVocubalaryId();", "public Long getId() {\n return this.id;\n }", "public Long getId() {\n return this.id;\n }", "public Long getId() {\n return this.id;\n }", "public Long getId() {\n return this.id;\n }", "public Long getId() {\n return this.id;\n }", "public Long getId() {\n return this.id;\n }", "public Long getId() {\n return this.id;\n }", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}", "public Integer getId() {\n return (Integer) get(\"id\");\n }", "public RoleAccessPK getRoleAccessPK() {\n return roleAccessPK;\n }", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId()\n\t{\n\t\treturn this.id; \n\t}", "@Override\n\tpublic Integer getId() {\n\t\treturn this.id;\n\t}", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public Integer getsId() {\n return sId;\n }", "public Long getRolemenuid() {\n return rolemenuid;\n }", "public Long getRoleId() {\n\t\treturn roleId;\n\t}", "public abstract java.lang.Long getId_causal_peticion();", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }", "public Long getId() {\r\n return id;\r\n }" ]
[ "0.5804117", "0.57510114", "0.57494235", "0.57179165", "0.56809056", "0.5625014", "0.55485743", "0.5453594", "0.5399298", "0.5391152", "0.53794473", "0.53788877", "0.5365789", "0.53622586", "0.53620553", "0.5349964", "0.53338194", "0.53019434", "0.53007495", "0.52889854", "0.5281953", "0.52797", "0.52743125", "0.52743125", "0.52743125", "0.52743125", "0.52743125", "0.52743125", "0.52743125", "0.52743125", "0.52671593", "0.5264167", "0.52640855", "0.5262641", "0.5259398", "0.5254602", "0.52530783", "0.52401304", "0.52371526", "0.52371526", "0.52371526", "0.5234934", "0.5228524", "0.52272785", "0.52215874", "0.5214917", "0.52134335", "0.52104783", "0.5209947", "0.52062213", "0.52062213", "0.52062213", "0.51972884", "0.5195355", "0.5192777", "0.5192777", "0.5192777", "0.5192777", "0.51922196", "0.51899135", "0.51899135", "0.51899135", "0.5170145", "0.5163162", "0.5163162", "0.5163162", "0.5163162", "0.5163162", "0.5163162", "0.5163162", "0.51616323", "0.51536894", "0.5146166", "0.5145865", "0.5145865", "0.5145865", "0.5145865", "0.5145865", "0.5143465", "0.5142391", "0.5140548", "0.5132884", "0.51293445", "0.5129266", "0.51285577", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387", "0.51246387" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.id
public void setId(Long id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "protected void setId(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString id = rs.getString(EmployeeLeaveTable.COLUMN_ID);\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setId(id);\n\t}", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }", "public void setAuditLogId(long value) {\n this.auditLogId = value;\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setRolesRolId(int row,int newValue) throws DataStoreException {\r\n setInt(row,ROLES_ROL_ID, newValue);\r\n }", "public void setId(Long value) {\r\n this.id = value;\r\n }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "public void setId(Long id) \n {\n this.id = id;\n }", "public void setId(Long id){\n this.id = id;\n }", "public void setId(int aMonthId) {\r\n\t\tid = aMonthId;\r\n\t}", "public void setRoleId(Integer roleId) {\r\n this.roleId = roleId;\r\n }", "public void setId(Long value) {\n this.id = value;\n }", "public void setId(long id) {\n id_ = id;\n }", "protected void setId(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString id = rs.getString(UiActionTable.COLUMN_ID);\n\t\t\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setId(id);\n\t}", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:134 */ this.idSucursal = idSucursal;\r\n/* 107: */ }", "public void setRoleId(Long roleId) {\r\n this.roleId = roleId;\r\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "@Override\r\n public int getsaleId() {\n return this.saleId;\r\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "@Transient\n @Override\n public Integer getId()\n {\n return this.journalId;\n }", "public void setId(Long id)\r\n {\r\n this.id = id;\r\n }", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Long id){\n\t\tthis.id = id;\n\t}", "public void setId(Long id){\n\t\tthis.id = id;\n\t}", "public void setId(Long id){\n\t\tthis.id = id;\n\t}", "public void setId(Long id) {\n\t\t\n\t}", "public void setId( Long id ) {\n this.id = id ;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setIdSucursal(int idSucursal)\r\n/* 109: */ {\r\n/* 110:179 */ this.idSucursal = idSucursal;\r\n/* 111: */ }", "public void setIdSucursal(int idSucursal)\r\n/* 123: */ {\r\n/* 124:135 */ this.idSucursal = idSucursal;\r\n/* 125: */ }", "void setId(Long id);", "public void setRoleId(BigDecimal roleId) {\r\n this.roleId = roleId;\r\n }", "void setId(int val);", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setSalesOrgnizationId(Long salesOrgnizationId) {\n this.salesOrgnizationId = salesOrgnizationId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "void setResourceId(int value);", "public void setId(Long id)\n {\n this.id = id;\n }", "public void setRolesRolId(int newValue) throws DataStoreException {\r\n setInt(ROLES_ROL_ID, newValue);\r\n }", "public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "public void setSequenceId(long sequence_id)\n {\n sequence_id_ = sequence_id;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "private void setAId(int value) {\n \n aId_ = value;\n }", "public void setId( Long id );", "public void setId(int value) {\r\n this.id = value;\r\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public void setId(Long id) {\n this.id = id;\n }", "public void setRoleid(Integer roleid) {\r\n this.roleid = roleid;\r\n }", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "private void setId(Integer id) { this.id = id; }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }", "public void setIdSucursal(int idSucursal)\r\n/* 98: */ {\r\n/* 99:176 */ this.idSucursal = idSucursal;\r\n/* 100: */ }", "void setId(final Long id);", "@Override\n\tpublic Integer updatemenuroleId(String roleId) {\n\t\tInteger updatemenuroleId = mapper.updatemenuroleId(roleId);\n\t\treturn updatemenuroleId;\n\t}" ]
[ "0.5282181", "0.52595353", "0.5245284", "0.5180941", "0.51783335", "0.5107079", "0.50562245", "0.5010286", "0.4982596", "0.4982596", "0.4950657", "0.4946821", "0.4935268", "0.49295557", "0.4914462", "0.49143094", "0.4913173", "0.49048072", "0.49045303", "0.4898317", "0.48959193", "0.48863736", "0.4874103", "0.4874103", "0.48732504", "0.48732504", "0.48650196", "0.48585483", "0.48585483", "0.48510882", "0.48491284", "0.4840684", "0.4829096", "0.4829096", "0.48281333", "0.48281333", "0.48281333", "0.48261184", "0.4817812", "0.48151132", "0.48091108", "0.48033667", "0.48029023", "0.48009816", "0.48007014", "0.47936216", "0.47892973", "0.47872657", "0.47872657", "0.47872657", "0.47872657", "0.47872657", "0.47872657", "0.47872657", "0.47872657", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.47856507", "0.478309", "0.47725737", "0.47658098", "0.4763405", "0.4763405", "0.4763405", "0.4763405", "0.47628033", "0.4759112", "0.4754162", "0.4754162", "0.4754162", "0.4754162", "0.4754162", "0.4754162", "0.4754162", "0.47492683", "0.4748245", "0.47470388", "0.47386038", "0.47370768", "0.47314832", "0.47298032", "0.47211146", "0.47198507", "0.47099054", "0.4708477", "0.47077197" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.gmt_create
public Date getGmtCreate() { return gmtCreate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\r\n return gmtCreate;\r\n }", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getCreateTs() {\n\t\treturn createTs;\n\t}", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_time() {\n return create_time;\n }", "String getCreated_at();", "public Long getCreatetime() {\n return createtime;\n }", "public Long getCreated() {\n if (created == null) {\n return Long.valueOf(0);\n } else {\n return created;\n }\n }", "public void setGmtCreate(Long gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}", "public void setGmtCreate(Date gmtCreate) {\r\n this.gmtCreate = gmtCreate;\r\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public String getTableGenerationCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_CREATE_ACTION;\n }", "@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }", "OffsetDateTime creationTime();", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public OffsetDateTime getCreatedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Created_Time\");\n\n\t}", "@Override\n\tpublic java.util.Date getCreatedDate() {\n\t\treturn _locMstLocation.getCreatedDate();\n\t}", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public java.sql.Timestamp getCreated() {\n\treturn created;\n}", "public Date getTimeCreate() {\n return timeCreate;\n }", "public String getCreateEndTime() {\n return createEndTime;\n }", "public OffsetDateTime createTime() {\n return this.createTime;\n }", "public String getCreateStartTime() {\n return createStartTime;\n }", "public String getTableGenerationDropCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_DROP_AND_CREATE_ACTION;\n }", "public java.sql.Timestamp getCreateTime () {\r\n\t\treturn createTime;\r\n\t}", "public Long getCreateAt() {\n return createAt;\n }", "public Long getCreateTime() {\n return createTime;\n }", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "java.lang.String getSnapshotCreationSchedule();", "public Date getGmtCreated() {\n return gmtCreated;\n }", "public Date getDateCreated(){return DATE_CREATED;}", "public Integer getCreateTime() {\n return createTime;\n }", "public Timestamp getCreateTime() {\n return createTime;\n }", "public Date getCreateTimestamp() {\n return createTimestamp;\n }", "public Integer getCreateTime() {\r\n return createTime;\r\n }", "public String getCreatetime() {\n return createtime;\n }", "public String getCreatetime() {\n return createtime;\n }", "public Long getCreateTime() {\n\t\treturn createTime;\n\t}", "public String getCreatetime() {\r\n return createtime;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getCreateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(CREATETIME_PROP.get());\n }", "@Schema(description = \"The datetime on which the worklog was created.\")\n public OffsetDateTime getCreated() {\n return created;\n }", "public OffsetDateTime createdDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();\n }", "public ScGridColumn<AcFossWebServiceMessage> newCreatedUtcTsColumn()\n {\n return newCreatedUtcTsColumn(\"Created Utc Ts\");\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getCreateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(CREATETIME_PROP.get());\n }", "Date getDateCreated();", "public Date getCreateTimestamp() {\r\n return createTimestamp;\r\n }", "public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }", "public long getCreateTime() {\n return this.createTime;\n }", "public Date getCreateTime() {\n return createTime;\n }", "public java.sql.Timestamp getCreated() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Timestamp) __getCache(\"created\")));\n }" ]
[ "0.622717", "0.5929379", "0.5911697", "0.5911697", "0.5911697", "0.5911697", "0.5896807", "0.5878124", "0.5878124", "0.5858386", "0.5858386", "0.58211935", "0.58007216", "0.5760032", "0.57357955", "0.5708483", "0.5675552", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.56652457", "0.5664337", "0.5664337", "0.5664337", "0.5661097", "0.5661097", "0.5661097", "0.5661097", "0.5661097", "0.5661097", "0.5661097", "0.5661097", "0.56597084", "0.5654288", "0.56471", "0.5643971", "0.5643971", "0.5643971", "0.56327075", "0.5629405", "0.5629111", "0.5629111", "0.5629111", "0.5626701", "0.56198746", "0.5601412", "0.55955416", "0.5594095", "0.55929655", "0.5585025", "0.5580257", "0.5577643", "0.55666554", "0.55623114", "0.554944", "0.5548265", "0.5539486", "0.5536881", "0.5531612", "0.5526537", "0.5525775", "0.5525775", "0.5523543", "0.5521362", "0.55171293", "0.5511941", "0.5507337", "0.5507214", "0.550664", "0.5505198", "0.55010986", "0.54907316", "0.5490077", "0.5486863", "0.5486805", "0.54865116", "0.5480562" ]
0.5914753
14
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.gmt_create
public void setGmtCreate(Date gmtCreate) { this.gmtCreate = gmtCreate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGmtCreate(Date gmtCreate) {\r\n this.gmtCreate = gmtCreate;\r\n }", "public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}", "public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}", "public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}", "public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}", "public void setGmtCreate(Long gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreated(Date gmtCreated) {\n this.gmtCreated = gmtCreated;\n }", "@PrePersist\n\tprivate void setDateCreation() {\n\t\tthis.dateCreation = ZonedDateTime.now();\n\n\t}", "public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }", "public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }", "public Long getGmtCreate() {\n return gmtCreate;\n }", "@PrePersist\n\tprotected void onCreate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}", "public void setCreateTime(Date createTime)\n/* */ {\n/* 184 */ this.createTime = createTime;\n/* */ }", "@PrePersist\n\t protected void onCreate(){\n\t this.createdAt = new Date();\n\t }", "public Date getGmtCreate() {\r\n return gmtCreate;\r\n }", "public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }", "public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }", "public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }", "public void setCreateEndTime(String createEndTime) {\n this.createEndTime = createEndTime;\n }", "public void setCreateDatetime(Long createDatetime) {\n this.createDatetime = createDatetime;\n }", "public void setCreateDatetime(Long createDatetime) {\n this.createDatetime = createDatetime;\n }", "@Override\n\tpublic void setCreatedDate(java.util.Date CreatedDate) {\n\t\t_locMstLocation.setCreatedDate(CreatedDate);\n\t}", "void setCreateDate(final Date creationDate);", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void setCreationDate(Date creationDate);", "@PrePersist\n protected void onCreate(){\n this.createdAt = new Date();\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "void setCreateDate(Date date);", "public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }", "public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }", "@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getCreateTs() {\n\t\treturn createTs;\n\t}", "public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }", "public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public void setCreationDate(Date creationDate) {\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "void setCreationDate(Date val)\n throws RemoteException;", "void setCreatedDate(Date createdDate);", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public void setCreateStartTime(String createStartTime) {\n this.createStartTime = createStartTime;\n }", "public void setDateCreated(Date dateCreated);", "public void setCreated(java.lang.Long value) {\n this.created = value;\n }", "public void setCreationDate(Calendar creationDate) {\n/* 248 */ getCOSObject().setDate(COSName.CREATION_DATE, creationDate);\n/* */ }", "private void setCreateTime(long createTime) {\n this.createTime = createTime;\n }", "public void setCreatedDate(Date createdDate);", "public String getTableGenerationCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_CREATE_ACTION;\n }", "public String getTableGenerationDropCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_DROP_AND_CREATE_ACTION;\n }", "public void setCreateTimestamp(Date createTimestamp) {\r\n this.createTimestamp = createTimestamp;\r\n }", "public void setGmtUpdate(Date gmtUpdate) {\n this.gmtUpdate = gmtUpdate;\n }", "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }", "public void setCreateDate(Timestamp createDate) {\n this.createDate = createDate;\n }", "public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }", "public void setCreatetime(Long createtime) {\n this.createtime = createtime;\n }", "@Override\n\tpublic java.util.Date getCreatedDate() {\n\t\treturn _locMstLocation.getCreatedDate();\n\t}", "@PrePersist\r\n void createdAt() {\r\n setDateRecordAdded();\r\n setDateRecordUpdated();\r\n }", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }", "public void setDATE_CREATED(Date DATE_CREATED) {\r\n this.DATE_CREATED = DATE_CREATED;\r\n }" ]
[ "0.6459914", "0.62255996", "0.62255996", "0.62255996", "0.62255996", "0.62239593", "0.58220273", "0.5583398", "0.529486", "0.529486", "0.52785033", "0.526532", "0.5258936", "0.52397096", "0.5231341", "0.5216406", "0.5216406", "0.5216406", "0.5216325", "0.5205823", "0.5205823", "0.51922", "0.51880294", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5177219", "0.5162115", "0.5155918", "0.5152964", "0.51406354", "0.51406354", "0.51406354", "0.51406354", "0.51406354", "0.51406354", "0.51406354", "0.51406354", "0.5139961", "0.5139961", "0.5139961", "0.5132099", "0.5125757", "0.512181", "0.5103874", "0.51031625", "0.51031625", "0.50985044", "0.50985044", "0.50985044", "0.50985044", "0.50924313", "0.50897783", "0.50897783", "0.5074786", "0.5073173", "0.50521606", "0.50521606", "0.50464875", "0.5044858", "0.50407", "0.504067", "0.5036417", "0.5033483", "0.50259244", "0.5010956", "0.5005442", "0.5004816", "0.50033516", "0.5000247", "0.49953964", "0.49929482", "0.49905646", "0.49816343", "0.49809968", "0.49791297", "0.49791297" ]
0.643862
14
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.gmt_modified
public Date getGmtModified() { return gmtModified; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.sql.Timestamp getModified() {\n return modified;\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _locMstLocation.getModifiedDate();\n\t}", "public java.sql.Timestamp getModified() {\n\treturn modified;\n}", "public OffsetDateTime getModifiedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Modified_Time\");\n\n\t}", "public Date getGmtModified() {\r\n return gmtModified;\r\n }", "@Override\n public long getModificationTime() {\n if (exists()) {\n try {\n if (((Node)item).hasProperty(JcrConstants.JCR_LASTMODIFIED)) {\n return ((Node)item).getProperty(JcrConstants.JCR_LASTMODIFIED).getLong();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:lastModified property\");\n }\n }\n // fallback: return 'now'\n return new Date().getTime();\n }", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "public String getDatemodified() {\n return datemodified;\n }", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public Calendar getModifiedTime() {\n return this.modifiedTime;\n }", "public java.sql.Timestamp getModified() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Timestamp) __getCache(\"modified\")));\n }", "@ApiModelProperty(value = \"The event last modification date in the site timezone\")\n public String getModified() {\n return modified;\n }", "public Timestamp getModifiedDate() {\r\n return (Timestamp) getAttributeInternal(MODIFIEDDATE);\r\n }", "@JsonProperty(\"Date Modified\")\n\tString getModified() {\n\t\treturn getDate(modified);\n\t}", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "public Date getModifiedTime() {\n return modifiedTime;\n }", "public String getDatemodified() {\n\t\treturn datemodified;\n\t}", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "public Date getGmtModify() {\n return gmtModify;\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _esfTournament.getModifiedDate();\n\t}", "public java.sql.Timestamp getLastModified() {\r\n\t\treturn new java.sql.Timestamp(file.lastModified());\r\n\t}", "public Time lastModifiedTime()\n\t{\n\t\tResource resource = getResource();\n\t\tif (resource instanceof IModifiable)\n\t\t{\n\t\t\treturn ((IModifiable)resource).lastModifiedTime();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "@ApiModelProperty(value = \"The event last modification date in UTC time\")\n public String getModifiedUtc() {\n return modifiedUtc;\n }", "public String getModifiedTime() {\n return modifiedTime;\n }", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "public Date getDateModified();", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _changesetEntry.getModifiedDate();\n\t}", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\n return modifiedDate;\n }", "@Nullable\n public Date getModifiedTime() {\n return mModifiedTime == null ? null : new Date(mModifiedTime.getTime());\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Timestamp getLastModified() {\r\n\t\treturn lastModified;\r\n\t}", "public Long getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public String getModifyEndTime() {\n return modifyEndTime;\n }", "public Date getModifieddate() {\n return modifieddate;\n }", "public Date getModifiedDate() {\n return (Date) getAttributeInternal(MODIFIEDDATE);\n }", "public java.lang.String getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }", "public long getLastModified() { return _entry!=null? _entry.getLastModified() : 0; }", "public Long getLastModifiedDate()\r\n\t{\r\n\t\treturn lastModifiedDate;\r\n\t}", "public Date getModifiedDate() {\n\t\treturn modifiedDate;\n\t}", "public Date getModificationTime()\n {\n return modified;\n }", "public String getModifytime() {\n return modifytime;\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _employee.getModifiedDate();\n\t}", "public Integer getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public DateTime lastModifiedTime() {\n return this.lastModifiedTime;\n }", "public Date getModifyTime() {\n return this.modifyTime;\n }", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn model.getModifiedDate();\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn model.getModifiedDate();\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn model.getModifiedDate();\n\t}", "public String getModifyTime() {\n return modifyTime;\n }", "public String getMapLastUpdateDt() {\n\t\treturn this.mapLastUpdateDt;\n\t}", "public Date getModifytime() {\n return modifytime;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getModifiedAt() {\n return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;\n }", "public Date getLastModified ()\n throws ContentObjectException \n {\n try\n {\n final String METHOD_NAME = \"getLastModified\";\n this.logDebug(METHOD_NAME + \": 1/2: Started\");\n this.ensureDbHelper();\n ResultSet resultSet =\n this.dbHelper.queryDatum(this.type, this.id, DbColumn.LAST_MODIFIED);\n if ( ! resultSet.next() )\n throw new SQLException\n (this.getIdentification() + \": \" + METHOD_NAME + \": Empty ResultSet\");\n Date lastModified = resultSet.getTimestamp(DbColumn.LAST_MODIFIED);\n this.logDebug(METHOD_NAME + \": 2/2: Done. lastModified = \" + lastModified);\n return lastModified;\n }\n catch (Exception exception)\n {\n throw new ContentObjectException(exception);\n }\n }", "public Date getDateModifed(){return dateModified;}", "public java.util.Date getModifiedDate() {\n\t\treturn _dmHistoryMaritime.getModifiedDate();\n\t}", "@Raw @Basic\r\n public Date getModificationTime() {\r\n return modificationTime;\r\n }", "@NotNull\n @JsonProperty(\"lastModifiedAt\")\n public ZonedDateTime getLastModifiedAt();", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGtStatus.getModifiedDate();\n\t}", "public Timestamp getLastModifiedOn() {\r\n\t\treturn lastModifiedOn;\r\n\t}", "@Override\n public long getLastModifiedTime() {\n return this.processor.getLastModifiedTime();\n }", "public Date getModifyTime() {\r\n return modifyTime;\r\n }", "public java.time.ZonedDateTime getLastModifiedAt() {\n return this.lastModifiedAt;\n }", "public java.time.ZonedDateTime getLastModifiedAt() {\n return this.lastModifiedAt;\n }", "public java.util.Date getDateModified(){\r\n\t\treturn dateModified;\r\n\t}", "public Integer getLastmodifiedTime() {\r\n return lastmodifiedTime;\r\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGTShipPosition.getModifiedDate();\n\t}", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getLastModified() {\n return _lastModified;\n }", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}" ]
[ "0.67564523", "0.67226106", "0.6634052", "0.6631644", "0.6577943", "0.65704316", "0.65537465", "0.65537465", "0.65537465", "0.655157", "0.6544671", "0.65399206", "0.6526757", "0.6513767", "0.65137184", "0.6499614", "0.64853317", "0.64782786", "0.6476459", "0.6460706", "0.6460706", "0.64587", "0.64348525", "0.6409656", "0.64041364", "0.6395388", "0.63934714", "0.63677406", "0.6355171", "0.6336582", "0.63362277", "0.63306737", "0.63306737", "0.63306737", "0.63105977", "0.63105977", "0.6306352", "0.6301033", "0.62925047", "0.6278496", "0.6269264", "0.62588865", "0.62532735", "0.62492055", "0.6245085", "0.624335", "0.62336934", "0.62258124", "0.6217694", "0.62139934", "0.6204711", "0.6184971", "0.61823606", "0.6174899", "0.6174899", "0.6174899", "0.6164223", "0.616361", "0.6161549", "0.6161549", "0.6161549", "0.6160118", "0.61536926", "0.61536384", "0.6152615", "0.61429906", "0.61412346", "0.61330044", "0.612505", "0.6122615", "0.61196905", "0.61194855", "0.6117839", "0.61153334", "0.61143893", "0.61143893", "0.6111557", "0.61111295", "0.6110182", "0.6102588", "0.6102588", "0.6102588", "0.6102588", "0.6102588", "0.6102588", "0.6102588", "0.6102588", "0.6102588", "0.60995215", "0.60924256" ]
0.65669835
16
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.gmt_modified
public void setGmtModified(Date gmtModified) { this.gmtModified = gmtModified; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGmtModified(Date gmtModified) {\r\n this.gmtModified = gmtModified;\r\n }", "public void setModified(java.sql.Timestamp tmp) {\n this.modified = tmp;\n }", "public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}", "public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}", "public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setModified(Date modified) {\r\n\t\tthis.modified = modified;\r\n\t}", "public void setGmtModify(Date gmtModify) {\n this.gmtModify = gmtModify;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setLastModified(java.util.Calendar param) {\n localLastModifiedTracker = param != null;\n\n this.localLastModified = param;\n }", "public void setDateModified(Date dateModified);", "void setLastUpdatedTime();", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _locMstLocation.getModifiedDate();\n\t}", "public void setLastModified(long lastModified)\r\n/* 278: */ {\r\n/* 279:415 */ setDate(\"Last-Modified\", lastModified);\r\n/* 280: */ }", "public void setMODIFIED_DATE(Date MODIFIED_DATE) {\r\n this.MODIFIED_DATE = MODIFIED_DATE;\r\n }", "public void setModified(Date v) \n {\n \n if (!ObjectUtils.equals(this.modified, v))\n {\n this.modified = v;\n setModified(true);\n }\n \n \n }", "public final void updateModifyDateTime() {\n \tm_modifyDate = System.currentTimeMillis();\n \tm_accessDate = m_modifyDate;\n }", "public void setLastModified(Timestamp lastModified) {\r\n\t\tthis.lastModified = lastModified;\r\n\t}", "public void setModifiedDate(Timestamp value) {\r\n setAttributeInternal(MODIFIEDDATE, value);\r\n }", "public Date getGmtModified() {\r\n return gmtModified;\r\n }", "@Model\r\n\tprotected void setModificationTime() {\r\n modificationTime = new Date();\r\n }", "@ApiModelProperty(value = \"The event last modification date in UTC time\")\n public String getModifiedUtc() {\n return modifiedUtc;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "@ApiModelProperty(value = \"The event last modification date in the site timezone\")\n public String getModified() {\n return modified;\n }", "public Date getGmtModify() {\n return gmtModify;\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "public void setModifiedDate(Date modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _esfTournament.getModifiedDate();\n\t}", "public void setModified(java.sql.Timestamp newValue) {\n\tthis.modified = newValue;\n}", "public void setModifiedTime(Date modifiedTime) {\n this.modifiedTime = modifiedTime;\n }", "public void setLastModified( long lastModified )\n {\n this.lastModified = lastModified;\n }", "@NoProxy\n public void updateLastmod() {\n setLastmod(new LastModified(new DateTime(true)).getValue());\n }", "public void setModifiedTime(OffsetDateTime modifiedTime)\n\t{\n\t\t this.addKeyValue(\"Modified_Time\", modifiedTime);\n\n\t}", "void setModifyDate(final Date lastModifiedDate);", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_esfTournament.setModifiedDate(modifiedDate);\n\t}", "@Override\n\tpublic void setModifiedDate(java.util.Date ModifiedDate) {\n\t\t_locMstLocation.setModifiedDate(ModifiedDate);\n\t}", "public Date getDateModifed(){return dateModified;}", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public java.sql.Timestamp getModified() {\n return modified;\n }", "public void setModifiedDate(Date modifiedDate) {\n this.modifiedDate = modifiedDate;\n }", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "@XmlElement(name = \"lastModified\")\n public void setLastModified(long lastModified) {\n this.lastModified = lastModified;\n }", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "@NotNull\n @JsonProperty(\"lastModifiedAt\")\n public ZonedDateTime getLastModifiedAt();", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _changesetEntry.getModifiedDate();\n\t}", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public String getModifyEndTime() {\n return modifyEndTime;\n }", "public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }", "public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }", "public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getModifiedDate();", "@Override\n public long getModificationTime() {\n if (exists()) {\n try {\n if (((Node)item).hasProperty(JcrConstants.JCR_LASTMODIFIED)) {\n return ((Node)item).getProperty(JcrConstants.JCR_LASTMODIFIED).getLong();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:lastModified property\");\n }\n }\n // fallback: return 'now'\n return new Date().getTime();\n }", "public void updateDateModified() {\n dateModified = DateTime.now();\n }", "public Date getModifiedDate() {\n return modifiedDate;\n }", "public void setLastModified(LocalDateTime lastModified) {\n this.lastModified = lastModified;\n }", "public void setUpdatedOn(Date updatedOn);", "public void setSrcModifiedDate(Date value) {\r\n setAttributeInternal(SRCMODIFIEDDATE, value);\r\n }", "public void setGmtUpdate(Date gmtUpdate) {\n this.gmtUpdate = gmtUpdate;\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }", "public Calendar getModifiedTime() {\n return this.modifiedTime;\n }", "public Timestamp getModifiedDate() {\r\n return (Timestamp) getAttributeInternal(MODIFIEDDATE);\r\n }", "public void setModified(String tmp) {\n this.modified = DateUtils.parseTimestampString(tmp);\n }", "public Date getModifiedTime() {\n return modifiedTime;\n }" ]
[ "0.64115214", "0.63435", "0.62328786", "0.62328786", "0.62328786", "0.6046657", "0.6046657", "0.6046657", "0.6019574", "0.60096127", "0.60081226", "0.60081226", "0.600675", "0.59892166", "0.5979926", "0.5974535", "0.5945629", "0.58946246", "0.5880254", "0.5837486", "0.58316207", "0.57690275", "0.5746019", "0.5733076", "0.57327795", "0.5706369", "0.5706369", "0.5706369", "0.5706369", "0.5706369", "0.5706369", "0.5706369", "0.5706369", "0.5706369", "0.5706369", "0.5706369", "0.57038707", "0.5700215", "0.5677451", "0.5677451", "0.5674687", "0.5674687", "0.5674239", "0.56714255", "0.5668173", "0.5662423", "0.5650271", "0.5643132", "0.56276923", "0.5622995", "0.5618038", "0.56176615", "0.56161684", "0.561452", "0.561452", "0.5612125", "0.56097674", "0.5606477", "0.5604179", "0.5604179", "0.5604179", "0.5597705", "0.5597293", "0.5589307", "0.5564449", "0.5563334", "0.55627906", "0.5561492", "0.5561492", "0.55451614", "0.5527827", "0.5527827", "0.5527827", "0.5525788", "0.5525788", "0.5525788", "0.5525684", "0.55209345", "0.55175513", "0.55142987", "0.55058223", "0.5504598", "0.54950964", "0.54858744", "0.54858744", "0.54858744", "0.54842544", "0.5472807", "0.54701173", "0.5466842" ]
0.639084
11
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.creator
public String getCreator() { return creator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCreator() {\n return this.creator;\n }", "@VTID(13)\r\n int getCreator();", "public String getCreator() {\r\n return creator;\r\n }", "public String getCreator() {\r\n return creator;\r\n }", "public String getCreator() {\n\t\treturn creator;\n\t}", "public Long getCreator() {\n return creator;\n }", "public String getCreator()\n\t{\n\t\treturn null;\n\t}", "public String getCreator() {\n return getProperty(Property.CREATOR);\n }", "public User getCreator() {\n return this.creator;\n }", "public Integer getCreator() {\n return creator;\n }", "public String getCreatorId() {\n return this.CreatorId;\n }", "String getCreatorId();", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorId() {\n return creatorId;\n }", "public String getCreatorId() {\n return creatorId;\n }", "public SystemUserBO getCreator()\n {\n if (_creator == null)\n {\n _creator = new SystemUserBO(_model.getCreator());\n }\n return _creator;\n }", "public java.lang.String getCreatorName() {\n return creatorName;\n }", "public java.lang.Integer getCreatorId() {\n return creatorId;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n\t\tthis.creator = creator;\n\t}", "@VTID(8)\r\n excel.XlCreator getCreator();", "public void setCreator(Long creator) {\n this.creator = creator;\n }", "@Override\n protected String getCreatorDisplayName() {\n try {\n // DAV:creator-displayname -> use jcr:createBy if present.\n if (exists() && ((Node) item).hasProperty(Property.JCR_CREATED_BY)) {\n return ((Node) item).getProperty(Property.JCR_CREATED_BY).getString();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:createdBy property\");\n }\n\n // fallback\n return super.getCreatorDisplayName();\n }", "public abstract String getCreator();", "public String getCreatorGuid() {\n return creatorGuid;\n }", "public long getCreatorUserId() {\n return creatorUserId;\n }", "public String getCreatorCode() {\n return creatorCode;\n }", "public Date getCreatorDate() {\n return creatorDate;\n }", "public ScGridColumn<AcActionAutoCorrectedLog> newCreatedByColumn()\n {\n return newCreatedByColumn(\"Created By\");\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public WhoAmI getCreatorID() {\r\n\t\treturn myCreatorId;\r\n\t}", "@VTID(8)\n excel.XlCreator getCreator();", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public ParseUser getCreator() {\n try {\n return fetchIfNeeded().getParseUser(\"creator\");\n }\n catch(ParseException e) {\n Log.d(TAG, \"Error in retrieving the creator: \" + e);\n return null;\n }\n }", "public User getCreator() {\n\t\treturn creatorId != null ? (User) User.findById(creatorId) : null;\n\t}", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "@Override\n\tpublic java.lang.String getCreatedBy() {\n\t\treturn _locMstLocation.getCreatedBy();\n\t}", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public void setCreatorName(String creatorName) {\n this.creatorName = creatorName;\n }", "public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }", "public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }", "public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }", "public void setCreator(String creator) {\r\n this.creator = creator == null ? null : creator.trim();\r\n }", "public void setCreator(String creator) {\r\n this.creator = creator == null ? null : creator.trim();\r\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "int getCreatedBy();", "public native final String getCreatedBy() /*-{\n return this[\"@CreatedBy\"];\n }-*/;", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public void setCreator(Integer creator) {\n this.creator = creator;\n }", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "@Override\n\tpublic long getCreateBy() {\n\t\treturn _candidate.getCreateBy();\n\t}", "public void setCreatorId(String creatorId) {\n this.creatorId = creatorId;\n }", "public void setCreator(User creator) {\n this.creator = creator;\n }", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "@AutoEscape\n\tpublic String getCreatedByUser();", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}" ]
[ "0.6876692", "0.6719227", "0.6594343", "0.6594343", "0.6544019", "0.6543916", "0.6506394", "0.63912255", "0.63481146", "0.6337823", "0.63168967", "0.6303366", "0.6209386", "0.6209386", "0.6209386", "0.6187485", "0.6187485", "0.6116248", "0.6107111", "0.60408837", "0.5976382", "0.59754795", "0.59754795", "0.59754795", "0.59754795", "0.5936511", "0.5934266", "0.5906446", "0.5898409", "0.58754194", "0.5854973", "0.5827088", "0.5818942", "0.5767715", "0.5766332", "0.5765433", "0.5765433", "0.5765433", "0.5765433", "0.5712801", "0.569199", "0.5690649", "0.5690649", "0.5690649", "0.566252", "0.56441915", "0.5632932", "0.5621465", "0.560735", "0.5606309", "0.56054944", "0.56054944", "0.56054944", "0.5599483", "0.5599483", "0.55639976", "0.55638456", "0.55608946", "0.5560059", "0.5560059", "0.5560059", "0.5560059", "0.5560059", "0.5560059", "0.55501443", "0.554698", "0.554698", "0.554698", "0.554698", "0.554698", "0.554698", "0.554698", "0.554698", "0.554698", "0.554698", "0.554698", "0.554698", "0.554698", "0.55454034", "0.55454034", "0.55454034", "0.55454034", "0.5538407", "0.55381596", "0.55380136", "0.5520652", "0.5519261", "0.5510222", "0.5510222", "0.5510222", "0.5510222", "0.5501326" ]
0.6550238
12
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.creator
public void setCreator(String creator) { this.creator = creator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreator(User creator) {\n this.creator = creator;\n }", "public void setCreator(Long creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\n\t\tthis.creator = creator;\n\t}", "public void setCreator(Integer creator) {\n this.creator = creator;\n }", "public void setCreator(String creator) {\r\n this.creator = creator == null ? null : creator.trim();\r\n }", "public void setCreator(String creator) {\r\n this.creator = creator == null ? null : creator.trim();\r\n }", "public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }", "public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }", "public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }", "public void setCreator(SystemUserBO creator)\n {\n _creator = creator;\n _model.setCreator(creator.getModel());\n }", "public void setCreatorDate(Date creatorDate) {\n this.creatorDate = creatorDate;\n }", "public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }", "public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }", "public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }", "public void setCreatorUserId(long creatorUserId) {\n this.creatorUserId = creatorUserId;\n }", "public IBusinessObject setCreator(IUser creator)\n throws ORIOException;", "public void setCreatorId(String creatorId) {\n this.creatorId = creatorId;\n }", "public String getCreator() {\n return this.creator;\n }", "public void setCreatorId(String creatorId) {\n this.creatorId = creatorId == null ? null : creatorId.trim();\n }", "public void setCreatorId(String CreatorId) {\n this.CreatorId = CreatorId;\n }", "public void setCreatorName(String creatorName) {\n this.creatorName = creatorName;\n }", "public void setCreatorId(java.lang.Integer creatorId) {\n this.creatorId = creatorId;\n }", "public void setCreatorGuid(String creatorGuid) {\n this.creatorGuid = creatorGuid;\n }", "@VTID(13)\r\n int getCreator();", "public User getCreator() {\n return this.creator;\n }", "public String getCreator() {\r\n return creator;\r\n }", "public String getCreator() {\r\n return creator;\r\n }", "public void setCreatorName(java.lang.String creatorName) {\n this.creatorName = creatorName;\n }", "public Long getCreator() {\n return creator;\n }", "Builder addCreator(Organization value);", "public void setCreatorName(String creatorName) {\n this.creatorName = creatorName == null ? null : creatorName.trim();\n }", "public void setCreatorName(String creatorName) {\n this.creatorName = creatorName == null ? null : creatorName.trim();\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator() {\n return creator;\n }", "public String getCreator()\n\t{\n\t\treturn null;\n\t}", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "public void addCreator(String value) {\n/* 106 */ addStringToSeq(\"creator\", value);\n/* */ }", "public String getCreator() {\n\t\treturn creator;\n\t}", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public String getCreatorId() {\n return this.CreatorId;\n }", "@Override\n\tpublic void updateCreator(CreatorDTO creator) {\n\t\t\n\t}", "public Integer getCreator() {\n return creator;\n }", "public String getCreatorId() {\n return creatorId;\n }", "public String getCreatorId() {\n return creatorId;\n }", "public IBusinessObject setCreatorIID(IIID creator)\n throws ORIOException;", "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "public ScGridColumn<AcActionAutoCorrectedLog> newCreatedByColumn()\n {\n return newCreatedByColumn(\"Created By\");\n }", "public void setCreatorCode(String creatorCode) {\n this.creatorCode = creatorCode == null ? null : creatorCode.trim();\n }", "public SystemUserBO getCreator()\n {\n if (_creator == null)\n {\n _creator = new SystemUserBO(_model.getCreator());\n }\n return _creator;\n }", "String getCreatorId();", "public void setCreatedByUser(String createdByUser);", "void setCreaedBy(Subject creator)\n {\n this.creator = creator;\n }", "void setCreateby(final U createdBy);", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public java.lang.Integer getCreatorId() {\n return creatorId;\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public String getCreator() {\n return getProperty(Property.CREATOR);\n }", "public void setCreatedBy(final CreatedBy createdBy);", "public Builder setCreatedBy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdBy_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setCreatedBy(java.lang.String CreatedBy) {\n\t\t_locMstLocation.setCreatedBy(CreatedBy);\n\t}", "public long getCreatorUserId() {\n return creatorUserId;\n }", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorName() {\n return creatorName;\n }", "public String getCreatorName() {\n return creatorName;\n }", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "Builder addCreator(Organization.Builder value);", "@VTID(8)\r\n excel.XlCreator getCreator();", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public Date getCreatorDate() {\n return creatorDate;\n }", "public void setCreatedByUser(long createdByUser);", "void setCreationDate( String username, Date creationDate ) throws UserNotFoundException;", "public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreateModifiedBy(String aCreateModifiedBy) {\n createModifiedBy = aCreateModifiedBy;\n }" ]
[ "0.6517754", "0.6516389", "0.6498398", "0.64101815", "0.6225901", "0.621614", "0.621614", "0.62087595", "0.62087595", "0.62087595", "0.60883445", "0.60445565", "0.598297", "0.598297", "0.598297", "0.5967595", "0.59522325", "0.59315675", "0.58909607", "0.5789723", "0.57719815", "0.57205135", "0.5715999", "0.5646896", "0.5638164", "0.5584365", "0.5570751", "0.5570751", "0.5570728", "0.5508148", "0.5498743", "0.54979026", "0.54979026", "0.5494712", "0.5494712", "0.5494712", "0.5494712", "0.5494712", "0.5494712", "0.5494712", "0.5494712", "0.5494712", "0.5484683", "0.5481951", "0.5480655", "0.5479957", "0.5440628", "0.5440628", "0.5440628", "0.5440628", "0.5440628", "0.5440628", "0.5440628", "0.5423131", "0.53600895", "0.5338362", "0.53370494", "0.53370494", "0.53260416", "0.5314023", "0.52989525", "0.52592033", "0.5250108", "0.52295774", "0.51870507", "0.5185461", "0.51708794", "0.5163344", "0.51597893", "0.5118971", "0.5118971", "0.5118971", "0.5118971", "0.5118971", "0.5118971", "0.5118971", "0.5118971", "0.51170367", "0.5077837", "0.5072454", "0.5071367", "0.50692886", "0.5054677", "0.5054677", "0.5054677", "0.5054052", "0.5038883", "0.5026122", "0.5009604", "0.5009604", "0.5009604", "0.5009604", "0.49991837", "0.4969355", "0.49688908", "0.49664295", "0.49213797" ]
0.64708704
6
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.modifier
public String getModifier() { return modifier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getModifier() {\n\t\treturn modifier;\n\t}", "public String getModifier() {\n\t\treturn modifier;\n\t}", "public String getModifier() {\n\t\treturn modifier;\n\t}", "Modifier getModifier();", "public String getModifierName() {\n return modifierName;\n }", "public void setModifier(String modifier) {\n\t\tthis.modifier = modifier;\n\t}", "public void setModifier(String modifier) {\n\t\tthis.modifier = modifier;\n\t}", "public void setModifier(String modifier) {\n\t\tthis.modifier = modifier;\n\t}", "public void setModifier(String modifier) {\n this.modifier = modifier;\n }", "public void setModifier(String modifier) {\n this.modifier = modifier;\n }", "public void setModifier(String modifier) {\n this.modifier = modifier;\n }", "public String getLastModifier() {\n return getProperty(Property.LAST_MODIFIER);\n }", "public String getLastmodifierName() {\n return lastmodifierName;\n }", "public byte getModifier(){\r\n\t\treturn modifiers;\r\n\t}", "public String getModifierGuid() {\n return modifierGuid;\n }", "public String getLastmodifierCode() {\n return lastmodifierCode;\n }", "public Date getModifierDate() {\n return modifierDate;\n }", "public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }", "public void setModifier(String modifier) {\n this.modifier = modifier == null ? null : modifier.trim();\n }", "public void setModifier(String modifier) {\n this.modifier = modifier == null ? null : modifier.trim();\n }", "public void setModifierName(String modifierName) {\n this.modifierName = modifierName;\n }", "public Double getModifierPercentage() {\n return this.modifierPercentage;\n }", "public Double getModifierPercentage() {\n return this.modifierPercentage;\n }", "public Integer getModifyMan() {\n return modifyMan;\n }", "public BigDecimal getRoleId() {\r\n return roleId;\r\n }", "public Modifier getProductionModifier() {\n return productionModifier;\n }", "@Override\n\tpublic long getRecentModifierId() {\n\t\treturn _scienceApp.getRecentModifierId();\n\t}", "public double getExpModifier()\r\n\t{\treturn this.expModifier;\t}", "public Integer getRoleId() {\r\n return roleId;\r\n }", "JApiModifier<AccessModifier> getAccessModifier();", "public Long getRoleId() {\r\n return roleId;\r\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public static LeftHandSideModifier getModifier(final Node n) {\r\n return (LeftHandSideModifier) n.getProperty(MODIFIER);\r\n }", "public String getRol() \n {\n \t return rol;\n }", "@Override\n public final int getModifierIndex(Modifier modifier) {\n if (produces != null && produces.getId().equals(modifier.getId())) {\n return Modifier.AUTO_PRODUCTION_INDEX;\n } else {\n return getModifierIndex();\n }\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "@JsonGetter(\"modifier_list_id\")\r\n public String getModifierListId() {\r\n return modifierListId;\r\n }", "public Boolean getIsModifier() { \n\t\treturn getIsModifierElement().getValue();\n\t}", "public Integer getRoleId() {\n\t\treturn roleId;\n\t}", "public Long getRoleId() {\n\t\treturn roleId;\n\t}", "public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}", "public ModifierMirror getModifiers() {\n\t\treturn modifiers;\n\t}", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "void setModifier(Modifier modifier);", "public int getRoleId() {\r\n\t\treturn roleId;\r\n\t}", "public int getModifiers() {\n return mod;\n }", "@JsonProperty(\"rangerAuditRole\")\n public String getRangerAuditRole() {\n return rangerAuditRole;\n }", "public Modifiers getModifiers() {\n return (Modifiers)getChild(0);\n }", "public String getTerms_Modifier_Check() {\n return (String) getAttributeInternal(TERMS_MODIFIER_CHECK);\n }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void setModifierGuid(String modifierGuid) {\n this.modifierGuid = modifierGuid;\n }", "public String getModifyOperator() {\n\t\treturn modifyOperator;\n\t}", "public Modifier<Document, Document>[] getModifiers() {\n\t\treturn this.modifiers;\n\t}", "public String getMod() {\n\t\treturn this.mod;\n\t}", "public ModifierData getModifier() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new ModifierData(__io__address + 0, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new ModifierData(__io__address + 0, __io__block, __io__blockTable);\n\t\t}\n\t}", "public ModifierData getModifier() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new ModifierData(__io__address + 0, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new ModifierData(__io__address + 0, __io__block, __io__blockTable);\n\t\t}\n\t}", "public int getReflector() {\r\n\t\treturn rotors.getReflector();\r\n\t}", "public int getRolesRolId() throws DataStoreException {\r\n return getInt(ROLES_ROL_ID);\r\n }", "com.google.ads.googleads.v6.resources.CampaignBidModifier getCampaignBidModifier();", "public Integer getRole() {\n\t\treturn role;\n\t}", "public MoveByModifier getLastMoveByModifier() {\n\t\treturn lastMoveByModifier;\n\t}", "@Override\n\tpublic AccessModifier getAccessModifier() {\n\t\treturn null;\n\t}", "@Generated\n public Rol getRol() {\n Long __key = this.usu_rol_id;\n if (rol__resolvedKey == null || !rol__resolvedKey.equals(__key)) {\n __throwIfDetached();\n RolDao targetDao = daoSession.getRolDao();\n Rol rolNew = targetDao.load(__key);\n synchronized (this) {\n rol = rolNew;\n \trol__resolvedKey = __key;\n }\n }\n return rol;\n }", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "@SemanticsRole\n public int getRole() {\n return mImpl.getRole().getNumber();\n }", "public void setModifierDate(Date modifierDate) {\n this.modifierDate = modifierDate;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void setModifier(final Modifier<Document, Document> modifier) {\n\t\tif (modifier != null) {\n\t\t\tthis.modifiers = new Modifier[1];\n\t\t\tthis.modifiers[0] = modifier;\n\t\t} else {\n\t\t\tthis.modifiers = null;\n\t\t}\n\t}", "public int getApprenticeModifier() {\n return (int) (populationLevel - recentApprentices) / 5;\r\n }", "@Override\n public List<UnitModifier> getModifiers()\n {\n ArrayList<UnitModifier> output = new ArrayList<>();\n output.addAll(model.getModifiers());\n output.addAll(CO.getModifiers());\n output.addAll(unitMods);\n return output;\n }", "public String getRole() {\r\n return role;\r\n }", "public String getRole()\n\t{\n\t\treturn role;\n\t}", "public final void modifiers() throws RecognitionException {\n int modifiers_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"modifiers\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(217, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return ; }\n // Java.g:218:5: ( ( modifier )* )\n dbg.enterAlt(1);\n\n // Java.g:218:9: ( modifier )*\n {\n dbg.location(218,9);\n // Java.g:218:9: ( modifier )*\n try { dbg.enterSubRule(15);\n\n loop15:\n do {\n int alt15=2;\n try { dbg.enterDecision(15);\n\n int LA15_0 = input.LA(1);\n\n if ( (LA15_0==73) ) {\n int LA15_2 = input.LA(2);\n\n if ( (LA15_2==Identifier) ) {\n alt15=1;\n }\n\n\n }\n else if ( (LA15_0==28||(LA15_0>=31 && LA15_0<=36)||(LA15_0>=52 && LA15_0<=55)) ) {\n alt15=1;\n }\n\n\n } finally {dbg.exitDecision(15);}\n\n switch (alt15) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:0:0: modifier\n \t {\n \t dbg.location(218,9);\n \t pushFollow(FOLLOW_modifier_in_modifiers395);\n \t modifier();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop15;\n }\n } while (true);\n } finally {dbg.exitSubRule(15);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, modifiers_StartIndex); }\n }\n dbg.location(219, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"modifiers\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "@Override\r\n public String toString() {\r\n return \"CatalogModifier [\" + \"name=\" + name + \", priceMoney=\" + priceMoney + \", ordinal=\"\r\n + ordinal + \", modifierListId=\" + modifierListId + \"]\";\r\n }", "public void setModifierPercentage(Double modifierPercentage) {\n this.modifierPercentage = modifierPercentage;\n }", "public void setModifierPercentage(Double modifierPercentage) {\n this.modifierPercentage = modifierPercentage;\n }", "public void modifierVie(int modificationVie);", "public int getModifier(Mounted weapon, Coords coords) {\n Vector<ArtilleryModifier> weaponMods = getWeaponModifiers(weapon);\n ArtilleryModifier am = getModifierByCoords(weaponMods, coords);\n if (am != null) {\n return am.getModifier();\n }\n return 0;\n }", "public final ValidateStateTransitionsParser.modifierList_return modifierList() throws RecognitionException {\r\n ValidateStateTransitionsParser.modifierList_return retval = new ValidateStateTransitionsParser.modifierList_return();\r\n retval.start = input.LT(1);\r\n\r\n int modifierList_StartIndex = input.index();\r\n\r\n ValidateStateTransitionsParser_JavaTreeParser.modifier_return modifier9 =null;\r\n\r\n\r\n\r\n retval.modifiers = new HashSet<String>();\r\n \r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 297) ) { return retval; }\r\n\r\n // E:\\\\GitHub\\\\CesTa\\\\src\\\\org\\\\cesta\\\\grammars\\\\java\\\\ValidateStateTransitionsParser.g:310:5: ( ^( MODIFIER_LIST ( modifier )* ) )\r\n // E:\\\\GitHub\\\\CesTa\\\\src\\\\org\\\\cesta\\\\grammars\\\\java\\\\ValidateStateTransitionsParser.g:310:9: ^( MODIFIER_LIST ( modifier )* )\r\n {\r\n match(input,MODIFIER_LIST,FOLLOW_MODIFIER_LIST_in_modifierList953); if (state.failed) return retval;\r\n\r\n if ( input.LA(1)==Token.DOWN ) {\r\n match(input, Token.DOWN, null); if (state.failed) return retval;\r\n // E:\\\\GitHub\\\\CesTa\\\\src\\\\org\\\\cesta\\\\grammars\\\\java\\\\ValidateStateTransitionsParser.g:310:25: ( modifier )*\r\n loop17:\r\n do {\r\n int alt17=2;\r\n int LA17_0 = input.LA(1);\r\n\r\n if ( (LA17_0==AT||LA17_0==ABSTRACT||LA17_0==FINAL||LA17_0==NATIVE||(LA17_0 >= PRIVATE && LA17_0 <= PUBLIC)||(LA17_0 >= STATIC && LA17_0 <= STRICTFP)||LA17_0==SYNCHRONIZED||LA17_0==TRANSIENT||LA17_0==VOLATILE) ) {\r\n alt17=1;\r\n }\r\n\r\n\r\n switch (alt17) {\r\n \tcase 1 :\r\n \t // E:\\\\GitHub\\\\CesTa\\\\src\\\\org\\\\cesta\\\\grammars\\\\java\\\\ValidateStateTransitionsParser.g:310:26: modifier\r\n \t {\r\n \t pushFollow(FOLLOW_modifier_in_modifierList956);\r\n \t modifier9=modifier();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return retval;\r\n\r\n \t if ( state.backtracking==0 ) {retval.modifiers.add((modifier9!=null?(input.getTokenStream().toString(input.getTreeAdaptor().getTokenStartIndex(modifier9.start),input.getTreeAdaptor().getTokenStopIndex(modifier9.start))):null));}\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop17;\r\n }\r\n } while (true);\r\n\r\n\r\n match(input, Token.UP, null); if (state.failed) return retval;\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 297, modifierList_StartIndex); }\r\n\r\n }\r\n return retval;\r\n }", "public String getRole() {\r\n\t\treturn role;\r\n\t}", "public java.lang.String getRole() {\n return role;\n }", "public gb_Vector3 getModOffset(){\n\t\treturn modOffset;\n\t}", "public int modifiers();", "public Long getAdminRoleId() {\n\t\treturn this.adminRoleId;\n\t}" ]
[ "0.6765567", "0.6765567", "0.6765567", "0.6676478", "0.6455262", "0.6254773", "0.6254773", "0.6254773", "0.6249371", "0.6249371", "0.6249371", "0.6180458", "0.6094748", "0.60857", "0.60799414", "0.5922771", "0.5834589", "0.5779263", "0.5774754", "0.5774754", "0.56748194", "0.5647211", "0.5647211", "0.5634269", "0.56303173", "0.56106555", "0.5547249", "0.55425", "0.550485", "0.5496072", "0.54929245", "0.5484541", "0.5484541", "0.5484541", "0.5484541", "0.5484541", "0.5484541", "0.5484541", "0.5484541", "0.5475309", "0.5474456", "0.54709125", "0.5468179", "0.5468179", "0.5468179", "0.5468179", "0.5457116", "0.54476476", "0.5423409", "0.54195094", "0.541664", "0.54137975", "0.54006374", "0.54006374", "0.54006374", "0.5398433", "0.53177136", "0.53039396", "0.529229", "0.5292219", "0.52819747", "0.52569616", "0.5244339", "0.52377474", "0.5224115", "0.52190906", "0.52181566", "0.52181566", "0.52140117", "0.5212647", "0.5200904", "0.51927996", "0.5189765", "0.5174376", "0.5138916", "0.51292527", "0.5128293", "0.5116563", "0.5108402", "0.50757754", "0.5060188", "0.50464374", "0.50351965", "0.50348526", "0.503183", "0.50305104", "0.50305104", "0.5024445", "0.50071734", "0.49898294", "0.49759775", "0.49749643", "0.49722183", "0.49564454", "0.49506807" ]
0.6786222
5
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.modifier
public void setModifier(String modifier) { this.modifier = modifier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setModifier(Modifier modifier);", "public void setModifier(String modifier) {\n\t\tthis.modifier = modifier;\n\t}", "public void setModifier(String modifier) {\n\t\tthis.modifier = modifier;\n\t}", "public void setModifier(String modifier) {\n\t\tthis.modifier = modifier;\n\t}", "public void setModifier(String modifier) {\n this.modifier = modifier == null ? null : modifier.trim();\n }", "public void setModifier(String modifier) {\n this.modifier = modifier == null ? null : modifier.trim();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void setModifier(final Modifier<Document, Document> modifier) {\n\t\tif (modifier != null) {\n\t\t\tthis.modifiers = new Modifier[1];\n\t\t\tthis.modifiers[0] = modifier;\n\t\t} else {\n\t\t\tthis.modifiers = null;\n\t\t}\n\t}", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void setModifierDate(Date modifierDate) {\n this.modifierDate = modifierDate;\n }", "public void setModifier(ModifierData modifier) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 0;\n\t\t} else {\n\t\t\t__dna__offset = 0;\n\t\t}\n\t\tif (__io__equals(modifier, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, modifier)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, modifier);\n\t\t} else {\n\t\t\t__io__generic__copy( getModifier(), modifier);\n\t\t}\n\t}", "public void setModifier(ModifierData modifier) throws IOException\n\t{\n\t\tlong __dna__offset;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__offset = 0;\n\t\t} else {\n\t\t\t__dna__offset = 0;\n\t\t}\n\t\tif (__io__equals(modifier, __io__address + __dna__offset)) {\n\t\t\treturn;\n\t\t} else if (__io__same__encoding(this, modifier)) {\n\t\t\t__io__native__copy(__io__block, __io__address + __dna__offset, modifier);\n\t\t} else {\n\t\t\t__io__generic__copy( getModifier(), modifier);\n\t\t}\n\t}", "public void setModifierName(String modifierName) {\n this.modifierName = modifierName;\n }", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setModifiers(final Modifier<Document, Document>[] modifier) {\n\t\tthis.modifiers = modifier;\n\t}", "public String getModifier() {\n return modifier;\n }", "public String getModifier() {\n return modifier;\n }", "public String getModifier() {\n return modifier;\n }", "public String getModifier() {\n return modifier;\n }", "public String getModifier() {\n return modifier;\n }", "public String getModifier() {\n return modifier;\n }", "public String getModifier() {\n\t\treturn modifier;\n\t}", "public String getModifier() {\n\t\treturn modifier;\n\t}", "public String getModifier() {\n\t\treturn modifier;\n\t}", "Modifier getModifier();", "public void setModifierGuid(String modifierGuid) {\n this.modifierGuid = modifierGuid;\n }", "public void modifierVie(int modificationVie);", "@Override\n\t\t\tpublic void modifier(Catalogue catalogue) {\n\t\t\t\t\n\t\t\t}", "public void setModifiers(int modifiers);", "public void setModifierPercentage(Double modifierPercentage) {\n this.modifierPercentage = modifierPercentage;\n }", "public void setModifierPercentage(Double modifierPercentage) {\n this.modifierPercentage = modifierPercentage;\n }", "public void modifier(Etudiant t) {\n\t\tdao.modifier(t);\r\n\t}", "public void setModifier(int modifier, Coords coords) {\n for (Mounted weapon : weapons.keySet()) {\n Vector<ArtilleryModifier> weaponMods = getWeaponModifiers(weapon);\n ArtilleryModifier am = getModifierByCoords(weaponMods, coords);\n if (am != null) {\n am.setModifier(modifier);\n } else {\n am = new ArtilleryModifier(coords, modifier);\n weaponMods.addElement(am);\n }\n }\n }", "public String getModifierName() {\n return modifierName;\n }", "void setModifierId(String p_modifierId)\n {\n throw new UnsupportedOperationException(\n \"This method is not supported. Use addHistory()\");\n }", "void setModified(Subject modifier, Date modificationTime)\n {\n this.modifier = modifier;\n this.modified = modificationTime;\n }", "public void setCurAttack(int modifier) {\n\t\tcurAttack = curAttack + modifier;\n\t}", "public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }", "public void setRolModified(boolean rolModified)\n\t{\n\t\tthis.rolModified = rolModified;\n\t}", "public void setModifiers(T modifiers);", "public Date getModifierDate() {\n return modifierDate;\n }", "public String getModifierGuid() {\n return modifierGuid;\n }", "public void setModifyMan(Integer modifyMan) {\n this.modifyMan = modifyMan;\n }", "public void setModifiers(int mod) {\n int old = this.mod;\n this.mod = mod;\n firePropertyChange (PROP_MODIFIERS, new Integer (old), new Integer (mod));\n }", "public void setLastmodifierCode(String lastmodifierCode) {\n this.lastmodifierCode = lastmodifierCode == null ? null : lastmodifierCode.trim();\n }", "public byte getModifier(){\r\n\t\treturn modifiers;\r\n\t}", "public void modifierArgent(int modificationArgent);", "public Element setEndModifier(char modifier) {\n\t\tsetEndStartModifier(modifier);\n\t\tsetEndEndModifier(modifier);\n\t\tsetEndStartModifierDefined(true);\n\t\tsetEndEndModifierDefined(true);\n\t\treturn (this);\n\t}", "public void setModifiable(boolean modifiable) {\n this.modifiable.set(modifiable);\n }", "public void setLastmodifierName(String lastmodifierName) {\n this.lastmodifierName = lastmodifierName == null ? null : lastmodifierName.trim();\n }", "void setHasAppliedModifier(boolean hasAppliedModifier);", "public void setMotivoLlamadoAtencion(MotivoLlamadoAtencion motivoLlamadoAtencion)\r\n/* 119: */ {\r\n/* 120:127 */ this.motivoLlamadoAtencion = motivoLlamadoAtencion;\r\n/* 121: */ }", "@Override\n\tpublic void onModifierStarted(IModifier<IEntity> pModifier, IEntity pItem) {\n\t\t// TODO Auto-generated method stub\t\n\t}", "public ElementDefinitionDt setIsModifier(BooleanDt theValue) {\n\t\tmyIsModifier = theValue;\n\t\treturn this;\n\t}", "public ElementDefinitionDt setIsModifier( boolean theBoolean) {\n\t\tmyIsModifier = new BooleanDt(theBoolean); \n\t\treturn this; \n\t}", "public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setInt(1, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setRole()\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setModifiers(Modifiers node) {\n setChild(node, 0);\n }", "JApiModifier<AccessModifier> getAccessModifier();", "public void setCurDefense(int modifier) {\n\t\tcurDefense = curDefense + modifier;\n\t}", "public void modifierAuteur(Auteur a) {\n auteurDao.modifierAuteur(a);\n\n }", "public void setRol(String rol) {\r\n\t\tthis.rol = rol;\r\n\t}", "public BigDecimal getRoleId() {\r\n return roleId;\r\n }", "public Long getRoleId() {\r\n return roleId;\r\n }", "public final void modifiers() throws RecognitionException {\n int modifiers_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"modifiers\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(217, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return ; }\n // Java.g:218:5: ( ( modifier )* )\n dbg.enterAlt(1);\n\n // Java.g:218:9: ( modifier )*\n {\n dbg.location(218,9);\n // Java.g:218:9: ( modifier )*\n try { dbg.enterSubRule(15);\n\n loop15:\n do {\n int alt15=2;\n try { dbg.enterDecision(15);\n\n int LA15_0 = input.LA(1);\n\n if ( (LA15_0==73) ) {\n int LA15_2 = input.LA(2);\n\n if ( (LA15_2==Identifier) ) {\n alt15=1;\n }\n\n\n }\n else if ( (LA15_0==28||(LA15_0>=31 && LA15_0<=36)||(LA15_0>=52 && LA15_0<=55)) ) {\n alt15=1;\n }\n\n\n } finally {dbg.exitDecision(15);}\n\n switch (alt15) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:0:0: modifier\n \t {\n \t dbg.location(218,9);\n \t pushFollow(FOLLOW_modifier_in_modifiers395);\n \t modifier();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop15;\n }\n } while (true);\n } finally {dbg.exitSubRule(15);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 8, modifiers_StartIndex); }\n }\n dbg.location(219, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"modifiers\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public Integer getRoleId() {\r\n return roleId;\r\n }", "public Element setEndModifier(char start_modifier, char end_modifier) {\n\t\tthis.end_start_modifier = start_modifier;\n\t\tthis.end_end_modifier = end_modifier;\n\t\tsetEndStartModifierDefined(true);\n\t\tsetEndEndModifierDefined(true);\n\t\treturn (this);\n\t}", "public String getLastModifier() {\n return getProperty(Property.LAST_MODIFIER);\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public void setCurHealth(int modifier) {\n\t\tcurHealth = curHealth + modifier;\n\t}", "public Element setEndStartModifier(char modifier) {\n\t\tthis.end_start_modifier = modifier;\n\t\tsetEndStartModifierDefined(true);\n\t\treturn (this);\n\t}", "public Long getRoleId() {\n\t\treturn roleId;\n\t}", "public void modifier(){\r\n try {\r\n //affectation des valeur \r\n echeance_etudiant.setIdEcheanceEtu(getViewEtudiantInscripEcheance().getIdEcheanceEtu()); \r\n \r\n echeance_etudiant.setAnneeaca(getViewEtudiantInscripEcheance().getAnneeaca());\r\n echeance_etudiant.setNumetu(getViewEtudiantInscripEcheance().getNumetu());\r\n echeance_etudiant.setMatricule(getViewEtudiantInscripEcheance().getMatricule());\r\n echeance_etudiant.setCodeCycle(getViewEtudiantInscripEcheance().getCodeCycle());\r\n echeance_etudiant.setCodeNiveau(getViewEtudiantInscripEcheance().getCodeNiveau());\r\n echeance_etudiant.setCodeClasse(getViewEtudiantInscripEcheance().getCodeClasse());\r\n echeance_etudiant.setCodeRegime(getViewEtudiantInscripEcheance().getCodeRegime());\r\n echeance_etudiant.setDrtinscri(getViewEtudiantInscripEcheance().getInscriptionAPaye());\r\n echeance_etudiant.setDrtforma(getViewEtudiantInscripEcheance().getFormationAPaye()); \r\n \r\n echeance_etudiant.setVers1(getViewEtudiantInscripEcheance().getVers1());\r\n echeance_etudiant.setVers2(getViewEtudiantInscripEcheance().getVers2());\r\n echeance_etudiant.setVers3(getViewEtudiantInscripEcheance().getVers3());\r\n echeance_etudiant.setVers4(getViewEtudiantInscripEcheance().getVers4());\r\n echeance_etudiant.setVers5(getViewEtudiantInscripEcheance().getVers5());\r\n echeance_etudiant.setVers6(getViewEtudiantInscripEcheance().getVers6()); \r\n \r\n //modification de l'utilisateur\r\n echeance_etudiantFacadeL.edit(echeance_etudiant); \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur de modification capturée : \"+e);\r\n } \r\n }", "public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }", "@JsonGetter(\"modifier_list_id\")\r\n public String getModifierListId() {\r\n return modifierListId;\r\n }", "public String getLastmodifierName() {\n return lastmodifierName;\n }", "@Override\n\t\t\t\t\t\t\tpublic void onModifierStarted(IModifier<IEntity> arg0, IEntity arg1) {\n\t\t\t\t\t\t\t}", "public Integer getRoleId() {\n\t\treturn roleId;\n\t}", "public final void modifier() throws RecognitionException {\n int modifier_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"modifier\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(409, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 49) ) { return ; }\n // Java.g:410:5: ( annotation | 'public' | 'protected' | 'private' | 'static' | 'abstract' | 'final' | 'native' | 'synchronized' | 'transient' | 'volatile' | 'strictfp' )\n int alt66=12;\n try { dbg.enterDecision(66);\n\n switch ( input.LA(1) ) {\n case 73:\n {\n alt66=1;\n }\n break;\n case 31:\n {\n alt66=2;\n }\n break;\n case 32:\n {\n alt66=3;\n }\n break;\n case 33:\n {\n alt66=4;\n }\n break;\n case 28:\n {\n alt66=5;\n }\n break;\n case 34:\n {\n alt66=6;\n }\n break;\n case 35:\n {\n alt66=7;\n }\n break;\n case 52:\n {\n alt66=8;\n }\n break;\n case 53:\n {\n alt66=9;\n }\n break;\n case 54:\n {\n alt66=10;\n }\n break;\n case 55:\n {\n alt66=11;\n }\n break;\n case 36:\n {\n alt66=12;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 66, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n\n } finally {dbg.exitDecision(66);}\n\n switch (alt66) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:410:9: annotation\n {\n dbg.location(410,9);\n pushFollow(FOLLOW_annotation_in_modifier1872);\n annotation();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:411:9: 'public'\n {\n dbg.location(411,9);\n match(input,31,FOLLOW_31_in_modifier1882); if (state.failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // Java.g:412:9: 'protected'\n {\n dbg.location(412,9);\n match(input,32,FOLLOW_32_in_modifier1892); if (state.failed) return ;\n\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // Java.g:413:9: 'private'\n {\n dbg.location(413,9);\n match(input,33,FOLLOW_33_in_modifier1902); if (state.failed) return ;\n\n }\n break;\n case 5 :\n dbg.enterAlt(5);\n\n // Java.g:414:9: 'static'\n {\n dbg.location(414,9);\n match(input,28,FOLLOW_28_in_modifier1912); if (state.failed) return ;\n\n }\n break;\n case 6 :\n dbg.enterAlt(6);\n\n // Java.g:415:9: 'abstract'\n {\n dbg.location(415,9);\n match(input,34,FOLLOW_34_in_modifier1922); if (state.failed) return ;\n\n }\n break;\n case 7 :\n dbg.enterAlt(7);\n\n // Java.g:416:9: 'final'\n {\n dbg.location(416,9);\n match(input,35,FOLLOW_35_in_modifier1932); if (state.failed) return ;\n\n }\n break;\n case 8 :\n dbg.enterAlt(8);\n\n // Java.g:417:9: 'native'\n {\n dbg.location(417,9);\n match(input,52,FOLLOW_52_in_modifier1942); if (state.failed) return ;\n\n }\n break;\n case 9 :\n dbg.enterAlt(9);\n\n // Java.g:418:9: 'synchronized'\n {\n dbg.location(418,9);\n match(input,53,FOLLOW_53_in_modifier1952); if (state.failed) return ;\n\n }\n break;\n case 10 :\n dbg.enterAlt(10);\n\n // Java.g:419:9: 'transient'\n {\n dbg.location(419,9);\n match(input,54,FOLLOW_54_in_modifier1962); if (state.failed) return ;\n\n }\n break;\n case 11 :\n dbg.enterAlt(11);\n\n // Java.g:420:9: 'volatile'\n {\n dbg.location(420,9);\n match(input,55,FOLLOW_55_in_modifier1972); if (state.failed) return ;\n\n }\n break;\n case 12 :\n dbg.enterAlt(12);\n\n // Java.g:421:9: 'strictfp'\n {\n dbg.location(421,9);\n match(input,36,FOLLOW_36_in_modifier1982); if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 49, modifier_StartIndex); }\n }\n dbg.location(422, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"modifier\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "private int activateModifier(int toTriggerId) {\n\t\t\n\t\tint itemId = 0;\n\t\tint type = 0;\n\t\t\n\t\tMap<String, String> hm = db.selectModifier(toTriggerId);\n\n\t\t// find what to modify in database\n\t\tString tableName = \"\";\n\t\tString fieldName = \"\";\n\t\tString idField = \"\";\n\t\tString where = \"\";\n\t\tint toModifyId = 0;\n\n\t\ttoModifyId = Integer.parseInt(hm.get(\"to_modify_id\"));\n\t\t\n\t\t// choose what table to modify\n\t\ttype = Integer.parseInt(hm.get(\"type\"));\n\n\t\tswitch (type) {\n\t\t\n\t\t\tcase DB_MODIFIER_TYPE_COMB: // (combination)\n\t\t\t\t\n\t\t\t\ttableName = DB_TABLE_COMBINATION;\n\t\t\t\tfieldName = DB_FIELD_STATE;\n\t\t\t\tidField = \"_id\";\n\t\t\t \n\t\t\t break;\t\t \n\t\t\t\t\n\t\t\tcase DB_MODIFIER_TYPE_POS: // (change item position, screen/inventory/nowhere) \n\n\t\t\t\ttableName = DB_TABLE_ITEM;\n\t\t\t\tfieldName = DB_FIELD_DISPLAY;\n\t\t\t\tidField = \"_id\";\n\t\t\t\t\n\t\t\t\titemId = Integer.parseInt(hm.get(\"to_modify_id\"));\n\t\t\t\t\n\t\t\t break;\t\t\t\t\t \n\t\t\t\t\n\t\t\tcase DB_MODIFIER_TYPE_TAKE: // (action take on item) \n\n\t\t\t\ttableName = DB_TABLE_SCREEN_ITEM;\n\t\t\t\tfieldName = DB_FIELD_TAKE_STATE;\n\t\t\t\tidField = \"item_id\";\n\t\t\t\t\n\t\t\t break;\n\t\t\t\t\n\t\t\tcase DB_MODIFIER_TYPE_LOOK: // (look item on screen) \n\n\t\t\t\ttableName = DB_TABLE_SCREEN_ITEM;\n\t\t\t\tfieldName = DB_FIELD_LOOK_STATE;\n\t\t\t\tidField = \"item_id\";\n\t\t\t\t\n\t\t\t break;\n\t\t\t \n\t\t\tcase DB_MODIFIER_TYPE_TALK:\n\t\t\t\n\t\t\t\ttableName = DB_TABLE_CHARACTER;\n\t\t\t\tfieldName = DB_FIELD_TALK_STATE;\n\t\t\t\tidField = \"_id\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase DB_MODIFIER_TYPE_EXIT: // (enable/disable exit)\n\t\t\t\t\n\t\t\t\ttableName = DB_TABLE_SCREEN_AREA;\n\t\t\t\tfieldName = DB_FIELD_EXIT;\n\t\t\t\tidField = \"_id\";\n\t\t\t\t\n\t\t\t\tbreak;\n\n\t\t\tcase DB_MODIFIER_TYPE_TAKEABLE: // (set item takeable) \n\n\t\t\t\ttableName = DB_TABLE_SCREEN_ITEM;\n\t\t\t\tfieldName = DB_FIELD_TAKEABLE;\n\t\t\t\tidField = \"item_id\";\n\t\t\t\t\n\t\t\t break;\n\n\t\t\t// TODO: description on combination doesn't exist anymore. Simply remove it. \n\t\t\tcase DB_MODIFIER_TYPE_SWITCH_COMB: // switch description on combination\n\n\t\t\t\ttableName = DB_TABLE_COMBINATION;\n\t\t\t\tfieldName = DB_FIELD_DESC_STATE;\n\t\t\t\tidField = \"_id\";\n\t\t\t\n\t\t\tcase DB_MODIFIER_TYPE_AREA_LOOK: // (look area on screen) \n\n\t\t\t\ttableName = DB_TABLE_SCREEN_AREA;\n\t\t\t\tfieldName = DB_FIELD_LOOK_STATE;\n\t\t\t\tidField = \"_id\";\n\t\t\t\t\n\t\t\t break;\n\t\t\t \n\t\t\t// TODO: character table doesn't exist anymore. Should switch to anim table \n\t\t\tcase DB_MODIFIER_TYPE_CHAR_LOOK: // (look anim on screen) \n\n\t\t\t\ttableName = DB_TABLE_CHARACTER;\n\t\t\t\tfieldName = DB_FIELD_LOOK_STATE;\n\t\t\t\tidField = \"_id\";\n\t\t\t\t\n\t\t\t break;\n\n\t\t\t// TODO: question table doesn't exist anymore. Should switch to bubble/talk table \n\t\t\tcase DB_MODIFIER_TYPE_QUESTION_STATE: // (look area on screen) \n\n\t\t\t\ttableName = DB_TABLE_QUESTION;\n\t\t\t\tfieldName = DB_FIELD_STATE;\n\t\t\t\tidField = \"_id\";\n\t\t\t\t\n\t\t\t break;\n\t\t\t \n\t\t\tcase DB_MODIFIER_TYPE_SCREEN_TRIGGER: // (change starting trigger) \n\n\t\t\t\ttableName = DB_TABLE_EXIT;\n\t\t\t\tfieldName = DB_FIELD_TRIGGER;\n\t\t\t\tidField = \"_id\";\n\t\t\t\t\n\t\t\t break;\n\t\t}\t\t\t\n\t\t\n\t\twhere = \" \" + idField + \" = \" + toModifyId;\t\n\t\t\n\t\tdb.updateWithModifier(tableName, fieldName, Integer.parseInt(hm.get(\"new_state\")), where);\n\t\t\n\t return itemId;\n\t}", "public Modifier getProductionModifier() {\n return productionModifier;\n }", "@Override\n\tpublic void modifierUser(User c) {\n\t\t\n\t}", "public void setRoleAttrFinder(final RoleAttributeFinderModule roleAttrFinder) {\r\n this.roleAttrFinder = roleAttrFinder;\r\n }", "public void setRolesRolId(int row,int newValue) throws DataStoreException {\r\n setInt(row,ROLES_ROL_ID, newValue);\r\n }", "void setRoleDao(final RoleDao roleDao);", "@Override\n\t\t\tpublic void onModifierStarted(IModifier<IEntity> arg0, IEntity arg1) {\n\t\t\t}", "@JsonProperty(\"rangerAuditRole\")\n public String getRangerAuditRole() {\n return rangerAuditRole;\n }", "public final void setBonus(LeaderKingdomModifier bonus) {\r\n\tremove();\r\n\tthis.bonus = bonus;\r\n\tapply();\r\n }", "public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}" ]
[ "0.6524632", "0.6462622", "0.6462622", "0.6462622", "0.6244173", "0.6244173", "0.61336255", "0.5796655", "0.5789109", "0.5721821", "0.5721821", "0.5681194", "0.5666518", "0.55876994", "0.5582632", "0.5582632", "0.5582632", "0.5582632", "0.5582632", "0.5582632", "0.5544665", "0.5544665", "0.5544665", "0.55425924", "0.54193807", "0.538084", "0.5356052", "0.5342486", "0.5309291", "0.5309291", "0.5275012", "0.5233541", "0.52094793", "0.51674986", "0.5160809", "0.5154938", "0.51092964", "0.50498277", "0.50435394", "0.4991727", "0.497157", "0.49680194", "0.49574763", "0.49503043", "0.49308944", "0.48975897", "0.4879233", "0.48679045", "0.48563662", "0.48457605", "0.48326156", "0.4817639", "0.48058927", "0.4778025", "0.4743787", "0.47401085", "0.47375688", "0.47361696", "0.47230822", "0.47183526", "0.47136593", "0.47115365", "0.47031045", "0.46876457", "0.46816432", "0.46792907", "0.46749282", "0.46749282", "0.46749282", "0.46749282", "0.46580514", "0.46580514", "0.46580514", "0.46580514", "0.46580514", "0.46580514", "0.46580514", "0.46580514", "0.46524766", "0.46431667", "0.46425825", "0.4635746", "0.46304086", "0.46301973", "0.46266204", "0.45943344", "0.4585974", "0.4585555", "0.45756495", "0.45724767", "0.45621097", "0.45615909", "0.4560065", "0.45597842", "0.45593938", "0.45562086", "0.45517752", "0.45516717" ]
0.65397274
2
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.is_deleted
public String getIsDeleted() { return isDeleted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getIsdeleted() {\n return isdeleted;\n }", "public Long deleted() {\n return this.deleted;\n }", "public Integer getIsDeleted() {\n return isDeleted;\n }", "public java.lang.Boolean getDeleted();", "public Boolean getDeleted() {\n return deleted;\n }", "public boolean isDeleted()\r\n {\r\n return getSemanticObject().getBooleanProperty(swb_deleted);\r\n }", "public Boolean getIsDeleted() {\r\n return isDeleted;\r\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getIsDeleted() {\n return isDeleted;\n }", "@ApiModelProperty(value = \"True if campaign/flow has been archived\")\r\n public Boolean isDeleted() {\r\n return deleted;\r\n }", "public Integer getIsDeleted() {\r\n\t\treturn isDeleted;\r\n\t}", "public Boolean getDeleted() {\r\n\t\treturn deleted;\r\n\t}", "public boolean getDeleted() {\n return deleted;\n }", "public Byte getIsDeleted() {\n return isDeleted;\n }", "public Byte getIsDeleted() {\n return isDeleted;\n }", "public Byte getIsDeleted() {\r\n return isDeleted;\r\n }", "@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }", "public int getIsDelete() {\n\t\treturn _dmHistoryMaritime.getIsDelete();\n\t}", "public String getIsDeleted() {\n\t\treturn isDeleted;\n\t}", "public Integer getDeleted() {\n return deleted;\n }", "@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }", "@Override\n\tpublic int getIsDelete() {\n\t\treturn _dmGtStatus.getIsDelete();\n\t}", "public Integer getIsdelete() {\n return isdelete;\n }", "public Boolean getDeleted() throws NotLoadedException {\n return deleted.getValue();\n }", "public Integer getIsdelete() {\r\n return isdelete;\r\n }", "public Boolean getDeleted() {\n return mDeleted;\n }", "public boolean getDeleted() {\n\t\treturn _primarySchoolStudent.getDeleted();\n\t}", "public Boolean getIsDeleted() {\n\t\treturn isDeleted;\n\t}", "public Boolean isDeleted() {\n\t\treturn this.deleted;\n\t\t\n\t}", "public String getIs_delete() {\n return is_delete;\n }", "public boolean isDeleted();", "public java.lang.Boolean getIsDeleted() {\r\n return isDeleted;\r\n }", "public Integer getDeleteflag() {\n return deleteflag;\n }", "@ApiModelProperty(value = \"True if this gift certificate was deleted.\")\n public Boolean isDeleted() {\n return deleted;\n }", "public boolean isDeleted() {\r\n\treturn isDeleted;\r\n}", "@Column(name = \"isDelete\")\r\n\tpublic Boolean getIsDelete() {\r\n\t\treturn this.isDelete;\r\n\t}", "public Boolean getIsdelete() {\r\n return isdelete;\r\n }", "public Integer getIsdelete() {\n\t\treturn isdelete;\n\t}", "public String getIsdelete() {\n return isdelete;\n }", "public String getIsdelete() {\n return isdelete;\n }", "public boolean isDeleted()\r\n\t{\r\n\t\treturn deletedFlag;\r\n\t}", "boolean isDeleted();", "public boolean isDeleted() {\n return deleted;\n }", "public boolean isIsDeleted() {\n return isDeleted;\n }", "@IcalProperty(pindex = PropertyInfoIndex.DELETED)\n public void setDeleted(final boolean val) {\n deleted = val;\n }", "@Override\n \t\t\t\tpublic boolean isDeleted() {\n \t\t\t\t\treturn false;\n \t\t\t\t}", "public Integer getIsDel() {\n return isDel;\n }", "public Integer getIsDel() {\n return isDel;\n }", "public String getDeleteStatus() {\n return deleteStatus;\n }", "public boolean isDeleted() {\n return deleted != null;\n }", "public boolean isDeleted() {\n\t\treturn deleted;\n\t}", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(80)\r\n\tboolean isDeleted();", "public Byte getIsDelete() {\n return isDelete;\n }", "public Byte getIsDelete() {\n return isDelete;\n }", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tboolean deleted();", "public Byte getDeleted() {\n return deleted;\n }", "public UserDeletedRole toBeanIf();", "public String getDeleteFlag() {\r\n return deleteFlag;\r\n }", "public boolean getDelete() {\n\t\t\treturn delete.get();\n\t\t}", "public String getDeleteFlag() {\n return deleteFlag;\n }", "public boolean isDeleted() {\n return (this == RecordStatusEnum.DELETED);\n }", "@Override\n\tpublic int getIsDelete() {\n\t\treturn _dmGTShipPosition.getIsDelete();\n\t}", "public void setIsdeleted( Boolean isdeleted )\n {\n this.isdeleted = isdeleted;\n }", "public Boolean getIsDel() {\n return isDel;\n }", "public boolean isDeleted() {\n\t\treturn getStatus() == STATUS_DELETED;\n\t}", "public boolean getDelete() {\n\t\treturn delete;\n\t}", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(YoungSeckillPromotionProductRelation.IS_DELETED) : andDeletedNotEqualTo(YoungSeckillPromotionProductRelation.IS_DELETED);\n }", "public String getDeleteFlag() {\r\n\t\treturn deleteFlag;\r\n\t}", "public DateTime getDeletionTime() {\n return deleted;\n }", "public CustomSql getCustomSqlDelete();", "public void setIsdeleted(Integer isdeleted) {\n this.isdeleted = isdeleted;\n }", "public void setDeleted(boolean deleted);", "public Byte getDeleteFlag() {\n return deleteFlag;\n }", "public boolean isIsDelete() {\n return isDelete;\n }", "io.dstore.values.BooleanValue getDeleteCampaign();", "public boolean isDeleted() {\n\t\treturn _primarySchoolStudent.isDeleted();\n\t}", "@Override\r\n\tpublic int deletedCheck(CookVO vo) throws Exception {\n\t\treturn session.update(\"com.mapper.cook.deleted\",vo);\r\n\t}", "public DateTime deletedAt() {\n return this.deletedAt;\n }", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(SaleClassifyGood.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(SaleClassifyGood.Deleted.IS_DELETED.value());\n }", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(LitemallOrder.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LitemallOrder.Deleted.IS_DELETED.value());\n }", "public void setDeleted(boolean deleted) {\n this.deleted = deleted;\n }", "protected boolean deleted() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Deleted);\n return true;\n } else if (state.isUpdated()) {\n this.state.setState(ENodeState.Deleted);\n return true;\n }\n return false;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(BDicTreeCode.IS_DELETED) : andDeletedNotEqualTo(BDicTreeCode.IS_DELETED);\n }", "@Nullable\n public TupleExpr getDeleteExpr() {\n return this.deleteExpr;\n }", "public void setDeleted(java.lang.Boolean deleted);", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling was deleted (timestamp); 0 if it was not removed\")\n public Long getDeletedAt() {\n return deletedAt;\n }", "public String deletedBy() {\n return this.deletedBy;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public void setDeleted(Boolean deleted) {\r\n\t\tthis.deleted = deleted;\r\n\t}" ]
[ "0.65466315", "0.6209196", "0.6197526", "0.6148616", "0.60534894", "0.6022216", "0.6015718", "0.60102", "0.60102", "0.60102", "0.60102", "0.5988364", "0.59655493", "0.5953301", "0.5946673", "0.59314007", "0.591406", "0.591406", "0.5889749", "0.5860779", "0.58554864", "0.58285296", "0.58243924", "0.582197", "0.5814853", "0.58002853", "0.57816523", "0.5778255", "0.57324016", "0.57318753", "0.57238406", "0.57074004", "0.568662", "0.5680958", "0.56754875", "0.5673799", "0.565929", "0.56551737", "0.5644826", "0.56436765", "0.563766", "0.561252", "0.561252", "0.5585792", "0.557675", "0.5570098", "0.55436045", "0.5537023", "0.55369663", "0.548879", "0.548879", "0.54370904", "0.5431772", "0.54191166", "0.54022855", "0.5397144", "0.5397144", "0.53920543", "0.5386611", "0.5379597", "0.53781307", "0.5369837", "0.536775", "0.536753", "0.5366742", "0.53666484", "0.536196", "0.5317862", "0.5310344", "0.5246321", "0.5246082", "0.5237626", "0.5235937", "0.52227837", "0.5174174", "0.51653934", "0.5163115", "0.514456", "0.51435184", "0.51269436", "0.5124241", "0.51066554", "0.508624", "0.5076294", "0.50674635", "0.50356704", "0.50356704", "0.50356704", "0.50356704", "0.50356704", "0.50239116", "0.5020319", "0.5011137", "0.5010116", "0.49983707", "0.49737", "0.49737", "0.49737", "0.49652708" ]
0.609351
5
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.is_deleted
public void setIsDeleted(String isDeleted) { this.isDeleted = isDeleted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIsdeleted( Boolean isdeleted )\n {\n this.isdeleted = isdeleted;\n }", "@IcalProperty(pindex = PropertyInfoIndex.DELETED)\n public void setDeleted(final boolean val) {\n deleted = val;\n }", "public void setIsdeleted(Integer isdeleted) {\n this.isdeleted = isdeleted;\n }", "public void setDeleted(boolean deleted);", "public void setDeleted(java.lang.Boolean deleted);", "public void setIsDeleted(Boolean isDeleted) {\r\n this.isDeleted = isDeleted;\r\n }", "public void setIsDeleted(Integer isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setDeleted(Boolean deleted) {\n this.deleted = deleted;\n }", "public void setIsDeleted(Boolean isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setDeleted(boolean deleted) {\n this.deleted = deleted;\n }", "public void setIsDeleted(boolean isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(Integer isDeleted) {\r\n\t\tthis.isDeleted = isDeleted;\r\n\t}", "public void setDeleted(boolean deleted) {\n\t\t_primarySchoolStudent.setDeleted(deleted);\n\t}", "public void setDeleted(Boolean deleted) {\r\n\t\tthis.deleted = deleted;\r\n\t}", "public void setIsDeleted(Byte isDeleted) {\r\n this.isDeleted = isDeleted;\r\n }", "public void setIsDeleted(Byte isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(Byte isDeleted) {\n this.isDeleted = isDeleted;\n }", "public void setIsDeleted(Boolean isDeleted) {\n\t\tthis.isDeleted = isDeleted;\n\t}", "public void setIsDeleted(java.lang.Boolean isDeleted) {\r\n this.isDeleted = isDeleted;\r\n }", "public void setDeleted();", "public void setIsDeleted(String isDeleted) {\n\t\tthis.isDeleted = isDeleted;\n\t}", "public void setDeleted(boolean value)\r\n {\r\n getSemanticObject().setBooleanProperty(swb_deleted, value);\r\n }", "public void setDeleted(boolean deleted) {\n\t\tthis.deleted = deleted;\n\t}", "public void setDeleted(final boolean deleted) {\n this.deleted = deleted;\n }", "public void setIsDelete(int isDelete) {\n\t\t_dmHistoryMaritime.setIsDelete(isDelete);\n\t}", "public void setDeleted(final Boolean deleted) {\n\t\tthis.deleted = deleted;\n\t}", "@Override\n\tpublic void setIsDelete(int isDelete) {\n\t\t_dmGtStatus.setIsDelete(isDelete);\n\t}", "public void setIsDelete( Integer isDelete ) {\n this.isDelete = isDelete;\n }", "public void andLogicalDeleted(boolean deleted) {\n setIsDelete(deleted ? IS_DELETED : NOT_DELETED);\n }", "public Integer getIsdeleted() {\n return isdeleted;\n }", "@ApiModelProperty(value = \"True if campaign/flow has been archived\")\r\n public Boolean isDeleted() {\r\n return deleted;\r\n }", "public void setDeleted(Integer deleted) {\n this.deleted = deleted;\n }", "public void setIsDeleted(String isDeleted) {\n this.isDeleted = isDeleted == null ? null : isDeleted.trim();\n }", "public void setIsdelete(Integer isdelete) {\r\n this.isdelete = isdelete;\r\n }", "public void setIsdelete(Boolean isdelete) {\r\n this.isdelete = isdelete;\r\n }", "public void setDeleted(Byte deleted) {\n this.deleted = deleted;\n }", "public void setIsdelete(Integer isdelete) {\n this.isdelete = isdelete;\n }", "public void setIs_delete(String is_delete) {\n this.is_delete = is_delete;\n }", "public void andLogicalDeleted(boolean deleted) {\n setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());\n }", "public void andLogicalDeleted(boolean deleted) {\n setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());\n }", "public void andLogicalDeleted(boolean deleted) {\n setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());\n }", "public void andLogicalDeleted(boolean deleted) {\n setIsDeleted(deleted ? DELETED : NOT_DELETED);\n }", "public void setIsdelete(Integer isdelete) {\n\t\tthis.isdelete = isdelete;\n\t}", "public void setIsDelete(boolean isDelete) {\n this.isDelete = isDelete;\n }", "public void setIsDelete(Boolean isDelete) {\r\n\t\tthis.isDelete = isDelete;\r\n\t}", "public Boolean getIsDeleted() {\r\n return isDeleted;\r\n }", "public void setIsDelete(Byte isDelete) {\n this.isDelete = isDelete;\n }", "public void setIsDelete(Byte isDelete) {\n this.isDelete = isDelete;\n }", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(24)\n\tvoid deleted(boolean pVal);", "public Boolean getIsDeleted() {\n return isDeleted;\n }", "public Integer getIsDeleted() {\n return isDeleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public void markAsDeleted() {\n\t\tthis.setDeleted(true);\t\t\n\t}", "public java.lang.Boolean getDeleted();", "public void setDeleteflag(Integer deleteflag) {\n this.deleteflag = deleteflag;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "public Boolean getDeleted() {\n return deleted;\n }", "@Override\n\tpublic void setIsDelete(int isDelete) {\n\t\t_dmGTShipPosition.setIsDelete(isDelete);\n\t}", "public void setIsDel(Integer isDel) {\n this.isDel = isDel;\n }", "public void setIsDel(Integer isDel) {\n this.isDel = isDel;\n }", "public void setIsdelete(String isdelete) {\n this.isdelete = isdelete == null ? null : isdelete.trim();\n }", "public void setIsdelete(String isdelete) {\n this.isdelete = isdelete == null ? null : isdelete.trim();\n }", "public String getIsDeleted() {\n return isDeleted;\n }", "public String getIsDeleted() {\n return isDeleted;\n }", "public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}", "@Column(name = \"isDelete\")\r\n\tpublic Boolean getIsDelete() {\r\n\t\treturn this.isDelete;\r\n\t}", "public Criteria andLogicalDeleted(boolean deleted) {\n return deleted ? andDeletedEqualTo(YoungSeckillPromotionProductRelation.IS_DELETED) : andDeletedNotEqualTo(YoungSeckillPromotionProductRelation.IS_DELETED);\n }", "@ApiModelProperty(value = \"True if this gift certificate was deleted.\")\n public Boolean isDeleted() {\n return deleted;\n }", "public void setIsDel(Boolean isDel) {\n this.isDel = isDel;\n }", "public boolean isDeleted()\r\n {\r\n return getSemanticObject().getBooleanProperty(swb_deleted);\r\n }", "public Long deleted() {\n return this.deleted;\n }", "@Override\r\n\tpublic int deletedCheck(CookVO vo) throws Exception {\n\t\treturn session.update(\"com.mapper.cook.deleted\",vo);\r\n\t}", "public Byte getIsDeleted() {\r\n return isDeleted;\r\n }", "@Override\n \t\t\t\tpublic boolean isDeleted() {\n \t\t\t\t\treturn false;\n \t\t\t\t}", "public Boolean getDeleted() {\r\n\t\treturn deleted;\r\n\t}", "public Byte getIsDeleted() {\n return isDeleted;\n }", "public Byte getIsDeleted() {\n return isDeleted;\n }", "@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }", "public Boolean getIsdelete() {\r\n return isdelete;\r\n }", "public boolean getDeleted() {\n return deleted;\n }", "public void setPropertyOnDelete(String propertyOnDelete) {\n \t\tpropertyOnDelete = propertyOnDelete;\n }", "public void setDELETED_DATE(Date DELETED_DATE) {\r\n this.DELETED_DATE = DELETED_DATE;\r\n }", "public Integer getIsdelete() {\n return isdelete;\n }", "public Integer getIsdelete() {\r\n return isdelete;\r\n }", "public void setDelete(boolean d) {\n\t\t\tdelete.set(d);\n\t\t}", "public boolean isDeleted() {\r\n\treturn isDeleted;\r\n}", "public Integer getIsDeleted() {\r\n\t\treturn isDeleted;\r\n\t}", "@PreRemove\r\n public void preRemove(){\r\n this.isDeleted=true;\r\n }", "public void setItDelete(boolean itDelete) {\n\t\t\n\t}", "public boolean isDeleted();", "@java.lang.Override\n public boolean getDeleted() {\n return deleted_;\n }", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tboolean deleted();", "public void setDelete(boolean delete) {\n\t\tthis.delete = delete;\n\t}", "public String getIs_delete() {\n return is_delete;\n }" ]
[ "0.63870984", "0.6331394", "0.6157817", "0.6065463", "0.5993529", "0.58968955", "0.5837403", "0.58228296", "0.58228296", "0.58228296", "0.58228296", "0.58228296", "0.581397", "0.57973796", "0.579242", "0.5747252", "0.57331914", "0.57229125", "0.5698336", "0.5689304", "0.5689304", "0.568168", "0.5680758", "0.56734455", "0.56505126", "0.5644348", "0.56065583", "0.55767065", "0.55530196", "0.5505662", "0.5502101", "0.5499074", "0.54937816", "0.54860514", "0.54604346", "0.54498446", "0.5433752", "0.5342534", "0.534108", "0.533662", "0.53258204", "0.53018045", "0.5295829", "0.5295829", "0.5295829", "0.5263514", "0.52627033", "0.52290046", "0.52040505", "0.51929724", "0.51909626", "0.51909626", "0.51881343", "0.51284796", "0.5098637", "0.50941634", "0.50867087", "0.5080789", "0.50630784", "0.50545853", "0.50545853", "0.50545853", "0.50545853", "0.50527805", "0.5032919", "0.5032919", "0.5025487", "0.5025487", "0.5024718", "0.5024718", "0.5024038", "0.50171024", "0.5009611", "0.500397", "0.50039166", "0.4978078", "0.49636084", "0.4959513", "0.49506065", "0.49414665", "0.493179", "0.49273452", "0.49273452", "0.49201187", "0.49128544", "0.48976812", "0.48892027", "0.48875594", "0.48695487", "0.48691827", "0.4861335", "0.48547032", "0.4852461", "0.48439795", "0.48417488", "0.4822544", "0.48172852", "0.48102245", "0.48028395", "0.47904652" ]
0.57927334
14
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.applier_name
public String getApplierName() { return applierName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApplierName(String applierName) {\n this.applierName = applierName;\n }", "public String getApplierOrgName() {\n return applierOrgName;\n }", "public void setApplierOrgName(String applierOrgName) {\n this.applierOrgName = applierOrgName;\n }", "String getOriginalName();", "@Override\n\tpublic String getInsuranceName() {\n\t\treturn \"JeevanBima\";\n\t}", "public Long getApplierOrgId() {\n return applierOrgId;\n }", "protected abstract String _getAddOnName_();", "public String getApplierWorkno() {\n return applierWorkno;\n }", "@Override\n\tpublic String getInsuranceName() {\n\t\treturn \"Har Ghar Bima\";\n\t}", "public String getSQLName(){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\treturn name;\n\t\t}\n\t\treturn source.getSQLName();\n\t}", "public void setApplierWorkno(String applierWorkno) {\n this.applierWorkno = applierWorkno;\n }", "public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}", "public String getAdviceGiverName()\n {\n return \"Parental Advice\";\n }", "public String getApplicantname() {\n return applicantname;\n }", "private String getSourceName(JCas pJCas) {\n \n String sourceURI = getReferenceLocation(pJCas);\n String name = null;\n if (sourceURI != null) {\n File aFile = new File(sourceURI);\n name = aFile.getName();\n \n } else {\n name = \"knowtator_\" + String.valueOf(this.inputFileCounter++);\n }\n \n return name;\n }", "public java.lang.String getApplicantName() {\n return applicantName;\n }", "String getPresetName();", "public String getApplicantName() {\n\t\treturn applicantName;\n\t}", "public void setApplierOrgId(Long applierOrgId) {\n this.applierOrgId = applierOrgId;\n }", "public String getRolloverModel()\r\n\t{\r\n\t\treturn this.rolloverModel;\r\n\t}", "String getExternalToolName();", "public String getRowSetAlias();", "public java.lang.String getAutoForwardToName()\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(AUTOFORWARDTONAME$12, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@Override\n\tpublic java.lang.String getSrcFileName() {\n\t\treturn _scienceApp.getSrcFileName();\n\t}", "public String getOriginalName() {\n\t\treturn originalName;\n\t}", "String getIntegApplicationName();", "@Override\n\tpublic java.lang.String getName() {\n\t\treturn _scienceApp.getName();\n\t}", "@VTID(27)\n java.lang.String getSourceName();", "public String getRolename() {\n return rolename;\n }", "public String getRolename() {\n return rolename;\n }", "@ApiModelProperty(value = \"String containing the application name, such as \\\"iPlanetAMWebAgentService\\\", or \\\"mypolicyset\\\"\")\n public String getApplicationName() {\n return applicationName;\n }", "public ActionApplier getActionApplier() {\n\t\treturn this.grid;\n\t}", "public String getAffiliation() {\n\t\tfinal String submitterAffiliation = getSubmitterAffiliation();\n\t\tif (submitterAffiliation != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_affiliation\" + TAB + submitterAffiliation;\n\t\treturn null;\n\t}", "public boolean isSetApplierName() {\n return this.applierName != null;\n }", "public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }", "@VTID(8)\r\n excel.XlCreator getCreator();", "String getCruiseName();", "public String getAuditUserName() {\n return auditUserName;\n }", "public String getAuditTrailName()\n {\n return this.auditTrailName;\n }", "public String alertRuleTemplateName() {\n return this.innerProperties() == null ? null : this.innerProperties().alertRuleTemplateName();\n }", "public String getAddOnName()\n {\n return this.__addon;\n }", "String getResultName() {\n return rename_ == null ? cmeta_.getName() : rename_;\n }", "public String getFullSampleName(int column);", "public String getSupplierName() {\n return supplierName;\n }", "public String getAttributeName(){\n if(field.getAnnotation(Column.class) != null){\n return field.getAnnotation(Column.class).column();\n }\n if( field.getAnnotation(PrimaryKey.class) !=null){\n return field.getAnnotation(PrimaryKey.class).name();\n }\n return null;\n }", "private String beautiplyFileNameReferer() {\r\n\r\n\t\tif (checkBeautiplyImagesExixtence()) {\r\n\t\t\ttry {\r\n\t\t\t\tString fname = beautiplyFileNameGenerator();\r\n\t\t\t\tFileInputStream fis = context.openFileInput(fname);\r\n\t\t\t\treturn fname;\r\n\t\t\t} catch (FileNotFoundException e4) {\r\n\t\t\t\treturn beautiplyFileNameReferer();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t}", "protected String getIntermediateFormula() {\n if ( isGlobal() ) {\n return globalConstraint;\n } else if ( isRoleBased() ) {\n return roleMapToFormula();\n } else {\n // rls is disabled\n return EMPTY_STRING;\n }\n }", "@VTID(8)\n excel.XlCreator getCreator();", "@Override\n\tpublic Identifier determineJoinColumnName(ImplicitJoinColumnNameSource source) {\n\n\t\tfinal String name;\n\n\t\tif ( source.getNature() == ImplicitJoinColumnNameSource.Nature.ELEMENT_COLLECTION\n\t\t\t\t|| source.getAttributePath() == null ) {\n\t\t\tname = transformEntityName( source.getEntityNaming() )\n\t\t\t\t\t+ '_'\n\t\t\t\t\t+ source.getReferencedColumnName().getText();\n\t\t}\n\t\telse {\n\t\t\tname = transformAttributePath( source.getAttributePath() )\n\t\t\t\t\t+ '_'\n\t\t\t\t\t+ source.getReferencedColumnName().getText();\n\t\t}\n\n\t\treturn toIdentifier( name, source.getBuildingContext() );\n\t}", "public String getAirlineName(){\n\t\treturn this.airlineName;\n\t}", "public String getName() {\n\t\treturn (\"Redesign Analysis\");\n\t}", "String getOutputName();", "public String getRollupValue() {\r\n return getAttributeAsString(\"rollupValue\");\r\n }", "public String getSampleName();", "public String getName() {\n return DecoratedSortAlgo.getName();\r\n }", "public String getName() {\n return \"CreateIndividualPreAction\";\n }", "public static String specifyApplicationName() {\n return holder.format(\"specifyApplicationName\");\n }", "@Override\n public String getName() {\n return source.getName();\n }", "String getImplicitBundlePropertyName(int columnIndex);", "public String getAuditorName() {\n return auditorName;\n }", "String getResourceName();", "java.lang.String getBusinessName();", "String getSlingName();", "public String getFrontEnd() {\n if (_avTable.get(ATTR_FE_NAME) == null\n || _avTable.get(ATTR_FE_NAME).equals(\"\")) {\n _avTable.noNotifySet(ATTR_FE_NAME, \"Uu\", 0);\n }\n\n return _avTable.get(ATTR_FE_NAME);\n }", "public String getSourceImageName() {\n return this.sourceImageName;\n }", "java.lang.String getAssociatedSource();", "String getName() {\n\t\treturn customer.getName();\n\t}", "java.lang.String getSourceColumnName();", "public String getName() { return _sqlName; }", "public String getAgencyName() {\r\n return agencyName;\r\n }", "public String getBundleFileName()\n {\n if ( bundleFileName == null )\n {\n bundleFileName = artifact.getFile().getName();\n }\n return bundleFileName;\n }", "@Override\n\tpublic String addApplicantDetails(ApplicationBean applicationBean)\n\t\t\tthrows UniversityException {\n\t\tString applicationID=null;\n\t\tapplicationID=dao.addApplicantDetails(applicationBean);\n\t\treturn applicationID;\n\t}", "public final String getName() {\n/* 231 */ return \"sheet-collate\";\n/* */ }", "java.lang.String getCouponName();", "java.lang.String getCouponName();", "java.lang.String getCouponName();", "public String getProductName(){\n return productRelation.getProductName();\n }", "CustomRollout get(String providerNamespace, String rolloutName);", "protected abstract String getDatasourceName();", "public String getAnserName() {\r\n return anserName;\r\n }", "public String getOutputImageName(final String imageParamName) {\r\n if (imageParamName.equals(AlgorithmParameters.RESULT_IMAGE)) {\r\n if (getResultImage() != null) {\r\n // algo produced a new result image\r\n return getResultImage().getImageName();\r\n } else {\r\n // algo was done in place\r\n return image.getImageName();\r\n }\r\n }\r\n\r\n Preferences.debug(\"Unrecognized output image parameter: \" + imageParamName + \"\\n\", Preferences.DEBUG_SCRIPTING);\r\n\r\n return null;\r\n }", "public String getOutputImageName(final String imageParamName) {\r\n if (imageParamName.equals(AlgorithmParameters.RESULT_IMAGE)) {\r\n if (getResultImage() != null) {\r\n // algo produced a new result image\r\n return getResultImage().getImageName();\r\n } else {\r\n // algo was done in place\r\n return image.getImageName();\r\n }\r\n }\r\n\r\n Preferences.debug(\"Unrecognized output image parameter: \" + imageParamName + \"\\n\", Preferences.DEBUG_SCRIPTING);\r\n\r\n return null;\r\n }", "public Object getAlternateKeyName() {\n return this.alternateKeyName;\n }", "@Override\n\tpublic String getName(){\n\t\treturn customer.getName();\n\t}", "@Override\n\tpublic java.lang.String getExeFileName() {\n\t\treturn _scienceApp.getExeFileName();\n\t}", "public final String getAppName( )\n\t{\n\t\treturn this.data.getString( \"applicationName\" );\n\t}", "public StrColumn getSrcMethod() {\n return delegate.getColumn(\"src_method\", DelegatingStrColumn::new);\n }", "private String getOutputFileName(JCas pJCas) {\n String returnValue = null;\n \n String name = getSourceName(pJCas);\n \n if ((this.outputProjectDirectorySaved.startsWith(\"/\")) || (this.outputProjectDirectorySaved.startsWith(\"\\\\\"))\n || (this.outputProjectDirectorySaved.indexOf(\":\") == 1))\n returnValue = this.outputProjectDirectorySaved + \"/\" + name + \".txt.knowtator.xml\";\n else\n returnValue = this.homeDir + \"/\" + this.eHostWorkSpaceName + \"/\" + this.projectName + \"/saved/\" + name\n + \".txt.knowtator.xml\";\n \n return returnValue;\n }", "public String getExternalName() {\n\t\treturn externalName;\n\t}", "public String getLBR_ProductSource();", "public String getResourceName() {\n return getBaseName() + getNameSuffix();\n }", "public String getSuperiorIdName() {\n return superiorIdName;\n }", "String getAnnotationFile() {\n File imgFile = photos[fileIndex];\n String parentDir = imgFile.getParent();\n String fileName = imgFile.getName();\n String annotationName = fileName.replace(fileName.substring(fileName.lastIndexOf('.') + 1), \"xml\");\n File annotationDir = new File(parentDir.replace(\"images\", \"annotations\"));\n if (!annotationDir.exists()) {\n annotationDir.mkdirs();//create dir if none\n }\n return annotationDir.getAbsolutePath() + File.separator + annotationName;\n }", "java.lang.String getCouponVendor();", "public java.lang.String getOfficename () {\n\t\treturn officename;\n\t}", "@XmlElement\n private String getConceptPreferredName() {\n return concept != null ? concept.getDefaultPreferredName() : \"\";\n }", "java.lang.String getEmployeeName();", "public StrColumn getRcsbAnnotator() {\n return delegate.getColumn(\"rcsb_annotator\", DelegatingStrColumn::new);\n }", "@Override\n\tpublic String getResource() {\n\t\tif (this.getUpgraded()) {\n\t\t\ttry {\n\t\t\t\treturn (new File(\"./resources/images/ArcherTower_Upgrade.png\")).getCanonicalPath();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\treturn (new File(\"./resources/images/ArcherTower_Default.png\")).getCanonicalPath();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t}", "public String getResourceName();" ]
[ "0.6506739", "0.59259355", "0.5538889", "0.5252345", "0.52273357", "0.52263546", "0.52093846", "0.5157232", "0.50729996", "0.5039761", "0.50286305", "0.49386558", "0.49200064", "0.48562336", "0.48368737", "0.48128846", "0.47861207", "0.4785024", "0.47494572", "0.4735121", "0.46296805", "0.46228877", "0.46209255", "0.46071026", "0.4582103", "0.45628995", "0.45536718", "0.4549966", "0.4543148", "0.4543148", "0.45429116", "0.45372465", "0.45298302", "0.4525843", "0.452129", "0.44789144", "0.44759452", "0.44744995", "0.44712186", "0.44544718", "0.4450679", "0.44439435", "0.44411346", "0.44263038", "0.44161123", "0.44022778", "0.4398638", "0.43948847", "0.43934256", "0.4390056", "0.43833128", "0.43819815", "0.4380541", "0.4378208", "0.43718067", "0.43632495", "0.43630248", "0.43604714", "0.43474808", "0.43458596", "0.4338291", "0.43369967", "0.43302757", "0.43288067", "0.4326039", "0.43258306", "0.43225715", "0.43214634", "0.43208855", "0.4316912", "0.4312819", "0.43095523", "0.43059027", "0.42987442", "0.42987442", "0.42987442", "0.42881393", "0.42853144", "0.42845935", "0.4278127", "0.42780092", "0.42780092", "0.4270645", "0.42673743", "0.42653915", "0.42653003", "0.42643592", "0.4262249", "0.4255531", "0.4253354", "0.42499894", "0.4249101", "0.42483258", "0.4247216", "0.4242308", "0.42409468", "0.42404562", "0.42348635", "0.42338654", "0.42288056" ]
0.7216103
0
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.applier_name
public void setApplierName(String applierName) { this.applierName = applierName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApplierName() {\n return applierName;\n }", "public void setApplierOrgName(String applierOrgName) {\n this.applierOrgName = applierOrgName;\n }", "public String getApplierOrgName() {\n return applierOrgName;\n }", "public void setName() {\r\n\t\tapplianceName = \"Refrigerator\";\r\n\t}", "public void setApplierWorkno(String applierWorkno) {\n this.applierWorkno = applierWorkno;\n }", "public void setApplierOrgId(Long applierOrgId) {\n this.applierOrgId = applierOrgId;\n }", "public boolean isSetApplierName() {\n return this.applierName != null;\n }", "public Long getApplierOrgId() {\n return applierOrgId;\n }", "public void setName() {\r\n\t\tapplianceName = \"ElectricShower\";\r\n\t}", "@Override\r\n\tpublic void hireApplier(Applier applier) {\n\t\tapplier.setStatus(\"Hired\");\r\n\t\tem.merge(applier);\r\n\r\n\t}", "@Override\n\tpublic String getInsuranceName() {\n\t\treturn \"JeevanBima\";\n\t}", "@Override\n\tpublic String updateATourneyName() {\n\t\treturn null;\n\t}", "private void setLandscapeName(){\n \t\tLog.i(TAG, \"setLandscapeName() called\");\n \t\tnamelandtext.setText(provide.getCurItem().getName());\n \t}", "public void evel_threshold_cross_interfacename_set(String sheader)\r\n\t {\r\n\t\t EVEL_ENTER();\r\n\r\n\t\t /***************************************************************************/\r\n\t\t /* Check preconditions. */\r\n\t\t /***************************************************************************/\r\n\t\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t\t \r\n\t\t assert(sheader != null);\r\n\r\n\t\t interfaceName.SetValuePr(\r\n\t\t sheader,\r\n\t\t \"TCA Interface name\");\r\n\t\t EVEL_EXIT();\r\n\t }", "public void setBundleName(java.lang.String param){\n localBundleNameTracker = true;\n \n this.localBundleName=param;\n \n\n }", "protected abstract String _getAddOnName_();", "@Override\n\tpublic void resAuditJobEmployee(int je_id, String caller) {\n\n\t}", "@Override\n\tpublic String getInsuranceName() {\n\t\treturn \"Har Ghar Bima\";\n\t}", "public void setResourcename(java.lang.String newResourcename) {\n\tresourcename = newResourcename;\n}", "public void setAirlineName(String airlineName){\n\t\tthis.airlineName = \"\";\n\t\tthis.airlineName += airlineName;\n\t}", "public void setRolename(String rolename) {\n this.rolename = rolename;\n }", "void addHasInstitutionName(String newHasInstitutionName);", "Builder addAlternateName(String value);", "String getOriginalName();", "public void addOriginalFilename(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALFILENAME, value);\r\n\t}", "public void setOriginalFileName(String newValue);", "public static void addOriginalFilename(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALFILENAME, value);\r\n\t}", "public void setRolloverModel(String rolloverModel)\r\n\t{\r\n\t\tif (ROLLMODEL1.equals(rolloverModel) || ROLLMODEL2.equals(rolloverModel))\r\n\t\t{\r\n\t\t\tthis.rolloverModel = rolloverModel;\r\n\t\t} else\r\n\t\t{\r\n\t\t\tLogLog.warn(\"an unsupported property has been set in the configuration file for appender [\" + name + \"].\");\r\n\t\t\tthis.rolloverModel = ROLLMODEL1;\r\n\t\t}\r\n\r\n\t}", "public void setImageName(String name) {\n imageToInsert = name;\n}", "public static String specifyApplicationName() {\n return holder.format(\"specifyApplicationName\");\n }", "@IcalProperty(pindex = PropertyInfoIndex.ORIGINATOR,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setOriginator(final String val) {\n originator = val;\n }", "static String editCompany()\n {\n if(companyName !=null) companyName = \"IBM\";\n return companyName;\n }", "@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_scienceApp.setName(name);\n\t}", "CustomRollout.DefinitionStages.Blank define(String name);", "Builder addAlternateName(Text value);", "public void setAslName(String value) {\n setAttributeInternal(ASLNAME, value);\n }", "public String setAppender(String appender) {\n\t\tint pipe = appender.indexOf('|');\n\t\tif(pipe>=0) {\n\t\t\tString rv;\n\t\t\tSystem.setProperty(\n\t\t\t\t\"LOG4J_FILENAME_\"+(rv=appender.substring(0,pipe)),\n\t\t\t\troot + appender.substring(pipe+1) + (printPID?('-' + pid):\"\") + \".log\");\n\t\t\treturn rv;\n\t\t} else {\n\t\t\tSystem.setProperty(\n\t\t\t\t\"LOG4J_FILENAME_\"+appender,\n\t\t\t\troot + appender + (printPID?('-' + pid):\"\") + \".log\");\n\t\t\treturn appender;\n\t\t}\n\t\t\n\t}", "void setIntermediateSystemName(String intermediateSystemName);", "void setIntermediateSystemName(String intermediateSystemName);", "public void setName(String value)\n {\n // Since this value is marked as \"mandatory,\" the BC4J Framework will take\n // care of ensuring that it's a non-null value. However, if it is null, we\n // don't want to proceed with any validation that could result in a NPE.\n \n if ((value != null) || (!(\"\".equals(value.trim()))))\n {\n // Verify that the name is unique. To do this, we must check both the entity\n // cache and the database. We begin with the entity cache.\n\n com.sun.java.util.collections.Iterator supplierIterator = \n getEntityDef().getAllEntityInstancesIterator(getDBTransaction());\n \n Number currentId = getSupplierId();\n \n while ( supplierIterator.hasNext() )\n {\n SupplierEOImpl cachedSupplier = (SupplierEOImpl)supplierIterator.next();\n\n String cachedName = cachedSupplier.getName();\n Number cachedId = cachedSupplier.getSupplierId();\n\n // We found a match for the name we're trying to set, so throw an\n // exception. Note that we need to exclude this EO from our test.\n \n if (cachedName != null && value.equalsIgnoreCase(cachedName) && \n cachedId.compareTo(currentId) != 0 )\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"Name\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_DUP_NAME\"); // Message name \n }\n } \n\n // Now we want to check the database for any occurences of the supplier\n // name. The most efficient way to check this is with a validation view\n // object to which we add to a special \"Validation\" application module.\n // We then added a \"supplierExists\" method to this entity's expert. This\n // method leverages the VAM and the VVO.\n\n OADBTransaction transaction = getOADBTransaction();\n SupplierEntityExpert expert = getSupplierEntityExpert(transaction);\n\n if (expert.supplierExists(value))\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"Name\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_DUP_NAME\"); // Message name\n }\n }\n \n setAttributeInternal(NAME, value);\n \n }", "@ApiModelProperty(value = \"Override the affiliate id given credit for rebills of this auto order\")\r\n public Integer getOverrideAffiliateId() {\r\n return overrideAffiliateId;\r\n }", "public void setSuperiorIdName(String superiorIdName) {\n this.superiorIdName = superiorIdName;\n }", "public void setInstructorName(String newInstructorName) {\n instructorName = newInstructorName;\n }", "public void setName(String name)\n {\n if (name == null || DefaultFileHandler.sanitizeFilename(name, getLogger()).isEmpty())\n {\n throw new NullPointerException(\"Custom deployable name cannot be null or empty\");\n }\n this.name = name;\n }", "public static void addOriginalArtist(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Contact value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALARTIST, value);\r\n\t}", "@Override\r\n\tpublic String annoy() \r\n\t{\r\n\t\treturn super.getName() + \" annoys by giving a sales pitch\"; \r\n\t}", "public void setApplicantname(String applicantname) {\n this.applicantname = applicantname == null ? null : applicantname.trim();\n }", "protected void beforeUpdateInstructor(\n RetailscmUserContext userContext,\n Instructor existed,\n String retailStoreCountryCenterId,\n String instructorId,\n int instructorVersion,\n String property,\n String newValueExpr,\n String[] tokensExpr)\n throws Exception {}", "public void setRolename(String rolename) {\n this.rolename = rolename == null ? null : rolename.trim();\n }", "@Override\n\tpublic void setSrcFileName(java.lang.String srcFileName) {\n\t\t_scienceApp.setSrcFileName(srcFileName);\n\t}", "public void setApplicantName(java.lang.String applicantName) {\n this.applicantName = applicantName;\n }", "private final void setCaller(AggregateTransformer caller){\n this.caller = caller;\n }", "public void setCustomName ( String name ) {\n\t\texecute ( handle -> handle.setCustomName ( name ) );\n\t}", "private void setSourceName(String name) {\n srcFileName = name;\n }", "private void setNameAutomatic(){\n\t}", "@Override\n\tpublic void setUpdaterName(String updaterName) {\n\t\t\n\t}", "public String getRowSetAlias();", "@VTID(18)\n void setName(\n java.lang.String rhs);", "public static void addOriginalFilename( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALFILENAME, value);\r\n\t}", "public static void addOriginalAlbumTitle(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALALBUMTITLE, value);\r\n\t}", "org.hl7.fhir.CodeableConcept addNewName();", "private void setRoller(Roller w) {\n if (currentRoller == null) {\n currentRoller = w;\n world.addStepListener(currentRoller);\n }\n }", "public String getApplierWorkno() {\n return applierWorkno;\n }", "@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }", "public void setJob_Designer(EmployerDataObject job_Designer) {\r\n this.job_Designer = job_Designer;\r\n }", "public void setApplicantName(String applicantName) {\n\t\tthis.applicantName = applicantName;\n\t}", "public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }", "public static void setOriginalFilename(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, ORIGINALFILENAME, value);\r\n\t}", "public void setOriginalFilename(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALFILENAME, value);\r\n\t}", "public String getAdviceGiverName()\n {\n return \"Parental Advice\";\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"minor\", value = \"value to override calculated impact value\")\n\n public String getImpactOverride() {\n return impactOverride;\n }", "public void addSaucer(String name, String sPrice){\r\n double price = Double.parseDouble(sPrice);\r\n Saucer saucer = new Saucer(name, price, new ArrayList<Ingredient>(this.ingredients));\r\n saucers.add(saucer);\r\n saveSaucers();\r\n ingredients.clear();\r\n }", "public String getApplicantname() {\n return applicantname;\n }", "public void setFrontEnd(String value) {\n _avTable.set(ATTR_FE_NAME, value);\n }", "public interface IRenameTableAction\r\n{\r\n @Convert (TableConverter.class)\r\n\t@Attribute (\"oldTableName\")\tGenericAttributeValue<String> getOldTableName();\r\n\r\n\t@Attribute (\"newTableName\") GenericAttributeValue<String> getNewTableName();\r\n\r\n\r\n}", "protected void onChange_InfectionRisk() {\n onChange_InfectionRisk_xjal( InfectionRisk );\n }", "String getPresetName();", "@Override\n\tpublic void setAdderName(String adderName) {\n\t\t\n\t}", "void setResourceName(String name)\n {\n this.name = name;\n }", "String attributeToSetter(String name);", "public void addOriginalTextWriter(Contact value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALTEXTWRITER, value);\r\n\t}", "@Override\n\tpublic void updateOrganizerInfo(Organizer organizer) {\n\t\tString sql = \"UPDATE organizer SET organizer_first_name = ?, organizer_last_name = ?, organizer_phone = ?, organizer_email = ? \" + \n\t\t\t\t\"WHERE organizer_id = ?\";\n\t\tjdbcTemplate.update(sql, organizer.getFirstName(), organizer.getLastName(), organizer.getPhone(), organizer.getEmail(), organizer.getOrganizerId());\n\t}", "@ApiModelProperty(value = \"String containing the application name, such as \\\"iPlanetAMWebAgentService\\\", or \\\"mypolicyset\\\"\")\n public String getApplicationName() {\n return applicationName;\n }", "public static void addOriginalArtist( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALARTIST, value);\r\n\t}", "public void setUpdaterName(String updaterName) {\n this.updaterName = updaterName == null ? null : updaterName.trim();\n }", "public void setOperationName(java.lang.String param){\n localOperationNameTracker = true;\n \n this.localOperationName=param;\n \n\n }", "public String getSQLName(){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\treturn name;\n\t\t}\n\t\treturn source.getSQLName();\n\t}", "public void setSupplierName(String pSupplierName) {\n mSupplierName = pSupplierName;\n }", "private String getSourceName(JCas pJCas) {\n \n String sourceURI = getReferenceLocation(pJCas);\n String name = null;\n if (sourceURI != null) {\n File aFile = new File(sourceURI);\n name = aFile.getName();\n \n } else {\n name = \"knowtator_\" + String.valueOf(this.inputFileCounter++);\n }\n \n return name;\n }", "public final void setOldImageName(String oldImageName) {\n\t\tthis.oldImageName = oldImageName;\n\t}", "void setApplicationName(String appName);", "private void setChangeName() {\n\t\tChangeNameOpt.add(\"-cn\");\n\t\tChangeNameOpt.add(\"/cn\");\n\t\tChangeNameOpt.add(\"changename\");\n\n\t}", "protected void addGeneratedClassNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_generatedClassName_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_generatedClassName_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__GENERATED_CLASS_NAME,\n\t\t\t\tfalse, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "@Override\n\tpublic String beforeSetting(String acronym) {\n\t\tacronym = this.upperCaseModifier.beforeSetting(acronym);\n\t\t\n\t\treturn idService.getUriForAcronym(acronym);\n\t}", "public void editEmployeeInformationName(String text) {\n\t\tthis.name=text;\n\t\tResourceCatalogue resCat = new ResourceCatalogue();\t\t\n\t\tresCat.getResource(rid).editResource(name, this.sectionId);\n\t\tHashMap<String, String> setVars = new HashMap<String, String>();\n\t\tsetVars.put(\"empname\", \"\\'\"+name+\"\\'\");\n\t\tsubmitToDB(setVars);\n\n\t}", "public java.lang.String getAutoForwardToName()\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(AUTOFORWARDTONAME$12, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public LogAction(BiConsumer<EventLog.Mutator, Game> applier, BiConsumer<EventLog.Mutator, Game> undoer) {\n\t\tthis.undoer = undoer;\n\t\tthis.applier = applier;\n\t\tthis.executed = false;\n\t}", "@Override\n \tprotected void setApplicationName(String applicationName)\n \t{\n \t\tsuper.setApplicationName(applicationName);\n \n \t\tPropertiesAndDirectories.setApplicationName(applicationName);\n \t}", "public final MF addAlias(String column, String actualPropertyName) {\n\t\treturn addColumnDefinition(column, identity.addRename(actualPropertyName));\n\t}", "public void setPreSQL(String newVal, ObjectChangeSink sink)\n {\n if(newVal!=null && newVal.equals(getPreSQL())) return;\n\n if(rootObj.isAutoValidate())\n _get_objectmanager().validate_preSQL(new ObjectManagerContextImpl(Action.SET), newVal, this);\n\n ((TableReadCapabilityAttributesExtension)_imfObject).setPreSQL(newVal);\n Utils.setBitCascade(sink, getAdaptee());\n if (sink != null) {\n ObjectChange change = createPropertyChange(getAdaptee(), TableReadCapabilityAttributesExtension.Properties.PRE_S_Q_L);\n sink.addObjectChange(getAdaptee(), change);\n }\n\n\n }" ]
[ "0.62972903", "0.60079944", "0.5337406", "0.5249248", "0.5244794", "0.52114886", "0.47463846", "0.47155243", "0.46973693", "0.46702975", "0.46463162", "0.45613906", "0.45228997", "0.45220196", "0.45140043", "0.4490628", "0.44679612", "0.44408488", "0.44380423", "0.44259658", "0.4402417", "0.43874133", "0.4383756", "0.43808526", "0.43733624", "0.43644166", "0.43635702", "0.4348161", "0.43461493", "0.4326392", "0.42925686", "0.42914894", "0.4285311", "0.42839456", "0.42836678", "0.42804646", "0.42726395", "0.42713216", "0.42713216", "0.42655048", "0.42600858", "0.42533803", "0.42417097", "0.42201313", "0.42127734", "0.4209887", "0.4208342", "0.42039412", "0.41990438", "0.41922623", "0.41880885", "0.41821218", "0.41730744", "0.41695407", "0.4167127", "0.4165684", "0.41536418", "0.4144642", "0.41427526", "0.41420922", "0.41411674", "0.4136058", "0.41333997", "0.41332728", "0.41262287", "0.41260687", "0.41142195", "0.41064063", "0.41047522", "0.41008645", "0.40969503", "0.40924758", "0.40907195", "0.40812197", "0.40811548", "0.40648335", "0.40592003", "0.40579462", "0.40578392", "0.40576923", "0.4055559", "0.4050747", "0.40311992", "0.40266463", "0.40250042", "0.40221933", "0.40191585", "0.40183315", "0.40179873", "0.40142882", "0.4013254", "0.40065798", "0.40049326", "0.40000573", "0.39976427", "0.39943376", "0.39874324", "0.39859164", "0.39859074", "0.398247" ]
0.67997074
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.applier_workno
public String getApplierWorkno() { return applierWorkno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApplierWorkno(String applierWorkno) {\n this.applierWorkno = applierWorkno;\n }", "public Long getApplierOrgId() {\n return applierOrgId;\n }", "public String getApplierName() {\n return applierName;\n }", "public String getApplierOrgName() {\n return applierOrgName;\n }", "public void setApplierOrgId(Long applierOrgId) {\n this.applierOrgId = applierOrgId;\n }", "public void setApplierName(String applierName) {\n this.applierName = applierName;\n }", "public void setApplierOrgName(String applierOrgName) {\n this.applierOrgName = applierOrgName;\n }", "public String getWork_id(){\r\n\t\treturn this.work_id ;\r\n\t}", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "@Override\n\tpublic int getNoofSupplier() {\n\t\tString sql=\"SELECT COUNT(supplier_supplier_id) FROM supplier_product\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}", "@Override\n\tpublic String addApplicantDetails(ApplicationBean applicationBean)\n\t\t\tthrows UniversityException {\n\t\tString applicationID=null;\n\t\tapplicationID=dao.addApplicantDetails(applicationBean);\n\t\treturn applicationID;\n\t}", "@Override\n\tpublic int getWorkNum() {\n\t\treturn workMapper.getWorkNum();\n\t}", "@Transactional\n\tpublic String generateJobNumber(CorporateEntity corporateEntity){\n\t\tDocumentNumber docNo = null;\n\t\tString jobNumber = null;\n\n\t\tdocNo = documentNumberDAO.findById(new DocumentNumberPK(corporateEntity.getCorpId(), DocumentNumberDAO.DOMAIN_FLEET_MAINTENANCE)).orElse(null);\t\t\n\t\n\t\tjobNumber = docNo.getPreFix() + String.format(\"%08d\", docNo.getNextNo());\n\t\t\n\t\tdocNo.setNextNo(docNo.getNextNo() + 1);\n\t\tdocNo = documentNumberDAO.saveAndFlush(docNo);\t\n\t\t\n\t\treturn jobNumber;\n\t}", "public int getSupplierId()\n {\n return(this.SupplierId);\n }", "public String getOldNum(){\n return cal.getOldNum();\n }", "public int getEmployeeShift() {\n return employeeShift;\n }", "public java.lang.String getPrevious_insolvency_id() {\n return previous_insolvency_id;\n }", "public Integer getWarehousesnumber() {\n return warehousesnumber;\n }", "private int increaseBy() {\n\t\tif (increaseBy == null) {\n\t\t\tincreaseBy = Integer.valueOf(ERXProperties.intForKeyWithDefault(\"er.extensions.ERXLongPrimaryKeyFactory.increaseBy\", 1000));\n\t\t}\n\t\treturn increaseBy.intValue();\n\t}", "public Integer getHomeworkId() {\n return homeworkId;\n }", "public int getM_Warehouse_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Warehouse_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getM_Warehouse_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Warehouse_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getM_Warehouse_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Warehouse_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@Override\n\tpublic int getNoofSupplier(String supplierName) {\n\t\t String sql=\"SELECT COUNT(h.supplier_supplier_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t\treturn total;\n\t}", "@Override\n\tpublic String findLastWarehouseCode() {\n\t\treturn null;\n\t}", "public int getM_Warehouse_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Warehouse_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public AppliedCode getWhatAppliedTo() {\n \t \t return pimpl.appliedcode;\n \t \t }", "private long getReserveRecNo() {\n\t\tfinal int selectedRow = this.clientUI.getSelectedRowNo();\n\t\treturn this.model.getRecNo(selectedRow);\n\t}", "public static int getApplianceNumberById() {\r\n\t\tint appliancenum = 0;\r\n\t\treturn appliancenum;\r\n\t}", "@Override\n public String getWorkBeginYear() {\n Calendar calendar = Calendar.getInstance();\n if (!work_beginyear.equals(\"\") && work_beginyear != null) {\n return String.valueOf(calendar.get(Calendar.YEAR) - Integer.parseInt(work_beginyear));\n }\n return \"\";\n }", "public int getTrainingcode() {\r\n\t\treturn trainingcode;\r\n\t}", "public Integer getMakeEmp() {\n\t\treturn makeEmp;\n\t}", "public int getHC_EmployeeJob_ID();", "public int getDailyWorkload(){\r\n return dailyWorkload;\r\n }", "public long getGovernorId()\n\t{\n\t\tassert this.cursor != null;\n\t\treturn this.cursor.getLong(0);\n\t}", "@VTID(8)\r\n excel.XlCreator getCreator();", "@Override\r\n\tpublic Integer getMaxInvSrno() {\n\t\tQStnLooseMt qStnLooseMt = QStnLooseMt.stnLooseMt;\r\n\t\tJPAQuery query = new JPAQuery(entityManager);\r\n\t\tInteger retVal = -1;\r\n\t\t\r\n\t\tCalendar date = new GregorianCalendar();\r\n\t\t\r\n\t\tList<Integer> maxSrno = query\r\n\t\t\t.from(qStnLooseMt)\r\n\t\t\t.where(qStnLooseMt.invDate.year().eq(date.get(Calendar.YEAR))).list(qStnLooseMt.srNo.max());\r\n\t\t\r\n\t\tfor (Integer srno : maxSrno) {\r\n\t\t\tretVal = (srno == null ? 0 : srno);\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "public Integer getWarehouseid() {\n return warehouseid;\n }", "public String getOperateEmpId() {\n return operateEmpId;\n }", "@Override\n\tpublic int NoofSupplier() {\n\t\tString sql=\"SELECT COUNT(supplier_id) FROM supplier\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}", "public int getC_Decoris_PreSalesLine_ID();", "@VTID(8)\n excel.XlCreator getCreator();", "public String getSuppliersInforId() {\n return suppliersInforId;\n }", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "protected String getIntermediateFormula() {\n if ( isGlobal() ) {\n return globalConstraint;\n } else if ( isRoleBased() ) {\n return roleMapToFormula();\n } else {\n // rls is disabled\n return EMPTY_STRING;\n }\n }", "public int getHC_JobDataChange_ID();", "public Integer getProfitandlossJyDetailId() {\n return profitandlossJyDetailId;\n }", "public Integer getRowNo() {\n return rowNo;\n }", "public Integer getTbApWtEntryNumber()\n\t\t\t\tthrows AgentException{\n\t\t// Fill up with necessary processing\n\n\t\treturn tbApWtEntryNumber;\n\t}", "@Override\r\n\tpublic Integer editInsuranceComapny(Insurance insurance) {\n\t\treturn null;\r\n\t}", "@TableElement(index = 3, name = \"Other Component\")\n public @Nullable Formula getOtherComponent() {\n return otherComponent;\n }", "public int getRollNo() {\n\t\treturn this.roll_no;\n\t}", "@Override\n\tpublic int getNoofProduct() {\n\t\tString sql=\"SELECT COUNT(product_product_id) FROM supplier_product\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}", "public int getAdjusterAgent(int agent_id) {\n int id = 0;\n try {\n agentAdjuster.setInt(1, agent_id);\n ResultSet resultset = agentAdjuster.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"adjuster_id\");\n System.out.println(\"Adjuster ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "private static String homeworkLine(int homework)\n {\n return String.format(STR_FORMAT_1 + INT_FORMAT, HOMEWORK_STR, homework);\n }", "public int getRowNo() {\n return rowIndex+1;\n }", "public Integer getSupplierid() {\r\n return supplierid;\r\n }", "public String getwPrCouponNo() {\n return wPrCouponNo;\n }", "public String getJP_SalesRep_Value();", "public String getProductToolsInforId() {\n return productToolsInforId;\n }", "public String getSupplierNum() {\n return supplierNum;\n }", "public BigDecimal getEmployerId() {\n return getEmployerIdProperty().getValue();\n }", "public Integer getSale_num() {\n return sale_num;\n }", "@Override\n public String getExternalId() {\n CommerceId commerceId = getId();\n return commerceId.getExternalId().orElseGet(() -> commerceId.getTechId().orElse(null));\n }", "@Override\n\tpublic int getNoofSupplier(String supplyStartDate, String supplyLastDate) {\n\t\tString sql=\"SELECT COUNT(h.supplier_supplier_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE buy_date>=?::Date and buy_date<=?::Date\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplyStartDate, supplyLastDate);\n\t\treturn total;\n\t}", "public Formula formulaWithInc() {\n\t\treturn formula();\n\t}", "public String getResearchno() {\r\n\t\treturn researchno;\r\n\t}", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "public int getRequiredRow() {\n\t\tint rowNumber = 0;\n\t\tfor(int i=0;i<=sheet.getLastRowNum();i++) {\n\t\t\t//System.out.println(testCaseName+sheet.getRow(i).getCell(0).toString());\n\t\t\tif(testCaseName.equals(sheet.getRow(i).getCell(0).toString())) {\n\t\t\t\trowNumber = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn rowNumber;\n\t}", "public int getBSCA_PriceChangePrev_ID();", "public int getLBR_NotaFiscal_ID();", "public EmployerDataObject getJob_Designer() {\r\n return job_Designer;\r\n }", "public int getIdAutorizacionEmpresaSRI()\r\n/* 74: */ {\r\n/* 75:112 */ return this.idAutorizacionEmpresaSRI;\r\n/* 76: */ }", "public String getJobNoStr(){\n \n // return zero\n if (this.getJobNumber()==0){\n return \"00000000\";\n }\n // for job numbers less than 6 digits pad\n else if (this.getJobNumber() < 100000){\n return \"000\" + Integer.toString(this.getJobNumber()); \n }\n // assume 7 digit job number\n else {\n return \"00\" + Integer.toString(this.getJobNumber()); \n }\n\n }", "public int getAdjustedWeight(int waveAmplifier, int pA) {\n\n\t\tint adjustedMultiplier = 1;\n\n\t\t//2, 2 -> 3\n\t\t//1, 3 -> 1\n\t\t//3, 1 -> 1\n\n\t\tint wA = getWeightMultiplier();\n\t\tadjustedMultiplier = this.getTableAdjustment(wA, pA);\n\n\t\treturn getWeight() + (adjustedMultiplier * waveAmplifier);\n\n\t}", "public int getIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI()\r\n/* 80: */ {\r\n/* 81:114 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 82: */ }", "private static String getLower(MultiplicityInterval occ) {\n return Integer.toString(getLowerNumber(occ));\n }", "@Override\n\tpublic void resAuditJobEmployee(int je_id, String caller) {\n\n\t}", "String getSupplierID();", "int getNdwi6Id(String project, String feature, DataDate date) throws SQLException;", "public Number getWorkflowNotificationId() {\r\n return (Number) getAttributeInternal(WORKFLOWNOTIFICATIONID);\r\n }", "public int getLowerYear()\r\n {\r\n return getInt(LowerYear_, 0);\r\n }", "public File getExecutableWorkFile(CommonjWork work) {\r\n\t\tFile workExecutableFile = new File(getExecutableWorkDir(work), work.getWorkName());\t\r\n\t\treturn workExecutableFile;\r\n\t}", "public String getaWorkName() {\n return aWorkName;\n }", "public int getHC_EmployeeGrade2_ID();", "public String getSumShopJkn() {\n return sumShopJkn;\n }", "public String getInsBizNo() {\n\t\treturn this.insBizNo;\n\t}", "@Override\n\tpublic int getNoofProduct(String supplierName) {\n\t String sql=\"SELECT COUNT(h.product_product_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t return total;\n\t}", "public ActionApplier getActionApplier() {\n\t\treturn this.grid;\n\t}", "public String implementationIRI() {\n\t\tString implementationIRI=this.versionIRI;\n\t\tif(implementationIRI==null) {\n\t\t\timplementationIRI=this.ontology;\n\t\t}\n\t\treturn implementationIRI;\n\t}", "@Override\n public String getJobName() {\n return operate_name;\n }", "public java.lang.Integer getCare_id();", "public int getOverdueBill() {\n int customer_id = 0;\n try {\n ResultSet resultset = overdueBills.executeQuery();\n while (resultset.next()) {\n customer_id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + customer_id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Try Again!\");\n }\n return customer_id;\n }", "public String getAssessmentandReportingAnalysisandReportingServiceWorkProduct() {\n return assessmentandReportingAnalysisandReportingServiceWorkProduct;\n }", "public int getJobCost(int jNo);", "public java.lang.Integer getCompanycode() {\n\treturn companycode;\n}", "@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}", "public int getCurrentOperationId(){\n int nmr = 1;\n operationLock.lock();\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT OP_ID FROM APP.OPERATIONS ORDER BY OP_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"OP_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n operationLock.unlock();\n return nmr;\n }" ]
[ "0.7406815", "0.6183655", "0.6037104", "0.56245565", "0.54028434", "0.5325909", "0.5167065", "0.4958018", "0.48758787", "0.48758787", "0.48675287", "0.48235136", "0.48189303", "0.48122454", "0.47567558", "0.46764094", "0.46378523", "0.4632204", "0.46262008", "0.45972353", "0.45877957", "0.45854133", "0.45854133", "0.45854133", "0.45717108", "0.4563542", "0.4550619", "0.45452648", "0.450973", "0.4497691", "0.44891214", "0.44791362", "0.4471041", "0.4458796", "0.44532874", "0.44515917", "0.44501218", "0.44434303", "0.44398636", "0.44375423", "0.44331867", "0.44298944", "0.44214302", "0.44174445", "0.44101605", "0.44070512", "0.43905377", "0.43893972", "0.4384191", "0.43803835", "0.4380208", "0.43799156", "0.43779284", "0.4366847", "0.43661562", "0.43652266", "0.4364829", "0.43584058", "0.43580616", "0.4353845", "0.43505847", "0.4348705", "0.43452084", "0.43433124", "0.43418005", "0.43393785", "0.43390027", "0.43380925", "0.4330965", "0.4329896", "0.43277198", "0.43264586", "0.43181905", "0.43175203", "0.43159968", "0.43134555", "0.43054727", "0.43051592", "0.43019432", "0.42992434", "0.42983344", "0.42954502", "0.42935196", "0.4293501", "0.42900905", "0.4289729", "0.4284972", "0.4283765", "0.42819145", "0.42806125", "0.42765215", "0.42760888", "0.427596", "0.42724752", "0.42684796", "0.42657068", "0.42656964", "0.42641607", "0.42599398", "0.42593807" ]
0.7645187
0
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.applier_workno
public void setApplierWorkno(String applierWorkno) { this.applierWorkno = applierWorkno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApplierWorkno() {\n return applierWorkno;\n }", "public void setApplierOrgId(Long applierOrgId) {\n this.applierOrgId = applierOrgId;\n }", "public Long getApplierOrgId() {\n return applierOrgId;\n }", "public void setApplierOrgName(String applierOrgName) {\n this.applierOrgName = applierOrgName;\n }", "public void setApplierName(String applierName) {\n this.applierName = applierName;\n }", "public String getApplierName() {\n return applierName;\n }", "public String getApplierOrgName() {\n return applierOrgName;\n }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "protected void onChange_InfectionRisk() {\n onChange_InfectionRisk_xjal( InfectionRisk );\n }", "@Override\r\n\tpublic void hireApplier(Applier applier) {\n\t\tapplier.setStatus(\"Hired\");\r\n\t\tem.merge(applier);\r\n\r\n\t}", "public void setJob_Designer(EmployerDataObject job_Designer) {\r\n this.job_Designer = job_Designer;\r\n }", "@Override\n\tpublic void resAuditJobEmployee(int je_id, String caller) {\n\n\t}", "public void setAutorizacionAutoimpresorSRI(AutorizacionAutoimpresorSRI autorizacionAutoimpresorSRI)\r\n/* 125: */ {\r\n/* 126:150 */ this.autorizacionAutoimpresorSRI = autorizacionAutoimpresorSRI;\r\n/* 127: */ }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setMinerId(int i){\n this.minerId = i;\n }", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setCompanycode(java.lang.Integer newCompany) {\n\tcompanycode = newCompany;\n}", "public void setC_Decoris_PreSalesLine_ID (int C_Decoris_PreSalesLine_ID);", "public void setUWCompany(entity.UWCompany value);", "@Override\n\tpublic int updateOrgEmployee(Org_employee orgEmloyee) {\n\t\treturn 0;\n\t}", "public void setMinNoEmp(Integer minNoEmp) {\n this.minNoEmp = minNoEmp;\n }", "@Override\r\n\tpublic Integer editInsuranceComapny(Insurance insurance) {\n\t\treturn null;\r\n\t}", "public void setMakeEmp(Integer makeEmp) {\n\t\tthis.makeEmp = makeEmp;\n\t}", "@Override\n\tpublic AjaxReturnMsg upDateAgencyData(Ee15 ee15) {\n\t\tint updateNum = recruitDataEntryEe15Mapper.updateByPrimaryKeySelective(ee15);\n\t\tif(updateNum==1 ){\n\t\t\treturn this.success(\"您好,修改人力资源招聘数据成功!\");\n\t\t}else{\n\t\t\treturn this.error(\"您好,修改人力资源招聘数据失败!\");\n\t\t}\n\t}", "private int increaseBy() {\n\t\tif (increaseBy == null) {\n\t\t\tincreaseBy = Integer.valueOf(ERXProperties.intForKeyWithDefault(\"er.extensions.ERXLongPrimaryKeyFactory.increaseBy\", 1000));\n\t\t}\n\t\treturn increaseBy.intValue();\n\t}", "public void adjustWorkerWage(int workerWage) {\n Connection dbConnection = DatabaseConnection.getDbConnection();\n try {\n preparedStatement = dbConnection.prepareStatement(UPDATE_WORKER_WAGE);\n preparedStatement.setInt(1, workerWage);\n preparedStatement.execute();\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n } finally {\n try {\n preparedStatement.close();\n dbConnection.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }\n }", "@Override\n\tpublic void resSubmitJobEmployee(int je_id, String caller) {\n\n\t}", "public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);", "protected void setCode(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString code = rs.getString(UiActionTable.COLUMN_CODE);\n\t\t\n\t\tif(code == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setCode(code);\n\t}", "public IBusinessObject setCreatorIID(IIID creator)\n throws ORIOException;", "@ApiModelProperty(value = \"Override the affiliate id given credit for rebills of this auto order\")\r\n public Integer getOverrideAffiliateId() {\r\n return overrideAffiliateId;\r\n }", "public void secondarySetOperator(com.hps.july.persistence.Operator arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOperator(arg0);\n }", "public void setYearlyBonus(int yearlyBonus){\n this.yearlyBonus = yearlyBonus;\n }", "private void setRoller(Roller w) {\n if (currentRoller == null) {\n currentRoller = w;\n world.addStepListener(currentRoller);\n }\n }", "public void setWorkPlace(WorkPlaceC2A workPlace)\r\n\t{\r\n\t\tthis.workPlace = workPlace;\r\n\t}", "public void setCompany(java.lang.Integer newCompany) {\n\tcompany = newCompany;\n}", "private int setUpAlternativePrimaryImplementation() throws SQLException\n {\n DatabaseOperationMonitoring.instance().dropMonitoringTriggers(testClassSetup.dataSource());\n\n /* determine the model containing the process definition whose primary implementation we'd like to change */\n final Models models = sf.getQueryService().getModels(DeployedModelQuery.findActiveForId(MODEL_ID));\n assertThat(models.size(), equalTo(1));\n final int modelOid = models.get(0).getModelOID();\n\n /* set primary implementation to the alternative one */\n sf.getAdministrationService().setPrimaryImplementation(modelOid, TransientProcessInstanceModelConstants.PROCESS_DEF_ID_PROCESS_INTERFACE_UNQUALIFIED, ALTERNATIVE_IMPL_MODEL_ID, null);\n\n /* restart monitoring */\n DatabaseOperationMonitoring.instance().createMonitoringTriggers(testClassSetup.dataSource());\n\n return modelOid;\n }", "public void secondarySetExpeditor(com.hps.july.persistence.Worker anExpeditor) throws java.rmi.RemoteException;", "public void setBSCA_PriceChangePrev_ID (int BSCA_PriceChangePrev_ID);", "public void setApprover(String approver) {\n this.approver = approver;\n }", "public void setComparesource(noNamespace.SourceType comparesource)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(COMPARESOURCE$2, 0);\r\n if (target == null)\r\n {\r\n target = (noNamespace.SourceType)get_store().add_element_user(COMPARESOURCE$2);\r\n }\r\n target.set(comparesource);\r\n }\r\n }", "public void setRolloverModel(String rolloverModel)\r\n\t{\r\n\t\tif (ROLLMODEL1.equals(rolloverModel) || ROLLMODEL2.equals(rolloverModel))\r\n\t\t{\r\n\t\t\tthis.rolloverModel = rolloverModel;\r\n\t\t} else\r\n\t\t{\r\n\t\t\tLogLog.warn(\"an unsupported property has been set in the configuration file for appender [\" + name + \"].\");\r\n\t\t\tthis.rolloverModel = ROLLMODEL1;\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic String addApplicantDetails(ApplicationBean applicationBean)\n\t\t\tthrows UniversityException {\n\t\tString applicationID=null;\n\t\tapplicationID=dao.addApplicantDetails(applicationBean);\n\t\treturn applicationID;\n\t}", "public void setNumSales(int numSales){\r\n this.sales = numSales;\r\n }", "public void testaddOfficerTitle() {\n \n OfficeData data = new OfficeData();\n data.setAffPk(new Integer(1));\n data.setOfficePk(new Integer(1));\n data.setAffiliateTitle(null);\n data.setNumWithTitle(new Integer(1));\n data.setMonthOfElection(new Integer(1));\n data.setLengthOfTerm(new Integer(1));\n data.setTermEnd(new Integer(2004));\n data.setDelegatePriority(new Integer(1));\n data.setReportingOfficer(FALSE);\n data.setExecBoard(FALSE);\n \n int val = affOfficerBean.addOfficerTitle(data, USER_PK);\n System.out.println(\"testAddOfficerTitle method result: \" + val);\n \n }", "public void edit(MakerBean maker) {\n\t\t\t\t\r\n\t\ttry {\r\n\r\n\t\t\tString query = (\"Update tb_maker \"+\r\n\t\t\t\t\t\"Set maker_name=?, \"+\r\n\t\t\t\t\t\"maker_tel=?, \"+\r\n\t\t\t\t\t\"maker_contactName=?, \"+\r\n\t\t\t\t\t\"maker_contactLastName=?, \"+\r\n\t\t\t\t\t\"maker_address1=?, \"+\r\n\t\t\t\t\t\"maker_province=?, \"+\r\n\t\t\t\t\t\"maker_email=?, \"+\r\n\t\t\t\t\t\"activeFlag=?, \"+\r\n\t\t\t\t\t\"updateBy=?, \"+\r\n\t\t\t\t\t\"updateDate=getdate() \"+\r\n\t\t\t\t\t\"where 1=1 \"+\r\n\t\t\t\t\t\"and maker_ID=? \");\r\n\t \t\r\n\t\t\tint updateRecord = jdbcTemplate.update(query,\r\n\t \t\t\tnew Object[] { \r\n\t \t\t\t\t\tmaker.getMaker_name(),\r\n\t \t\t\t\t\tmaker.getMaker_tel(),\r\n\t \t\t\t\t\tmaker.getMaker_contactName(),\r\n\t \t\t\t\t\tmaker.getMaker_contactLastName(),\r\n\t \t\t\t\t\tmaker.getMaker_address1(),\r\n\t \t\t\t\t\tmaker.getMaker_province(),\r\n\t \t\t\t\t\tmaker.getMaker_email(),\r\n\t \t\t\t\t\tmaker.getActiveFlag(),\r\n\t \t\t\t\t\tmaker.getUpdateBy(),\r\n\t \t\t\t\t\tmaker.getMaker_ID()\r\n\t \t\t\t\t\t});\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "public String getWork_id(){\r\n\t\treturn this.work_id ;\r\n\t}", "public void setSale_num(Integer sale_num) {\n this.sale_num = sale_num;\n }", "@Override\n\tpublic void updateOrganizerInfo(Organizer organizer) {\n\t\tString sql = \"UPDATE organizer SET organizer_first_name = ?, organizer_last_name = ?, organizer_phone = ?, organizer_email = ? \" + \n\t\t\t\t\"WHERE organizer_id = ?\";\n\t\tjdbcTemplate.update(sql, organizer.getFirstName(), organizer.getLastName(), organizer.getPhone(), organizer.getEmail(), organizer.getOrganizerId());\n\t}", "@Transactional\n\tpublic void save(final ContractBusiness contractBusiness) \n\t{\n\t\tjdbcTemplate = custom.getJdbcTemplate();\n\tif(contractBusiness.getSNo() == 0)\t{\n\n\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\tint update = jdbcTemplate.update(\n\t\t\tnew PreparedStatementCreator() {\n\t\t\t\t\tpublic PreparedStatement \n\t\t\t\t\tcreatePreparedStatement(Connection connection) throws SQLException {\n\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\tPreparedStatement ps =\n\t\t\t\t\t\t\t\t\tconnection.prepareStatement(INSERT_SQL,new String[]{\"SNo\"});\n\tps.setString(1, contractBusiness.getCompanyName());\nps.setString(2, contractBusiness.getCcode());\nps.setString(3, contractBusiness.getMobile());\nps.setString(4, contractBusiness.getGST());\nps.setString(5, contractBusiness.getCompanyId());\nps.setString(6, contractBusiness.getAreaIntContract());\nps.setString(7, contractBusiness.getRequiredCrops());\nps.setString(8, contractBusiness.getCultivableLand());\nps.setString(9, contractBusiness.getComment());\nps.setString(10, contractBusiness.getStatus());\n\nps.setString(11, contractBusiness.getUnits());\nps.setString(12, contractBusiness.getUserStatus());\n\n\n\n\n\n\t\t\t\t\t\t\treturn ps;\n\t\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tkeyHolder);\n\t\t\t\t\n\t\t\t\tNumber unId = keyHolder.getKey();\n\t\t\t\tcontractBusiness.setSNo((unId.intValue()));\n\t\t\t\t\n\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\tString sql = \"UPDATE contract_business set Company_name = ? ,Ccode = ? ,Mobile = ? ,GST = ? ,Company_id = ? ,Area_int_contract = ? ,Required_crops = ? ,Cultivable_land = ? ,Comment = ? ,Status = ? where S_no = ? \";\n\t\n\t\t\tjdbcTemplate.update(sql, new Object[]{contractBusiness.getCompanyName(),contractBusiness.getCcode(),contractBusiness.getMobile(),contractBusiness.getGST(),contractBusiness.getCompanyId(),contractBusiness.getAreaIntContract(),contractBusiness.getRequiredCrops(),contractBusiness.getCultivableLand(),contractBusiness.getComment(),contractBusiness.getStatus(),contractBusiness.getSNo()});\n\t\t}\n\t}", "public final void writeRow(RowSetterIfc rowSetter) {\n Row row = (Row) rowSetter;\n myLoadArray[myRowCount] = row.getElements();\n myRowCount++;\n if (myRowCount == (myMaxRowsInBatch)) {\n loadArray(myLoadArray);\n myRowCount = 0;\n }\n }", "@Override\n\tpublic void affectInsuranceToBuyer(int insId, int buyerId) {\n\n\t}", "public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"minor\", value = \"value to override calculated impact value\")\n\n public String getImpactOverride() {\n return impactOverride;\n }", "@Override\r\n\tpublic void afterBeanSelected(ControllerEvent event) throws ControllerListenerException {\r\n\t\tInvoicingController invoicingController = (InvoicingController)event.getController();\r\n\t\tinvoicingController.setWarehouseId(obtainWarehouseId((Invoice)invoicingController.getTo()));\r\n\t\tsuper.afterBeanSelected(event);\r\n\t}", "private void setOfficeCode(String officeCode) {\n this.officeCode = officeCode;\n UserImpl temp = (UserImpl) this.user;\n temp.setOfficeCode(officeCode);\n }", "public void setCreator(SystemUserBO creator)\n {\n _creator = creator;\n _model.setCreator(creator.getModel());\n }", "public void setElse(final cto.framework.web.action.plugin.schema.Else _else) {\r\n this._else = _else;\r\n }", "public void setM_Splitting_ID (int M_Splitting_ID)\n{\nset_ValueNoCheck (\"M_Splitting_ID\", new Integer(M_Splitting_ID));\n}", "public int getSupplierId()\n {\n return(this.SupplierId);\n }", "public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer = job_Customer;\r\n }", "public void updateSupplierDetail(Supplier obj) {\n\t\t\r\n\t}", "private void setupSpalteAufwand() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteAufwand.setCellValueFactory(new PropertyValueFactory<>(\"aufwand\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteAufwand.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteAufwand.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setAufwand(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "void secondarySetTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;", "private void setWorkmanPoint( int point ){\n\n callGetSliderAds();\n }", "public updsertCompanyReferralPocily_result(updsertCompanyReferralPocily_result other) {\n if (other.isSetE()) {\n this.e = new com.moseeker.thrift.gen.common.struct.BIZException(other.e);\n }\n }", "public void setToolnum(String toolnum) {\r\n this.toolnum = toolnum;\r\n }", "public void setCodigo() throws SQLException {\n try (PreparedStatement query = Herramientas.getConexion().prepareStatement(\"SELECT MAX(codigo_ticket) FROM ticket\"); \n ResultSet resultado = query.executeQuery()) {\n resultado.next();\n this.codigo = (resultado.getInt(1))+1;\n }\n \n }", "private void updateResourceSkillsInsdustryList(PublicProfileVO\t responseVO)throws BusinessServiceException{\r\n\t\tInteger primaryind= responseVO.getParentVendor().getPrimaryIndustryId();\r\n\t\tif(primaryind > 0 ) {\r\n\r\n\t\t\tList<SkillNodeVO> newList = new ArrayList<SkillNodeVO>();\r\n\t\t\tList<SkillNodeVO> skills = responseVO.getResourceSkillList();\r\n\t\t\tfor(SkillNodeVO vo : skills){\r\n\t\t\t\tif(vo.getNodeId() == primaryind){\r\n\t\t\t\t\tnewList.add(vo);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfor(SkillNodeVO vo : skills){\r\n\t\t\t\tif(vo.getNodeId() != primaryind){\r\n\t\t\t\t\tnewList.add(vo);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tresponseVO.setResourceSkillList(newList);\r\n\t\t}\r\n\r\n\t}", "private void change_im_tool4(int boo){\r\n if(boo == 0){ //IMAGEN SI EL USUARIO ESTA INHABILITADO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img07.png\")));\r\n }else{ //IMAGEN PARA HABILITAR AL USUARIO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }\r\n }", "public static int alter(int iaParam) {\r\n\t\treturn iaParam;\r\n\t}", "public void increaseYearsWorked() {\n ++yearsWorked;\n }", "public void save(MakerBean maker) {\n\t\t\r\n\t\tSystem.out.println(\"############################### Save\");\r\n\t\tSystem.out.println(\"createBy : \" + maker.getUpdateBy() + \r\n\t\t\t\t\" || maker_ID: \" + maker.getMaker_ID() + \r\n\t\t\t\t\" || maker_name: \" + maker.getMaker_name() +\t\t\t\t\r\n\t\t\t\t\" || maker_contactName: \" + maker.getMaker_contactName() + \r\n\t\t\t\t\" || maker_contactLastName: \" + maker.getMaker_contactLastName() +\r\n\t\t\t\t\" || maker_tel: \" + maker.getMaker_tel() +\r\n\t\t\t\t\" || maker_address1: \" + maker.getMaker_address1() + \r\n\t\t\t\t\" || maker_province: \" + maker.getMaker_province() +\r\n\t\t\t\t\" || maker_email: \" + maker.getMaker_email() +\r\n\t\t\t\t\" || activeFlag: \" + maker.getActiveFlag());\t\r\n\t\t\r\n\t\ttry {\r\n\r\n\t\t\tString query =\t\"INSERT INTO tb_maker (maker_ID,maker_name,maker_tel\"\r\n\t\t\t\t\t+ \",maker_contactName,maker_contactLastName,maker_address1,maker_province,maker_email\"\r\n\t\t\t\t\t+ \",activeFlag,CreateDate,CreateBy) \"+\r\n\t\t\t\t\t\t\t\"VALUES (?,?,?,?,?,?,?,?,?,getdate(),? ) \";\r\n\t\t\tjdbcTemplate.update(query,\r\n\t\t\t\t\tnew Object[] { \r\n\t\t\t\t\t\t\tmaker.getMaker_ID(),\r\n\t\t\t\t\t\t\tmaker.getMaker_name(),\r\n\t\t\t\t\t\t\tmaker.getMaker_tel(),\r\n\t\t\t\t\t\t\tmaker.getMaker_contactName(),\r\n\t\t\t\t\t\t\tmaker.getMaker_contactLastName(),\r\n\t\t\t\t\t\t\tmaker.getMaker_address1(),\r\n\t\t\t\t\t\t\tmaker.getMaker_province(),\r\n\t\t\t\t\t\t\tmaker.getMaker_email(),\r\n\t\t\t\t\t\t\tmaker.getActiveFlag(),\r\n\t\t\t\t\t\t\tmaker.getCreateBy(),\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \t\t\t\r\n\t}", "public void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);", "public void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "public int updateByPrimaryKey(TWorkTrustDetail record) {\n\t\tint rows = getSqlMapClientTemplate().update(\n\t\t\t\t\"t_work_trust_detail.ibatorgenerated_updateByPrimaryKey\",\n\t\t\t\trecord);\n\t\treturn rows;\n\t}", "protected void beforeUpdateCompanyTraining(\n RetailscmUserContext userContext,\n CompanyTraining existed,\n String retailStoreCountryCenterId,\n String companyTrainingId,\n int companyTrainingVersion,\n String property,\n String newValueExpr,\n String[] tokensExpr)\n throws Exception {}", "public void setEmployerId(BigDecimal employerId) {\n getEmployerIdProperty().setValue(employerId);\n }", "public abstract BaseQuantityDt setCode(String theCode);", "public void changeBuyerMaker(Record buyerRecord){\n if(doingDB2Gui)return;\n try{\n //find out the vector to add dbDeps.\n if (buyerRecord==null) {\n //only the all dep is allow to add now.\n DbJcbxcbxDiv=new exgui.DataBindJCombobox(\n cbxDiv,\n \"P_DIVISION\",\n new Vector(),\n \"DIV_NAME\",\"DIV_CODE\",\n null,\"N/A\",\"ALL\");\n //cbxDiv.setUI(new exgui.WideComboBoxUI(160));\n dataBindComps.set(index_divCbx,DbJcbxcbxDiv);\n\n }else {\n //deps and \"ALL\"dep allow to add.\n Vector dvsnRecords=\n (Vector)tempProperties.tmpHMap_BuyerDivison.get(\n buyerRecord.get(0).toString());\n DbJcbxcbxDiv=null;\n if(dvsnRecords==null){\n DbJcbxcbxDiv=new exgui.DataBindJCombobox(\n cbxDiv,\n \"P_DIVISION\",\n new Vector(),\n \"DIV_NAME\",\n \"DIV_CODE\",\n null,\"N/A\",\"ALL\");\n //cbxDiv.setUI(new exgui.WideComboBoxUI(160));\n }else {\n DbJcbxcbxDiv=new exgui.DataBindJCombobox(\n cbxDiv,\n \"P_DIVISION\",\n dvsnRecords,\n \"DIV_NAME\",\n \"DIV_CODE\",\n null,\"N/A\",\"ALL\");\n //cbxDiv.setUI(new exgui.WideComboBoxUI(160));\n }\n dataBindComps.set(index_divCbx,DbJcbxcbxDiv);\n\n }\n\n }catch(Exception exp){\n exp.printStackTrace();\n }\n }", "private void hireInstructor(int index) {\n\t\tSystem.out.println(\"Hire instructor called...\");\n\t\t// get current semester code\n\t\tJdbcConnector connector = new JdbcConnector();\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = connector.getConnection();\n\t\t\tjava.sql.Statement stmt = conn.createStatement();\n\n\t\t\tString selectInstructorIdSql = \"Select id, instructor_id from assignments \"\n\t\t\t\t\t+ \"where semester_code = 1 and display_index = \" + index + \";\";\n\n\t\t\tResultSet selectInstructorIdRs = stmt.executeQuery(selectInstructorIdSql);\n\t\t\tint instructorId = 0;\n\t\t\tint id = 0;\n\t\t\tif (selectInstructorIdRs.next()) {\n\t\t\t\tinstructorId = selectInstructorIdRs.getInt(\"instructor_id\");\n\t\t\t\tid = selectInstructorIdRs.getInt(\"id\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Instructor id is - \" + instructorId);\n\n\t\t\tString sql = \"SELECT * From semester_instructor_map where semester_code = 1 and instructor_id = \"\n\t\t\t\t\t+ instructorId + \";\";\n\t\t\tSystem.out.println(\"SQL - \" + sql);\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tSystem.out.println(Constants.INSTRUCTOR_ALREADY_SELECTED);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Instructor not selected yet...\");\n\t\t\t\tPreparedStatement insertMap = conn.prepareStatement(\n\t\t\t\t\t\t\"INSERT INTO semester_instructor_map(semester_code, instructor_id) VALUES (?,?);\");\n\t\t\t\tinsertMap.setInt(1, 1);\n\t\t\t\tinsertMap.setInt(2, instructorId);\n\t\t\t\tSystem.out.println(\"execute insert - \" + insertMap.executeUpdate());\n\t\t\t\tinsertMap.close();\n\n\t\t\t\tPreparedStatement updatMap = conn\n\t\t\t\t\t\t.prepareStatement(\"UPDATE assignments SET assigned = 'Y' WHERE id = ?\");\n\t\t\t\tupdatMap.setInt(1, id);\n\t\t\t\tSystem.out.println(\"execute upate - \" + updatMap.executeUpdate());\n\t\t\t\tupdatMap.close();\n\t\t\t}\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tconnector.closeConnection(conn);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// Get the record from UI\n\t\t// Hire!!!\n\n\t}", "public void setItineraryReference(int value) {\n this.itineraryReference = value;\n }", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public final void setFuelUpgrade(int fuelUp){fuelUpgrade = fuelUp;}", "public void setWorkPart (WorkPart workPart) {\n\t\tthis.workPart = workPart;\n\t\tthis.annotates = workPart.getTag();\n\t}", "Builder addExampleOfWork(CreativeWork value);", "void beforeUpdate(InstitutionBean pObject) throws SQLException {\n if (listener != null)\n listener.beforeUpdate(pObject);\n }", "public void setInstructor (String instructor)\n\t{\n\t\tif(instructor.length ( )==0 || instructor == null)\n\t\t{\n\t\t\tinstructor = \"Instructor\";\n\t\t}\n\t\tthis.instructor = instructor;\n\t\tthis.saveNeed = true;\n\n\n\t}", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "@Override\r\n\tpublic int updateCostIoQtyInit() {\n\t\treturn getSqlSession().update(namespace+\".updateCostIoQtyInit\");\r\n\t}", "private void toEdit() {\n int i=jt.getSelectedRow();\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No data has been added to the details\");\n }\n else if(i==-1)\n {\n JOptionPane.showMessageDialog(rootPane,\"No item has been selected for the update\");\n }\n else\n {\n if(tfPaintId.getText().isEmpty())\n {\n JOptionPane.showMessageDialog(rootPane,\"Please! Enter the Paint ID\");\n }\n else if(tfName.getText().isEmpty())\n {\n JOptionPane.showMessageDialog(rootPane,\"Please! Enter the Product name\");\n }\n else if(rwCombo.getSelectedItem().toString().equals(\"Select\"))\n {\n JOptionPane.showMessageDialog(rootPane,\"Please! Select the raw materials used\");\n }\n else if(bCombo.getSelectedItem().toString().equals(\"Select\"))\n {\n JOptionPane.showMessageDialog(rootPane,\"Please! select the brand you want\");\n }\n else if(tfPrice.getText().isEmpty())\n {\n JOptionPane.showMessageDialog(rootPane,\"Please! Enter the price\");\n }\n else if(tfColor.getText().isEmpty())\n {\n JOptionPane.showMessageDialog(rootPane,\"Please! Enter the colour\");\n }\n else if(typeCombo.getSelectedItem().toString().equals(\"Select\"))\n {\n JOptionPane.showMessageDialog(rootPane,\"Select something from paint type\");\n }\n else if(getQuality()==null) \n {\n JOptionPane.showMessageDialog(rootPane,\"Quality is not selected\");\n }\n else if(tfQuantity.getText().isEmpty())\n {\n JOptionPane.showMessageDialog(rootPane,\"Please! Enter the quantity\");\n }\n else\n {\n try\n {\n jtModel.setValueAt(tfPaintId.getText(),i,0);\n jtModel.setValueAt(tfName.getText(),i,1);\n jtModel.setValueAt(Integer.valueOf(tfPrice.getText()),i,2);\n jtModel.setValueAt(tfColor.getText(),i,3);\n jtModel.setValueAt(rwCombo.getSelectedItem(),i,4);\n jtModel.setValueAt(bCombo.getSelectedItem(),i,5);\n jtModel.setValueAt(typeCombo.getSelectedItem(),i,6);\n jtModel.setValueAt(getQuality(),i,7);\n jtModel.setValueAt(Integer.valueOf(tfQuantity.getText()),i,8);\n JOptionPane.showMessageDialog(rootPane,\"Successfully updated the data in details\");\n toClear();\n }\n catch(Exception ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Excepted integer but entered another character at price or quantity.\");\n }\n }\n }\n }", "@Transactional\n\tpublic String generateJobNumber(CorporateEntity corporateEntity){\n\t\tDocumentNumber docNo = null;\n\t\tString jobNumber = null;\n\n\t\tdocNo = documentNumberDAO.findById(new DocumentNumberPK(corporateEntity.getCorpId(), DocumentNumberDAO.DOMAIN_FLEET_MAINTENANCE)).orElse(null);\t\t\n\t\n\t\tjobNumber = docNo.getPreFix() + String.format(\"%08d\", docNo.getNextNo());\n\t\t\n\t\tdocNo.setNextNo(docNo.getNextNo() + 1);\n\t\tdocNo = documentNumberDAO.saveAndFlush(docNo);\t\n\t\t\n\t\treturn jobNumber;\n\t}", "private final void setCaller(AggregateTransformer caller){\n this.caller = caller;\n }", "public Integer getHomeworkId() {\n return homeworkId;\n }", "protected void setTableCompCode(String compcode)\n\t\t{\n\t\t\tCompCode = compcode ;\n\t\t}", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);" ]
[ "0.6475075", "0.5914802", "0.56165296", "0.56090605", "0.5548462", "0.5056206", "0.50029004", "0.4732956", "0.4732956", "0.47230804", "0.47106034", "0.47017163", "0.4686352", "0.46752906", "0.46459833", "0.45873386", "0.45584306", "0.44993016", "0.4470296", "0.4427449", "0.44175756", "0.44125435", "0.43950245", "0.4345752", "0.43131286", "0.43080556", "0.42928323", "0.42793065", "0.42698374", "0.42687055", "0.42555892", "0.42549863", "0.42508525", "0.4241337", "0.4237295", "0.4234829", "0.42185745", "0.42151788", "0.42128852", "0.42112246", "0.41966248", "0.4189513", "0.41872624", "0.41835642", "0.4181532", "0.41758478", "0.4159088", "0.41566882", "0.4156432", "0.41544724", "0.414939", "0.41475785", "0.41371265", "0.41301167", "0.41294226", "0.41267967", "0.41242647", "0.4123882", "0.41166928", "0.41144836", "0.41110072", "0.41052914", "0.4098088", "0.40972215", "0.40958583", "0.40954015", "0.4087663", "0.40873492", "0.40762147", "0.40640458", "0.4058931", "0.40539068", "0.40524662", "0.40441543", "0.4044033", "0.40429413", "0.40349448", "0.4030547", "0.40297198", "0.40292788", "0.40202942", "0.40201777", "0.401981", "0.40144724", "0.40131274", "0.4012346", "0.4012346", "0.40083542", "0.40076885", "0.4007341", "0.4006771", "0.40033364", "0.39999312", "0.39954227", "0.3992193", "0.39905745", "0.39880753", "0.39862695", "0.39858097", "0.39804274" ]
0.760047
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.applier_org_name
public String getApplierOrgName() { return applierOrgName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApplierOrgName(String applierOrgName) {\n this.applierOrgName = applierOrgName;\n }", "public Long getApplierOrgId() {\n return applierOrgId;\n }", "public void setApplierOrgId(Long applierOrgId) {\n this.applierOrgId = applierOrgId;\n }", "public String getApplierName() {\n return applierName;\n }", "public String getOrganizationName() {\n return (orgName);\n }", "public String getOrgName() {\r\n return orgName;\r\n }", "public String getOrgname() {\n return orgname;\n }", "public String getOrgName() {\n return orgName;\n }", "public StrColumn getOrganisation() {\n return delegate.getColumn(\"organisation\", DelegatingStrColumn::new);\n }", "String organizationName();", "public java.lang.String getOrgName() {\n return orgName;\n }", "public java.lang.String getOrgName() {\n return OrgName;\n }", "@Override\n public CharSequence getDeviceOwnerOrganizationName() {\n if (!mHasFeature) {\n return null;\n }\n final CallerIdentity caller = getCallerIdentity();\n Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)\n || canManageUsers(caller) || isFinancedDeviceOwner(caller));\n synchronized (getLockObject()) {\n final ActiveAdmin deviceOwnerAdmin = getDeviceOwnerAdminLocked();\n return deviceOwnerAdmin == null ? null : deviceOwnerAdmin.organizationName;\n }\n }", "public void setApplierName(String applierName) {\n this.applierName = applierName;\n }", "public StrColumn getEbiOrganelle() {\n return delegate.getColumn(\"ebi_organelle\", DelegatingStrColumn::new);\n }", "String getOrganization();", "java.lang.String getCompanyName();", "java.lang.String getCompanyName();", "public String getOrganizationName() {\n\n \n return organizationName;\n\n }", "@Override\n\tpublic java.lang.String getEsfOrganization() {\n\t\treturn _esfShooterAffiliationChrono.getEsfOrganization();\n\t}", "public String getAffiliation() {\n\t\tfinal String submitterAffiliation = getSubmitterAffiliation();\n\t\tif (submitterAffiliation != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_affiliation\" + TAB + submitterAffiliation;\n\t\treturn null;\n\t}", "public String getApplicantname() {\n return applicantname;\n }", "public String getOrgCode() {\n return orgCode;\n }", "public String getOrgCode() {\n return orgCode;\n }", "public java.lang.String getApplicantName() {\n return applicantName;\n }", "public String getApplierWorkno() {\n return applierWorkno;\n }", "@AutoEscape\n\tpublic String getOrganization();", "public java.lang.String getOrganizationId()\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_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "static String editCompany()\n {\n if(companyName !=null) companyName = \"IBM\";\n return companyName;\n }", "public String getApplicantName() {\n\t\treturn applicantName;\n\t}", "public final String getOrganisation() {\n return organisation;\n }", "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public java.lang.String getOrgCustomer() {\n\treturn orgCustomer;\n}", "public String getOrganization ()\n {\n return this.organization;\n }", "public String getGovernor()\n\t{\n\t\tassert this.cursor != null;\n\t\treturn this.cursor.getString(2);\n\t}", "public void setApplierWorkno(String applierWorkno) {\n this.applierWorkno = applierWorkno;\n }", "Builder addSourceOrganization(String value);", "public java.lang.String getOrgExecutor() {\n\treturn orgExecutor;\n}", "@AutoEscape\n\tpublic String getOrgId();", "public String getAgencyName() {\r\n return agencyName;\r\n }", "public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n HashMap map;\r\n \tfor(int g=0; g<this.organizations.size(); g++) {\r\n \tmap = (HashMap) this.organizations.get(g);\r\n \tif (orgName.equals(map.get(\"LOCATION_NAME\"))) {\r\n \t\torgId = (String) map.get(\"ORGANIZATION_ID\");\r\n \t}\r\n }\r\n return orgId;\r\n }", "public String getSrcCompany() {\r\n return (String) getAttributeInternal(SRCCOMPANY);\r\n }", "protected abstract String _getAddOnName_();", "public java.lang.String getOrganizationVersion()\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_element_user(ORGANIZATIONVERSION$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "@Override\n public String toString() {\n return \"RelatedOrg {\"\n + \"}\";\n }", "@Override\n\tpublic TbOrg getOwnOrg() {\n\t\treturn tbOrgMapper.getOwnOrg();\n\t}", "public String organization() {\n return this.organization;\n }", "public static String getCurrentUserOrgId() {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n String username = getCurrentUsername();\n return Optional.of(username)\n .map(directoryManager::getUserByUsername)\n .map(User::getEmployments)\n .map(o -> (Set<Employment>)o)\n .map(Collection::stream)\n .orElseGet(Stream::empty)\n .findFirst()\n .map(Employment::getOrganizationId)\n .orElse(\"\");\n }", "public String getJdOrg() {\r\n\t\treturn jdOrg;\r\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public final String getAppName( )\n\t{\n\t\treturn this.data.getString( \"applicationName\" );\n\t}", "public String getOrgNo() {\r\n return orgNo;\r\n }", "public String getOrganization() {\n return organization;\n }", "@Override\n protected String getCreatorDisplayName() {\n try {\n // DAV:creator-displayname -> use jcr:createBy if present.\n if (exists() && ((Node) item).hasProperty(Property.JCR_CREATED_BY)) {\n return ((Node) item).getProperty(Property.JCR_CREATED_BY).getString();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:createdBy property\");\n }\n\n // fallback\n return super.getCreatorDisplayName();\n }", "public String getOrganizationCode() {\n return organizationCode;\n }", "public Integer getOrgCode() {\n\t\treturn orgCode;\n\t}", "java.lang.String getBusinessName();", "String getCompany();", "public StrColumn getEbiOrganismCommon() {\n return delegate.getColumn(\"ebi_organism_common\", DelegatingStrColumn::new);\n }", "public String getSrcIndustryView() {\r\n return (String) getAttributeInternal(SRCINDUSTRYVIEW);\r\n }", "private String getAuthorStringForLookup(CitedArticle citedArticle) {\n List<CitedArticleAuthor> authors = citedArticle.getAuthors();\n return authors.size() > 0 ? authors.get(0).getSurnames() : \"\";\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "public String getOrgNm()\n\t{\n\t\treturn mOrgNm;\n\t}", "String getIntegApplicationName();", "public String getAPP_NAME() {\r\n return APP_NAME;\r\n }", "public String getAPP_NAME() {\r\n return APP_NAME;\r\n }", "public Organisation getOrganisation() {\n\t\tif (null == organisation) {\n\t\t\t//Load the Organisation with the given orgPrefix\n\t\t\tString orgPrefix = ConfigurationFactory.getConfiguration(Configuration.DEPLOYMENT_CONFIG_HIERA_ORGANISATION_PREFIX);\n\t\t\tif (StringUtils.isBlank(orgPrefix)) {\n\t\t\t\tthrow new IllegalArgumentException(\"No Organisation prefix specified (\" + Configuration.DEPLOYMENT_CONFIG_HIERA_ORGANISATION_PREFIX + \")\");\n\t\t\t}\n\t\t\torganisation = ConfigurationFactory.getOrganisations().get(orgPrefix);\n\t\t\tif (organisation == null) {\n\t\t\t\tthrow new IllegalArgumentException(\"No Organisation (\" + ConfigurationFactory.ORGANISATIONS + \") found with prefix: \" + orgPrefix);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn organisation;\n\t}", "public String getPrimaryCompanyName() {\r\n return primaryCompanyName;\r\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "public String getLabHeadAffiliation() {\n\t\tfinal String submitterAffiliation = getSubmitterAffiliation();\n\t\tif (submitterAffiliation != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"lab_head_affiliation\" + TAB + submitterAffiliation;\n\t\treturn null;\n\t}", "public String getOrgan() {\n\t\treturn this.organ;\n\t}", "@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }", "private JComboBox getOrgCmb() {\r\n cmbOrganization = new JComboBox();\r\n \r\n vOrganizations = getProposalSubOrgs();\r\n\r\n CoeusVector cvOrgs = new CoeusVector();\r\n \tcvOrgs.add(0, \"\");\r\n\r\n HashMap mapRow = new HashMap();\r\n \tfor (int c=0;c<vOrganizations.size();c++) {\r\n mapRow = (HashMap) vOrganizations.elementAt(c);\r\n \tcvOrgs.add(c+1,(String)mapRow.get(\"LOCATION_NAME\"));\r\n \t}\r\n \t\r\n \tcmbOrganization.setModel(new DefaultComboBoxModel(cvOrgs));\r\n return cmbOrganization;\r\n }", "Builder addSourceOrganization(Organization value);", "@Override\n\tpublic String getInsuranceName() {\n\t\treturn \"JeevanBima\";\n\t}", "@Override\n\tpublic String getInsuranceName() {\n\t\treturn \"Har Ghar Bima\";\n\t}", "public String getOriginAirportName() {\n return origin.getName();\n }", "public String getOrganizationEmail() {\n\n \n return organizationEmail;\n\n }", "@ApiModelProperty(example = \"de.bluerain\", value = \"Owner of the history item\")\n public String getOwnerOrganizationId() {\n return ownerOrganizationId;\n }", "public static String getImplementationVendor() {\r\n return getJarInfo(\"Implementation-Vendor\");\r\n }", "String getOriginalName();", "@Schema(example = \"Passbase Inc.\", description = \"Name of the organization that owns this project\")\n public String getOrganization() {\n return organization;\n }", "public String getOrganization() {\n\t\treturn organization;\n\t}", "@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }", "public java.lang.String getOrgSsoCode() {\r\n return orgSsoCode;\r\n }", "java.lang.String getEmployeeName();" ]
[ "0.718516", "0.7053926", "0.6257667", "0.62077487", "0.5874826", "0.5830649", "0.58077955", "0.5781031", "0.57005477", "0.56853575", "0.5621729", "0.54989135", "0.5498865", "0.5484345", "0.5476782", "0.54668945", "0.54541355", "0.54541355", "0.54311955", "0.52840483", "0.5269926", "0.5253874", "0.518542", "0.518542", "0.51701623", "0.5157221", "0.5146355", "0.51457965", "0.51397824", "0.51386714", "0.513541", "0.51328826", "0.5128051", "0.5098168", "0.5050626", "0.50471777", "0.5012587", "0.50093836", "0.5005135", "0.50010544", "0.4995315", "0.49930027", "0.4975327", "0.4966862", "0.49652246", "0.4928271", "0.49258566", "0.49131155", "0.49077338", "0.49027386", "0.49013942", "0.49007344", "0.49007344", "0.49007344", "0.49007344", "0.49007344", "0.49007344", "0.49007344", "0.49007344", "0.49007344", "0.49007344", "0.49007344", "0.49007344", "0.49007344", "0.48970085", "0.48620912", "0.484351", "0.4838231", "0.48355785", "0.47907445", "0.4780131", "0.47762638", "0.4775716", "0.4772615", "0.4769067", "0.4764917", "0.47640088", "0.47577122", "0.47530317", "0.47530317", "0.47451183", "0.47450462", "0.47321975", "0.4728404", "0.47282293", "0.4727826", "0.47241896", "0.47231725", "0.4717121", "0.47169098", "0.47158816", "0.4706316", "0.46941364", "0.46891305", "0.46773106", "0.4670322", "0.4669172", "0.46664214", "0.46623617", "0.46574387" ]
0.7806362
0
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.applier_org_name
public void setApplierOrgName(String applierOrgName) { this.applierOrgName = applierOrgName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApplierOrgName() {\n return applierOrgName;\n }", "public void setApplierOrgId(Long applierOrgId) {\n this.applierOrgId = applierOrgId;\n }", "public Long getApplierOrgId() {\n return applierOrgId;\n }", "public void setApplierName(String applierName) {\n this.applierName = applierName;\n }", "Builder addSourceOrganization(String value);", "Builder addSourceOrganization(Organization value);", "public void setOrgname(String orgname) {\n this.orgname = orgname == null ? null : orgname.trim();\n }", "public String getApplierName() {\n return applierName;\n }", "static String editCompany()\n {\n if(companyName !=null) companyName = \"IBM\";\n return companyName;\n }", "public String getOrgname() {\n return orgname;\n }", "public void setOrgName(String orgName) {\r\n this.orgName = orgName;\r\n }", "public void setApplierWorkno(String applierWorkno) {\n this.applierWorkno = applierWorkno;\n }", "public void setOrgName(String orgName) {\n this.orgName = orgName == null ? null : orgName.trim();\n }", "public String getOrgName() {\r\n return orgName;\r\n }", "@Override\n\tpublic void updateOrganizerInfo(Organizer organizer) {\n\t\tString sql = \"UPDATE organizer SET organizer_first_name = ?, organizer_last_name = ?, organizer_phone = ?, organizer_email = ? \" + \n\t\t\t\t\"WHERE organizer_id = ?\";\n\t\tjdbcTemplate.update(sql, organizer.getFirstName(), organizer.getLastName(), organizer.getPhone(), organizer.getEmail(), organizer.getOrganizerId());\n\t}", "public final void setOrganisation(String value) {\n organisation = value;\n }", "public String getOrganizationName() {\n return (orgName);\n }", "public void setOrgCustomer(java.lang.String newOrgCustomer) {\n\torgCustomer = newOrgCustomer;\n}", "public void setOrgExecutor(java.lang.String newOrgExecutor) {\n\torgExecutor = newOrgExecutor;\n}", "public String getOrgName() {\n return orgName;\n }", "@IcalProperty(pindex = PropertyInfoIndex.ORIGINATOR,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setOriginator(final String val) {\n originator = val;\n }", "public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }", "public void setOrgName(java.lang.String orgName) {\n this.orgName = orgName;\n }", "Builder addSourceOrganization(Organization.Builder value);", "public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }", "public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }", "public String getOrganizationName() {\n\n \n return organizationName;\n\n }", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOrganization(arg0);\n }", "Builder addCreator(Organization value);", "public void setOrgName(java.lang.String OrgName) {\n this.OrgName = OrgName;\n }", "public void setOrganization(String organization);", "public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }", "public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }", "protected void createOrgAnnotations() {\n\t\tString source = \"org.abchip.mimo.core.base.invocation\";\n\t\taddAnnotation\n\t\t (invoiceEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "public java.lang.String getOrgName() {\n return orgName;\n }", "public void setName() {\r\n\t\tapplianceName = \"Refrigerator\";\r\n\t}", "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }", "@Override\r\n public void setCorporation(String corporation) {\n }", "@Override\n\tpublic void setEsfOrganization(java.lang.String esfOrganization) {\n\t\t_esfShooterAffiliationChrono.setEsfOrganization(esfOrganization);\n\t}", "public void setSrcCompany(String value) {\r\n setAttributeInternal(SRCCOMPANY, value);\r\n }", "public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}", "@Override\n public CharSequence getDeviceOwnerOrganizationName() {\n if (!mHasFeature) {\n return null;\n }\n final CallerIdentity caller = getCallerIdentity();\n Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)\n || canManageUsers(caller) || isFinancedDeviceOwner(caller));\n synchronized (getLockObject()) {\n final ActiveAdmin deviceOwnerAdmin = getDeviceOwnerAdminLocked();\n return deviceOwnerAdmin == null ? null : deviceOwnerAdmin.organizationName;\n }\n }", "public void setName(String value)\n {\n // Since this value is marked as \"mandatory,\" the BC4J Framework will take\n // care of ensuring that it's a non-null value. However, if it is null, we\n // don't want to proceed with any validation that could result in a NPE.\n \n if ((value != null) || (!(\"\".equals(value.trim()))))\n {\n // Verify that the name is unique. To do this, we must check both the entity\n // cache and the database. We begin with the entity cache.\n\n com.sun.java.util.collections.Iterator supplierIterator = \n getEntityDef().getAllEntityInstancesIterator(getDBTransaction());\n \n Number currentId = getSupplierId();\n \n while ( supplierIterator.hasNext() )\n {\n SupplierEOImpl cachedSupplier = (SupplierEOImpl)supplierIterator.next();\n\n String cachedName = cachedSupplier.getName();\n Number cachedId = cachedSupplier.getSupplierId();\n\n // We found a match for the name we're trying to set, so throw an\n // exception. Note that we need to exclude this EO from our test.\n \n if (cachedName != null && value.equalsIgnoreCase(cachedName) && \n cachedId.compareTo(currentId) != 0 )\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"Name\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_DUP_NAME\"); // Message name \n }\n } \n\n // Now we want to check the database for any occurences of the supplier\n // name. The most efficient way to check this is with a validation view\n // object to which we add to a special \"Validation\" application module.\n // We then added a \"supplierExists\" method to this entity's expert. This\n // method leverages the VAM and the VVO.\n\n OADBTransaction transaction = getOADBTransaction();\n SupplierEntityExpert expert = getSupplierEntityExpert(transaction);\n\n if (expert.supplierExists(value))\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"Name\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_DUP_NAME\"); // Message name\n }\n }\n \n setAttributeInternal(NAME, value);\n \n }", "Builder addAuthor(Organization value);", "public java.lang.String getOrgName() {\n return OrgName;\n }", "@Override\n\tpublic String updateATourneyName() {\n\t\treturn null;\n\t}", "String getOrganization();", "public void setOrgId(String orgId);", "public void setJob_Designer(EmployerDataObject job_Designer) {\r\n this.job_Designer = job_Designer;\r\n }", "Builder addPublisher(Organization value);", "@AutoEscape\n\tpublic String getOrganization();", "public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }", "public void setCompanyname(java.lang.String newCompanyname) {\n\tcompanyname = newCompanyname;\n}", "public String getOrganization ()\n {\n return this.organization;\n }", "public void enterOrgName() throws IOException {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tlog.info(\"Verifying the OrgName is available or not\");\n\t\tAssert.assertTrue(enterOrgName.isDisplayed());\n\t\tenterOrgName.sendKeys(BasePage.getCellData(xlsxName, sheetName, 13, 0));\n\n\t}", "public StrColumn getOrganisation() {\n return delegate.getColumn(\"organisation\", DelegatingStrColumn::new);\n }", "String organizationName();", "@Override\n\tpublic java.lang.String getEsfOrganization() {\n\t\treturn _esfShooterAffiliationChrono.getEsfOrganization();\n\t}", "@Test\n\tvoid updateFirstName() {\n\t\tfinal UserOrgEditionVo userEdit = new UserOrgEditionVo();\n\t\tuserEdit.setId(\"jlast3\");\n\t\tuserEdit.setFirstName(\"John31\");\n\t\tuserEdit.setLastName(\"Last3\");\n\t\tuserEdit.setCompany(\"ing\");\n\t\tuserEdit.setMail(\"[email protected]\");\n\t\tuserEdit.setGroups(null);\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tresource.update(userEdit);\n\t\tTableItem<UserOrgVo> tableItem = resource.findAll(null, null, \"jlast3\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\n\t\tUserOrgVo user = tableItem.getData().get(0);\n\t\tAssertions.assertEquals(\"jlast3\", user.getId());\n\t\tAssertions.assertEquals(\"John31\", user.getFirstName());\n\t\tAssertions.assertEquals(\"Last3\", user.getLastName());\n\t\tAssertions.assertEquals(\"ing\", user.getCompany());\n\t\tAssertions.assertEquals(\"[email protected]\", user.getMails().get(0));\n\t\tAssertions.assertEquals(0, user.getGroups().size());\n\t\trollbackUser();\n\t}", "Builder addTranslator(Organization value);", "public String getApplicantname() {\n return applicantname;\n }", "java.lang.String getCompanyName();", "java.lang.String getCompanyName();", "public String getOrgCode() {\n return orgCode;\n }", "public String getOrgCode() {\n return orgCode;\n }", "@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }", "private void setOrganizationFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t//\n\t\t// Get Organizations fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Organization.COMPANY);\n\t\tString company = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TITLE);\n\t\tString title = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TYPE);\n\t\tint orgType = cur.getInt(selectedColumn);\n\n\t\tString customLabel = null;\n\t\tif (orgType == Organization.TYPE_CUSTOM) {\n\t\t\tselectedColumn = cur.getColumnIndex(Organization.LABEL);\n\t\t\tcustomLabel = cur.getString(selectedColumn);\n\t\t}\n\n\t\torgs.add(new OrgData(orgType, title, company, customLabel));\n\t}", "Builder addCreator(Organization.Builder value);", "public Builder setCompanyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n companyName_ = value;\n onChanged();\n return this;\n }", "public Builder setCompanyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n companyName_ = value;\n onChanged();\n return this;\n }", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "@Override\n\tpublic void resAuditJobEmployee(int je_id, String caller) {\n\n\t}", "public void setOrganisator(MyUser organisator) {\n if (createdEvents != null) {\n for (int i = 0; i < createdEvents.size(); i++) {\n createdEvents.get(i).setOrganisator(organisator);\n }\n adapderEventCard.notifyDataSetChanged();\n }\n }", "@Override\n public String toString() {\n return \"RelatedOrg {\"\n + \"}\";\n }", "public void setOrgNo(String orgNo) {\r\n this.orgNo = orgNo;\r\n }", "@AutoEscape\n\tpublic String getOrgId();", "private void fixOrg(NameInfo nameInfo){\n\t\tString type = nameInfo.getType();\n\t\tif (type.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\tString name = nameInfo.getName();\n\t\t\tif (orgMan.isValidOrg(name))\n\t\t\t\tnameInfo.setType(\"ORG\");\n\t\t}\n\t}", "Builder addCopyrightHolder(Organization value);", "void addHasInstitutionName(String newHasInstitutionName);", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "Builder addProvider(Organization value);", "public String getAgencyName() {\r\n return agencyName;\r\n }", "public Value.Builder setKdOrg(java.lang.CharSequence value) {\n validate(fields()[12], value);\n this.kd_org = value;\n fieldSetFlags()[12] = true;\n return this;\n }", "public IBusinessObject setCreatorIID(IIID creator)\n throws ORIOException;" ]
[ "0.709547", "0.6660052", "0.64624757", "0.5798123", "0.574981", "0.54585755", "0.54225504", "0.5365375", "0.5363049", "0.5283082", "0.5265049", "0.52583265", "0.52336013", "0.5220636", "0.52005357", "0.5179868", "0.51733065", "0.51661646", "0.5157552", "0.5145792", "0.5131136", "0.50813353", "0.50325173", "0.49925655", "0.4990804", "0.49859497", "0.49720109", "0.49153954", "0.49153954", "0.49153954", "0.49153954", "0.49153954", "0.49153954", "0.49153954", "0.49153954", "0.49153954", "0.49153954", "0.49153954", "0.49153954", "0.49153954", "0.49090677", "0.49066123", "0.4901313", "0.48821348", "0.48685646", "0.48644438", "0.48644438", "0.48609293", "0.48413143", "0.48379543", "0.47993788", "0.47722286", "0.4752446", "0.47409442", "0.47052145", "0.47041488", "0.4695379", "0.46924508", "0.46883574", "0.46844324", "0.46838483", "0.46781203", "0.4677066", "0.46142596", "0.46098572", "0.45689267", "0.45664623", "0.4560361", "0.45594886", "0.4554148", "0.45506203", "0.45496318", "0.45474964", "0.45400792", "0.4530839", "0.45211878", "0.4517534", "0.4517534", "0.45060492", "0.45060492", "0.45034653", "0.44897926", "0.44852567", "0.44852316", "0.44852316", "0.44851685", "0.4465385", "0.4462591", "0.445486", "0.44512042", "0.44473538", "0.44463623", "0.44446597", "0.44396096", "0.44392166", "0.44392166", "0.44386932", "0.4437267", "0.44031268", "0.4402269" ]
0.75519645
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.applier_org_id
public Long getApplierOrgId() { return applierOrgId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setApplierOrgId(Long applierOrgId) {\n this.applierOrgId = applierOrgId;\n }", "public String getApplierOrgName() {\n return applierOrgName;\n }", "public void setApplierOrgName(String applierOrgName) {\n this.applierOrgName = applierOrgName;\n }", "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public java.lang.String getOrganizationId()\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_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "@AutoEscape\n\tpublic String getOrgId();", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public long getOrgId() {\r\n return orgId;\r\n }", "public Integer getOrgId() {\n\t\treturn orgId;\n\t}", "@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }", "@Override\n protected String getExistingATGId(ItemData itemData) throws MappingException {\n Object existingConfiguredAttributesObj = getCurrentATGPropertyValue();\n\n if (existingConfiguredAttributesObj == null) {\n return null;\n }\n\n if (!(existingConfiguredAttributesObj instanceof Set<?>)) {\n String[] messageArguments = { \"existingConfiguredAttributesObj\", \"Set\" }; \n String message = formatMappingErrorMessage(INVALID_PROPERTY_TYPE, messageArguments);\n vlogError(message);\n\n String itemId = (String) getSiebelItem().getProperties().get(\n getSiebelParentItemId());\n getMappingService().processMappingError(\n getSiebelItem().getExportItemId(), message, itemId,\n getSiebelItemType(), null, null);\n return null;\n }\n @SuppressWarnings(\"unchecked\")\n Set<RepositoryItem> existingConfiguredAttributes = (Set<RepositoryItem>) existingConfiguredAttributesObj;\n\n // loop thru the configured attributes checking the origId\n String origId = (String) itemData.getProperties().get(SIEBEL_ORIG_ID);\n for (RepositoryItem configAttribute : existingConfiguredAttributes) {\n String repositoryOrigId = (String) configAttribute\n .getPropertyValue(ATG_ORIG_ID);\n if (repositoryOrigId != null && repositoryOrigId.equals(origId)) {\n // if find matching origId in a repository item return the id of that\n // repository item\n return configAttribute.getRepositoryId();\n }\n }\n\n return null;\n }", "public int getHC_Org2_ID();", "public long getOrganizationId();", "public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n HashMap map;\r\n \tfor(int g=0; g<this.organizations.size(); g++) {\r\n \tmap = (HashMap) this.organizations.get(g);\r\n \tif (orgName.equals(map.get(\"LOCATION_NAME\"))) {\r\n \t\torgId = (String) map.get(\"ORGANIZATION_ID\");\r\n \t}\r\n }\r\n return orgId;\r\n }", "public String getOrgId() {\n\t\treturn orgId;\n\t}", "public static String getCurrentUserOrgId() {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n String username = getCurrentUsername();\n return Optional.of(username)\n .map(directoryManager::getUserByUsername)\n .map(User::getEmployments)\n .map(o -> (Set<Employment>)o)\n .map(Collection::stream)\n .orElseGet(Stream::empty)\n .findFirst()\n .map(Employment::getOrganizationId)\n .orElse(\"\");\n }", "public Integer getOrgCode() {\n\t\treturn orgCode;\n\t}", "public int getPersonOrgID() {\n return personOrgID;\n }", "@JsonGetter(\"orgId\")\r\n public long getOrgId ( ) { \r\n return this.orgId;\r\n }", "public int getAD_OrgTrx_ID();", "public int getAD_OrgTrx_ID();", "public String getOrgCode() {\n return orgCode;\n }", "public String getOrgCode() {\n return orgCode;\n }", "public BigDecimal getOrgId() {\n return orgId;\n }", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "String organizationId();", "public long getGovernorId()\n\t{\n\t\tassert this.cursor != null;\n\t\treturn this.cursor.getLong(0);\n\t}", "public String getOrgNo() {\r\n return orgNo;\r\n }", "@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _scienceApp.getCompanyId();\n\t}", "String getOrganizationPartyId();", "public interface OrgIdStrategy {\n int getOrgId(String resourceId );\n}", "public java.lang.String getId_Organization() {\n return id_Organization;\n }", "@Override\n public String getExternalId() {\n CommerceId commerceId = getId();\n return commerceId.getExternalId().orElseGet(() -> commerceId.getTechId().orElse(null));\n }", "public String getApplierName() {\n return applierName;\n }", "public int getSalesRep_ID();", "public int getSalesRep_ID();", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public StrColumn getOrganisation() {\n return delegate.getColumn(\"organisation\", DelegatingStrColumn::new);\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "public Long getSalesOrgnizationId() {\n return salesOrgnizationId;\n }", "public String getOrganizationCode() {\n return organizationCode;\n }", "public String getApplierWorkno() {\n return applierWorkno;\n }", "public String getOrganizationId() {\n return organizationId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}", "public void setApplierWorkno(String applierWorkno) {\n this.applierWorkno = applierWorkno;\n }", "public int getSupplierId()\n {\n return(this.SupplierId);\n }", "public String getOrgname() {\n return orgname;\n }", "private int getBank_Org_ID ()\n\t{\n\t\tif (m_C_BankAccount_ID == 0)\n\t\t\treturn 0;\n\t\t//\n\t\tMBankAccount ba = MBankAccount.get(getCtx(), m_C_BankAccount_ID);\n\t\treturn ba.getAD_Org_ID();\n\t}", "public Long getOriginAirportId() {\n return origin.getId();\n }", "public String getOrgName() {\r\n return orgName;\r\n }", "String getSupplierID();", "public String getOrganizationName() {\n return (orgName);\n }", "public String getOrgName() {\n return orgName;\n }", "public int getAdjusterAgent(int agent_id) {\n int id = 0;\n try {\n agentAdjuster.setInt(1, agent_id);\n ResultSet resultset = agentAdjuster.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"adjuster_id\");\n System.out.println(\"Adjuster ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "@Override\n\tpublic String addApplicantDetails(ApplicationBean applicationBean)\n\t\t\tthrows UniversityException {\n\t\tString applicationID=null;\n\t\tapplicationID=dao.addApplicantDetails(applicationBean);\n\t\treturn applicationID;\n\t}", "public StrColumn getIprId() {\n return delegate.getColumn(\"ipr_id\", DelegatingStrColumn::new);\n }", "@Override\n\tpublic long getEsfOrganizationId() {\n\t\treturn _esfTournament.getEsfOrganizationId();\n\t}", "String getOrganization();", "Builder addSourceOrganization(String value);", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _employee.getCompanyId();\n\t}", "@Override\n\tpublic TbOrg getOwnOrg() {\n\t\treturn tbOrgMapper.getOwnOrg();\n\t}", "public final String getOrganisation() {\n return organisation;\n }", "Builder addSourceOrganization(Organization value);", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public Long getCreateOrgId() {\n return createOrgId;\n }", "public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }", "public String getIdentificationIssuingOrg() {\n return this.identificationIssuingOrg;\n }", "public Organisation getOrganisation() {\n\t\tif (null == organisation) {\n\t\t\t//Load the Organisation with the given orgPrefix\n\t\t\tString orgPrefix = ConfigurationFactory.getConfiguration(Configuration.DEPLOYMENT_CONFIG_HIERA_ORGANISATION_PREFIX);\n\t\t\tif (StringUtils.isBlank(orgPrefix)) {\n\t\t\t\tthrow new IllegalArgumentException(\"No Organisation prefix specified (\" + Configuration.DEPLOYMENT_CONFIG_HIERA_ORGANISATION_PREFIX + \")\");\n\t\t\t}\n\t\t\torganisation = ConfigurationFactory.getOrganisations().get(orgPrefix);\n\t\t\tif (organisation == null) {\n\t\t\t\tthrow new IllegalArgumentException(\"No Organisation (\" + ConfigurationFactory.ORGANISATIONS + \") found with prefix: \" + orgPrefix);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn organisation;\n\t}", "@Override\n\tpublic java.lang.String getEsfOrganization() {\n\t\treturn _esfShooterAffiliationChrono.getEsfOrganization();\n\t}", "public int getAgencyId() {\n return agencyId;\n }", "public String getOrganId() {\n return organId;\n }", "public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }", "public java.lang.String getOrgName() {\n return orgName;\n }", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();" ]
[ "0.7116024", "0.7012372", "0.65345895", "0.5838536", "0.5794299", "0.5794299", "0.5794299", "0.5794299", "0.5794299", "0.5794299", "0.5794299", "0.5794299", "0.5794299", "0.5794299", "0.5794299", "0.5794299", "0.5794299", "0.5730959", "0.5727882", "0.57092524", "0.5637374", "0.56196773", "0.56196773", "0.56196773", "0.56196773", "0.56196773", "0.5613511", "0.5589786", "0.5550453", "0.5545301", "0.54882735", "0.54837567", "0.54687864", "0.5431447", "0.540457", "0.53914434", "0.53838575", "0.537026", "0.5347295", "0.5347295", "0.5330544", "0.5330544", "0.53184056", "0.53177077", "0.5290423", "0.5223687", "0.5163805", "0.516271", "0.5139619", "0.51037705", "0.5099097", "0.5098998", "0.50863", "0.5082018", "0.50519806", "0.50519806", "0.5033503", "0.50280076", "0.50262886", "0.50262886", "0.5014028", "0.5013207", "0.49833697", "0.49743128", "0.49653152", "0.49630225", "0.49501273", "0.49445775", "0.49414608", "0.49390766", "0.49377495", "0.4919733", "0.49123427", "0.49090964", "0.48983452", "0.4892776", "0.4886701", "0.48834074", "0.48705178", "0.4869024", "0.486397", "0.48594528", "0.48534974", "0.48529467", "0.48461244", "0.48424843", "0.48424843", "0.48424843", "0.4831667", "0.4824598", "0.48075902", "0.48028868", "0.47993073", "0.47958723", "0.47819835", "0.47628438", "0.47598106", "0.47598106", "0.47598106", "0.47598106" ]
0.7946528
0
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.applier_org_id
public void setApplierOrgId(Long applierOrgId) { this.applierOrgId = applierOrgId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getApplierOrgId() {\n return applierOrgId;\n }", "public void setApplierOrgName(String applierOrgName) {\n this.applierOrgName = applierOrgName;\n }", "public String getApplierOrgName() {\n return applierOrgName;\n }", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "Builder addSourceOrganization(Organization value);", "Builder addSourceOrganization(String value);", "public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }", "public void setOrgId(String orgId);", "public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }", "@JsonSetter(\"orgId\")\r\n public void setOrgId (long value) { \r\n this.orgId = value;\r\n }", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "Builder addSourceOrganization(Organization.Builder value);", "public void setApplierWorkno(String applierWorkno) {\n this.applierWorkno = applierWorkno;\n }", "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public long getOrgId() {\r\n return orgId;\r\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public Long getOrgId() {\n return orgId;\n }", "public void setHC_Org2_ID (int HC_Org2_ID);", "public void setOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOrganization(arg0);\n }", "@Override\n protected String getExistingATGId(ItemData itemData) throws MappingException {\n Object existingConfiguredAttributesObj = getCurrentATGPropertyValue();\n\n if (existingConfiguredAttributesObj == null) {\n return null;\n }\n\n if (!(existingConfiguredAttributesObj instanceof Set<?>)) {\n String[] messageArguments = { \"existingConfiguredAttributesObj\", \"Set\" }; \n String message = formatMappingErrorMessage(INVALID_PROPERTY_TYPE, messageArguments);\n vlogError(message);\n\n String itemId = (String) getSiebelItem().getProperties().get(\n getSiebelParentItemId());\n getMappingService().processMappingError(\n getSiebelItem().getExportItemId(), message, itemId,\n getSiebelItemType(), null, null);\n return null;\n }\n @SuppressWarnings(\"unchecked\")\n Set<RepositoryItem> existingConfiguredAttributes = (Set<RepositoryItem>) existingConfiguredAttributesObj;\n\n // loop thru the configured attributes checking the origId\n String origId = (String) itemData.getProperties().get(SIEBEL_ORIG_ID);\n for (RepositoryItem configAttribute : existingConfiguredAttributes) {\n String repositoryOrigId = (String) configAttribute\n .getPropertyValue(ATG_ORIG_ID);\n if (repositoryOrigId != null && repositoryOrigId.equals(origId)) {\n // if find matching origId in a repository item return the id of that\n // repository item\n return configAttribute.getRepositoryId();\n }\n }\n\n return null;\n }", "public void setOrgId(long orgId) {\r\n this.orgId = orgId;\r\n }", "public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }", "public Integer getOrgId() {\n\t\treturn orgId;\n\t}", "@Override\n\tpublic void updateOrganizerInfo(Organizer organizer) {\n\t\tString sql = \"UPDATE organizer SET organizer_first_name = ?, organizer_last_name = ?, organizer_phone = ?, organizer_email = ? \" + \n\t\t\t\t\"WHERE organizer_id = ?\";\n\t\tjdbcTemplate.update(sql, organizer.getFirstName(), organizer.getLastName(), organizer.getPhone(), organizer.getEmail(), organizer.getOrganizerId());\n\t}", "@AutoEscape\n\tpublic String getOrgId();", "public void setAgencyId(int value) {\n this.agencyId = value;\n }", "@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }", "public Long getAssignOrgId() {\n return assignOrgId;\n }", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }", "@IcalProperty(pindex = PropertyInfoIndex.ORIGINATOR,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setOriginator(final String val) {\n originator = val;\n }", "@ApiModelProperty(value = \"Override the affiliate id given credit for rebills of this auto order\")\r\n public Integer getOverrideAffiliateId() {\r\n return overrideAffiliateId;\r\n }", "public final void setOrganisation(String value) {\n organisation = value;\n }", "public void setOrgExecutor(java.lang.String newOrgExecutor) {\n\torgExecutor = newOrgExecutor;\n}", "public void setOrgCustomer(java.lang.String newOrgCustomer) {\n\torgCustomer = newOrgCustomer;\n}", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }", "@JsonGetter(\"orgId\")\r\n public long getOrgId ( ) { \r\n return this.orgId;\r\n }", "public String getOrgId() {\n\t\treturn orgId;\n\t}", "public void setOrganizationId(long organizationId);", "public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }", "public void setOrgCode(String orgCode) {\n this.orgCode = orgCode == null ? null : orgCode.trim();\n }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "public void setApplierName(String applierName) {\n this.applierName = applierName;\n }", "Builder addCreator(Organization value);", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public IBusinessObject setCreatorIID(IIID creator)\n throws ORIOException;", "public long getOrganizationId();", "@Override\n\tpublic int updateOrgEmployee(Org_employee orgEmloyee) {\n\t\treturn 0;\n\t}", "public void setId_Organization(java.lang.String id_Organization) {\n this.id_Organization = id_Organization;\n }", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public java.lang.String getOrganizationId()\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_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 113: */ {\r\n/* 114:127 */ this.idOrganizacion = idOrganizacion;\r\n/* 115: */ }", "public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrganizacion = idOrganizacion;\r\n/* 97: */ }", "public static String setAssociationId(HttpServletRequest request, HttpServletResponse response) {\n Map<String, Object> requestParams = UtilHttp.getParameterMap(request);\n\n // check distributor\n String distriParam[] = { \"distributor_id\", \"distributorid\", \"distributor\" };\n String distributorId = null;\n\n for (int i = 0; i < distriParam.length; i++) {\n String param = distriParam[i];\n\n if (requestParams.containsKey(param)) {\n distributorId = (String) requestParams.get(param);\n break;\n } else if (requestParams.containsKey(param.toUpperCase())) {\n distributorId = (String) requestParams.get(param.toUpperCase());\n break;\n }\n }\n\n // check affiliate\n String affiliParam[] = { \"affiliate_id\", \"affiliateid\", \"affiliate\", \"affil\" };\n String affiliateId = null;\n\n for (int i = 0; i < affiliParam.length; i++) {\n String param = affiliParam[i];\n\n if (requestParams.containsKey(param)) {\n affiliateId = (String) requestParams.get(param);\n break;\n } else if (requestParams.containsKey(param.toUpperCase())) {\n affiliateId = (String) requestParams.get(param.toUpperCase());\n break;\n }\n }\n\n if (UtilValidate.isNotEmpty(distributorId)) {\n request.getSession().setAttribute(DISTRIBUTOR_ID, distributorId);\n updateAssociatedDistributor(request, response);\n }\n if (UtilValidate.isNotEmpty(affiliateId)) {\n request.getSession().setAttribute(AFFILIATE_ID, affiliateId);\n updateAssociatedAffiliate(request, response);\n }\n\n return \"success\";\n }", "public interface OrgIdStrategy {\n int getOrgId(String resourceId );\n}", "public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }", "public BigDecimal getOrgId() {\n return orgId;\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }", "public void setOrgCode(Integer orgCode) {\n\t\tthis.orgCode = orgCode;\n\t}", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}" ]
[ "0.718364", "0.675886", "0.6238632", "0.56308264", "0.56308264", "0.56308264", "0.56308264", "0.56308264", "0.56308264", "0.56308264", "0.56308264", "0.56308264", "0.56308264", "0.56308264", "0.56308264", "0.56308264", "0.5523532", "0.55115074", "0.54770917", "0.5335213", "0.5335213", "0.52968645", "0.5271174", "0.52231956", "0.5149266", "0.5129094", "0.51076984", "0.50359505", "0.4988621", "0.4974733", "0.49726537", "0.49726537", "0.49726537", "0.49726537", "0.49726537", "0.49655062", "0.49511433", "0.4939443", "0.4924435", "0.49118185", "0.48992112", "0.48871875", "0.4885991", "0.48710445", "0.48680574", "0.48599187", "0.4836571", "0.48302594", "0.48302594", "0.48302594", "0.48302594", "0.48302594", "0.48302594", "0.48302594", "0.48302594", "0.48302594", "0.48302594", "0.48302594", "0.48302594", "0.48302594", "0.48253256", "0.4824783", "0.48191068", "0.48124757", "0.48073852", "0.48052353", "0.47907394", "0.47898462", "0.47892484", "0.47659177", "0.4764888", "0.4764888", "0.47574604", "0.47574604", "0.47489634", "0.47256267", "0.47194898", "0.47194898", "0.4715705", "0.47122318", "0.47093013", "0.47061944", "0.47026008", "0.46819097", "0.46793276", "0.46779034", "0.46762425", "0.46755165", "0.4664315", "0.46499506", "0.4640838", "0.4635367", "0.4634502", "0.4631585", "0.4613304", "0.4613304", "0.4613304", "0.4613304", "0.4613304", "0.46118298" ]
0.741902
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.receiver_name
public String getReceiverName() { return receiverName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getReceiverLastName() {\r\n return receiverLastName;\r\n }", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public String getReceiver() {\n return Receiver;\n }", "public java.lang.String getReceiverMiddleName() {\r\n return receiverMiddleName;\r\n }", "public java.lang.String getReceiverLastName2() {\r\n return receiverLastName2;\r\n }", "public java.lang.String getReceiverFirstName() {\r\n return receiverFirstName;\r\n }", "public String getReceiverId() {\n return receiverId;\n }", "public String getReceiverUsername() {\n\t\treturn recieverUsername;\n\n\t}", "public String getReceiveName() {\n return receiveName;\n }", "public String getReceiver() {\n Object ref = receiver_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getReceiver() {\n\t\tif (getSwiftMessage() != null && getSwiftMessage().getBlock2() != null) {\n\t\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\t\tif (b2.isInput()) {\n\t\t\t\treturn ((SwiftBlock2Input)b2).getReceiverAddress();\n\t\t\t} else {\n\t\t\t\treturn ((SwiftBlock2Output)b2).getMIRLogicalTerminal();\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getReceiver() {\n Object ref = receiver_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n }\n }", "public DataBeadReceiver getReceiver() {\r\n\t\treturn receiver;\r\n\t}", "public void setReceiverLastName(java.lang.String receiverLastName) {\r\n this.receiverLastName = receiverLastName;\r\n }", "protected String getApplyReceiverText(String receiver) {\n return receiver;\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public String getCastReceiver() {\n return params.getCastReceiver();\n }", "public int getReceiverid() {\n return receiverid_;\n }", "String getReceiver();", "public java.lang.String getReceiveAgentName() {\r\n return receiveAgentName;\r\n }", "java.lang.String getSenderName();", "public void setReceiver(String receiver) {\n Receiver = receiver;\n }", "public void setReceiverLastName2(java.lang.String receiverLastName2) {\r\n this.receiverLastName2 = receiverLastName2;\r\n }", "public java.lang.String getReceiverEmail() {\r\n return receiverEmail;\r\n }", "public String getReceiverAreaName() {\n return receiverAreaName;\n }", "public void setReceiverFirstName(java.lang.String receiverFirstName) {\r\n this.receiverFirstName = receiverFirstName;\r\n }", "protected String getRpcReceiverDeclaration(String rpcReceiver) {\n return \"\";\n }", "public java.lang.String getReceiverQualifier() {\r\n return receiverQualifier;\r\n }", "public void setReceiverMiddleName(java.lang.String receiverMiddleName) {\r\n this.receiverMiddleName = receiverMiddleName;\r\n }", "@Override\n public String getLenderName() {\n return lender.getUsername();\n }", "@JsonProperty(\"rangerAuditRole\")\n public String getRangerAuditRole() {\n return rangerAuditRole;\n }", "public Channel.Receiver getReceiver(String sName);", "public java.lang.String getReceiverPhone() {\r\n return receiverPhone;\r\n }", "public com.google.protobuf.ByteString\n getReceiverBytes() {\n Object ref = receiver_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n receiver_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static Receiver getReceiver() {\n return receiver;\n }", "@Override\n\t@Column(name = \"leadTypeName\", length = 5, nullable = false)\n\tpublic String getName()\n\t{\n\t\treturn super.getName();\n\t}", "public java.lang.Integer getReceiverAccountNumber() {\r\n return receiverAccountNumber;\r\n }", "public com.google.protobuf.ByteString\n getReceiverBytes() {\n Object ref = receiver_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n receiver_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getReceiverAddress() {\n return receiverAddress;\n }", "public java.lang.String getSenderLastName2() {\r\n return senderLastName2;\r\n }", "public String getSenderName() {\n return getStringProperty(SENDER_NAME_KEY);\n }", "public java.lang.String getReceiverAddress()\n {\n return receiverAddress;\n }", "public java.lang.String getReceiverAddress() {\n return receiverAddress;\n }", "protected String getRpcReceiverName(String content) {\n return getDefaultRpcReceiver();\n }", "@Override\n public String toString() {\n return senderName;\n }", "public java.lang.String getReceiverAddress() {\r\n return receiverAddress;\r\n }", "public String getNameofRenter(){\n\n\t\treturn nameofRenter;\n\t}", "public java.lang.String getSenderLastName() {\r\n return senderLastName;\r\n }", "public java.lang.String getReceiverAddress2() {\r\n return receiverAddress2;\r\n }", "@Override\n\tpublic String getResTitleName() {\n\t\treturn \"招待:\"+receivePartner;\n\t}", "public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }", "public String getActualFromStop() {\r\n if (selectedEntry != null) {\r\n Stop stop = ServiceFunctions.getStopByName(fromStop, selectedEntry.getRun().getRoute().getStops());\r\n return stop.getName();\r\n }\r\n return \"\";\r\n }", "int getReceiverid();", "public String getFromSenderName() {\n return fromSenderName;\n }", "public String getName(){\n\t\treturn this.tournamentName;\n\t}", "public String findPublicKey(String receiverName) {\n String publicKey = \"\";\n String sql = \"SELECT * FROM users WHERE user_name = ?\";\n try {\n this.statement = connection.prepareStatement(sql);\n this.statement.setString(1, receiverName);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n publicKey = this.resultSet.getString(\"pubkey\");\n }\t\n this.statement.close();\n } catch (SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return publicKey;\n }", "public Subscriber getSubscriberReceiver() {\n return this.subscriberReceiver;\n }", "public void setReceiverId(String receiverId) {\n this.receiverId = receiverId;\n }", "private void getAgentName() {\n DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();\n DatabaseReference agentRef = rootRef.child(\"Properties\").child(globals.chosenProp).child(\"agent\");\n\n agentRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n agentName = dataSnapshot.getValue().toString();\n }\n getAgentEmail();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) { }\n });\n }", "public String getReceiverPhone() {\n return receiverPhone;\n }", "public void setReceiverId(java.lang.String receiverId) {\r\n this.receiverId = receiverId;\r\n }", "public String getReceiverMobile() {\n return receiverMobile;\n }", "public void setReceiveAgentName(java.lang.String receiveAgentName) {\r\n this.receiveAgentName = receiveAgentName;\r\n }", "public String getReceiverAddress() {\n return receiverAddress;\n }", "public String roleName() {\n return this.roleName;\n }", "@Override\n public String getLName() {\n\n if(this.lName == null){\n\n this.lName = TestDatabase.getInstance().getClientField(token, id, \"lName\");\n }\n\n return lName;\n }", "public String getRname() {\n return rname;\n }", "protected String getRecipient() {\n return parameterService.getParameterValueAsString(AwardDocument.class,\n Constants.REPORT_TRACKING_NOTIFICATIONS_BATCH_RECIPIENT);\n }", "public Long getReceiverAreaId() {\n return receiverAreaId;\n }", "public void setReceiverAreaName(String receiverAreaName) {\n this.receiverAreaName = receiverAreaName;\n }", "public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}", "public List<ReceiverEntity> obtenerReceivers(){\r\n List<ReceiverEntity> receivers = persistence.findAll();\r\n return receivers;\r\n }", "public java.lang.String getSenderHeaderName()\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(SENDERHEADERNAME$24, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "String getDestinationName();", "public java.lang.String getGPSReceiverDetailsID()\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getConsumerID(WSMessageConsumerDTO consumerDTO){\n String id = consumerDTO.getReceiverId();\n return id;\n }", "public java.lang.String getReceiverCity() {\r\n return receiverCity;\r\n }", "public java.lang.String getReceiverState() {\r\n return receiverState;\r\n }", "public void setReceiverPhone(java.lang.String receiverPhone) {\r\n this.receiverPhone = receiverPhone;\r\n }", "public String getRoleName() {\r\n return roleName;\r\n }", "public String getRoleName() {\r\n return roleName;\r\n }", "String getRoleName();", "public java.lang.String getReceiveAgentAbbreviation() {\r\n return receiveAgentAbbreviation;\r\n }", "public String getRemoteName() {\n\t\treturn this.remoteName;\n\t}", "@java.lang.Override\n public java.lang.String getSeller() {\n java.lang.Object ref = seller_;\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 seller_ = s;\n return s;\n }\n }", "public void setReceiverEmail(java.lang.String receiverEmail) {\r\n this.receiverEmail = receiverEmail;\r\n }", "public java.lang.String getRoleName()\n {\n return roleName;\n }", "public java.lang.String getSenderMiddleName() {\r\n return senderMiddleName;\r\n }", "public String getName() {\n return (\"(\" + this.source.getName() + \",\" + this.destination.getName() + \")\");\n }", "@ApiModelProperty(value = \"This field contains sender's last name\")\n public String getSenderLastName() {\n return senderLastName;\n }", "protected String getListenerMethodName(Message originalMessage, Object extractedMessage) {\n\t\treturn getDefaultListenerMethod();\n\t}", "public java.lang.String getSeller() {\n java.lang.Object ref = seller_;\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 seller_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getSeller();", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }" ]
[ "0.6242421", "0.6142317", "0.60744154", "0.602837", "0.602837", "0.5989675", "0.59720385", "0.59005946", "0.58628136", "0.5802894", "0.57637876", "0.57601774", "0.5757661", "0.5748265", "0.56927586", "0.568942", "0.56729805", "0.55699277", "0.55625635", "0.55508274", "0.5545734", "0.5540249", "0.5534279", "0.55029386", "0.54981136", "0.5457551", "0.53616965", "0.5358928", "0.525104", "0.52395374", "0.5237941", "0.52177674", "0.521275", "0.52032495", "0.51910126", "0.51903635", "0.5188304", "0.5163792", "0.5148144", "0.5139986", "0.5126199", "0.508574", "0.5077008", "0.5054511", "0.5051495", "0.5047649", "0.5045112", "0.5038862", "0.50160635", "0.5000601", "0.49802172", "0.49787384", "0.4963025", "0.49479932", "0.4945077", "0.49383384", "0.4909672", "0.4909033", "0.4900062", "0.48964408", "0.48904386", "0.48900533", "0.48889643", "0.48844177", "0.48803785", "0.48777738", "0.48550066", "0.48532984", "0.48477763", "0.4846889", "0.4844067", "0.48360822", "0.48112795", "0.48026118", "0.4798321", "0.47916844", "0.47914055", "0.47893637", "0.47885063", "0.47882196", "0.47836322", "0.4779394", "0.47754857", "0.47754857", "0.47718754", "0.47717923", "0.4766094", "0.47645232", "0.47587776", "0.4755913", "0.47483847", "0.47482836", "0.47478598", "0.47453356", "0.47438633", "0.4742889", "0.4734093", "0.4734093", "0.4734093" ]
0.6731228
1
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.receiver_name
public void setReceiverName(String receiverName) { this.receiverName = receiverName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReceiver(String receiver) {\n Receiver = receiver;\n }", "public void setReceiverLastName(java.lang.String receiverLastName) {\r\n this.receiverLastName = receiverLastName;\r\n }", "public void setReceiver(Receiver receiver) {\n\t this.receiver = receiver;\n\t }", "public void setReceiver(String receiver) {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthis.m = new SwiftMessage(true);\n\t\t}\n\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\tif (b2.isInput()) {\n\t\t\t((SwiftBlock2Input)b2).setReceiver(receiver);\n\t\t}\n\t}", "public void setReceiverFirstName(java.lang.String receiverFirstName) {\r\n this.receiverFirstName = receiverFirstName;\r\n }", "public void setReceiver (Receiver receiver) {\n\t\t_receiver = receiver;\n\t}", "public String getReceiverName() {\n return receiverName;\n }", "public String getReceiverName() {\n return receiverName;\n }", "public void setReceiverId(java.lang.String receiverId) {\r\n this.receiverId = receiverId;\r\n }", "public void setReceiverPhone(java.lang.String receiverPhone) {\r\n this.receiverPhone = receiverPhone;\r\n }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public void setReceiverEmail(java.lang.String receiverEmail) {\r\n this.receiverEmail = receiverEmail;\r\n }", "public void setReceiverPhone(String receiverPhone) {\n this.receiverPhone = receiverPhone;\n }", "public void setReceiverId(String receiverId) {\n this.receiverId = receiverId;\n }", "public void setReceiverMiddleName(java.lang.String receiverMiddleName) {\r\n this.receiverMiddleName = receiverMiddleName;\r\n }", "public void setReceiverLastName2(java.lang.String receiverLastName2) {\r\n this.receiverLastName2 = receiverLastName2;\r\n }", "public void setReceiveAgentName(java.lang.String receiveAgentName) {\r\n this.receiveAgentName = receiveAgentName;\r\n }", "public void setReceiveName(String receiveName) {\n this.receiveName = receiveName == null ? null : receiveName.trim();\n }", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }", "public void setReceiverMobile(String receiverMobile) {\n this.receiverMobile = receiverMobile;\n }", "public void setReceiverAddress(java.lang.String _receiverAddress)\n {\n receiverAddress = _receiverAddress;\n }", "public Builder setReceiver(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n receiver_ = value;\n onChanged();\n return this;\n }", "public void setReceiverAddress(String receiverAddress) {\n this.receiverAddress = receiverAddress;\n }", "public String getReceiver() {\n return Receiver;\n }", "public String getReceiverId() {\n return receiverId;\n }", "public void setReceiverAddress(java.lang.String receiverAddress) {\r\n this.receiverAddress = receiverAddress;\r\n }", "public void setReceiverAreaName(String receiverAreaName) {\n this.receiverAreaName = receiverAreaName;\n }", "@IcalProperty(pindex = PropertyInfoIndex.ORIGINATOR,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setOriginator(final String val) {\n originator = val;\n }", "public DataBeadReceiver getReceiver() {\r\n\t\treturn receiver;\r\n\t}", "public void setReceiverCity(java.lang.String receiverCity) {\r\n this.receiverCity = receiverCity;\r\n }", "public void setReceiverCity(String receiverCity) {\n this.receiverCity = receiverCity;\n }", "public java.lang.String getReceiverLastName() {\r\n return receiverLastName;\r\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setReceiverAddress(java.lang.String value) {\n validate(fields()[19], value);\n this.receiverAddress = value;\n fieldSetFlags()[19] = true;\n return this;\n }", "public Builder receiver(String receiver) {\n\t\t\tentries.removeAll(getEntriesContainingKey(entries, MessageEntryKey.Receiver.toString()));\n\t\t\tentries.add(new AbstractMap.SimpleImmutableEntry<String, String>(MessageEntryKey.Receiver.toString(), receiver));\n\t\t\treturn this;\n\t\t}", "public int getReceiverid() {\n return receiverid_;\n }", "protected String getApplyReceiverText(String receiver) {\n return receiver;\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public DelayData setReceiver(DataBeadReceiver receiver) {\r\n\t\tthis.receiver = receiver;\r\n\t\treturn this;\r\n\t}", "public void setReceiverAddress2(java.lang.String receiverAddress2) {\r\n this.receiverAddress2 = receiverAddress2;\r\n }", "public void setReceiverState(java.lang.String receiverState) {\r\n this.receiverState = receiverState;\r\n }", "public void setSchedulerName(String schedulerName)\r\n/* 20: */ {\r\n/* 21: 58 */ this.schedulerName = schedulerName;\r\n/* 22: */ }", "public java.lang.String getReceiverFirstName() {\r\n return receiverFirstName;\r\n }", "public void setRangerAuditRole(String rangerAuditRole) {\n this.rangerAuditRole = rangerAuditRole;\n }", "public void setReceiveDate (java.sql.Date receiveDate) {\r\n\t\tthis.receiveDate = receiveDate;\r\n\t}", "public void setReceivalDate(String receivalDate){\n\t\tthis.receivalDate = \"\";\n\t\tthis.receivalDate += receivalDate;\n\t}", "public String getReceiverUsername() {\n\t\treturn recieverUsername;\n\n\t}", "@Override\n public void receiverAddressChanged(String receiver) {\n }", "public java.lang.String getReceiverMiddleName() {\r\n return receiverMiddleName;\r\n }", "public Receiver(String name) {\n super(name);\n }", "public void setReceiverAccountNumber(java.lang.Integer receiverAccountNumber) {\r\n this.receiverAccountNumber = receiverAccountNumber;\r\n }", "private static Node populateReceiver(Element receiver_Element, ReceiverBean receiverBean, Document doc) {\r\n\r\n\t\t// set id attribute\r\n\r\n\t\treceiver_Element\r\n\t\t\t\t.appendChild(getReceiverElements(doc, receiver_Element, \"receiver_id\", receiverBean.getReceiverId()));\r\n\t\t// create name element\r\n\t\treceiver_Element\r\n\t\t\t\t.appendChild(getReceiverElements(doc, receiver_Element, \"first_name\", receiverBean.getFirstName()));\r\n\r\n\t\t// create age element\r\n\t\treceiver_Element\r\n\t\t\t\t.appendChild(getReceiverElements(doc, receiver_Element, \"last_name\", receiverBean.getLastName()));\r\n\r\n\t\t// create role element\r\n\t\treceiver_Element.appendChild(getReceiverElements(doc, receiver_Element, \"file\", receiverBean.getFile()));\r\n\r\n\t\t// create gender element\r\n\t\treceiver_Element.appendChild(getReceiverElements(doc, receiver_Element, \"file_md5\", receiverBean.getFileMd5()));\r\n\r\n\t\treturn receiver_Element;\r\n\t}", "public String getReceiveName() {\n return receiveName;\n }", "public void setReceiveAgentID(java.lang.String receiveAgentID) {\r\n this.receiveAgentID = receiveAgentID;\r\n }", "@JsonProperty(\"rangerAuditRole\")\n public String getRangerAuditRole() {\n return rangerAuditRole;\n }", "@Override\n\tpublic String updateATourneyName() {\n\t\treturn null;\n\t}", "public void setSender(String sender){\n this.sender = sender;\n }", "public void setSenderLastName(java.lang.String senderLastName) {\r\n this.senderLastName = senderLastName;\r\n }", "public void setReceiverCountry(java.lang.String receiverCountry) {\r\n this.receiverCountry = receiverCountry;\r\n }", "public java.lang.String getReceiverLastName2() {\r\n return receiverLastName2;\r\n }", "public void setReceivedSerialNumber(String receivedSerialNumber) ;", "public void setSenderName(String senderName) {\r\n\t\tthis.senderName = senderName;\r\n\t}", "public void setReceiverAreaId(Long receiverAreaId) {\n this.receiverAreaId = receiverAreaId;\n }", "public void setReceiverAreaType(String receiverAreaType) {\n this.receiverAreaType = receiverAreaType;\n }", "public java.lang.String getReceiveAgentName() {\r\n return receiveAgentName;\r\n }", "public void setSeller(String seller) {\n this.seller = seller;\n }", "public void setSeller(String seller) {\n this.seller = seller;\n }", "@Override\n\tpublic void setSellerName(java.lang.String sellerName) {\n\t\t_buySellProducts.setSellerName(sellerName);\n\t}", "public void setReceivePhone(String receivePhone) {\n this.receivePhone = receivePhone == null ? null : receivePhone.trim();\n }", "public void setSenderLastName2(java.lang.String senderLastName2) {\r\n this.senderLastName2 = senderLastName2;\r\n }", "public final void setReceivingOrganisation(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String receivingorganisation)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.ReceivingOrganisation.toString(), receivingorganisation);\r\n\t}", "public void setReceiverQualifier(java.lang.String receiverQualifier) {\r\n this.receiverQualifier = receiverQualifier;\r\n }", "public java.lang.String getReceiverEmail() {\r\n return receiverEmail;\r\n }", "protected String getRpcReceiverDeclaration(String rpcReceiver) {\n return \"\";\n }", "public void setOutputReceiver(Consumer<String> receiver) {\n out = receiver;\n }", "public void setReceiverZip(String receiverZip) {\n this.receiverZip = receiverZip;\n }", "public void setRname(String rname) {\n this.rname = rname == null ? null : rname.trim();\n }", "public String getReceiverAreaName() {\n return receiverAreaName;\n }", "public void setReceiveFile(String receiveFile) {\n this.receiveFile = receiveFile == null ? null : receiveFile.trim();\n }", "@Override\n public void setRole(String roleName) {\n this.role = roleName;\n }", "@Override\n public String getLenderName() {\n return lender.getUsername();\n }", "public void setReceivers(nl.webservices.www.soap.InsolvencyReceivers receivers) {\n this.receivers = receivers;\n }", "public Builder setReceiverid(int value) {\n bitField0_ |= 0x00000004;\n receiverid_ = value;\n onChanged();\n return this;\n }", "public String getReceiver() {\n Object ref = receiver_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public void setDealerName(String dealerName);", "public void setReceived(String received) throws IllegalArgumentException,\n SipParseException {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \n\t\t\t\"setReceived() \" + received);\n Via via=(Via)sipHeader;\n \n if (received==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: received is null\");\n else \n via.setReceived(received);\n }", "public String getReceiver() {\n Object ref = receiver_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n }\n }", "public void setCreatorName(String creatorName) {\n this.creatorName = creatorName;\n }", "private void setChangeNameRelay(ChangeName.RelayToFriend value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 20;\n }", "public final void setReceivingOrganisation(java.lang.String receivingorganisation)\r\n\t{\r\n\t\tsetReceivingOrganisation(getContext(), receivingorganisation);\r\n\t}", "public void setName(String rname) {\n name = rname;\n }", "public void setRoleName(String paramRole) {\n\tstrRoleName = paramRole;\n }", "public void setSender(String sender) {\n Sender = sender;\n }", "protected String getRpcReceiverName(String content) {\n return getDefaultRpcReceiver();\n }", "public void setCreatorName(java.lang.String creatorName) {\n this.creatorName = creatorName;\n }", "public void setSenderName(final String value) {\n setProperty(SENDER_NAME_KEY, value);\n }", "public void setCreatorName(String creatorName) {\n this.creatorName = creatorName == null ? null : creatorName.trim();\n }", "public void setCreatorName(String creatorName) {\n this.creatorName = creatorName == null ? null : creatorName.trim();\n }", "public void setGPSReceiverDetailsID(java.lang.String gpsReceiverDetailsID)\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GPSRECEIVERDETAILSID$16);\r\n }\r\n target.setStringValue(gpsReceiverDetailsID);\r\n }\r\n }" ]
[ "0.65772665", "0.6071276", "0.6029563", "0.599552", "0.5976729", "0.5935279", "0.58954257", "0.58954257", "0.5832755", "0.5811507", "0.58067375", "0.5710627", "0.5703159", "0.569564", "0.56551814", "0.5585829", "0.55615", "0.55272377", "0.5481403", "0.5465127", "0.54270697", "0.5418468", "0.5413541", "0.53760314", "0.53245705", "0.53132147", "0.52824605", "0.5241728", "0.5233154", "0.51710117", "0.5158851", "0.51337135", "0.51180786", "0.5105291", "0.51008034", "0.5096816", "0.50925934", "0.5079054", "0.49978375", "0.49939615", "0.49841815", "0.4967535", "0.4965272", "0.4963283", "0.49538782", "0.4944678", "0.4930916", "0.49014583", "0.48827314", "0.48398712", "0.4810486", "0.4788875", "0.47832686", "0.4778977", "0.47552013", "0.47426045", "0.47412086", "0.47384113", "0.47273025", "0.47109884", "0.46990418", "0.46940258", "0.46908888", "0.4679256", "0.4673247", "0.46517402", "0.46517402", "0.46491033", "0.4645282", "0.46357292", "0.46352118", "0.4631858", "0.46236938", "0.46182063", "0.46165255", "0.4608484", "0.46065742", "0.46016797", "0.4600357", "0.45862174", "0.45820966", "0.45726353", "0.45675027", "0.45625797", "0.45561662", "0.45539415", "0.45463535", "0.4538052", "0.45356306", "0.45336762", "0.4522509", "0.4515577", "0.45132035", "0.45111325", "0.45074484", "0.45001468", "0.44972748", "0.44972748", "0.44875544" ]
0.6682304
1
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.receiver_id
public String getReceiverId() { return receiverId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getReceiverid() {\n return receiverid_;\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "int getReceiverid();", "public void setReceiverId(String receiverId) {\n this.receiverId = receiverId;\n }", "public int getReceiverID(int messageID){\n Message message = allmessage.get(messageID);\n return message.getGetterid();\n }", "public java.lang.Integer getReceiverAccountNumber() {\r\n return receiverAccountNumber;\r\n }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public String getConsumerID(WSMessageConsumerDTO consumerDTO){\n String id = consumerDTO.getReceiverId();\n return id;\n }", "public Integer getReceiveid() {\n return receiveid;\n }", "public Long getReceiverAreaId() {\n return receiverAreaId;\n }", "public void setReceiverId(java.lang.String receiverId) {\r\n this.receiverId = receiverId;\r\n }", "public DataBeadReceiver getReceiver() {\r\n\t\treturn receiver;\r\n\t}", "public String getReceiver() {\n return Receiver;\n }", "@java.lang.Override\n public long getRecipientId() {\n return recipientId_;\n }", "public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }", "public int getRecipientId() {\r\n\t\treturn recipientId;\r\n\t}", "@java.lang.Override\n public long getRecipientId() {\n return recipientId_;\n }", "public String getReceiverName() {\n return receiverName;\n }", "public String getReceiverName() {\n return receiverName;\n }", "public String getReceiver() {\n\t\tif (getSwiftMessage() != null && getSwiftMessage().getBlock2() != null) {\n\t\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\t\tif (b2.isInput()) {\n\t\t\t\treturn ((SwiftBlock2Input)b2).getReceiverAddress();\n\t\t\t} else {\n\t\t\t\treturn ((SwiftBlock2Output)b2).getMIRLogicalTerminal();\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String recipientId() {\n return recipientId;\n }", "public void setReceiver(String receiver) {\n Receiver = receiver;\n }", "public java.lang.String getGPSReceiverDetailsID()\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "java.lang.String getSenderId();", "public static Receiver getReceiver() {\n return receiver;\n }", "public void setReceiverAreaId(Long receiverAreaId) {\n this.receiverAreaId = receiverAreaId;\n }", "public void setReceiverAccountNumber(java.lang.Integer receiverAccountNumber) {\r\n this.receiverAccountNumber = receiverAccountNumber;\r\n }", "public int getRaterId();", "public Integer getSellerId() {\n return sellerId;\n }", "public String getCreatorId() {\n return this.CreatorId;\n }", "public String getReceiver() {\n Object ref = receiver_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public java.lang.String getReceiverEmail() {\r\n return receiverEmail;\r\n }", "public Long getSellerId() {\n return sellerId;\n }", "public Long getSellerId() {\n return sellerId;\n }", "public String getReceiver() {\n Object ref = receiver_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n }\n }", "public long getRId() {\r\n return rId;\r\n }", "public int getSenderId() {\n return senderId;\n }", "public ReceiverEntity obtenerReceiver(Long id){\r\n ReceiverEntity receiver = persistence.find(id);\r\n if(receiver == null){\r\n throw new IllegalArgumentException(\"No existe en la base de datos\");\r\n }\r\n return receiver;\r\n }", "public String getReceiverUsername() {\n\t\treturn recieverUsername;\n\n\t}", "public Integer getToId() {\n return toId;\n }", "public int getRtoId() {\n\t\treturn id;\n\t}", "public Builder setReceiverid(int value) {\n bitField0_ |= 0x00000004;\n receiverid_ = value;\n onChanged();\n return this;\n }", "@JsonProperty\n public Integer getOriginatorUserId() {\n return originator.getUserId();\n }", "public String getCastReceiver() {\n return params.getCastReceiver();\n }", "public void setReceiver(Receiver receiver) {\n\t this.receiver = receiver;\n\t }", "public Integer getRoleid() {\r\n return roleid;\r\n }", "public void setReceiver (Receiver receiver) {\n\t\t_receiver = receiver;\n\t}", "public ReceiverIdentifier getRecipient() {\n\n // Get the recipient of the missive document\n return this.missiveHeader.getRcv();\n }", "String getCreatorId();", "public UUID getR_ID()\n\t{\n\t\treturn this.r_id;\n\t}", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public Integer getPropertySellerId() {\n\t\treturn propertySellerId;\n\t}", "public Subscriber getSubscriberReceiver() {\n return this.subscriberReceiver;\n }", "public void setReceiveid(Integer receiveid) {\n this.receiveid = receiveid;\n }", "public Integer getOutboundId() {\n return outboundId;\n }", "public Long getRoleid() {\n return roleid;\n }", "public FIPA.AgentID[] getReceiversAgentID() {\n int numberReceivers = receivers.size();\n FIPA.AgentID allReceivers[] = new FIPA.AgentID[numberReceivers];\n Enumeration recs = receivers.elements();\n int count = 0;\n while (recs.hasMoreElements()) {\n allReceivers[count] = ((FIPA_AID_Address) recs.nextElement()).getAgentID();\n count++;\n }\n return (allReceivers);\n }", "long getDestinationId();", "public Integer getRoleId() {\r\n return roleId;\r\n }", "public List<ReceiverEntity> obtenerReceivers(){\r\n List<ReceiverEntity> receivers = persistence.findAll();\r\n return receivers;\r\n }", "public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }", "public int getIdTo() {\n return idTo;\n }", "public com.google.protobuf.ByteString\n getReceiverBytes() {\n Object ref = receiver_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n receiver_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public org.apache.xmlbeans.XmlIDREF xgetGPSReceiverDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSRECEIVERDETAILSID$16);\r\n return target;\r\n }\r\n }", "public java.lang.String getPartnerCustomerReceiveNumber() {\r\n return partnerCustomerReceiveNumber;\r\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "@Override\n\tpublic String getListenerId()\n\t{\n\t\treturn ID;\n\t}", "public java.lang.String getReceiverPhone() {\r\n return receiverPhone;\r\n }", "public Integer getRecId() {\n return recId;\n }", "public int getReceiveObject() {\n\t\treturn receiveObject;\n\t}", "public Long getRoleId() {\r\n return roleId;\r\n }", "public Integer getRoleId() {\n\t\treturn roleId;\n\t}", "public void setReceiveAgentID(java.lang.String receiveAgentID) {\r\n this.receiveAgentID = receiveAgentID;\r\n }", "public com.google.protobuf.ByteString\n getReceiverBytes() {\n Object ref = receiver_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n receiver_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getReceiverAddress() {\n return receiverAddress;\n }", "@Override\n\tpublic long getResumeId() {\n\t\treturn _candidate.getResumeId();\n\t}", "public void setReceiverEmail(java.lang.String receiverEmail) {\r\n this.receiverEmail = receiverEmail;\r\n }", "public java.lang.String getReceiverAddress() {\n return receiverAddress;\n }", "String getReceiver();", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name = \"leadTypeId\")\n\tpublic Long getId()\n\t{\n\t\treturn super.getId();\n\t}", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public java.lang.String getToId() {\n return toId;\n }", "public java.lang.String getReceiverAddress()\n {\n return receiverAddress;\n }", "public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}", "public int getR_id() { return r_id; }", "public long getIdToChat(String inviteLink){\n return getLongValue(inviteLink);\n }", "public int getId_traveller() {\r\n return id_traveller;\r\n }" ]
[ "0.70851684", "0.70703405", "0.692128", "0.68794703", "0.6299027", "0.6076392", "0.60578954", "0.60255456", "0.6025135", "0.59958696", "0.597952", "0.5967141", "0.5954432", "0.57585275", "0.5642889", "0.55563074", "0.5505571", "0.55036175", "0.5494617", "0.546632", "0.546632", "0.5450092", "0.54282135", "0.5419797", "0.5343884", "0.52701634", "0.5244612", "0.523731", "0.5236648", "0.52194715", "0.5211161", "0.519549", "0.51828766", "0.517165", "0.51662713", "0.51662713", "0.5161363", "0.5160397", "0.51471037", "0.5114686", "0.50990933", "0.5090955", "0.50732344", "0.5069253", "0.50566554", "0.5056029", "0.5049593", "0.5044054", "0.50366294", "0.5033723", "0.5032142", "0.50209296", "0.5020791", "0.5020791", "0.50187564", "0.5008509", "0.50053066", "0.49916077", "0.49879658", "0.49847043", "0.49817833", "0.4967515", "0.4961053", "0.49583918", "0.49438244", "0.4938344", "0.49285325", "0.49245253", "0.49244484", "0.49244484", "0.49244484", "0.49244484", "0.49244484", "0.49244484", "0.49244484", "0.49244484", "0.4922359", "0.4902354", "0.49003598", "0.48987618", "0.48891056", "0.4885603", "0.4883732", "0.48741782", "0.48700112", "0.48698694", "0.48649144", "0.4864846", "0.48586726", "0.48556024", "0.4854642", "0.4854642", "0.4854642", "0.4854642", "0.48439622", "0.4839466", "0.48374397", "0.48324928", "0.48317537", "0.48281312" ]
0.69595206
2
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.receiver_id
public void setReceiverId(String receiverId) { this.receiverId = receiverId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public void setReceiverId(java.lang.String receiverId) {\r\n this.receiverId = receiverId;\r\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public String getReceiverId() {\n return receiverId;\n }", "public void setReceiver(String receiver) {\n Receiver = receiver;\n }", "public void setReceiver(Receiver receiver) {\n\t this.receiver = receiver;\n\t }", "public void setReceiver (Receiver receiver) {\n\t\t_receiver = receiver;\n\t}", "public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "public Builder setReceiverid(int value) {\n bitField0_ |= 0x00000004;\n receiverid_ = value;\n onChanged();\n return this;\n }", "public void setReceiverAreaId(Long receiverAreaId) {\n this.receiverAreaId = receiverAreaId;\n }", "public void setReceiver(String receiver) {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthis.m = new SwiftMessage(true);\n\t\t}\n\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\tif (b2.isInput()) {\n\t\t\t((SwiftBlock2Input)b2).setReceiver(receiver);\n\t\t}\n\t}", "public void setReceiverAccountNumber(java.lang.Integer receiverAccountNumber) {\r\n this.receiverAccountNumber = receiverAccountNumber;\r\n }", "public void setReceiverPhone(String receiverPhone) {\n this.receiverPhone = receiverPhone;\n }", "public void setReceiverPhone(java.lang.String receiverPhone) {\r\n this.receiverPhone = receiverPhone;\r\n }", "public void setReceiverEmail(java.lang.String receiverEmail) {\r\n this.receiverEmail = receiverEmail;\r\n }", "public void setReceiveid(Integer receiveid) {\n this.receiveid = receiveid;\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public void setReceiveAgentID(java.lang.String receiveAgentID) {\r\n this.receiveAgentID = receiveAgentID;\r\n }", "public void setPrimaryKey( int mailId, int receiverId)\n \n {\n setMailId(mailId);\n setReceiverId(receiverId);\n }", "public Long getReceiverAreaId() {\n return receiverAreaId;\n }", "public void setReceiverMobile(String receiverMobile) {\n this.receiverMobile = receiverMobile;\n }", "int getReceiverid();", "public void setReceiverAddress(String receiverAddress) {\n this.receiverAddress = receiverAddress;\n }", "public void xsetGPSReceiverDetailsID(org.apache.xmlbeans.XmlIDREF gpsReceiverDetailsID)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().add_attribute_user(GPSRECEIVERDETAILSID$16);\r\n }\r\n target.set(gpsReceiverDetailsID);\r\n }\r\n }", "public ReceiverEntity actualizarReceiver (Long id, ReceiverEntity ReceiverAcualizar){\r\n ReceiverEntity receiverUpdate = persistence.update(ReceiverAcualizar);\r\n return receiverUpdate;\r\n }", "public void setReceiverAddress(java.lang.String _receiverAddress)\n {\n receiverAddress = _receiverAddress;\n }", "public DelayData setReceiver(DataBeadReceiver receiver) {\r\n\t\tthis.receiver = receiver;\r\n\t\treturn this;\r\n\t}", "public void setRId(long value) {\r\n this.rId = value;\r\n }", "public java.lang.Integer getReceiverAccountNumber() {\r\n return receiverAccountNumber;\r\n }", "public DataBeadReceiver getReceiver() {\r\n\t\treturn receiver;\r\n\t}", "public void setReceiveDate (java.sql.Date receiveDate) {\r\n\t\tthis.receiveDate = receiveDate;\r\n\t}", "public void setReceiveObject(int receiveObject) {\n\t\tthis.receiveObject = receiveObject;\n\t}", "public void setGPSReceiverDetailsID(java.lang.String gpsReceiverDetailsID)\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GPSRECEIVERDETAILSID$16);\r\n }\r\n target.setStringValue(gpsReceiverDetailsID);\r\n }\r\n }", "public void setReceivers(nl.webservices.www.soap.InsolvencyReceivers receivers) {\n this.receivers = receivers;\n }", "public void setReceiverAddress(java.lang.String receiverAddress) {\r\n this.receiverAddress = receiverAddress;\r\n }", "public Integer getReceiveid() {\n return receiveid;\n }", "void setSenderId(int id) {\n this.senderId = id;\n }", "private static Node populateReceiver(Element receiver_Element, ReceiverBean receiverBean, Document doc) {\r\n\r\n\t\t// set id attribute\r\n\r\n\t\treceiver_Element\r\n\t\t\t\t.appendChild(getReceiverElements(doc, receiver_Element, \"receiver_id\", receiverBean.getReceiverId()));\r\n\t\t// create name element\r\n\t\treceiver_Element\r\n\t\t\t\t.appendChild(getReceiverElements(doc, receiver_Element, \"first_name\", receiverBean.getFirstName()));\r\n\r\n\t\t// create age element\r\n\t\treceiver_Element\r\n\t\t\t\t.appendChild(getReceiverElements(doc, receiver_Element, \"last_name\", receiverBean.getLastName()));\r\n\r\n\t\t// create role element\r\n\t\treceiver_Element.appendChild(getReceiverElements(doc, receiver_Element, \"file\", receiverBean.getFile()));\r\n\r\n\t\t// create gender element\r\n\t\treceiver_Element.appendChild(getReceiverElements(doc, receiver_Element, \"file_md5\", receiverBean.getFileMd5()));\r\n\r\n\t\treturn receiver_Element;\r\n\t}", "public void setCorrelateID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCorrelateID=param;\n \n\n }", "public String getReceiver() {\n return Receiver;\n }", "public Long getSellerId() {\n return sellerId;\n }", "public Long getSellerId() {\n return sellerId;\n }", "@java.lang.Override\n public long getRecipientId() {\n return recipientId_;\n }", "public void setReceiverFirstName(java.lang.String receiverFirstName) {\r\n this.receiverFirstName = receiverFirstName;\r\n }", "public Integer getSellerId() {\n return sellerId;\n }", "public Builder setRecipientId(long value) {\n\n recipientId_ = value;\n bitField0_ |= 0x00000080;\n onChanged();\n return this;\n }", "public Builder setReceiver(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n receiver_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public long getRecipientId() {\n return recipientId_;\n }", "public void setReceiverCity(String receiverCity) {\n this.receiverCity = receiverCity;\n }", "public Builder receiver(String receiver) {\n\t\t\tentries.removeAll(getEntriesContainingKey(entries, MessageEntryKey.Receiver.toString()));\n\t\t\tentries.add(new AbstractMap.SimpleImmutableEntry<String, String>(MessageEntryKey.Receiver.toString(), receiver));\n\t\t\treturn this;\n\t\t}", "@IcalProperty(pindex = PropertyInfoIndex.ORIGINATOR,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setOriginator(final String val) {\n originator = val;\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setReceiverAddress(java.lang.String value) {\n validate(fields()[19], value);\n this.receiverAddress = value;\n fieldSetFlags()[19] = true;\n return this;\n }", "public int getReceiverID(int messageID){\n Message message = allmessage.get(messageID);\n return message.getGetterid();\n }", "public Builder clearReceiverid() {\n bitField0_ = (bitField0_ & ~0x00000004);\n receiverid_ = 0;\n onChanged();\n return this;\n }", "public void setSellerId(Integer sellerId) {\n this.sellerId = sellerId;\n }", "public int getRecipientId() {\r\n\t\treturn recipientId;\r\n\t}", "public void setSellerId(Long sellerId) {\n this.sellerId = sellerId;\n }", "public void setSellerId(Long sellerId) {\n this.sellerId = sellerId;\n }", "public void setReceivalDate(String receivalDate){\n\t\tthis.receivalDate = \"\";\n\t\tthis.receivalDate += receivalDate;\n\t}", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "@JsonSetter(\"callerId\")\r\n public void setCallerId (CallerIdModel value) { \r\n this.callerId = value;\r\n }", "public final void rule__MethodDecl__ReceiverAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:15770:1: ( ( ruleReceiver ) )\r\n // InternalGo.g:15771:2: ( ruleReceiver )\r\n {\r\n // InternalGo.g:15771:2: ( ruleReceiver )\r\n // InternalGo.g:15772:3: ruleReceiver\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getMethodDeclAccess().getReceiverReceiverParserRuleCall_2_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleReceiver();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getMethodDeclAccess().getReceiverReceiverParserRuleCall_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void setPropertySellerId(Integer propertySellerId) {\n\t\tthis.propertySellerId = propertySellerId;\n\t}", "public void setReceiverAreaType(String receiverAreaType) {\n this.receiverAreaType = receiverAreaType;\n }", "public void setReceiverLastName(java.lang.String receiverLastName) {\r\n this.receiverLastName = receiverLastName;\r\n }", "public String recipientId() {\n return recipientId;\n }", "public void setReceiverCity(java.lang.String receiverCity) {\r\n this.receiverCity = receiverCity;\r\n }", "public void setReceiverState(java.lang.String receiverState) {\r\n this.receiverState = receiverState;\r\n }", "public void setReceivalMonth(int receivalMonth){\n\t\tthis.receivalMonth = receivalMonth;\n\t}", "public final void entryRuleReceiver() throws RecognitionException {\r\n try {\r\n // InternalGo.g:155:1: ( ruleReceiver EOF )\r\n // InternalGo.g:156:1: ruleReceiver EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReceiverRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleReceiver();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReceiverRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public final void setReceivingOrganisation(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String receivingorganisation)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.ReceivingOrganisation.toString(), receivingorganisation);\r\n\t}", "public void setReceiverAddress2(java.lang.String receiverAddress2) {\r\n this.receiverAddress2 = receiverAddress2;\r\n }", "public void setRangerAuditRole(String rangerAuditRole) {\n this.rangerAuditRole = rangerAuditRole;\n }", "public ReceiverEntity obtenerReceiver(Long id){\r\n ReceiverEntity receiver = persistence.find(id);\r\n if(receiver == null){\r\n throw new IllegalArgumentException(\"No existe en la base de datos\");\r\n }\r\n return receiver;\r\n }", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public void setReceiveNum(Long receiveNum) {\r\n this.receiveNum = receiveNum;\r\n }", "public void setIdTo(int idTo) {\n this.idTo = idTo;\n }", "public void setSenderId(int senderId) {\r\n\t\tthis.senderId = senderId;\r\n\t}", "@Override\n public void receiverAddressChanged(String receiver) {\n }", "public void setReceivedSerialNumber(String receivedSerialNumber) ;", "protected void setId(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString id = rs.getString(EmployeeLeaveTable.COLUMN_ID);\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setId(id);\n\t}", "public String getConsumerID(WSMessageConsumerDTO consumerDTO){\n String id = consumerDTO.getReceiverId();\n return id;\n }", "public void setIssuerId(String issuerId) {\r\n this.issuerId = issuerId == null ? null : issuerId.trim();\r\n }", "public String getReceiverName() {\n return receiverName;\n }", "public String getReceiverName() {\n return receiverName;\n }", "public void setToId(Integer toId) {\n this.toId = toId;\n }", "public void setReceivingType(java.math.BigInteger receivingType) {\n this.receivingType = receivingType;\n }", "@Override\n\tpublic int toAudit(int receptionID) {\n\t\treturn settlementDao.toAudit(true,receptionID);\n\t}", "public void setCreatorId(java.lang.Integer creatorId) {\n this.creatorId = creatorId;\n }", "public void setSellerOrderId(String sellerOrderId) {\r\n this.sellerOrderId = sellerOrderId;\r\n }", "public final void entryRuleReceiverType() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2955:1: ( ruleReceiverType EOF )\r\n // InternalGo.g:2956:1: ruleReceiverType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReceiverTypeRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleReceiverType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReceiverTypeRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }", "public void setCreatorUserId(long creatorUserId) {\n this.creatorUserId = creatorUserId;\n }", "public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }", "@Override\n\tpublic void setCandidateId(long candidateId) {\n\t\t_candidate.setCandidateId(candidateId);\n\t}", "public void setRoleId(Integer roleId) {\r\n this.roleId = roleId;\r\n }", "public void setSenderId(java.lang.String senderId) {\r\n this.senderId = senderId;\r\n }" ]
[ "0.73522675", "0.6774745", "0.6387822", "0.6373315", "0.6301306", "0.6281251", "0.62758094", "0.6173954", "0.61697185", "0.6093634", "0.5991787", "0.57767075", "0.5775695", "0.5712317", "0.56982946", "0.559993", "0.5599657", "0.5582282", "0.54127413", "0.54127413", "0.5385071", "0.53381145", "0.53260005", "0.53221995", "0.5312678", "0.5293987", "0.52548987", "0.5238876", "0.5229897", "0.5222962", "0.5209439", "0.51521176", "0.5145207", "0.51312304", "0.5105339", "0.5087972", "0.5030816", "0.50294936", "0.4974465", "0.4961323", "0.49486065", "0.49470425", "0.4940246", "0.48845267", "0.48845267", "0.4881724", "0.48747143", "0.48545164", "0.48393074", "0.48290253", "0.48286125", "0.48210815", "0.48137957", "0.48115054", "0.4801242", "0.48000687", "0.4788921", "0.47883484", "0.47862485", "0.4781685", "0.4781685", "0.47740138", "0.47576684", "0.47570616", "0.47567862", "0.47301587", "0.47286585", "0.4713789", "0.47030222", "0.46813315", "0.4677895", "0.46756056", "0.46718958", "0.46576777", "0.4657569", "0.46507382", "0.46264717", "0.46150702", "0.46000782", "0.45988098", "0.45961624", "0.4595501", "0.45954943", "0.45860177", "0.45813406", "0.4576725", "0.45648095", "0.45648095", "0.45628893", "0.4555475", "0.45450932", "0.4542421", "0.4535548", "0.45345747", "0.4531627", "0.45308015", "0.45299554", "0.45191705", "0.4508208", "0.45057553" ]
0.68012536
1
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.receiver_area_type
public String getReceiverAreaType() { return receiverAreaType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReceiverAreaType(String receiverAreaType) {\n this.receiverAreaType = receiverAreaType;\n }", "public Long getReceiverAreaId() {\n return receiverAreaId;\n }", "public String getReceiverAreaName() {\n return receiverAreaName;\n }", "public void setReceiverAreaId(Long receiverAreaId) {\n this.receiverAreaId = receiverAreaId;\n }", "public void setReceiverAreaName(String receiverAreaName) {\n this.receiverAreaName = receiverAreaName;\n }", "public java.lang.String getReceiveType () {\n\t\treturn receiveType;\n\t}", "public AreaRendererEndType getEndType() {\n\t\treturn this.endType;\n\t}", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public void setReceiveType (java.lang.String receiveType) {\n\t\tthis.receiveType = receiveType;\n\t}", "public String getArea_id() {\n return area_id;\n }", "public String getRoleType() {\n return roleType;\n }", "public String getRoleType() {\n return roleType;\n }", "public String getReceiver() {\n\t\tif (getSwiftMessage() != null && getSwiftMessage().getBlock2() != null) {\n\t\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\t\tif (b2.isInput()) {\n\t\t\t\treturn ((SwiftBlock2Input)b2).getReceiverAddress();\n\t\t\t} else {\n\t\t\t\treturn ((SwiftBlock2Output)b2).getMIRLogicalTerminal();\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getArea() {\n return this.area;\n }", "public String getRoomTypeId() {\n return this.room_type_id;\n }", "public final void entryRuleReceiverType() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2955:1: ( ruleReceiverType EOF )\r\n // InternalGo.g:2956:1: ruleReceiverType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReceiverTypeRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleReceiverType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReceiverTypeRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public String getArea() {\n\t\treturn area;\n\t}", "public String getRoomtype() {\r\n\t\treturn roomtype;\r\n\t}", "RoleType getRoleType();", "public String getReceiver() {\n return Receiver;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "public RoomType getRoomType() {\n\t\treturn roomType;\n\t}", "public String areaCode() {\n return areaCode;\n }", "public RoomType getRoomType() {\r\n\t\treturn this.type;\r\n\t}", "public String getRouteType() {\n return routeType;\n }", "public int getAreaNo() {\n return areaNo_;\n }", "public String getRoomTypeDescription() {\n return this.room_type_description;\n }", "public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "public int getAreaNo() {\n return areaNo_;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "@Column(name = \"ACCOUNT_TYPE\")\n\tpublic String getAccountType()\n\t{\n\t\treturn accountType;\n\t}", "private String getNewAreaResourceType(String componentPath) {\n Resource componentResource = resolver.getResource(componentPath);\n if (componentResource != null) {\n if (componentResource.getChild(NEWAREA_CHILD_NAME) != null) {\n return componentPath + \"/\" + NEWAREA_CHILD_NAME;\n }\n String resourceSuperType = componentResource.getResourceSuperType();\n if (StringUtils.isNotEmpty(resourceSuperType)) {\n return getNewAreaResourceType(resourceSuperType);\n }\n }\n return FALLBACK_NEWAREA_RESOURCE_TYPE;\n }", "public final String getSubType() {\n return this.subtype;\n }", "public Integer getAreacode() {\n return areacode;\n }", "public String getAreaCode() {\n return this.areaCode;\n }", "public String getReceiverId() {\n return receiverId;\n }", "public String getBusinessArea() {\n return businessArea;\n }", "public String getLocationType() {\n return locationType;\n }", "public EventOriginatorType getType() {\n\t\treturn type;\n\t}", "public String getrType() {\n return rType;\n }", "public java.lang.String getReceiverQualifier() {\r\n return receiverQualifier;\r\n }", "public String getLogDestinationType() {\n return this.logDestinationType;\n }", "public String getAccountSubtype() {\n return accountSubtype;\n }", "public java.math.BigInteger getReceivingType() {\n return receivingType;\n }", "public String getOtherType() {\n\t\treturn otherType;\n\t}", "public String getLocationArea() {\n return locationArea;\n }", "public int getLocationtypeValue() {\n return locationtype_;\n }", "PlatformComponentType getActorReceiveType();", "public int getArea() {\n\t\treturn area;\n\t}", "public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }", "public String getCastReceiver() {\n return params.getCastReceiver();\n }", "public int getLocationtypeValue() {\n return locationtype_;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getOriginType() {\n return this.originType;\n }", "public java.lang.String getReceiverCountry() {\r\n return receiverCountry;\r\n }", "public DataBeadReceiver getReceiver() {\r\n\t\treturn receiver;\r\n\t}", "public RuleType getRuleType() {\n return ruleType;\n }", "public String getType(){\n return this.type;\n }", "public String getSubType() {\n return typeString;\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public java.lang.String getReceiveAgentAbbreviation() {\r\n return receiveAgentAbbreviation;\r\n }", "public java.lang.String getReceiverAddressEnvelopeLevel2() {\n return receiverAddressEnvelopeLevel2;\n }", "public LocationType getLocationType(){\n\t\treturn type;\n\t}", "public java.lang.String getReceiverAddress2() {\r\n return receiverAddress2;\r\n }", "public void setReceiver(String receiver) {\n Receiver = receiver;\n }", "public java.lang.Integer getReceiverAccountNumber() {\r\n return receiverAccountNumber;\r\n }", "public java.lang.String getReceiverAddressEnvelopeLevel2() {\n return receiverAddressEnvelopeLevel2;\n }", "public String getSubtype () {\n return subtype;\n }", "public String getSubtype () {\n return subtype;\n }", "public int getArea()\n {\n return area;\n }", "public final void rule__MethodExpr__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:13598:1: ( ( ruleReceiverType ) )\r\n // InternalGo.g:13599:1: ( ruleReceiverType )\r\n {\r\n // InternalGo.g:13599:1: ( ruleReceiverType )\r\n // InternalGo.g:13600:2: ruleReceiverType\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getMethodExprAccess().getReceiverTypeParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleReceiverType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getMethodExprAccess().getReceiverTypeParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public int getReceiverid() {\n return receiverid_;\n }", "@Transient\n public int getDiscriminator() {\n if ((receiverId != null) && (receiverGroupId != null)) {\n LOGGER.warn(\"we have a message with user and group receiver, using none in the UI\");\n return 0;\n }\n \n if ((receiverId == null) && (receiverGroupId == null)) {\n LOGGER.debug(\"we have a message without user and group receiver, using none in the UI\");\n return 0;\n }\n \n if (this.receiverId != null) {\n return 1;\n }\n \n if (this.receiverGroupId != null) {\n return 2;\n }\n \n return 0;\n }", "public Integer getRoomtypeid() {\n return roomtypeid;\n }", "public static double getArea() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ta\").getDouble(0);\n }", "public String getReceiver() {\n Object ref = receiver_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public Integer getAfterTypeId() {\r\n return afterTypeId;\r\n }", "@AutoEscape\n\tpublic String getLocationType();", "public String getType(){\n \treturn this.type;\n }", "public String getType(){\r\n return type;\r\n }", "public java.lang.String getReceiverCity() {\r\n return receiverCity;\r\n }", "public String getType(){\r\n\t\treturn this.type;\r\n\t}", "public java.lang.String getBillSubType () {\n\t\treturn billSubType;\n\t}", "String getType() {\r\n return this.type;\r\n }", "String getActorType();", "public com.redknee.util.crmapi.soap.subscriptions.xsd._2010._06.SubscriptionBundleUnitType getUnitType(){\n return localUnitType;\n }", "@java.lang.Override\n public java.lang.String getRecommenderSubtype() {\n java.lang.Object ref = recommenderSubtype_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n recommenderSubtype_ = s;\n return s;\n }\n }", "public String getReceiver() {\n Object ref = receiver_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n }\n }", "int getRType();", "public java.lang.String getRecommenderSubtype() {\n java.lang.Object ref = recommenderSubtype_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n recommenderSubtype_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public BoardType getBoardType() {\r\n return this.boardType;\r\n }" ]
[ "0.7511274", "0.7014598", "0.64494437", "0.6445138", "0.60906464", "0.54167014", "0.5390991", "0.5105354", "0.5105354", "0.5052179", "0.5042193", "0.5036297", "0.5036297", "0.5019188", "0.5015013", "0.49716607", "0.49621361", "0.49443328", "0.49298078", "0.49291116", "0.4912652", "0.49080852", "0.49080852", "0.49080852", "0.48906684", "0.48874286", "0.4885319", "0.48482385", "0.48232377", "0.48194548", "0.48172575", "0.48123893", "0.47891986", "0.47840345", "0.47822028", "0.47817534", "0.47817534", "0.47812846", "0.47705048", "0.4766441", "0.47278678", "0.47203037", "0.4714187", "0.47124732", "0.47114694", "0.46917403", "0.46904314", "0.46870682", "0.46828917", "0.46663177", "0.46607926", "0.46568602", "0.46544123", "0.46333787", "0.46302742", "0.4628204", "0.46200246", "0.46114153", "0.46110937", "0.45728323", "0.45728323", "0.45668173", "0.45658645", "0.45544156", "0.45486555", "0.45429483", "0.453975", "0.4537285", "0.45371747", "0.45285258", "0.45239314", "0.45128888", "0.450947", "0.45087484", "0.45085177", "0.45068493", "0.45051765", "0.45020697", "0.4501684", "0.44983515", "0.44954073", "0.4494776", "0.4486552", "0.44858545", "0.44780567", "0.44777238", "0.44720572", "0.4465328", "0.44519502", "0.445169", "0.44466412", "0.4442124", "0.44396895", "0.44376266", "0.44316915", "0.44308197", "0.44268647", "0.44236568", "0.44231766", "0.44230637" ]
0.77906567
0
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.receiver_area_type
public void setReceiverAreaType(String receiverAreaType) { this.receiverAreaType = receiverAreaType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReceiverAreaType() {\n return receiverAreaType;\n }", "public void setReceiverAreaId(Long receiverAreaId) {\n this.receiverAreaId = receiverAreaId;\n }", "public Long getReceiverAreaId() {\n return receiverAreaId;\n }", "public void setReceiverAreaName(String receiverAreaName) {\n this.receiverAreaName = receiverAreaName;\n }", "public String getReceiverAreaName() {\n return receiverAreaName;\n }", "public void setReceiver(String receiver) {\n Receiver = receiver;\n }", "public void setReceiveType (java.lang.String receiveType) {\n\t\tthis.receiveType = receiveType;\n\t}", "public final void entryRuleReceiverType() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2955:1: ( ruleReceiverType EOF )\r\n // InternalGo.g:2956:1: ruleReceiverType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReceiverTypeRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleReceiverType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReceiverTypeRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public void setReceiver(String receiver) {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthis.m = new SwiftMessage(true);\n\t\t}\n\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\tif (b2.isInput()) {\n\t\t\t((SwiftBlock2Input)b2).setReceiver(receiver);\n\t\t}\n\t}", "public void setReceiver(Receiver receiver) {\n\t this.receiver = receiver;\n\t }", "public void setReceiver (Receiver receiver) {\n\t\t_receiver = receiver;\n\t}", "public final void ruleReceiverType() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2967:2: ( ( ( rule__ReceiverType__TypeAssignment ) ) )\r\n // InternalGo.g:2968:2: ( ( rule__ReceiverType__TypeAssignment ) )\r\n {\r\n // InternalGo.g:2968:2: ( ( rule__ReceiverType__TypeAssignment ) )\r\n // InternalGo.g:2969:3: ( rule__ReceiverType__TypeAssignment )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReceiverTypeAccess().getTypeAssignment()); \r\n }\r\n // InternalGo.g:2970:3: ( rule__ReceiverType__TypeAssignment )\r\n // InternalGo.g:2970:4: rule__ReceiverType__TypeAssignment\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__ReceiverType__TypeAssignment();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReceiverTypeAccess().getTypeAssignment()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void setType(final EventOriginatorType type) {\n\t\tthis.type = type;\n\t}", "public void setReceiverCity(String receiverCity) {\n this.receiverCity = receiverCity;\n }", "public void setReceiverId(String receiverId) {\n this.receiverId = receiverId;\n }", "protected void sequence_ReceiverType(ISerializationContext context, ReceiverType semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.RECEIVER_TYPE__TYPE) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.RECEIVER_TYPE__TYPE));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getReceiverTypeAccess().getTypeTypeParserRuleCall_0(), semanticObject.getType());\r\n\t\tfeeder.finish();\r\n\t}", "public void setReceiveAgentID(java.lang.String receiveAgentID) {\r\n this.receiveAgentID = receiveAgentID;\r\n }", "public void setReceiverCity(java.lang.String receiverCity) {\r\n this.receiverCity = receiverCity;\r\n }", "public void setReceiverAddress(java.lang.String _receiverAddress)\n {\n receiverAddress = _receiverAddress;\n }", "public void setReceiverAddress(String receiverAddress) {\n this.receiverAddress = receiverAddress;\n }", "public void setReceiverEmail(java.lang.String receiverEmail) {\r\n this.receiverEmail = receiverEmail;\r\n }", "public void setReceiverId(java.lang.String receiverId) {\r\n this.receiverId = receiverId;\r\n }", "public void setPersonnelArea(String personnelArea);", "public void setArea(String area) {\n this.area = area;\n }", "public void setLocationType(LocationType value) { _locationType = value; }", "public void setReceiverPhone(String receiverPhone) {\n this.receiverPhone = receiverPhone;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setReceiverMobile(String receiverMobile) {\n this.receiverMobile = receiverMobile;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public void setReceiverProvince(String receiverProvince) {\n this.receiverProvince = receiverProvince;\n }", "protected void sequence_MethodExpr_ReceiverType(ISerializationContext context, ReceiverType semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.RECEIVER_TYPE__TYPE) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.RECEIVER_TYPE__TYPE));\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.RECEIVER_TYPE__METHODN) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.RECEIVER_TYPE__METHODN));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getReceiverTypeAccess().getTypeTypeParserRuleCall_0(), semanticObject.getType());\r\n\t\tfeeder.accept(grammarAccess.getMethodExprAccess().getMethodnMethodNameParserRuleCall_2_0(), semanticObject.getMethodn());\r\n\t\tfeeder.finish();\r\n\t}", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "public void setAreaProveedor(int areaProveedor) { this.areaProveedor = areaProveedor; }", "public void setReceivingType(java.math.BigInteger receivingType) {\n this.receivingType = receivingType;\n }", "public void setLocationType(String locationType);", "public void setReceiverPhone(java.lang.String receiverPhone) {\r\n this.receiverPhone = receiverPhone;\r\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setRoleType(String roleType) {\n this.roleType = roleType == null ? null : roleType.trim();\n }", "public void setRoleType(String roleType) {\n this.roleType = roleType == null ? null : roleType.trim();\n }", "public final void rule__ReceiverType__TypeAssignment() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:18785:1: ( ( ruleType ) )\r\n // InternalGo.g:18786:2: ( ruleType )\r\n {\r\n // InternalGo.g:18786:2: ( ruleType )\r\n // InternalGo.g:18787:3: ruleType\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReceiverTypeAccess().getTypeTypeParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReceiverTypeAccess().getTypeTypeParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void setReceiverAddress(java.lang.String receiverAddress) {\r\n this.receiverAddress = receiverAddress;\r\n }", "public void setReceiverCountry(java.lang.String receiverCountry) {\r\n this.receiverCountry = receiverCountry;\r\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "@Override\n\t@XmlElement\n\tpublic void setAreaCode(String areaCode) {\n\t\t\n\t}", "void updateConnectorType(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectorTypeGUID,\n String connectorTypeExternalIdentifier,\n boolean isMergeUpdate,\n ConnectorTypeProperties connectorTypeProperties,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;", "public void setReceiveAgentAbbreviation(java.lang.String receiveAgentAbbreviation) {\r\n this.receiveAgentAbbreviation = receiveAgentAbbreviation;\r\n }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public void setReceiveDate (java.sql.Date receiveDate) {\r\n\t\tthis.receiveDate = receiveDate;\r\n\t}", "public void setReceiveAddr(String receiveAddr) {\n this.receiveAddr = receiveAddr == null ? null : receiveAddr.trim();\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setReceiverAddress(java.lang.String value) {\n validate(fields()[19], value);\n this.receiverAddress = value;\n fieldSetFlags()[19] = true;\n return this;\n }", "public void setTypeOfBody(String typeOfBody) {\n\t\tthis.typeOfBody = typeOfBody;\n\t}", "public void setPersonnelSubArea(String personnelSubArea);", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode == null ? null : areaCode.trim();\n }", "@Override\n public final void setArea(JQLayoutArea area)\n {\n if (area != null)\n {\n removeClass(area.getAreaClass().toString());\n }\n this.area = area;\n if (this.area != null)\n {\n addClass(this.area.getAreaClass().toString());\n }\n }", "public void setReceiverAddress2(java.lang.String receiverAddress2) {\r\n this.receiverAddress2 = receiverAddress2;\r\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public String getArea_id() {\n return area_id;\n }", "public void setExaminationType(ExaminationType_type1 param){\n \n this.localExaminationType=param;\n \n\n }", "public void setUserType(int type) throws IllegalArgumentException {\n\t\tif (type != TELEPHONE_SUBSCRIBER && type != USER) {\n\t\t\tthrow new IllegalArgumentException(\"Parameter not in range\");\n\t\t}\n\t\tuserType = type;\n\t}", "public void setArea(Polygon area) {\n\t\tthis.area = area;\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setReceiveTime(Date receiveTime) {\r\n this.receiveTime = receiveTime;\r\n }", "public final void rule__MethodExpr__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:13598:1: ( ( ruleReceiverType ) )\r\n // InternalGo.g:13599:1: ( ruleReceiverType )\r\n {\r\n // InternalGo.g:13599:1: ( ruleReceiverType )\r\n // InternalGo.g:13600:2: ruleReceiverType\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getMethodExprAccess().getReceiverTypeParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleReceiverType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getMethodExprAccess().getReceiverTypeParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setReceiverAddressEnvelopeLevel2(java.lang.String value) {\n validate(fields()[29], value);\n this.receiverAddressEnvelopeLevel2 = value;\n fieldSetFlags()[29] = true;\n return this;\n }", "public AreaRendererEndType getEndType() {\n\t\treturn this.endType;\n\t}", "public void setReceiverDistrict(String receiverDistrict) {\n this.receiverDistrict = receiverDistrict;\n }", "public void setReceiveTime(Date receiveTime) {\n this.receiveTime = receiveTime;\n }", "public void setRoomType(String type) throws IllegalArgumentException {\n\t\tif (type == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\troomType = type;\n\t}", "public void setReceivePhone(String receivePhone) {\n this.receivePhone = receivePhone == null ? null : receivePhone.trim();\n }", "public void setOriginType(String originType) {\n this.originType = originType;\n }", "public void setOtherType(String otherType) {\n\t\tthis.otherType = otherType;\n\t}", "public void setReceiveTime(Date receiveTime) {\n this.receiveTime = receiveTime;\n }", "public final void setReceivingOrganisation(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String receivingorganisation)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.ReceivingOrganisation.toString(), receivingorganisation);\r\n\t}", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "public void setDestinationType( final String destinationType )\n {\n m_destinationType = destinationType;\n }", "@JsonIgnore\r\n public void setType(URI type) {\r\n this.type = type == null ? null : new TypeReference<AlternateIdType>(type);\r\n }", "public void setTRS_TYPE(String TRS_TYPE) {\r\n this.TRS_TYPE = TRS_TYPE == null ? null : TRS_TYPE.trim();\r\n }", "public void setSellerType(Byte sellerType) {\n this.sellerType = sellerType;\n }", "public void setReceiverZipCode(java.lang.String receiverZipCode) {\r\n this.receiverZipCode = receiverZipCode;\r\n }", "public String getReceiver() {\n return Receiver;\n }", "public void setAddressType(String addressType) {\n this.addressType = addressType;\n }", "public void setAfterTypeId(Integer afterTypeId) {\r\n this.afterTypeId = afterTypeId;\r\n }", "public void setVAL_AREA(java.lang.String VAL_AREA) {\r\n this.VAL_AREA = VAL_AREA;\r\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:42.016 -0500\", hash_original_method = \"E4793A664EF98A715ED3BAC198AF4EBD\", hash_generated_method = \"B72ADD4A151BC578FAD8448CF7ED8D16\")\n \n public void setNetworkType(String type, String subtype){\n \taddTaint(type.getTaint());\n \taddTaint(subtype.getTaint());\n }", "public void setRouteType(String x)\n {\n this.routeType = x;\n }", "public void setRoomType (RoomType t) {\r\n\t\tthis.type = t;\r\n\t}", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "void setupConnectorType(String userId,\n String assetManagerGUID,\n String assetManagerName,\n boolean assetManagerIsHome,\n String connectionGUID,\n String connectorTypeGUID,\n Date effectiveFrom,\n Date effectiveTo,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;", "public VoidResponse updateSubjectArea(String serverName,\n String userId,\n String subjectAreaGUID,\n boolean isMergeUpdate,\n ReferenceableRequestBody requestBody)\n {\n final String methodName = \"updateSubjectArea\";\n final String guidParameter = \"subjectAreaGUID\";\n\n RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, methodName);\n\n VoidResponse response = new VoidResponse();\n AuditLog auditLog = null;\n\n try\n {\n if (requestBody != null)\n {\n if (requestBody.getProperties() instanceof SubjectAreaProperties)\n {\n auditLog = instanceHandler.getAuditLog(userId, serverName, methodName);\n SubjectAreaHandler<SubjectAreaElement> handler = instanceHandler.getSubjectAreaHandler(userId, serverName, methodName);\n\n SubjectAreaProperties properties = (SubjectAreaProperties)requestBody.getProperties();\n\n handler.updateSubjectArea(userId,\n requestBody.getExternalSourceGUID(),\n requestBody.getExternalSourceName(),\n subjectAreaGUID,\n guidParameter,\n properties.getQualifiedName(),\n properties.getSubjectAreaName(),\n properties.getDisplayName(),\n properties.getDescription(),\n properties.getUsage(),\n properties.getScope(),\n properties.getDomainIdentifier(),\n properties.getAdditionalProperties(),\n properties.getTypeName(),\n properties.getExtendedProperties(),\n isMergeUpdate,\n methodName);\n }\n else\n {\n restExceptionHandler.handleInvalidPropertiesObject(SubjectAreaProperties.class.getName(), methodName);\n }\n }\n else\n {\n restExceptionHandler.handleNoRequestBody(userId, methodName, serverName);\n }\n }\n catch (Exception error)\n {\n restExceptionHandler.captureExceptions(response, error, methodName, auditLog);\n }\n\n restCallLogger.logRESTCallReturn(token, response.toString());\n return response;\n }", "public java.lang.String getReceiveType () {\n\t\treturn receiveType;\n\t}", "public void setOwnerType(String ownerType) {\n\t\tthis.ownerType = ownerType;\n\t}", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public String getReceiverId() {\n return receiverId;\n }", "@Override\n public void receiverAddressChanged(String receiver) {\n }" ]
[ "0.70277095", "0.6891538", "0.63854957", "0.63255167", "0.5638859", "0.54227906", "0.53907543", "0.5371066", "0.51074797", "0.5060813", "0.5036654", "0.5013694", "0.49791247", "0.49158418", "0.48507178", "0.4841334", "0.48167068", "0.479965", "0.4799114", "0.4778868", "0.476788", "0.47674894", "0.47549355", "0.47244453", "0.47222036", "0.47107646", "0.47101724", "0.46949437", "0.4666563", "0.46532196", "0.4645083", "0.4644878", "0.46436453", "0.46424693", "0.4638866", "0.46282327", "0.46227697", "0.46127287", "0.46075726", "0.46075726", "0.46063986", "0.46041903", "0.45978475", "0.45629162", "0.45629162", "0.45605257", "0.45579225", "0.4546974", "0.4546522", "0.4520779", "0.45204574", "0.45062232", "0.45039043", "0.44957185", "0.44846168", "0.4481397", "0.44759065", "0.4464148", "0.44540238", "0.44540238", "0.4452248", "0.44414294", "0.44345862", "0.44305575", "0.44237846", "0.44237846", "0.4416831", "0.441557", "0.4406903", "0.4403385", "0.4399997", "0.43977395", "0.4394737", "0.4394503", "0.43855152", "0.43795976", "0.4368328", "0.43591446", "0.43468538", "0.43455744", "0.43314683", "0.43238163", "0.43066242", "0.43013573", "0.4296886", "0.42888382", "0.42811638", "0.42761222", "0.42756408", "0.42723888", "0.4268785", "0.42628008", "0.42595637", "0.42531762", "0.4240569", "0.42332882", "0.42281285", "0.42281285", "0.4225942", "0.4223035" ]
0.78421336
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.receiver_area_name
public String getReceiverAreaName() { return receiverAreaName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getReceiverAreaId() {\n return receiverAreaId;\n }", "public void setReceiverAreaName(String receiverAreaName) {\n this.receiverAreaName = receiverAreaName;\n }", "public String getReceiverAreaType() {\n return receiverAreaType;\n }", "public void setReceiverAreaType(String receiverAreaType) {\n this.receiverAreaType = receiverAreaType;\n }", "public void setReceiverAreaId(Long receiverAreaId) {\n this.receiverAreaId = receiverAreaId;\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n\t\tif (areaName == null) {\n\t\t\tProtectedRegion p = getPlot();\n\t\t\tPlotInfo info = plugin.getPlotInfo(worldName, p.getId());\n\t\t\tif (info != null) {\n\t\t\t\tareaName = info.areaName;\n\t\t\t}\n\t\t}\n\t\treturn areaName;\n\t}", "public String getReceiverName() {\n return receiverName;\n }", "public String getReceiverName() {\n return receiverName;\n }", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public String getReceiver() {\n\t\tif (getSwiftMessage() != null && getSwiftMessage().getBlock2() != null) {\n\t\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\t\tif (b2.isInput()) {\n\t\t\t\treturn ((SwiftBlock2Input)b2).getReceiverAddress();\n\t\t\t} else {\n\t\t\t\treturn ((SwiftBlock2Output)b2).getMIRLogicalTerminal();\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public java.lang.String getReceiveAgentAbbreviation() {\r\n return receiveAgentAbbreviation;\r\n }", "public String getArea_id() {\n return area_id;\n }", "public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "public String getLgcsAreaName() {\n return lgcsAreaName;\n }", "public String getArea() {\n return this.area;\n }", "public String getReceiver() {\n return Receiver;\n }", "public String getArea() {\n\t\treturn area;\n\t}", "public String getNombreCodigoArea() { return (this.nombreCodigoArea == null) ? \"\" : this.nombreCodigoArea; }", "public java.lang.String getReceiverMiddleName() {\r\n return receiverMiddleName;\r\n }", "public String getLocationArea() {\n return locationArea;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public java.lang.String getReceiverLastName() {\r\n return receiverLastName;\r\n }", "public String getArea() {\n return area;\n }", "@AutoEscape\n\tpublic String getPersonnelArea();", "public String areaCode() {\n return areaCode;\n }", "public java.lang.String getReceiverAddress2() {\r\n return receiverAddress2;\r\n }", "public java.lang.String getReceiveAgentName() {\r\n return receiveAgentName;\r\n }", "public java.lang.String getReceiverLastName2() {\r\n return receiverLastName2;\r\n }", "public String getReceiverId() {\n return receiverId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public java.lang.String getReceiverCity() {\r\n return receiverCity;\r\n }", "public java.lang.String getReceiverCountry() {\r\n return receiverCountry;\r\n }", "public java.lang.String getReceiverAddress() {\n return receiverAddress;\n }", "public java.lang.String getReceiverAddress() {\r\n return receiverAddress;\r\n }", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public java.lang.String getReceiverAddress() {\n return receiverAddress;\n }", "public String getBusinessArea() {\n return businessArea;\n }", "@AutoEscape\n\tpublic String getPersonnelSubArea();", "public String getReceiveName() {\n return receiveName;\n }", "public java.lang.String getReceiverAddress()\n {\n return receiverAddress;\n }", "public String getReceiver() {\n Object ref = receiver_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getAreaCode() {\n return this.areaCode;\n }", "protected String getApplyReceiverText(String receiver) {\n return receiver;\n }", "public void getAreaToSendId(String l,TableQueryCallback<Area> callback){\n mAreaTable.where().field(\"label\").eq(l).execute(callback);\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public String getReceiverCity() {\n return receiverCity;\n }", "public int getAreaNo() {\n return areaNo_;\n }", "public String getReceiver() {\n Object ref = receiver_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n receiver_ = s;\n return s;\n }\n }", "public String getReceiverAddress() {\n return receiverAddress;\n }", "public java.lang.String getReceiverEmail() {\r\n return receiverEmail;\r\n }", "public int getAreaNo() {\n return areaNo_;\n }", "public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }", "public String getNombreAreaProveedor() { return (this.nombreAreaProveedor == null) ? \"\" : this.nombreAreaProveedor; }", "public String getReceiverProvince() {\n return receiverProvince;\n }", "String getReceiver();", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public java.lang.String getReceiverPhone() {\r\n return receiverPhone;\r\n }", "private static String getSubcriptionAreaId(String subscriptionNumber){\n\t\tString pincode = \"\";\n\t\ttry {\n\t\t\tSQL:{\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\t/*String sql =\"SELECT area_id from fapp_subscription where subscription_no = ?\";*/\n\t\t\tString sql =\"SELECT pincode from fapp_subscription where subscription_no = ?\";\n\t\t\ttry {\n\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\tpreparedStatement.setString(1, subscriptionNumber);\n\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\tif (resultSet.next()) {\n\t\t\t\t\t/*areaId = resultSet.getInt(\"area_id\");\t*/\n\t\t\t\t\tpincode = resultSet.getString(\"pincode\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally{\n\t\t\t\tif(connection!=null){\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t/*System.out.println(\"area id-\"+areaId);\n \treturn areaId;*/\n\t\tSystem.out.println(\"pincode-\"+pincode);\n\t\treturn pincode;\n\t}", "public int getAreaCode() {\r\n return areaCode;\r\n }", "public DataBeadReceiver getReceiver() {\r\n\t\treturn receiver;\r\n\t}", "public java.lang.String getReceiverAddressEnvelopeLevel2() {\n return receiverAddressEnvelopeLevel2;\n }", "public String getCastReceiver() {\n return params.getCastReceiver();\n }", "public java.lang.String getReceiverAddressEnvelopeLevel2() {\n return receiverAddressEnvelopeLevel2;\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public abstract String getArea();", "public int getReceiverid() {\n return receiverid_;\n }", "java.lang.String getRoomName();", "public java.lang.String getGPSReceiverDetailsID()\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getReceiverMobile() {\n return receiverMobile;\n }", "public java.lang.String getReceiverZipCode() {\r\n return receiverZipCode;\r\n }", "public String getLocationName() {\n\n\t\treturn this.locationName;\n\n\t}", "public String getDestinationAirportName() {\n return destination.getName();\n }", "public java.lang.String getReceiverQualifier() {\r\n return receiverQualifier;\r\n }", "public String getBuildingarea() {\r\n\t\treturn buildingarea;\r\n\t}", "public String getReceiverDistrict() {\n return receiverDistrict;\n }", "public String getAuthorizedArea() {\n return (String)getAttributeInternal(AUTHORIZEDAREA);\n }", "public java.lang.Integer getReceiverAccountNumber() {\r\n return receiverAccountNumber;\r\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n if (areaBuilder_ == null) {\n return java.util.Collections.unmodifiableList(area_);\n } else {\n return areaBuilder_.getMessageList();\n }\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n if (areaBuilder_ == null) {\n return java.util.Collections.unmodifiableList(area_);\n } else {\n return areaBuilder_.getMessageList();\n }\n }", "public java.util.List<com.example.grpc.SimpleServiceOuterClass.Area> getAreaList() {\n if (areaBuilder_ == null) {\n return java.util.Collections.unmodifiableList(area_);\n } else {\n return areaBuilder_.getMessageList();\n }\n }", "@Override\n public String getLenderName() {\n return lender.getUsername();\n }", "public String getRouteDest() {\n Object ref = routeDest_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n routeDest_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public org.apache.axis2.databinding.types.soapencoding.String getGetDirectAreaInfoReturn(){\n return localGetDirectAreaInfoReturn;\n }", "@Lob\n\t@Column(name = \"RULE_CODE\", length = GlobalConstants.LONG_TEXT_MAX_LENGTH, nullable = false)\n\tpublic String getRuleCode() {\n\t\treturn this.ruleCode;\n\t}", "public Integer getAreacode() {\n return areacode;\n }", "public void setReceiveAgentAbbreviation(java.lang.String receiveAgentAbbreviation) {\r\n this.receiveAgentAbbreviation = receiveAgentAbbreviation;\r\n }", "public java.lang.String getVAL_AREA() {\r\n return VAL_AREA;\r\n }", "public String getActualFromStop() {\r\n if (selectedEntry != null) {\r\n Stop stop = ServiceFunctions.getStopByName(fromStop, selectedEntry.getRun().getRoute().getStops());\r\n return stop.getName();\r\n }\r\n return \"\";\r\n }", "public String getAreaCode() \n\t{\n\t\treturn getNumber().substring(1,4);\n\t}" ]
[ "0.6870298", "0.67548114", "0.67468596", "0.62946516", "0.6114932", "0.5852308", "0.5843471", "0.5843471", "0.5576992", "0.55655634", "0.55655634", "0.55637", "0.5445322", "0.5371848", "0.53300613", "0.5244384", "0.5236537", "0.52240884", "0.5220396", "0.51863986", "0.51500773", "0.51162463", "0.5096245", "0.5095693", "0.50706464", "0.50662214", "0.50662214", "0.50662214", "0.50626135", "0.5062022", "0.50432956", "0.5040668", "0.503727", "0.5033362", "0.4996168", "0.49837697", "0.4977616", "0.4977616", "0.49588794", "0.49412373", "0.49370354", "0.49351576", "0.49286407", "0.49286407", "0.49043357", "0.49040115", "0.4898589", "0.48951387", "0.48924884", "0.48882762", "0.48674166", "0.48615015", "0.48467475", "0.48363218", "0.48363218", "0.48344323", "0.48327455", "0.48177406", "0.4815583", "0.4803754", "0.47961557", "0.479284", "0.47899806", "0.4779184", "0.47646564", "0.4742639", "0.4742639", "0.4728613", "0.47237757", "0.47069675", "0.4687091", "0.46828234", "0.46813136", "0.46652806", "0.46647987", "0.46559596", "0.46547392", "0.46198216", "0.46156055", "0.46143255", "0.46080297", "0.459979", "0.45879576", "0.45832005", "0.4570083", "0.4564592", "0.45526347", "0.45472422", "0.45429808", "0.45429808", "0.45429808", "0.4528425", "0.45256215", "0.45256022", "0.45243597", "0.45141625", "0.44985315", "0.44913095", "0.4490885", "0.44861287" ]
0.7316861
0
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.receiver_area_name
public void setReceiverAreaName(String receiverAreaName) { this.receiverAreaName = receiverAreaName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReceiverAreaType(String receiverAreaType) {\n this.receiverAreaType = receiverAreaType;\n }", "public void setReceiverAreaId(Long receiverAreaId) {\n this.receiverAreaId = receiverAreaId;\n }", "public String getReceiverAreaName() {\n return receiverAreaName;\n }", "public Long getReceiverAreaId() {\n return receiverAreaId;\n }", "public String getReceiverAreaType() {\n return receiverAreaType;\n }", "public void setReceiver(String receiver) {\n Receiver = receiver;\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setReceiver(String receiver) {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthis.m = new SwiftMessage(true);\n\t\t}\n\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\tif (b2.isInput()) {\n\t\t\t((SwiftBlock2Input)b2).setReceiver(receiver);\n\t\t}\n\t}", "public void setReceiverAddress(java.lang.String _receiverAddress)\n {\n receiverAddress = _receiverAddress;\n }", "@Override\n\tpublic void setAreaName(java.lang.String AreaName) {\n\t\t_locMstLocation.setAreaName(AreaName);\n\t}", "public void setReceiveAgentAbbreviation(java.lang.String receiveAgentAbbreviation) {\r\n this.receiveAgentAbbreviation = receiveAgentAbbreviation;\r\n }", "public void setReceiverAddress(String receiverAddress) {\n this.receiverAddress = receiverAddress;\n }", "public void setReceiveAgentName(java.lang.String receiveAgentName) {\r\n this.receiveAgentName = receiveAgentName;\r\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setReceiverAddress(java.lang.String value) {\n validate(fields()[19], value);\n this.receiverAddress = value;\n fieldSetFlags()[19] = true;\n return this;\n }", "public void setReceiverCity(String receiverCity) {\n this.receiverCity = receiverCity;\n }", "public void setReceiverPhone(java.lang.String receiverPhone) {\r\n this.receiverPhone = receiverPhone;\r\n }", "public void setReceiverEmail(java.lang.String receiverEmail) {\r\n this.receiverEmail = receiverEmail;\r\n }", "public void setReceiverCity(java.lang.String receiverCity) {\r\n this.receiverCity = receiverCity;\r\n }", "public void setReceiveName(String receiveName) {\n this.receiveName = receiveName == null ? null : receiveName.trim();\n }", "public void setReceiverId(java.lang.String receiverId) {\r\n this.receiverId = receiverId;\r\n }", "public void setReceiverAddress(java.lang.String receiverAddress) {\r\n this.receiverAddress = receiverAddress;\r\n }", "public void setPersonnelArea(String personnelArea);", "public void setReceiverPhone(String receiverPhone) {\n this.receiverPhone = receiverPhone;\n }", "public void setReceiver(Receiver receiver) {\n\t this.receiver = receiver;\n\t }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "public void setReceiverMobile(String receiverMobile) {\n this.receiverMobile = receiverMobile;\n }", "public String getAreaName()\n {\n return this.areaName;\n }", "public void setReceiverId(String receiverId) {\n this.receiverId = receiverId;\n }", "public void setReceiver (Receiver receiver) {\n\t\t_receiver = receiver;\n\t}", "public void setReceiveAddr(String receiveAddr) {\n this.receiveAddr = receiveAddr == null ? null : receiveAddr.trim();\n }", "public String getReceiverName() {\n return receiverName;\n }", "public String getReceiverName() {\n return receiverName;\n }", "public void setReceiverProvince(String receiverProvince) {\n this.receiverProvince = receiverProvince;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode == null ? null : areaCode.trim();\n }", "public void setReceiverCountry(java.lang.String receiverCountry) {\r\n this.receiverCountry = receiverCountry;\r\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public Builder setReceiver(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n receiver_ = value;\n onChanged();\n return this;\n }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public void setReceiverAddress2(java.lang.String receiverAddress2) {\r\n this.receiverAddress2 = receiverAddress2;\r\n }", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "public void setReceiverLastName(java.lang.String receiverLastName) {\r\n this.receiverLastName = receiverLastName;\r\n }", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }", "@Override\n public void receiverAddressChanged(String receiver) {\n }", "public void setReceiveAgentID(java.lang.String receiveAgentID) {\r\n this.receiveAgentID = receiveAgentID;\r\n }", "public void setReceiverMiddleName(java.lang.String receiverMiddleName) {\r\n this.receiverMiddleName = receiverMiddleName;\r\n }", "@Override\n\t@XmlElement\n\tpublic void setAreaCode(String areaCode) {\n\t\t\n\t}", "public void setReceivePhone(String receivePhone) {\n this.receivePhone = receivePhone == null ? null : receivePhone.trim();\n }", "@Override\n\tpublic String updateATourneyName() {\n\t\treturn null;\n\t}", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "public String getArea_id() {\n return area_id;\n }", "public void setPersonnelSubArea(String personnelSubArea);", "@Override\n public final void setArea(JQLayoutArea area)\n {\n if (area != null)\n {\n removeClass(area.getAreaClass().toString());\n }\n this.area = area;\n if (this.area != null)\n {\n addClass(this.area.getAreaClass().toString());\n }\n }", "public void setNombreArea(String p) { this.nombreArea = p; }", "public final void setReceivingOrganisation(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String receivingorganisation)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.ReceivingOrganisation.toString(), receivingorganisation);\r\n\t}", "public void setReceiverFirstName(java.lang.String receiverFirstName) {\r\n this.receiverFirstName = receiverFirstName;\r\n }", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}", "public String getReceiver() {\n return Receiver;\n }", "public String getReceiverId() {\n return receiverId;\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setReceiverAddressEnvelopeLevel2(java.lang.String value) {\n validate(fields()[29], value);\n this.receiverAddressEnvelopeLevel2 = value;\n fieldSetFlags()[29] = true;\n return this;\n }", "@IcalProperty(pindex = PropertyInfoIndex.ORIGINATOR,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setOriginator(final String val) {\n originator = val;\n }", "public final void setReceivingOrganisation(java.lang.String receivingorganisation)\r\n\t{\r\n\t\tsetReceivingOrganisation(getContext(), receivingorganisation);\r\n\t}", "public void setGPSReceiverDetailsID(java.lang.String gpsReceiverDetailsID)\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GPSRECEIVERDETAILSID$16);\r\n }\r\n target.setStringValue(gpsReceiverDetailsID);\r\n }\r\n }", "public void setReceiverLastName2(java.lang.String receiverLastName2) {\r\n this.receiverLastName2 = receiverLastName2;\r\n }", "public void setBusinessArea(String businessArea) {\n this.businessArea = businessArea == null ? null : businessArea.trim();\n }", "public void setReceiveFileAddress(String receiveFileAddress) {\n this.receiveFileAddress = receiveFileAddress == null ? null : receiveFileAddress.trim();\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public java.lang.String getReceiveAgentAbbreviation() {\r\n return receiveAgentAbbreviation;\r\n }", "public void createLeaveZoneRule(){\n ECAAgent.getDefaultECAAgent().createRule(\"leaveZoneRule_\"+name,leaveZone,\"MAKEFITS.Track.C_leaveTheZone\",\"MAKEFITS.Track.A_leaveTheZone\",1,CouplingMode.IMMEDIATE ,ParamContext.CHRONICLE);\n// ECAAgent.getDefaultECAAgent().createRule(\"leaveZoneRule_\"+name,leaveZone,\"MAKEFITS.Track.C_leaveTheZone\",\"MAKEFITS.Track.A_leaveTheZone\",1,CouplingMode.IMMEDIATE ,Context.CHRONICLE);\n }", "public void setAirlineName(String airlineName){\n\t\tthis.airlineName = \"\";\n\t\tthis.airlineName += airlineName;\n\t}", "protected String getApplyReceiverText(String receiver) {\n return receiver;\n }", "public void setVAL_AREA(java.lang.String VAL_AREA) {\r\n this.VAL_AREA = VAL_AREA;\r\n }", "public void setReceiveFile(String receiveFile) {\n this.receiveFile = receiveFile == null ? null : receiveFile.trim();\n }", "public void getAreaToSendId(String l,TableQueryCallback<Area> callback){\n mAreaTable.where().field(\"label\").eq(l).execute(callback);\n }", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }", "public String getAreaName() {\n\t\tif (areaName == null) {\n\t\t\tProtectedRegion p = getPlot();\n\t\t\tPlotInfo info = plugin.getPlotInfo(worldName, p.getId());\n\t\t\tif (info != null) {\n\t\t\t\tareaName = info.areaName;\n\t\t\t}\n\t\t}\n\t\treturn areaName;\n\t}", "public void setNombreAreaProveedor(String nombreAreaProveedor) { this.nombreAreaProveedor = nombreAreaProveedor; }", "public void setReceiverZipCode(java.lang.String receiverZipCode) {\r\n this.receiverZipCode = receiverZipCode;\r\n }", "public void setAreaProveedor(int areaProveedor) { this.areaProveedor = areaProveedor; }", "public void setReceiveDate (java.sql.Date receiveDate) {\r\n\t\tthis.receiveDate = receiveDate;\r\n\t}", "public void setReceived(String received) throws IllegalArgumentException,\n SipParseException {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \n\t\t\t\"setReceived() \" + received);\n Via via=(Via)sipHeader;\n \n if (received==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: received is null\");\n else \n via.setReceived(received);\n }", "public String getNombreArea() { return (this.nombreArea == null) ? \"\" : this.nombreArea; }", "public Builder receiver(String receiver) {\n\t\t\tentries.removeAll(getEntriesContainingKey(entries, MessageEntryKey.Receiver.toString()));\n\t\t\tentries.add(new AbstractMap.SimpleImmutableEntry<String, String>(MessageEntryKey.Receiver.toString(), receiver));\n\t\t\treturn this;\n\t\t}", "public void setAreaDepartamento(String areaDepartamento) {\n\t\tthis.areaDepartamento.set(areaDepartamento);\n\t}", "public void setReceiverDistrict(String receiverDistrict) {\n this.receiverDistrict = receiverDistrict;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public void setReceived(InetAddress received)\n throws IllegalArgumentException, SipParseException {\n\t if (LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \n\t\t\t\"setReceived() \" + received);\n Via via=(Via)sipHeader;\n if (received==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: received is null\");\n else { \n String hostName=received.getHostName();\n if (hostName==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: hostName is null\");\n else via.setReceived(hostName); \n }\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public void setRmTable(Rooms value);" ]
[ "0.6678129", "0.66147906", "0.6501157", "0.62088025", "0.60289496", "0.5543801", "0.5444112", "0.5444112", "0.54422027", "0.54422027", "0.5217976", "0.5206804", "0.5165135", "0.5121753", "0.5085673", "0.5077505", "0.5066504", "0.5052995", "0.50463986", "0.5044547", "0.5041854", "0.5041037", "0.5027122", "0.50220805", "0.5012531", "0.49976912", "0.49665508", "0.49646235", "0.49646235", "0.49569058", "0.4949477", "0.49437872", "0.4914868", "0.48313203", "0.48251516", "0.48251516", "0.48173293", "0.47988415", "0.47957766", "0.47910154", "0.4777264", "0.47749376", "0.47590244", "0.47590244", "0.4758781", "0.47311223", "0.47267592", "0.4716177", "0.47043043", "0.47021285", "0.4693033", "0.46852246", "0.46762785", "0.46699852", "0.4666801", "0.46565986", "0.4632542", "0.46317893", "0.46274087", "0.46082246", "0.45940083", "0.4579742", "0.45668957", "0.4563499", "0.45595258", "0.4556405", "0.45484602", "0.45463082", "0.45242608", "0.45236954", "0.44843116", "0.44734293", "0.44720322", "0.44694263", "0.44657332", "0.44387653", "0.44387653", "0.44217685", "0.44027615", "0.44008034", "0.44002622", "0.43922248", "0.43893287", "0.43726385", "0.43687582", "0.43610242", "0.4343664", "0.4334012", "0.4330598", "0.43280947", "0.43154645", "0.4306306", "0.4295361", "0.42909423", "0.42882547", "0.42654443", "0.42654443", "0.4262238", "0.42597628", "0.42510933" ]
0.71539456
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.receiver_area_id
public Long getReceiverAreaId() { return receiverAreaId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReceiverAreaId(Long receiverAreaId) {\n this.receiverAreaId = receiverAreaId;\n }", "public String getReceiverAreaType() {\n return receiverAreaType;\n }", "public String getReceiverAreaName() {\n return receiverAreaName;\n }", "public void setReceiverAreaType(String receiverAreaType) {\n this.receiverAreaType = receiverAreaType;\n }", "public void setReceiverAreaName(String receiverAreaName) {\n this.receiverAreaName = receiverAreaName;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public String getReceiverId() {\n return receiverId;\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "public String getArea_id() {\n return area_id;\n }", "int getReceiverid();", "public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }", "public String getConsumerID(WSMessageConsumerDTO consumerDTO){\n String id = consumerDTO.getReceiverId();\n return id;\n }", "public java.lang.Integer getReceiverAccountNumber() {\r\n return receiverAccountNumber;\r\n }", "public Integer getReceiveid() {\n return receiveid;\n }", "public int getAreaNo() {\n return areaNo_;\n }", "public String getReceiver() {\n\t\tif (getSwiftMessage() != null && getSwiftMessage().getBlock2() != null) {\n\t\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\t\tif (b2.isInput()) {\n\t\t\t\treturn ((SwiftBlock2Input)b2).getReceiverAddress();\n\t\t\t} else {\n\t\t\t\treturn ((SwiftBlock2Output)b2).getMIRLogicalTerminal();\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public int getAreaNo() {\n return areaNo_;\n }", "public void setReceiverId(String receiverId) {\n this.receiverId = receiverId;\n }", "public int getReceiverID(int messageID){\n Message message = allmessage.get(messageID);\n return message.getGetterid();\n }", "public java.lang.String getGPSReceiverDetailsID()\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public void getAreaToSendId(String l,TableQueryCallback<Area> callback){\n mAreaTable.where().field(\"label\").eq(l).execute(callback);\n }", "private static String getSubcriptionAreaId(String subscriptionNumber){\n\t\tString pincode = \"\";\n\t\ttry {\n\t\t\tSQL:{\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\t/*String sql =\"SELECT area_id from fapp_subscription where subscription_no = ?\";*/\n\t\t\tString sql =\"SELECT pincode from fapp_subscription where subscription_no = ?\";\n\t\t\ttry {\n\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\tpreparedStatement.setString(1, subscriptionNumber);\n\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\tif (resultSet.next()) {\n\t\t\t\t\t/*areaId = resultSet.getInt(\"area_id\");\t*/\n\t\t\t\t\tpincode = resultSet.getString(\"pincode\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally{\n\t\t\t\tif(connection!=null){\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t/*System.out.println(\"area id-\"+areaId);\n \treturn areaId;*/\n\t\tSystem.out.println(\"pincode-\"+pincode);\n\t\treturn pincode;\n\t}", "public void setReceiverId(java.lang.String receiverId) {\r\n this.receiverId = receiverId;\r\n }", "long getDestinationId();", "public Long getDestinationAirportId() {\n return destination.getId();\n }", "public String getReceiver() {\n return Receiver;\n }", "public int getAreaCode() {\r\n return areaCode;\r\n }", "public Long getBlockroomid()\n {\n return blockroomid; \n }", "public DataBeadReceiver getReceiver() {\r\n\t\treturn receiver;\r\n\t}", "public Long getOriginAirportId() {\n return origin.getId();\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public String areaCode() {\n return areaCode;\n }", "public void setReceiveAgentID(java.lang.String receiveAgentID) {\r\n this.receiveAgentID = receiveAgentID;\r\n }", "public Long getRoleId() {\r\n return roleId;\r\n }", "public Long getContentAreaId() {\n\t\treturn contentAreaId;\n\t}", "String getDest_id();", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public String getRightRoadId() {\n return rightRoadId;\n }", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "public Long getRoleid() {\n return roleid;\n }", "public org.apache.axis2.databinding.types.soapencoding.String getCorrelateID(){\n return localCorrelateID;\n }", "public int getArea() {\n\t\treturn area;\n\t}", "public Integer getAreacode() {\n return areacode;\n }", "public Long getRoleId() {\n\t\treturn roleId;\n\t}", "public java.lang.String getReceiverAddress() {\n return receiverAddress;\n }", "public String getReceiverAddress() {\n return receiverAddress;\n }", "public Integer getRoleId() {\r\n return roleId;\r\n }", "public java.lang.String getReceiverAddress() {\n return receiverAddress;\n }", "public Long getReservationroomid()\n {\n return reservationroomid; \n }", "public Long getRolemenuid() {\n return rolemenuid;\n }", "public Integer getAccountDestId() {\n return accountDestId;\n }", "public java.lang.String getReceiverAddress2() {\r\n return receiverAddress2;\r\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public java.lang.String getReceiverAddress() {\r\n return receiverAddress;\r\n }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public Integer getOutboundId() {\n return outboundId;\n }", "public Long getRouteid() {\n return routeid;\n }", "public java.lang.String getReceiverAddress()\n {\n return receiverAddress;\n }", "public String getArea() {\n\t\treturn area;\n\t}", "private int getMaxIfIpId() {\n\n // get maxRundowId\n Integer maxIfIpId = this.baseMapper.getSqlSession().selectOne(this.getSqlId(\"getMaxIfIpId\"));\n\n // get form databse\n return maxIfIpId == null ? IntDef.INT_ONE : maxIfIpId.intValue();\n }", "public BigDecimal getRoleId() {\r\n return roleId;\r\n }", "public Integer getRoleId() {\n\t\treturn roleId;\n\t}", "public String getAreaCode() {\n return areaCode;\n }", "public String getAreaCode() {\n return areaCode;\n }", "public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}", "public String getArea() {\n return this.area;\n }", "public Integer getToId() {\n return toId;\n }", "public Integer getRoleid() {\r\n return roleid;\r\n }", "public java.lang.String getReceiverEmail() {\r\n return receiverEmail;\r\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getReceiverName() {\n return receiverName;\n }", "public String getReceiverName() {\n return receiverName;\n }", "public int getRoleId() {\r\n\t\treturn roleId;\r\n\t}", "java.lang.String getLobbyId();", "@java.lang.Override\n public long getRecipientId() {\n return recipientId_;\n }", "public String getArea() {\n return area;\n }", "public FIPA.AgentID[] getReceiversAgentID() {\n int numberReceivers = receivers.size();\n FIPA.AgentID allReceivers[] = new FIPA.AgentID[numberReceivers];\n Enumeration recs = receivers.elements();\n int count = 0;\n while (recs.hasMoreElements()) {\n allReceivers[count] = ((FIPA_AID_Address) recs.nextElement()).getAgentID();\n count++;\n }\n return (allReceivers);\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "public String getArea() {\n return area;\n }", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name = \"leadTypeId\")\n\tpublic Long getId()\n\t{\n\t\treturn super.getId();\n\t}", "@Override\n\tpublic long getCandidateId() {\n\t\treturn _candidate.getCandidateId();\n\t}", "@java.lang.Override\n public long getRecipientId() {\n return recipientId_;\n }" ]
[ "0.7124367", "0.6674364", "0.6506214", "0.6415443", "0.6164277", "0.60034686", "0.60034686", "0.59802276", "0.5969417", "0.5968475", "0.595494", "0.58640915", "0.5699747", "0.5434844", "0.5347674", "0.5272662", "0.5271817", "0.52687806", "0.51950717", "0.51789826", "0.5175285", "0.5175093", "0.5087392", "0.5071245", "0.5070602", "0.5066871", "0.5003775", "0.49429002", "0.49249718", "0.49172312", "0.4915689", "0.4910077", "0.48682925", "0.48511928", "0.484087", "0.484087", "0.4836027", "0.48120996", "0.4765144", "0.47631353", "0.47442025", "0.47381943", "0.47381943", "0.47381943", "0.47381943", "0.47327298", "0.47224104", "0.47174087", "0.4712889", "0.47104114", "0.47088635", "0.4696647", "0.4687448", "0.46872583", "0.4686501", "0.46844137", "0.4680326", "0.4675516", "0.4670442", "0.46656892", "0.4664589", "0.4664589", "0.4664589", "0.4664589", "0.4664589", "0.4664589", "0.4664589", "0.4664589", "0.4659413", "0.46591195", "0.4645737", "0.46451834", "0.4644352", "0.4640253", "0.46390074", "0.46370926", "0.46338427", "0.46311238", "0.46311238", "0.46277702", "0.4624286", "0.4616574", "0.46118507", "0.46067888", "0.45882967", "0.45882967", "0.45882967", "0.4572422", "0.4572422", "0.4554214", "0.45537612", "0.45469952", "0.45363325", "0.45349622", "0.4533419", "0.4533419", "0.4533419", "0.45255747", "0.4520679", "0.45203832" ]
0.78451544
0
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.receiver_area_id
public void setReceiverAreaId(Long receiverAreaId) { this.receiverAreaId = receiverAreaId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getReceiverAreaId() {\n return receiverAreaId;\n }", "public void setReceiverAreaType(String receiverAreaType) {\n this.receiverAreaType = receiverAreaType;\n }", "public void setReceiverAreaName(String receiverAreaName) {\n this.receiverAreaName = receiverAreaName;\n }", "public String getReceiverAreaType() {\n return receiverAreaType;\n }", "public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }", "public void setReceiverId(String receiverId) {\n this.receiverId = receiverId;\n }", "public void setReceiverId(java.lang.String receiverId) {\r\n this.receiverId = receiverId;\r\n }", "public String getReceiverAreaName() {\n return receiverAreaName;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public void setAreaId(Integer areaId) {\n this.areaId = areaId;\n }", "public String getReceiverId() {\n return receiverId;\n }", "public void setArea_id(String area_id) {\n this.area_id = area_id;\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public void setReceiver(String receiver) {\n Receiver = receiver;\n }", "public void setReceiveAgentID(java.lang.String receiveAgentID) {\r\n this.receiveAgentID = receiveAgentID;\r\n }", "public int getReceiverid() {\n return receiverid_;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public Integer getAreaId() {\n return areaId;\n }", "public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }", "public void setReceiver(Receiver receiver) {\n\t this.receiver = receiver;\n\t }", "public void setReceiver (Receiver receiver) {\n\t\t_receiver = receiver;\n\t}", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "public String getArea_id() {\n return area_id;\n }", "public void setReceiver(String receiver) {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthis.m = new SwiftMessage(true);\n\t\t}\n\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\tif (b2.isInput()) {\n\t\t\t((SwiftBlock2Input)b2).setReceiver(receiver);\n\t\t}\n\t}", "public void xsetGPSReceiverDetailsID(org.apache.xmlbeans.XmlIDREF gpsReceiverDetailsID)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().add_attribute_user(GPSRECEIVERDETAILSID$16);\r\n }\r\n target.set(gpsReceiverDetailsID);\r\n }\r\n }", "public void setReceiverAddress(java.lang.String _receiverAddress)\n {\n receiverAddress = _receiverAddress;\n }", "public void setAreaProveedor(int areaProveedor) { this.areaProveedor = areaProveedor; }", "public void setGPSReceiverDetailsID(java.lang.String gpsReceiverDetailsID)\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(GPSRECEIVERDETAILSID$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GPSRECEIVERDETAILSID$16);\r\n }\r\n target.setStringValue(gpsReceiverDetailsID);\r\n }\r\n }", "public void setReceiverAddress(String receiverAddress) {\n this.receiverAddress = receiverAddress;\n }", "public void setReceiverPhone(String receiverPhone) {\n this.receiverPhone = receiverPhone;\n }", "public void setReceiveid(Integer receiveid) {\n this.receiveid = receiveid;\n }", "public Builder setReceiverid(int value) {\n bitField0_ |= 0x00000004;\n receiverid_ = value;\n onChanged();\n return this;\n }", "public void setReceiverEmail(java.lang.String receiverEmail) {\r\n this.receiverEmail = receiverEmail;\r\n }", "public void setReceiverMobile(String receiverMobile) {\n this.receiverMobile = receiverMobile;\n }", "public void setReceiverPhone(java.lang.String receiverPhone) {\r\n this.receiverPhone = receiverPhone;\r\n }", "public ReceiverEntity actualizarReceiver (Long id, ReceiverEntity ReceiverAcualizar){\r\n ReceiverEntity receiverUpdate = persistence.update(ReceiverAcualizar);\r\n return receiverUpdate;\r\n }", "public void setReceiverAccountNumber(java.lang.Integer receiverAccountNumber) {\r\n this.receiverAccountNumber = receiverAccountNumber;\r\n }", "public void setReceiverAddress(java.lang.String receiverAddress) {\r\n this.receiverAddress = receiverAddress;\r\n }", "@Override\n public final void setArea(JQLayoutArea area)\n {\n if (area != null)\n {\n removeClass(area.getAreaClass().toString());\n }\n this.area = area;\n if (this.area != null)\n {\n addClass(this.area.getAreaClass().toString());\n }\n }", "public void setReceiverCity(String receiverCity) {\n this.receiverCity = receiverCity;\n }", "public void setRId(long value) {\r\n this.rId = value;\r\n }", "public void recibirId(AreaInvestigacion a) {\r\n\t\tarea = a;\r\n\t}", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setReceiverAddress(java.lang.String value) {\n validate(fields()[19], value);\n this.receiverAddress = value;\n fieldSetFlags()[19] = true;\n return this;\n }", "public void setCorrelateID(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localCorrelateID=param;\n \n\n }", "public void setPersonnelArea(String personnelArea);", "@Test\n public void testSetNeighborAreaId() throws Exception {\n isisNeighbor.setNeighborAreaId(areaId);\n result1 = isisNeighbor.neighborAreaId();\n assertThat(result1, is(areaId));\n }", "private void setRoomId(long value) {\n \n roomId_ = value;\n }", "public void setReceiverCity(java.lang.String receiverCity) {\r\n this.receiverCity = receiverCity;\r\n }", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode;\n }", "public void setAreaCode(String areaCode) {\n this.areaCode = areaCode == null ? null : areaCode.trim();\n }", "public void setAreaCode(int value) {\r\n this.areaCode = value;\r\n }", "public void setReceiveDate (java.sql.Date receiveDate) {\r\n\t\tthis.receiveDate = receiveDate;\r\n\t}", "public Builder setAreaNo(int value) {\n \n areaNo_ = value;\n onChanged();\n return this;\n }", "public void setReceiveAddr(String receiveAddr) {\n this.receiveAddr = receiveAddr == null ? null : receiveAddr.trim();\n }", "public void setPrimaryKey( int mailId, int receiverId)\n \n {\n setMailId(mailId);\n setReceiverId(receiverId);\n }", "public void unsetGPSReceiverDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(GPSRECEIVERDETAILSID$16);\r\n }\r\n }", "public final void setReceivingOrganisation(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String receivingorganisation)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.ReceivingOrganisation.toString(), receivingorganisation);\r\n\t}", "int getReceiverid();", "@Override\n\tpublic void setCandidateId(long candidateId) {\n\t\t_candidate.setCandidateId(candidateId);\n\t}", "public void setAreacode(Integer areacode) {\n this.areacode = areacode;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n this.area = area;\n }", "public void setArea(String area) {\n\t\tthis.area = area;\n\t}", "public void setReceivePhone(String receivePhone) {\n this.receivePhone = receivePhone == null ? null : receivePhone.trim();\n }", "public void setReceiverProvince(String receiverProvince) {\n this.receiverProvince = receiverProvince;\n }", "@Override\n\t@XmlElement\n\tpublic void setAreaCode(String areaCode) {\n\t\t\n\t}", "public void setRightRoadId(String rightRoadId) {\n this.rightRoadId = rightRoadId == null ? null : rightRoadId.trim();\n }", "public void setReceiveObject(int receiveObject) {\n\t\tthis.receiveObject = receiveObject;\n\t}", "public void setArea(Polygon area) {\n\t\tthis.area = area;\n\t}", "public java.lang.Integer getReceiverAccountNumber() {\r\n return receiverAccountNumber;\r\n }", "public void setLocationArea(String locationArea) {\n this.locationArea = locationArea;\n }", "public int getAreaNo() {\n return areaNo_;\n }", "public void getAreaToSendId(String l,TableQueryCallback<Area> callback){\n mAreaTable.where().field(\"label\").eq(l).execute(callback);\n }", "public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "@Override\n public void receiverAddressChanged(String receiver) {\n }", "public void setReceiveAgentAbbreviation(java.lang.String receiveAgentAbbreviation) {\r\n this.receiveAgentAbbreviation = receiveAgentAbbreviation;\r\n }", "public final void entryRuleReceiverType() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2955:1: ( ruleReceiverType EOF )\r\n // InternalGo.g:2956:1: ruleReceiverType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReceiverTypeRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleReceiverType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReceiverTypeRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public void setReceiverName(String receiverName) {\n this.receiverName = receiverName;\n }", "public void setPersonnelSubArea(String personnelSubArea);", "public int getAreaNo() {\n return areaNo_;\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setArea(String area) {\n this.area = area == null ? null : area.trim();\n }", "public void setReceiverAddress2(java.lang.String receiverAddress2) {\r\n this.receiverAddress2 = receiverAddress2;\r\n }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setReceiverCountry(java.lang.String receiverCountry) {\r\n this.receiverCountry = receiverCountry;\r\n }", "public void setReceiverAddress4(java.lang.String receiverAddress4) {\r\n this.receiverAddress4 = receiverAddress4;\r\n }", "@Override\n\tpublic int updateArea(Area area) {\n\t\treturn areaMapper.updateArea(area);\n\t}", "public void setReceiverDistrict(String receiverDistrict) {\n this.receiverDistrict = receiverDistrict;\n }", "public final void rule__MethodDecl__ReceiverAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:15770:1: ( ( ruleReceiver ) )\r\n // InternalGo.g:15771:2: ( ruleReceiver )\r\n {\r\n // InternalGo.g:15771:2: ( ruleReceiver )\r\n // InternalGo.g:15772:3: ruleReceiver\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getMethodDeclAccess().getReceiverReceiverParserRuleCall_2_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleReceiver();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getMethodDeclAccess().getReceiverReceiverParserRuleCall_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void setAuthorityId(Long authorityId) {\n this.authorityId = authorityId;\n }", "public Integer getReceiveid() {\n return receiveid;\n }", "public void setRoleId(Long roleId) {\r\n this.roleId = roleId;\r\n }", "public final void entryRuleReceiver() throws RecognitionException {\r\n try {\r\n // InternalGo.g:155:1: ( ruleReceiver EOF )\r\n // InternalGo.g:156:1: ruleReceiver EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReceiverRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleReceiver();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReceiverRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public VoidResponse updateSubjectArea(String serverName,\n String userId,\n String subjectAreaGUID,\n boolean isMergeUpdate,\n ReferenceableRequestBody requestBody)\n {\n final String methodName = \"updateSubjectArea\";\n final String guidParameter = \"subjectAreaGUID\";\n\n RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, methodName);\n\n VoidResponse response = new VoidResponse();\n AuditLog auditLog = null;\n\n try\n {\n if (requestBody != null)\n {\n if (requestBody.getProperties() instanceof SubjectAreaProperties)\n {\n auditLog = instanceHandler.getAuditLog(userId, serverName, methodName);\n SubjectAreaHandler<SubjectAreaElement> handler = instanceHandler.getSubjectAreaHandler(userId, serverName, methodName);\n\n SubjectAreaProperties properties = (SubjectAreaProperties)requestBody.getProperties();\n\n handler.updateSubjectArea(userId,\n requestBody.getExternalSourceGUID(),\n requestBody.getExternalSourceName(),\n subjectAreaGUID,\n guidParameter,\n properties.getQualifiedName(),\n properties.getSubjectAreaName(),\n properties.getDisplayName(),\n properties.getDescription(),\n properties.getUsage(),\n properties.getScope(),\n properties.getDomainIdentifier(),\n properties.getAdditionalProperties(),\n properties.getTypeName(),\n properties.getExtendedProperties(),\n isMergeUpdate,\n methodName);\n }\n else\n {\n restExceptionHandler.handleInvalidPropertiesObject(SubjectAreaProperties.class.getName(), methodName);\n }\n }\n else\n {\n restExceptionHandler.handleNoRequestBody(userId, methodName, serverName);\n }\n }\n catch (Exception error)\n {\n restExceptionHandler.captureExceptions(response, error, methodName, auditLog);\n }\n\n restCallLogger.logRESTCallReturn(token, response.toString());\n return response;\n }", "private static Node populateReceiver(Element receiver_Element, ReceiverBean receiverBean, Document doc) {\r\n\r\n\t\t// set id attribute\r\n\r\n\t\treceiver_Element\r\n\t\t\t\t.appendChild(getReceiverElements(doc, receiver_Element, \"receiver_id\", receiverBean.getReceiverId()));\r\n\t\t// create name element\r\n\t\treceiver_Element\r\n\t\t\t\t.appendChild(getReceiverElements(doc, receiver_Element, \"first_name\", receiverBean.getFirstName()));\r\n\r\n\t\t// create age element\r\n\t\treceiver_Element\r\n\t\t\t\t.appendChild(getReceiverElements(doc, receiver_Element, \"last_name\", receiverBean.getLastName()));\r\n\r\n\t\t// create role element\r\n\t\treceiver_Element.appendChild(getReceiverElements(doc, receiver_Element, \"file\", receiverBean.getFile()));\r\n\r\n\t\t// create gender element\r\n\t\treceiver_Element.appendChild(getReceiverElements(doc, receiver_Element, \"file_md5\", receiverBean.getFileMd5()));\r\n\r\n\t\treturn receiver_Element;\r\n\t}", "public DataBeadReceiver getReceiver() {\r\n\t\treturn receiver;\r\n\t}", "public void setContentAreaId(Long contentAreaId) {\n\t\tthis.contentAreaId = contentAreaId;\n\t}" ]
[ "0.70272803", "0.6705237", "0.6370428", "0.5951035", "0.5910913", "0.5781555", "0.57164156", "0.56330407", "0.54052347", "0.54052347", "0.52642655", "0.524643", "0.52447927", "0.5241743", "0.5232169", "0.521887", "0.52008027", "0.52008027", "0.51503897", "0.51471126", "0.50963384", "0.50351965", "0.5029632", "0.49944213", "0.4943175", "0.4935208", "0.49310523", "0.49214432", "0.49049872", "0.49021226", "0.488164", "0.48681682", "0.48574945", "0.47817373", "0.47720572", "0.4753111", "0.46987092", "0.46930853", "0.46922228", "0.46856025", "0.46554193", "0.46420765", "0.46093968", "0.4607216", "0.46071532", "0.46043324", "0.4549522", "0.45388618", "0.4527521", "0.4522675", "0.4522022", "0.4501977", "0.4490596", "0.44835475", "0.4473858", "0.44687435", "0.4457706", "0.44567984", "0.44338667", "0.44207", "0.44183797", "0.441454", "0.44117633", "0.44085318", "0.44079733", "0.44025874", "0.4371177", "0.43696055", "0.43644628", "0.43522656", "0.435212", "0.43478444", "0.43475387", "0.43451577", "0.43392578", "0.43220854", "0.43212157", "0.43173128", "0.43166456", "0.43166456", "0.43042666", "0.4302553", "0.42975783", "0.42975783", "0.42885014", "0.42772108", "0.42772108", "0.42730743", "0.42705032", "0.42647597", "0.4251912", "0.4247047", "0.4245824", "0.4243915", "0.42411277", "0.42271358", "0.42215317", "0.4219944", "0.42167565", "0.41971064" ]
0.7515191
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.reason
public String getReason() { return reason; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuditReason() {\n return auditReason;\n }", "public String getReason() {\n\t\treturn getProperty(\"reason\");\n\t}", "public String getReason() {\n return this.reason;\n }", "java.lang.String getReason();", "public String getReason() {\n\t\treturn this.reason;\n\t}", "org.hl7.fhir.String getReason();", "@AutoEscape\n\tpublic String getReason();", "public Reason getReason() {\n return this.reason;\n }", "public String getReason() {\n\t\treturn(m_reason);\n\t}", "public String reason() {\n return this.reason;\n }", "public String getReason() {\n return reason;\n }", "public String getReason() {\n\n return reason;\n }", "public String getReason();", "public String getReason() {\n return reason;\n }", "public String getReason()\n {\n return reason;\n }", "public java.lang.String getReason() {\r\n return reason;\r\n }", "public String getReason() {\n\t\treturn reason;\n\t}", "public String reason() {\n if(reason == null) reason = standardReason(code);\n\n return reason;\n \n }", "@JsonProperty(\"reason\")\n public String getReason() {\n return reason;\n }", "public java.lang.String getReason() {\n java.lang.Object ref = reason_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n reason_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getReason() {\n java.lang.Object ref = reason_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n reason_ = s;\n return s;\n }\n }", "@JsonProperty(\"failureReason\")\n public String getFailureReason() {\n return failureReason;\n }", "@Override\n public String getReason()\n {\n return null;\n }", "public int reason() {\r\n return Integer.parseInt(getParm(1));\r\n }", "@ApiModelProperty(value = \"The merchant-specified reason for the refund.\")\n public String getReason() {\n return reason;\n }", "private String getReason(){\r\n\t\tString reason=null;\r\n\t\tswitch (mReason) {\r\n\t\tcase TRANSPORTER_NOT_READY:\r\n\t\t\treason=\"Transporter not ready\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase INVALID_KEY:\r\n\t\t\treason=\"Invalid key\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase VALUE_NOT_FOUND:\r\n\t\t\treason=\"Value not found\";\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\treason=\"Unknown\";\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn reason;\r\n\t}", "public String getChangeReason() {\n return changeReason;\n }", "public String getREASON_DESC() {\r\n return REASON_DESC;\r\n }", "public String reason() {\n return reason;\n }", "public java.lang.String getReasonText() {\n return reasonText;\n }", "public String textReason() {\r\n return getParm(2).trim();\r\n }", "public String getFailureReason() {\n return this.failureReason;\n }", "public String getFailureReason() {\n return this.failureReason;\n }", "public void setReason(String value) {\n this.reason = value;\n }", "public String getLstReason() {\n return lstReason;\n }", "@ApiModelProperty(value = \"The reason this auto order failed during the last rebill attempt\")\r\n public String getFailureReason() {\r\n return failureReason;\r\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"bridged\", value = \"The reason for leaving the queue\")\n @JsonProperty(JSON_PROPERTY_REASON)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public ReasonEnum getReason() {\n return reason;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getReasonBytes() {\n java.lang.Object ref = reason_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n reason_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString getReasonBytes() {\n java.lang.Object ref = reason_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n reason_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getAuditFaildReason() {\n return auditFaildReason;\n }", "com.google.protobuf.ByteString\n getReasonBytes();", "public CommonExceptionConstants getReason() {\n return this.reason;\n }", "public String toString() {\n return reason;\n }", "public String toString(){\n\t return reason;\n\t }", "public java.lang.String getStatusreason() {\n return statusreason;\n }", "public String getReasonPhrase() {\n return toString();\n }", "public Throwable getReason() { return err; }", "public void setReason(String aReason) {\n\t\tthis.reason = aReason;\n\t}", "public java.math.BigInteger getReasonCode() {\r\n return reasonCode;\r\n }", "public String getLastChgReasonCd() {\n\t\treturn null;\n\t}", "public Optional<String> getMaybeRevertReason() {\n return revertReason;\n }", "public String getRefundReason() {\n return refundReason;\n }", "public String getDealReason() {\r\n return dealReason;\r\n }", "UserStatusReason getStatusReason();", "String failureReason();", "public void setReason(String reason) {\n this.reason = reason;\n }", "public String getReasonList() {\r\n return reasonList;\r\n }", "public String getAfterReason() {\r\n return afterReason;\r\n }", "public java.util.List<CodeableConcept> reasonCode() {\n return getList(CodeableConcept.class, FhirPropertyNames.PROPERTY_REASON_CODE);\n }", "public java.util.List<CodeableConcept> reasonCode() {\n return getList(CodeableConcept.class, FhirPropertyNames.PROPERTY_REASON_CODE);\n }", "public void setReason(String reason) {\n this.reason = reason;\n }", "public String getPayoutScheduleReason() {\n return payoutScheduleReason;\n }", "public ModelExceptionReason getExceptionReason() {\n return this.modelExceptionReason;\n }", "public String getID() {\n\t\treturn iReason;\n\t}", "public void setReason(String reason) {\n this.reason = reason;\n }", "public void setReason(String reason) {\n this.reason = reason;\n }", "public void setReason(String reason) {\n this.reason = reason;\n }", "@Override\n public void setReason( String arg0)\n {\n \n }", "public Optional<String> reasonPhrase() {\n return header.reasonPhrase();\n }", "public void setReason(String reason);", "public ReasonDAO getReasonDAO() {\n\t\treturn reasonDAO;\n\t}", "@ApiModelProperty(value = \"The reason this auto order was canceled by either merchant or customer\")\r\n public String getCancelReason() {\r\n return cancelReason;\r\n }", "@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:58:12.110 -0500\", hash_original_method = \"8E1778B505008D9459C329AADF141931\", hash_generated_method = \"01C0C67BB9AF9328133D03E5E8E174ED\")\n \npublic String getReason() {\n return getMessage();\n }", "public java.lang.String getSkipReason() {\n java.lang.Object ref = skipReason_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n skipReason_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public PaymentStatusReason getStatusReason() {\n return paymentStatusReason;\n }", "public AbsenceReason getAbsenceReason() {\n\treturn absenceReason;\n }", "public DEDependencyReason getReason() {\n\t\treturn reason;\n\t}", "public String getDescription() {\n\t\tif (iDescription == null) {\n\n\t\t\tif (iExtendedReason != null) {\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint i = 0;\n\n\t\t\t\tsb.append('(');\n\t\t\t\tsb.append(iReason);\n\t\t\t\tsb.append(\": \");\n\t\t\t\tfor (; i < iExtendedReason.length - 1; i++) {\n\t\t\t\t\tif (iExtendedReason[i] != null) {\n\t\t\t\t\t\tsb.append(iExtendedReason[i].toString());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"null\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(',');\n\t\t\t\t}\n\t\t\t\tsb.append(iExtendedReason[i]);\n\t\t\t\tsb.append(')');\n\t\t\t\tsb.insert(0, iReason);\n\t\t\t\treturn sb.toString();\n\t\t\t}\n\t\t\treturn iReason;\n\t\t}\n\t\treturn iDescription;\n\t}", "public List<InvalidRatSightingReason> getReasons() {\n return reasons;\n }", "public void setReason(java.lang.String reason) {\r\n this.reason = reason;\r\n }", "public String getReasonRejection()\n\t{\n\t\treturn reasonRejection;\n\t}", "public void setFailureReason(String failureReason) {\n this.failureReason = failureReason;\n }", "public String disabledReasonMessage() {\n return this.disabledReasonMessage;\n }", "public String getDetailedReason() {\n return detailedReason;\n }", "public String getStateReasonCode() {\n return this.stateReasonCode;\n }", "public String getGameOverReason() {\n if (isGameDone()) {\n return this.gameOverReason;\n } else {\n return \"The game is still in progress.\";\n }\n }", "int getExitReason( ) {\n\t\treturn exitReason;\n\t}", "public java.util.List<String> getFailureReasons() {\n return failureReasons;\n }", "public java.util.List<String> getFailureReasons() {\n return failureReasons;\n }", "public String getRequestReason() {\r\n return (String) getAttributeInternal(REQUESTREASON);\r\n }", "private static String fetchTerminationReason(PsJob psJob, String terminationCode) {\n\t\tlogger.debug(\"*** EmployeeTermination.fetchTerminationReason()\");\n\t\tString terminationReason = null;\n\t\tif(\"O\".equalsIgnoreCase(terminationCode) && \"TER\".equalsIgnoreCase(psJob.getAction())) {\n\t\t\tterminationReason = PsActionReason.findReasonDescriptionByActionAndActionReason(psJob.getAction(), psJob.getActionReason());\n\t\t}\n\t\tif(terminationReason != null) {\n\t\t\t//remove non-alphanumeric characters, except for space\n\t\t\tterminationReason = terminationReason.replaceAll(\"[^a-zA-Z0-9] \", \"\");\n\t\t}\n\t\treturn terminationReason;\n\t}", "public java.util.List<Reference> reasonReference() {\n return getList(Reference.class, FhirPropertyNames.PROPERTY_REASON_REFERENCE);\n }", "public java.util.List<Reference> reasonReference() {\n return getList(Reference.class, FhirPropertyNames.PROPERTY_REASON_REFERENCE);\n }", "public void setFailureReason(String failureReason) {\n this.failureReason = failureReason;\n }", "public void setFailureReason(String failureReason) {\n this.failureReason = failureReason;\n }", "String getFaultReasonValue();", "public String getRejectReason() {\n\t\treturn rejectReason;\n\t}" ]
[ "0.65839005", "0.64295006", "0.6409036", "0.6398708", "0.63809896", "0.6305648", "0.62913764", "0.6257475", "0.6249042", "0.6217302", "0.61365473", "0.6133191", "0.6118373", "0.61168736", "0.6109518", "0.6083491", "0.6082153", "0.60449696", "0.60146874", "0.59779346", "0.5897532", "0.58666116", "0.5860619", "0.58591425", "0.5852217", "0.5844135", "0.5788059", "0.5778651", "0.5761717", "0.57533145", "0.5707486", "0.568951", "0.568951", "0.568184", "0.5679565", "0.5665032", "0.5648458", "0.5614193", "0.56070775", "0.5589648", "0.5565298", "0.5537949", "0.5523282", "0.55121326", "0.55091023", "0.55060834", "0.5481678", "0.54480606", "0.54062474", "0.5402062", "0.53646904", "0.5317511", "0.5296672", "0.5285699", "0.5270167", "0.52674115", "0.525117", "0.523848", "0.52143985", "0.52143985", "0.5189707", "0.51865137", "0.5175451", "0.5148369", "0.5147247", "0.5147247", "0.5147247", "0.5140041", "0.51360434", "0.5095364", "0.5063826", "0.50383204", "0.50332475", "0.50277483", "0.50032777", "0.49950993", "0.49864233", "0.49848047", "0.49455294", "0.49430093", "0.4928198", "0.49053293", "0.48823434", "0.48812637", "0.48790118", "0.48767707", "0.48681876", "0.4862737", "0.4862737", "0.48615754", "0.4860675", "0.48559996", "0.48559996", "0.4837866", "0.4837866", "0.4826604", "0.48179737" ]
0.6128946
14
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.reason
public void setReason(String reason) { this.reason = reason; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setReason( String arg0)\n {\n \n }", "public void setReason(String value) {\n this.reason = value;\n }", "public void setReason(String reason);", "public void setReason(String aReason) {\n\t\tthis.reason = aReason;\n\t}", "public void setReason(String reason) {\n this.reason = reason;\n }", "public void setReason(String reason) {\n this.reason = reason;\n }", "public String getAuditReason() {\n return auditReason;\n }", "public void setReason(java.lang.String reason) {\r\n this.reason = reason;\r\n }", "public void setFailureReason(String failureReason) {\n this.failureReason = failureReason;\n }", "public String getReason() {\n return this.reason;\n }", "public void setFailureReason(String failureReason) {\n this.failureReason = failureReason;\n }", "public void setFailureReason(String failureReason) {\n this.failureReason = failureReason;\n }", "public ServerScheduledEventBuilder setAuditLogReason(String reason) {\n delegate.setAuditLogReason(reason);\n return this;\n }", "public String getReason() {\n\t\treturn this.reason;\n\t}", "@AutoEscape\n\tpublic String getReason();", "@Override\n public String getReason()\n {\n return null;\n }", "public String getReason() {\n\t\treturn getProperty(\"reason\");\n\t}", "@JsonProperty(\"reason\")\n public String getReason() {\n return reason;\n }", "public Reason getReason() {\n return this.reason;\n }", "java.lang.String getReason();", "public String reason() {\n return this.reason;\n }", "public String getReason() {\n return reason;\n }", "public String getReason() {\n return reason;\n }", "@ApiModelProperty(value = \"The merchant-specified reason for the refund.\")\n public String getReason() {\n return reason;\n }", "public String getReason() {\n return reason;\n }", "public String getReason() {\n return reason;\n }", "public String getReason() {\n return reason;\n }", "public String getReason() {\n return reason;\n }", "public String getReason() {\n\n return reason;\n }", "public String getReason()\n {\n return reason;\n }", "public String getReason() {\n\t\treturn reason;\n\t}", "public void setAfterReason(String afterReason) {\r\n this.afterReason = afterReason;\r\n }", "public String getReason() {\n\t\treturn(m_reason);\n\t}", "@JsonProperty(\"failureReason\")\n public String getFailureReason() {\n return failureReason;\n }", "@ApiModelProperty(value = \"The reason this auto order failed during the last rebill attempt\")\r\n public String getFailureReason() {\r\n return failureReason;\r\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"bridged\", value = \"The reason for leaving the queue\")\n @JsonProperty(JSON_PROPERTY_REASON)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public ReasonEnum getReason() {\n return reason;\n }", "public String getReason();", "org.hl7.fhir.String getReason();", "public java.lang.String getReason() {\r\n return reason;\r\n }", "public void setAbsenceReason(AbsenceReason absenceReason) {\n\tthis.absenceReason = absenceReason;\n }", "public String getChangeReason() {\n return changeReason;\n }", "void setStatusReason(final UserStatusReason statusReason);", "public Builder setReason(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n reason_ = value;\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public void setStatusreason(java.lang.String statusreason) {\n this.statusreason = statusreason;\n }", "public void setChangeReason(String changeReason) {\n this.changeReason = changeReason;\n }", "public void setLstReason(String lstReason) {\n this.lstReason = lstReason == null ? null : lstReason.trim();\n }", "public String reason() {\n if(reason == null) reason = standardReason(code);\n\n return reason;\n \n }", "protected void setRemark(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString remark = rs.getString(EmployeeLeaveTable.COLUMN_REMARK);\n\t\tif(remark == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setRemark(remark);\n\t}", "void setExitReason( int exitReason ) {\n\t\tthis.exitReason = exitReason;\n\t}", "public void setFteReasonCode(java.lang.String param){\n localFteReasonCodeTracker = true;\n \n this.localFteReasonCode=param;\n \n\n }", "public String getAuditFaildReason() {\n return auditFaildReason;\n }", "public void setCancelReason(String cancelReason) {\n this.cancelReason = cancelReason;\n }", "public void setREASON_DESC(String REASON_DESC) {\r\n this.REASON_DESC = REASON_DESC == null ? null : REASON_DESC.trim();\r\n }", "@Override\r\n\tpublic void setReasonText(String text) {\r\n\t\tif(text==null) return;\t\t\r\n\t\tText allowanceChargeReasonCode = Text.create(text);\r\n\t\tsuper.setReason(allowanceChargeReasonCode);\r\n\t}", "public void setReasonText(java.lang.String reasonText) {\n this.reasonText = reasonText;\n }", "@java.lang.Override\n public java.lang.String getReason() {\n java.lang.Object ref = reason_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n reason_ = s;\n return s;\n }\n }", "public java.lang.String getReason() {\n java.lang.Object ref = reason_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n reason_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setRejectReason(String rejectReason) {\n\t\tthis.rejectReason = rejectReason == null ? null : rejectReason.trim();\n\t}", "public String getLstReason() {\n return lstReason;\n }", "public String reason() {\n return reason;\n }", "public void setReasonList(String reasonList) {\r\n this.reasonList = reasonList;\r\n }", "public void setAuditFaildReason(String auditFaildReason) {\n this.auditFaildReason = auditFaildReason == null ? null : auditFaildReason.trim();\n }", "public void testUpdateRejectReason_NullRejectReason() {\r\n try {\r\n entry.updateRejectReason(null);\r\n fail(\"Should throw IllegalArgumentException\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "public void setDealReason(String dealReason) {\r\n this.dealReason = dealReason == null ? null : dealReason.trim();\r\n }", "public java.lang.String getReasonText() {\n return reasonText;\n }", "public void setRequestReason(String value) {\r\n setAttributeInternal(REQUESTREASON, value);\r\n }", "public String getREASON_DESC() {\r\n return REASON_DESC;\r\n }", "public void setReasonCode(java.math.BigInteger reasonCode) {\r\n this.reasonCode = reasonCode;\r\n }", "public String getFailureReason() {\n return this.failureReason;\n }", "public String getFailureReason() {\n return this.failureReason;\n }", "public int reason() {\r\n return Integer.parseInt(getParm(1));\r\n }", "public void setCause(String cause) {\n this.cause = cause;\n }", "public void setStateReason(String stateReason) {\n this.stateReason = stateReason;\n }", "public void setCause(String cause) {\r\n\t\tthis.cause = cause;\r\n\t}", "public void setRefundReason(String refundReason) {\n this.refundReason = refundReason;\n }", "private String getReason(){\r\n\t\tString reason=null;\r\n\t\tswitch (mReason) {\r\n\t\tcase TRANSPORTER_NOT_READY:\r\n\t\t\treason=\"Transporter not ready\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase INVALID_KEY:\r\n\t\t\treason=\"Invalid key\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase VALUE_NOT_FOUND:\r\n\t\t\treason=\"Value not found\";\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\treason=\"Unknown\";\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn reason;\r\n\t}", "@ApiModelProperty(value = \"The reason this auto order was canceled by either merchant or customer\")\r\n public String getCancelReason() {\r\n return cancelReason;\r\n }", "public void setReasonRejection(String reasonRejection)\n\t{\n\t\tthis.reasonRejection = Toolbox.trim(reasonRejection, 70);\n\t}", "public void setReasonDAO(ReasonDAO reasonDAO) {\n\t\tthis.reasonDAO = reasonDAO;\n\t}", "public String getDealReason() {\r\n return dealReason;\r\n }", "public com.google.protobuf.ByteString getReasonBytes() {\n java.lang.Object ref = reason_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n reason_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Throwable getReason() { return err; }", "public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setInt(1, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setRole()\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public String getAfterReason() {\r\n return afterReason;\r\n }", "public Optional<String> getMaybeRevertReason() {\n return revertReason;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getReasonBytes() {\n java.lang.Object ref = reason_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n reason_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "UserStatusReason getStatusReason();", "private void updateAsset(\n\t\tLead lead, ServiceContext serviceContext)\n\t\tthrows PortalException {\n\n\t\tassetEntryLocalService.updateEntry(\n\t\t\tserviceContext.getUserId(), serviceContext.getScopeGroupId(),\n\t\t\tlead.getCreateDate(), lead.getModifiedDate(),\n\t\t\tLead.class.getName(), lead.getLeadId(),\n\t\t\tlead.getUuid(), 0, serviceContext.getAssetCategoryIds(),\n\t\t\tserviceContext.getAssetTagNames(), true, true,\n\t\t\tlead.getCreateDate(), null, null, null,\n\t\t\tContentTypes.TEXT_HTML,\n\t\t\tlead.getTitle(serviceContext.getLocale()),\n\t\t\tlead.getDescription(), null, null, null, 0, 0,\n\t\t\tserviceContext.getAssetPriority());\n\t}", "public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }", "protected void setCode(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString code = rs.getString(UiActionTable.COLUMN_CODE);\n\t\t\n\t\tif(code == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setCode(code);\n\t}", "protected void setLeaveDurationHour(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tInteger leaveDurationHour = rs.getInt(EmployeeLeaveTable.COLUMN_LEAVE_DURATION_HOUR);\n\t\tif(leaveDurationHour == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setLeaveDurationHour(leaveDurationHour);\n\t}", "public void setMotivoLlamadoAtencion(MotivoLlamadoAtencion motivoLlamadoAtencion)\r\n/* 119: */ {\r\n/* 120:127 */ this.motivoLlamadoAtencion = motivoLlamadoAtencion;\r\n/* 121: */ }", "@Override\n public String getDescription() {\n return \"Asset issuance\";\n }", "public String getPayoutScheduleReason() {\n return payoutScheduleReason;\n }", "public void setCause(String cause) {\n infoElements.put(new Integer(InfoElement.CAUSE), cause.getBytes());\n }", "public String textReason() {\r\n return getParm(2).trim();\r\n }", "public CommonExceptionConstants getReason() {\n return this.reason;\n }", "@Override\r\n\tpublic void setReasoncode(String code) {\r\n\t\tif(code==null) return; \r\n\t\tAllowanceChargeReasonCodeType allowanceChargeReasonCode = new AllowanceChargeReasonCodeType();\r\n\t\tallowanceChargeReasonCode.setValue(code);\r\n\t\tsuper.setReasonCode(allowanceChargeReasonCode);\r\n\t}" ]
[ "0.616159", "0.6102014", "0.6021001", "0.59335184", "0.5736476", "0.56663704", "0.5549068", "0.55127513", "0.5461739", "0.54321617", "0.5408365", "0.5408365", "0.53840256", "0.53427213", "0.5284455", "0.5281922", "0.52690977", "0.5253707", "0.52456284", "0.52173537", "0.51644063", "0.51510984", "0.5150206", "0.5146134", "0.51239485", "0.51239485", "0.51239485", "0.51239485", "0.51208407", "0.5096179", "0.5084694", "0.506022", "0.5006339", "0.49973944", "0.49923056", "0.49799225", "0.49734977", "0.49700502", "0.4966849", "0.49318874", "0.48905182", "0.48867974", "0.4873662", "0.48654816", "0.4850037", "0.48320445", "0.48133725", "0.481078", "0.48013806", "0.47957432", "0.4783136", "0.47756055", "0.47519386", "0.47497743", "0.4749325", "0.47155073", "0.47086048", "0.46797046", "0.46692723", "0.46548006", "0.4634456", "0.46322405", "0.462837", "0.46102315", "0.45913836", "0.45879063", "0.45848852", "0.4582609", "0.45812485", "0.45812485", "0.4566809", "0.4544119", "0.453719", "0.45293617", "0.452777", "0.45155972", "0.45078787", "0.44921973", "0.44827065", "0.4478895", "0.44608742", "0.44603848", "0.44534823", "0.44533333", "0.44523084", "0.444005", "0.44355994", "0.44238484", "0.44186604", "0.44178647", "0.4391001", "0.4381386", "0.43764725", "0.43632793", "0.4353858", "0.43482417", "0.4345385", "0.43248832" ]
0.56236094
8
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.logistics_cost
public String getLogisticsCost() { return logisticsCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLogisticsCost(String logisticsCost) {\n this.logisticsCost = logisticsCost;\n }", "public String getCost() {\n\t\tString t = doc.get(\"cost\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "@Override\n\tpublic double getSumOfCost() {\n\t String sql=\"SELECT SUM(cost) FROM supplier_product\";\n\t double total=this.getJdbcTemplate().queryForObject(sql, double.class);\n\t\treturn total;\n\t}", "public BigDecimal getCost() {\n return this.cost;\n }", "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "float getTotalCost() throws SQLException;", "public BigDecimal getCost() {\r\n return cost;\r\n }", "public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}", "public String getCost() {\n return cost;\n }", "public CostInfo getCostInfo();", "public Integer getCost() {\n return cost;\n }", "public CostInformation costInformation() {\n return this.innerProperties() == null ? null : this.innerProperties().costInformation();\n }", "public Integer getCost() {\r\n\t\treturn cost;\r\n\t}", "@NotNull\n public BigDecimal getCost() {\n return cost;\n }", "public int getCost(){\r\n\t\treturn this.cost;\r\n\t}", "String getTotalCost() {\n return Double.toString(totalCost);\n }", "public double getCost() {\n\t\treturn this.cost;\n\t}", "public double getCost() {\n\t\treturn this.cost;\n\t}", "public float getCost() {\r\n\t\treturn this.cost.floatValue();\r\n\t}", "public String getTotalCost() {\n return this.TotalCost;\n }", "public double cost()\n\t{\n\t\treturn _dblCost;\n\t}", "public double getCost() {\t\t \n\t\treturn cost;\n\t}", "public double getCost() {\r\n return cost;\r\n }", "public double getCost() {\r\n\t \treturn(cost);\r\n\t}", "public String getCostsTarget() {\n return costsTarget;\n }", "public double getCost()\r\n\t{\treturn this.cost;\t}", "public double getCost() {\n return cost;\n }", "public double getCost() {\n return cost;\n }", "public double getCost() {\r\n\t\treturn cost;\r\n\t}", "public Number getCost()\r\n {\r\n return (m_cost);\r\n }", "public int getCost() {\n return cost;\n }", "public int getCost() {\n return cost;\n }", "public double getLodgingCost()\n\t{\n\t\tdouble temp = 0.0;\n\t\tswitch (this.cabin)\n\t\t{\n\t\t\tcase INTERIOR: temp = this.basePrice;\n\t\t\tbreak;\n\t\t\tcase OCEAN_VIEW: temp = this.basePrice * this.oceanConstant;\n\t\t\tbreak;\n\t\t\tcase BALCONY: temp = this.basePrice * this.balconyConstant;\n\t\t\tbreak;\n\t\t\tcase SUITE: temp = this.basePrice * this.suiteConstant;\n\t\t\tbreak;\n\t\t\tdefault: temp = this.basePrice;\n\t\t}\n\t\treturn temp;\n\t}", "public int getCost() {\n return cost;\n }", "public int get_cost() {\n return (int)getUIntElement(offsetBits_cost(), 16);\n }", "public double getCost() {\n\t\treturn cost;\n\t}", "public int getCost() {\n \t\treturn cost;\n \t}", "public String getCost() {\n // Formats the cost amount into money format.\n NumberFormat n = NumberFormat.getCurrencyInstance(Locale.US);\n String s = n.format(Double.parseDouble(_cost));\n return s;\n }", "@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}", "public double getCost(){\n return cost;\n }", "@Pure\n\tdouble getCost();", "public double getcost() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn room.getcost() + cost;\r\n\t}", "double getCost();", "double getCost();", "public double getCost() {\n\n\t\treturn cost;\n\t}", "public int getCost(){\n return this.cost;\n }", "public int getCost() {\n\t\treturn cost;\n\t}", "public int getCost()\n {\n return cost;\n }", "@Override\r\n public int getCost() {\r\n return cost;\r\n }", "@Override\n public double getCost() {\n return cost;\n }", "@ApiModelProperty(value = \"The event cost including the currency symbol\")\n public String getCost() {\n return cost;\n }", "public float getTotalCost() {\n return this.totalCost;\n }", "public double getTotalCost() {\r\n return totalCost;\r\n }", "public Number getActualCost()\r\n {\r\n return (m_actualCost);\r\n }", "public long getCosto() {\n return costo;\n }", "public double getCost() {\r\n\t\t\r\n\t\tif (super.getSize() == \"Small\") { totalCost = 2.00; }\r\n\t\t\r\n\t\tif (super.getSize() == \"Medium\") { totalCost = 2.50; }\r\n\t\t\r\n\t\tif (super.getSize() == \"Large\") { totalCost = 3.00; }\r\n\t\t\r\n\t\treturn totalCost;\r\n\t}", "public String getCostCategory() {\n\t\treturn this.costCategory;\n\t}", "public int getCosts() {\n return costs.get(level);\n }", "public int getCost()\r\n\t{\n\t\treturn 70000;\r\n\t}", "public Money getCost(){\r\n return this.cost;\r\n }", "@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}", "public BigDecimal getCostPrice() {\n return costPrice;\n }", "public int getCreditCost() {\n\t\treturn 0;\n\t}", "public double getCost()\n\t{\n\t\treturn 0.9;\n\t}", "private void calculateCosts() {\r\n lb_CubicSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_Volume)) + \" €\");\r\n lb_MaterialCostSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_Price)) + \" €\");\r\n lb_CuttingTimeSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingHours)) + \" €\");\r\n lb_CuttingCostSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingPrice)) + \" €\");\r\n lb_TotalCosts.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingPrice) + getColmunSum(tc_Price)) + \" €\");\r\n\r\n ModifyController.getInstance().setProject_constructionmaterialList(Boolean.TRUE);\r\n }", "public double getCosts();", "@Override\n public double getCost() {\n\t return 13;\n }", "int getCost();", "int getCost();", "int getCost();", "@Override\n\tpublic Double getSumofCost(String supplyStartDate, String supplyLastDate) {\n\t\tString sql=\"SELECT SUM(h.cost) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE buy_date>=?::Date and buy_date<=?::Date\";\n\t\tDouble total=this.getJdbcTemplate().queryForObject(sql, Double.class, supplyStartDate, supplyLastDate);\n\t\treturn total;\n\t}", "public String getCostsDate() {\n return costsDate;\n }", "public String getLogisticsDistance() {\n return logisticsDistance;\n }", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "public void calculateCost()\n\t{\n\t\tLogManager lgmngr = LogManager.getLogManager(); \n\t\tLogger log = lgmngr.getLogger(Logger.GLOBAL_LOGGER_NAME);\n\t\tString s = \"\";\n\t\tint costperfeet = 0;\n\t\tif (this.materialStandard.equals(\"standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1200;\n\t\telse if (this.materialStandard.equals(\"above standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1500;\n\t\telse if(this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1800;\n\t\telse if (this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == true)\n\t\t\tcostperfeet = 2500;\n\t\t\n\t\tint totalCost = costperfeet * this.totalArea;\n\t\t/*s = \"Total Cost of Construction is :- \";\n\t\twriter.printf(\"%s\" + totalCost, s);\n\t\twriter.flush();*/\n\t\tlog.log(Level.INFO, \"Total Cost of Construction is :- \" + totalCost);\n\t}", "public BigDecimal getUnitCost() {\r\n return unitCost;\r\n }", "public double cost() {\n return roomType.cost() + COST;\n }", "public int getCargo_upgrade_cost() {\n return cargo_upgrade_cost;\n }", "@ApiModelProperty(value = \"The event cost details\")\n public CostDetails getCostDetails() {\n return costDetails;\n }", "public BigDecimal getCost() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"Cost\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}", "public CP getProductServiceUnitCost() { \r\n\t\tCP retVal = this.getTypedField(13, 0);\r\n\t\treturn retVal;\r\n }", "public double GetCost() {\n if( LotSize != CurLotSize ) {\n double CostPerShot = Cost / (double) LotSize;\n return CommonTools.RoundFractionalTons( CostPerShot * (double) CurLotSize );\n }\n return Cost;\n }", "public double getCost() {\n\t\treturn costOverride > 0 ? costOverride : getDefaultCost();\n\t}", "public int getFuel_upgrade_cost() {\n return fuel_upgrade_cost;\n }", "public double getCost() {\n\t\treturn 1.25;\n\t}", "public int[] getCost(){\n\t\treturn this.cost;\n\t}", "@Pure\n\tdouble getEstimatedCost();", "@Override\n public int getCost() {\n\n\n //return cost converted to int\n return (int) cost;\n }", "public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}", "public java.math.BigDecimal getTotalCost () {\n\t\treturn totalCost;\n\t}", "public Integer getLogisticsId() {\n return logisticsId;\n }", "public int cost() {\n\t\treturn value;\n\t}", "public double getCost() {\n return price;\n }", "public int getLatestCost() {\n\t\treturn latestCost;\n\t}", "@Override\n\tpublic double getSumofCost(String supplierName) {\n\t\tString sql=\"SELECT SUM(h.cost) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n\t\tdouble total=this.getJdbcTemplate().queryForObject(sql, Double.class, supplierName);\n\t\treturn total;\n\t}", "public abstract double getCost();", "public int getCost() {\n/* 69 */ return this.cost;\n/* */ }", "@Override\r\n\tpublic double getCost() {\n\t\treturn this.cost_of_icecream;\r\n\t}", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }", "public float getCost() {\n if (categoryIdentifier == AppController.periodicCategoryIdentifier) {\n if (pCostEt.getText().toString().isEmpty())\n return -100;\n cost = Float.valueOf(pCostEt.getText().toString());\n } else {\n if (fCostEt.getText().toString().isEmpty())\n return -100;\n cost = Float.valueOf(fCostEt.getText().toString());\n }\n return cost;\n }" ]
[ "0.63466066", "0.5958313", "0.5854393", "0.5854355", "0.58191377", "0.57920915", "0.5773953", "0.5762198", "0.57301205", "0.56744844", "0.56705946", "0.56634873", "0.5651809", "0.5638683", "0.5626862", "0.56104666", "0.55839574", "0.55839574", "0.5574867", "0.55421805", "0.5526396", "0.5514606", "0.551127", "0.5508523", "0.54804265", "0.54760784", "0.5474662", "0.5474662", "0.5458583", "0.5451273", "0.5439657", "0.5439657", "0.54369193", "0.54240924", "0.5419343", "0.54189223", "0.5416421", "0.5404532", "0.53912884", "0.5390443", "0.5388599", "0.5386298", "0.5385641", "0.5385641", "0.5384267", "0.5381122", "0.5363354", "0.5355602", "0.5345766", "0.5342642", "0.5311254", "0.53103095", "0.528659", "0.5286385", "0.52807224", "0.5273327", "0.5266333", "0.5262283", "0.5260798", "0.525957", "0.5249802", "0.52345914", "0.52344626", "0.523122", "0.5231148", "0.5226296", "0.52219456", "0.5204192", "0.5204192", "0.5204192", "0.52037984", "0.52030027", "0.51978594", "0.51906437", "0.51850736", "0.5181675", "0.51772535", "0.51764095", "0.5175975", "0.51741993", "0.5173577", "0.51695204", "0.5164292", "0.51502615", "0.5142493", "0.5142462", "0.51251876", "0.5106106", "0.50971544", "0.5077875", "0.50777745", "0.5069112", "0.5068865", "0.5065193", "0.50629646", "0.5062952", "0.5052025", "0.5051338", "0.50332147", "0.50310135" ]
0.7034989
0
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.logistics_cost
public void setLogisticsCost(String logisticsCost) { this.logisticsCost = logisticsCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCost(double cost){\n this.cost = cost;\n }", "public void setCost(BigDecimal cost) {\r\n this.cost = cost;\r\n }", "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "void setCost(double cost);", "public void setCost(int c) {\r\n this.cost = c;\r\n }", "public void setCost(double cost) {\r\n this.cost = cost;\r\n }", "public void setCost(double cost) {\n this.cost = cost;\n }", "protected void setCost(double cost) \r\n\t{\tthis.cost = cost;\t}", "public final void setCost(java.math.BigDecimal cost)\n\t{\n\t\tsetCost(getContext(), cost);\n\t}", "public void setCost(double value) {\n this.cost = value;\n }", "public void setCost(double cost) {\n\t\tthis.cost = cost;\n\t}", "@Override\n\tprotected void setCost(double cst) {\n\t\t\n\t}", "public void setCosts(int cost) {\n\t\tthis.damageCharge = cost;\n\t}", "@IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.COST,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.XBEDEWORK_COST,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)}\n )\n public void setCost(final String val) {\n cost = val;\n }", "public String getLogisticsCost() {\n return logisticsCost;\n }", "@Override\r\n\tpublic void setCost(double newCost) {\n\r\n\t}", "public void setCost(int cost) {\n \t\tthis.cost = cost;\n \t}", "public void setCost(Integer cost) {\n this.cost = cost;\n }", "double setCost(double cost);", "public final void setCost(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal cost)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Cost.toString(), cost);\n\t}", "double setEstimatedCost(double cost);", "public void setCost(double cost) {\n\n\t\tthis.cost = cost;\n\t}", "public void setCost(Number cost)\r\n {\r\n m_cost = cost;\r\n }", "@Autowired\n\tpublic void setCost(@Value(\"${repair.cost}\") int cost) {\n\t\tthis.cost = oneOrMore(cost);\n\t}", "public void setCost(Integer cost) {\r\n\t\tthis.cost = cost;\r\n\t}", "public void setCost(int cost) {\n\t\tthis.cost = cost;\n\t}", "private void calculateCosts() {\r\n lb_CubicSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_Volume)) + \" €\");\r\n lb_MaterialCostSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_Price)) + \" €\");\r\n lb_CuttingTimeSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingHours)) + \" €\");\r\n lb_CuttingCostSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingPrice)) + \" €\");\r\n lb_TotalCosts.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingPrice) + getColmunSum(tc_Price)) + \" €\");\r\n\r\n ModifyController.getInstance().setProject_constructionmaterialList(Boolean.TRUE);\r\n }", "public void setCost (BigDecimal Cost)\n{\nif (Cost == null) throw new IllegalArgumentException (\"Cost is mandatory\");\nset_Value (\"Cost\", Cost);\n}", "public void setCostPrice(BigDecimal costPrice) {\n this.costPrice = costPrice;\n }", "public void setCost(final float newCost) {\r\n\t\tthis.cost = new Float(newCost);\r\n\t}", "public void setCost(int maxTemp) {\n\t\tthis.cost = 900 + (200 * (Math.pow( 0.7, ((double)maxTemp/5.0) )));\n\t}", "public void setInfrastructureCost(int infrastructureCost) {\r\n this.infrastructureCost = infrastructureCost;\r\n }", "@Override\n public void setCost( double cost ) {\n throw new UnsupportedOperationException( \"Not supported yet.\" );\n }", "public void setCost(int[] cost){\n\t\tthis.cost = cost;\n\t}", "public void set_cost(int value) {\n setUIntElement(offsetBits_cost(), 16, value);\n }", "public void setCosto(long pCosto) {\n this.costo = pCosto;\n }", "public void setActualCost(Number actualCost)\r\n {\r\n m_actualCost = actualCost;\r\n }", "public void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);", "public void setCost(double cost) {\n /**\n * @return sets the cost of the Ice Cream with the double argument\n */\n this.cost = cost;\n }", "public void setProductivity(BigDecimal productivity)\n {\n this.productivity = productivity;\n }", "public void setLogisticsId(Integer logisticsId) {\n this.logisticsId = logisticsId;\n }", "public void setCostOverride(double costOverride) {\n\t\tthis.costOverride = costOverride;\n\t}", "public void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);", "public void setCredit(BigDecimal credit) {\n this.credit = credit;\n }", "public void setCurrentCostPrice (BigDecimal CurrentCostPrice)\n\t{\n\t\tset_Value (COLUMNNAME_CurrentCostPrice, CurrentCostPrice);\n\t}", "public void calculateCost()\n\t{\n\t\tLogManager lgmngr = LogManager.getLogManager(); \n\t\tLogger log = lgmngr.getLogger(Logger.GLOBAL_LOGGER_NAME);\n\t\tString s = \"\";\n\t\tint costperfeet = 0;\n\t\tif (this.materialStandard.equals(\"standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1200;\n\t\telse if (this.materialStandard.equals(\"above standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1500;\n\t\telse if(this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1800;\n\t\telse if (this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == true)\n\t\t\tcostperfeet = 2500;\n\t\t\n\t\tint totalCost = costperfeet * this.totalArea;\n\t\t/*s = \"Total Cost of Construction is :- \";\n\t\twriter.printf(\"%s\" + totalCost, s);\n\t\twriter.flush();*/\n\t\tlog.log(Level.INFO, \"Total Cost of Construction is :- \" + totalCost);\n\t}", "@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}", "public void setpurchaseCost(double systemPurchaseCost)\n\t{\n\t\tpurchaseCost = systemPurchaseCost;\n\t}", "@Override\n\tpublic void setCosteEjecucion(BigDecimal costeEjecucion) {\n\t\tmodel.setCosteEjecucion(costeEjecucion);\n\t}", "public void setUnitCost(BigDecimal unitCost) {\r\n this.unitCost = unitCost;\r\n }", "public void setLiterAllocation (BigDecimal LiterAllocation);", "public void setTotalCost(String TotalCost) {\n this.TotalCost = TotalCost;\n }", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }", "public BigDecimal getCost() {\r\n return cost;\r\n }", "public void setCostume(int newCostumeNumber) {\n costumeNumber=newCostumeNumber;\n }", "float getTotalCost() throws SQLException;", "public BigDecimal getCost() {\n return this.cost;\n }", "public final void setLuchtd(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal luchtd)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Luchtd.toString(), luchtd);\n\t}", "public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}", "public void setComponenteCosto(ComponenteCosto componenteCosto)\r\n/* 73: */ {\r\n/* 74: 95 */ this.componenteCosto = componenteCosto;\r\n/* 75: */ }", "@Override\n public double getCost() {\n\t return 13;\n }", "public String getCostsTarget() {\n return costsTarget;\n }", "public void setCostsTarget(String costsTarget) {\n this.costsTarget = costsTarget == null ? null : costsTarget.trim();\n }", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "public void setPathCost(int pathCost) {\r\n\t\tthis.pathCost = pathCost;\r\n\t}", "public void setBaselineCost(Number baselineCost)\r\n {\r\n m_baselineCost = baselineCost;\r\n }", "void setUnitCost(String elementName, Map<String, Double> unitCosts);", "public void setCreditNum(Long creditNum) {\n this.creditNum = creditNum;\n }", "public void setTcCosto(double value) {\r\n this.tcCosto = value;\r\n }", "@NotNull\n public BigDecimal getCost() {\n return cost;\n }", "public void bsetCostElements() {\n\t\t\t\n\t\t\t\n\t\tfor (int obj = 0; obj < finalLocation.length; obj++) {\n\t\t for (int time = 0; time < finalLocation[obj].length; time++) {\n\t\t\t\n\t\t bfCost[obj][time].bstorageCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bstorageCost;\n\t\t\t bfCost[obj][time].breadCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].breadCost;\n\t\t\t bfCost[obj][time].bwriteCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bwriteCost;\n\t\t\t bfCost[obj][time].btranCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].btranCost;\n\t\t\t \n\t\t\t //1. we calculate latency cost for two cases separately: when the object is in the hot tier or cool tier.\n\t\t\t if (finalLocation[obj][time]==0){//Object is in the cool tier\n\t\t\t\t bfCost[obj][time].bdelayCost=totalCostCalculation.btotalResidentCost[time][obj][0].bdelayCost;\n\t\t\t\t \n\t\t\t }else{// object is in both tiers and, in consequence, the latency cost of writes is the maximum latency of writing in both tiers, and the read latency is the one in hot tier.\n\t\t\t\t bfCost[obj][time].bedelCost=fc.bdelayMaxWriteReadCost(workloadGenerator.objectListRegion[obj], 1, obj, time);\n\t\t\t }\n\t\t\t \n\t\t /* 2. Here we calculate storage cost and transaction cost to make consistent data. This requires just write transaction. Since in our cost \n calculation make a computation for both read and writes.\n\t\t */\n\t\t \n\t\t if(finalLocation[obj][time]==1){//NOTE: in above cost storage, we calculate the cost of object in either in hot or cold tier. \n\t\t \t //So here we calculate the storage cost in cold tier when the object is in hot tier.\n\t\t \t bfCost[obj][time].bstorageCost=bfCost[obj][time].bstorageCost.add(totalCostCalculation.btotalResidentCost[time][obj][0].bstorageCost);\n\t\t bfCost[obj][time].bconsisCost=totalCostCalculation.btotalResidentCost[time][obj][0].bconsisCost;\n\t\t }\n\t\t\t bfCost[obj][time].bnonMigrationCost=bfCost[obj][time].bstorageCost.add(bfCost[obj][time].breadCost).add( bfCost[obj][time].bwriteCost).\n\t\t\t\t\t add(bfCost[obj][time].btranCost).add( bfCost[obj][time].bconsisCost).\n\t\t\t\t\t add(bfCost[obj][time].bdelayCost);\n\t\t\t\t\t //totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bnonMigrationCost.add(bfCost[obj][time].bconsisCost);\n\t\t\t \n\t\t\t //3. We need to calculate just transfer cost between cold to hot tier. From hot to cold tier does not make sense because we have a copy of data in cold tier.\n\t\t if(breakPoint==1){//If breakPoint is ONE then for serving every user, the object for each time slot is transfered from Cold to Hot tier.\n\t\t \t \n\t\t }\n\t\t else if(time>0 && finalLocation[obj][time-1]==0 && finalLocation[obj][time]==1){\n\t\t\t bfCost[obj][time].bmigrationCost=totalCostCalculation.btotalMigrationCost[time][obj][finalLocation[obj][time-1]][finalLocation[obj][time]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "public void setPriceLastOrd (BigDecimal PriceLastOrd);", "public void setMaxTotalCost(int amount);", "public String getCost() {\n return cost;\n }", "@Override\n\tpublic int cost() {\n\t\treturn 5000;\n\t}", "public void setLinkCost(long linkCost) {\n if ((LinkCost - linkCost) > 100) {\n LinkCost = linkCost;\n } else {\n LinkCost = (linkCost*2 + getLinkCost()*8)/10;\n }\n }", "public void setCostsDate(String costsDate) {\n this.costsDate = costsDate == null ? null : costsDate.trim();\n }", "public void setLogisticsDistance(String logisticsDistance) {\n this.logisticsDistance = logisticsDistance;\n }", "public double getCost(){\n return cost;\n }", "public void setAllValues(String bookingNo, int lotNo, String carNo, java.sql.Timestamp startTime, java.sql.Timestamp endTime, double cost) {\r\n\t\tthis.bookingNo = bookingNo;\r\n\t\tthis.lotNo = lotNo;\r\n\t\tthis.carNo = carNo;\r\n\t\tthis.startTime.setTime(startTime.getTime());\r\n\t\tthis.endTime.setTime(endTime.getTime());\r\n\t\tthis.cost = cost;\r\n\t}", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public int getCost(){\r\n\t\treturn this.cost;\r\n\t}", "public void setDiceCost(int diceCost) {\n Integer castedDiceCost = new Integer(diceCost);\n this.setDiceCost(castedDiceCost);\n }", "public void setCredit(int credit) {\n this.credit = credit;\n }", "public void setCostCenter(String CostCenter) {\n\t\t_CostCenter = CostCenter;\n\t}", "public final void setLv(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal lv)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Lv.toString(), lv);\n\t}", "public void setFutureCostPrice (BigDecimal FutureCostPrice)\n\t{\n\t\tset_Value (COLUMNNAME_FutureCostPrice, FutureCostPrice);\n\t}", "public void setCommission(double commission){\r\n this.commission = commission;\r\n }", "private void setupSettlementCost(){\n\t\tsettlementCost.put(ResourceKind.WOOL, 1);\n\t\tsettlementCost.put(ResourceKind.WOOD, 1);\n\t\tsettlementCost.put(ResourceKind.BRICK, 1);\n\t\tsettlementCost.put(ResourceKind.GRAIN, 1);\n\t}", "public void setCost(Money obj){\r\n \t//check if the object is null or not an instance of Money\r\n if(obj == null || !(obj instanceof Money)){\r\n \t//throw an exception\r\n throw new PizzaException(\"Exception in the setCost method: the object is null or not an instance of money\");\r\n }\r\n //casting\r\n Money m = (Money) obj;\r\n //set the cost to the clone of m\r\n this.cost = m.clone();\r\n }", "@Override\r\n public int getCost() {\r\n return cost;\r\n }", "public void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);", "public int getCreditCost() {\n\t\treturn 0;\n\t}", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);", "public void setCreditHours(int creditHours) {\n this.creditHours = creditHours;\n }", "public int getCost(){\n return this.cost;\n }", "@Override\n public double getCost() {\n return cost;\n }" ]
[ "0.5951589", "0.58699995", "0.58566386", "0.579363", "0.57915634", "0.5785764", "0.5758691", "0.5688206", "0.5655683", "0.5603273", "0.55993265", "0.55953485", "0.55773026", "0.55751735", "0.55735976", "0.55607074", "0.5559269", "0.5559113", "0.55316055", "0.55268484", "0.5513079", "0.55105793", "0.54977244", "0.5484115", "0.5481056", "0.543304", "0.5388106", "0.5358495", "0.5348422", "0.52193385", "0.52174854", "0.5215883", "0.52061546", "0.5150988", "0.51313484", "0.5091307", "0.50559807", "0.505511", "0.5029407", "0.5029181", "0.5018121", "0.50133634", "0.5006463", "0.50052893", "0.50007635", "0.500073", "0.49913806", "0.4971982", "0.49325705", "0.49083292", "0.48499566", "0.4848011", "0.4844123", "0.48352492", "0.4815951", "0.48145488", "0.48097152", "0.47961462", "0.4764041", "0.4751875", "0.4745509", "0.4726409", "0.47157928", "0.46947855", "0.4693319", "0.4672921", "0.466301", "0.4651937", "0.46484536", "0.4647017", "0.4639658", "0.46335325", "0.4631008", "0.46263617", "0.46234915", "0.46232453", "0.46211416", "0.46184832", "0.46168002", "0.4610855", "0.46007192", "0.45992747", "0.45966208", "0.45961693", "0.4592173", "0.45921275", "0.4589175", "0.45873237", "0.45705172", "0.45698732", "0.45595655", "0.45525977", "0.4552341", "0.4552235", "0.45512137", "0.45430514", "0.45345363", "0.45305878", "0.45257103", "0.452487" ]
0.7152523
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.logistics_distance
public String getLogisticsDistance() { return logisticsDistance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getDistance(){\n\t\treturn this.distance;\n\t}", "public double getDistance(){\n return sensor.getVoltage()*100/2.54 - 12;\n }", "public double getDistance() {\r\n return this.distance;\r\n }", "public void setLogisticsDistance(String logisticsDistance) {\n this.logisticsDistance = logisticsDistance;\n }", "public double getDistance() {\n return this.distance;\n }", "public double getDistance () {\n return distance;\n }", "public double getDistance() {\n return distance;\n }", "double getDistanceInMiles();", "public double getDistance() {\n\t\treturn distance;\n\t}", "public double getDistance() {\n\t\treturn distance;\n\t}", "public double distance() {\n return distance;\n }", "public double distance() {\n return distance;\n }", "public double distance(){\n return DistanceTraveled;\n }", "public float getDistance() {\n return distance;\n }", "public int getDistance() {\n return distance;\n }", "public int getDistance() {\n return distance;\n }", "@JsonIgnore public Distance getFlightDistanceDistance() {\n return (Distance) getValue(\"flightDistance\");\n }", "public Distance getDistance() {\n return distance;\n }", "public int distance() {\n return distance;\n }", "double getDistance();", "public float getDistance(){\n\t\t\treturn s1.start.supportFinal.dot(normal);\n\t\t}", "public float getDistance() {\r\n return distance;\r\n }", "public float getDistance() {\n return distance;\n }", "public int getDistance() {\r\n\t\treturn distance;\r\n\t}", "public int getDistance() {\r\n\t\treturn distance;\r\n\t}", "public double getDist() {\n return distance;\n }", "public double getDistance() {\n\t\t// miles = miles/hr * s / (s/hr)\n\t\treturn (double)speed/10.0 * duration / 3600.0;\n\t}", "public double getDistance()\n {\n return Math.abs(getDifference());\n }", "public int getTotDistance(){\r\n\t \treturn this.totDistance;\r\n\t }", "public int getDistance() {\n\t\treturn distance;\n\t}", "@DBField\n public void setDistance(float distance){\n this.distance = distance;\n }", "public double getDistanceToTarget() {\n if (!Config.isVisionInstalled) {\n return 0;\n }\n double distanceToVisionTarget =\n Config.visionDistanceConstant * (Config.fieldVisionTargetHeight-Config.limelightMountingHeight) /\n Math.tan(Math.toRadians(limelight.getTy() + Config.limelightMountingAngle));\n\n //now we can convert the new values into a new distance\n return distanceToVisionTarget;\n }", "public double getDistanceTotale() {\n\t\treturn distanceTotale;\n\t}", "@Override\n\tpublic ArrayList<String> getCityDistance() {\n\t\treturn constantPO.getCityDistance();\n\t}", "private double getDistance() {\n\t\tfinal double h2 = 86.7;\n\t\t// h1: height of top of camera\n\t\tfinal double h1 = 17.6;\n\n\t\t// a1: angle of camera (relative to chasis)\n\t\tfinal double a1 = 36.175;\n\t\t// a2: angle of target relative to a1\n\t\tfinal double a2 = ty.getDouble(0.0);\n\n\t\t// distance: distance from camera to base of target\n\t\tfinal double distance = ((h2 - h1) / Math.tan(Math.toRadians(a1 + a2)));\n\n\t\tfinal double d = Math.sqrt(Math.pow(h2 - h1, 2) + Math.pow(distance, 2));\n\t\tSmartDashboard.putNumber(\"Py Distance\", d);\n\n\t\treturn (distance);\n\n\t}", "public Dimension2D getDistance() {\n\t\treturn distance;\n\t}", "public final float getDistance() {\n return distance;\n }", "public float getDistance();", "public float getTheDistance(){\n\t\t\n\t\tdistance = sonic.getDistance();\n\t\tSystem.out.println(\"value:\"+ distance);\n\t\t//considering the test results we see after 23 cm we see the +1cm precision and below 23cm we see + 5cm range \n\t\tif (distance<=25){\n\t\treturn (distance-7);\n\t\t}\n\t\telse{return (distance-3);}\n\t}", "public double getDistanceMoyenne() {\n\t\treturn getDistanceTotale () / 12;\n\t}", "public float getDistance()\n {\n return distance_slider.getValue() / DISTANCE_SCALE_FACTOR;\n }", "public double getDistanceFromSource()\n {\n return distanceFromSource;\n }", "public double getDistance() { \n\t\treturn Math.pow(input.getAverageVoltage(), exp) * mul; \n\t}", "public String getLogisticsCost() {\n return logisticsCost;\n }", "public Vector3D getDistance()\n\t{\n\t\treturn distance;\n\t}", "public int getAdditionalDistance() {\n return additionalDistance;\n }", "public void calcDistance() {\n if (DataManager.INSTANCE.getLocation() != null && location.getLength() == 2) {\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n double dLat = Math.toRadians(location.getLatitude() - DataManager.INSTANCE.getLocation().getLatitude()); // deg2rad below\n double dLon = Math.toRadians(location.getLongitude() - DataManager.INSTANCE.getLocation().getLongitude());\n double a =\n Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.cos(Math.toRadians(location.getLatitude()))\n * Math.cos(Math.toRadians(location.getLatitude()))\n * Math.sin(dLon / 2)\n * Math.sin(dLon / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double d = KM_IN_RADIUS * c; // Distance in km\n distance = (float) d;\n } else distance = null;\n }", "public int getClientViewDistance ( ) {\n\t\treturn extract ( handle -> getClientViewDistance ( ) );\n\t}", "@JsonIgnore public String getFlightDistanceString() {\n return (String) getValue(\"flightDistance\");\n }", "public double getDistance(){\r\n\t\treturn Math.sqrt(\r\n\t\t\t\t(\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterX()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterX()\r\n\t\t\t\t\t, 2 )\r\n\t )\r\n\t\t\t\t+ (\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterY()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterY()\r\n\t\t\t\t\t, 2 )\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}", "public double getFinalDistance(){\n return valori.get(end_node);\n }", "@Schema(description = \"instead of using the from/to construct, it is also possible to give an indication of the distance to travel. The process identifier 'USE_ESTIMATED_DISTANCE' is used to indicate this scenario. Also in meters\")\n \n @Min(0) public Integer getEstimatedDistance() {\n return estimatedDistance;\n }", "public int getDistance(){\n if (distance == 0) {\n int tourDistance = 0;\n // Loop through our tour's cities\n for (int cityIndex=0; cityIndex < tourSize(); cityIndex++) {\n // Get city we're travelling from\n City fromCity = getCity(cityIndex);\n // City we're travelling to\n City destinationCity;\n // Check we're not on our tour's last city, if we are set our \n // tour's final destination city to our starting city\n if(cityIndex+1 < tourSize()){\n destinationCity = getCity(cityIndex+1);\n }\n else{\n destinationCity = getCity(0);\n }\n // Get the distance between the two cities\n tourDistance += fromCity.distanceTo(destinationCity);\n }\n distance = tourDistance;\n }\n return distance;\n }", "public double ComputeDistance(){ \n\t\tdouble lat1 = this.depAirportCity.getLatDegs() + (double)(this.depAirportCity.getLatMins())/60; \n\t\tdouble lon1 = this.depAirportCity.getLongDegs() + (double)(this.depAirportCity.getLongMins())/60;\n\t\tdouble lat2 = this.arrAirportCity.getLatDegs() + (double)(this.arrAirportCity.getLatMins())/60; \n\t\tdouble lon2 = this.arrAirportCity.getLongDegs() + (double)(this.arrAirportCity.getLongMins())/60;\n\t\t\n\t\tdouble distance = Haversine.getMiles(lat1, lon1, lat2, lon2);\n\t\treturn distance;\n\t}", "public double getTotalDistance(){\n Connection connection = null;\n ResultSet resultSet = null;\n PreparedStatement preparedStatement = null;\n\n double totalDistance = 0;\n String totalDistanceQuery = \"SELECT bike_id, MAX(distance) FROM bike_stats GROUP BY bike_id\";\n\n try{\n connection = DBCleanup.getConnection();\n\n preparedStatement = connection.prepareStatement(totalDistanceQuery);\n resultSet = preparedStatement.executeQuery();\n while (resultSet.next()){\n totalDistance += resultSet.getDouble(\"MAX(distance)\");\n }\n return totalDistance;\n }catch(SQLException e){\n System.out.println(e.getMessage() + \" - getTotalDistance()\");\n }finally {\n DBCleanup.closeStatement(preparedStatement);\n DBCleanup.closeResultSet(resultSet);\n DBCleanup.closeConnection(connection);\n }\n return -1;\n }", "double distance() {\r\n\t double dist_total = 0;\r\n\t for (int i = 0; i < index.length - 1; i++) {\r\n\t dist_total += city(i).distance(city(i + 1));\r\n\t }\r\n\t \r\n\t return dist_total;\r\n\t}", "public int getTotalDistance() {\n return totalDistance;\n }", "public double getDist(){\n double dist=0;\n double DA = 0;\n double minDist = this.getMotors()[0].getTargetPosition();\n for(int i =0;i<this.getMotors().length;i++) {\n double current = this.getMotors()[i].getCurrentPosition();\n double target = this.getMotors()[i].getTargetPosition();\n DA = Math.abs(target) - Math.abs(current);\n dist = target - current;\n if(Math.abs(DA)<Math.abs(minDist)){\n minDist = dist;\n }\n }\n return (minDist);\n }", "public float getDistanceData() {\n\t\tultrasonicSample.fetchSample(distanceData, 0);\n\t\tfloat distance = distanceData[0]*100; //change the unit from m to cm\n\t\tfloat distanceToReturn;\n\t\tif (distance >= WALL_DIS + WIDTH && filterControl < FILTER_OUT) {\n\t\t\t// bad value, do not set the distance var, however do increment the\n\t\t\t// filter value\n\t\t\tfilterControl++;\n\t\t\tdistanceToReturn = lastDistance;\n\t\t} else if (distance >= WALL_DIS + WIDTH) {\n\t\t\t// We have repeated large values, so there must actually be nothing\n\t\t\t// there: leave the distance alone\n\t\t\tdistanceToReturn = distance;\n\t\t\tlastDistance = distance;\n\t\t}else {\n\t\t\t// distance too low: reset filter and leave\n\t\t\t// distance alone.\n\t\t\tfilterControl = 0;\n\t\t\tdistanceToReturn = distance;\n\t\t\tlastDistance = distance;\n\t\t}\n\t LCD.drawString(\"D: \" +distanceToReturn, 0, 3);\n\t\treturn distanceToReturn;\n\t}", "public Double getDistance(Concept concept) {\n\n return (Double) this.getAdditionalTagValue(\n GeographicErrorTest.DISTANCE_TAG_ID, concept);\n }", "java.util.List<org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance> getDecisionSightDistanceList();", "public double getDistance() {\n\n final int R = 6371; // Radius of the earth\n double lat1 = latitude;\n double lon1 = longitude;\n double lat2 = 41.917715; //lat2, lon2 is location of St.Charles, IL\n double lon2 = -88.266027;\n double el1=0,el2 = 0;\n double latDistance = Math.toRadians(lat2 - lat1);\n double lonDistance = Math.toRadians(lon2 - lon1);\n double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2)\n + Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2))\n * Math.sin(lonDistance / 2) * Math.sin(lonDistance / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double distance = R * c * 1000; // convert to meters\n\n double height = el1 - el2;\n\n distance = Math.pow(distance, 2) + Math.pow(height, 2);\n\n return Math.sqrt(distance);\n }", "public Long calculateDistanceVision() {\n return this.getVision() + lazyPlayboardActor.get().getCarte().getCarte().getValue(this.point).getVisionAdvantage();\n }", "public int getMinDistance(){\n return totalDistance;\n }", "public double calcDistBetweenStops(){\n List<Location> locs = destinations.getLocationList();\r\n double totalDist = 0;\r\n for (int i = 0; i < (locs.size() - 1); i++){\r\n double distance = locs.get(i).DistanceTo(locs.get(i+1));\r\n totalDist += distance;\r\n }\r\n return totalDist;\r\n }", "public FloatColumn getExptlDistanceTerm() {\n return delegate.getColumn(\"exptl_distance_term\", DelegatingFloatColumn::new);\n }", "public float fieldDistance(ArrayList<LatLng> path){\n return dronePath.fieldDistance(path);\n }", "public StrColumn getExptlDistanceTermUnits() {\n return delegate.getColumn(\"exptl_distance_term_units\", DelegatingStrColumn::new);\n }", "public void calculateDistance() {\n\t\tdouble lon = coordinates.getLongitude(); // your longitude\n\t\tdouble lat = coordinates.getLatitude(); // your latitude\n\n\t\tString distanceQueryString = \"SELECT loc, \"\n\t\t\t\t+ \"(:earthRadius * FUNC('acos', FUNC('cos', FUNC('radians', :latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.longitude) - FUNC('radians', :longitude)) + \"\n\t\t\t\t+ \"FUNC('sin', FUNC('radians', :latitude)) * FUNC('sin', FUNC('radians', loc.latitude)) ) ) AS distance \"\n\t\t\t\t+ \"FROM Location loc \"\n\t\t\t\t+ \"WHERE ((:earthRadius * FUNC('acos', FUNC('cos', FUNC('radians', :latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.longitude) - FUNC('radians', :longitude)) + \"\n\t\t\t\t+ \"FUNC('sin', FUNC('radians', :latitude)) * FUNC('sin', FUNC('radians', loc.latitude)) ) )<= :searchRadius) \"\n\t\t\t\t+ \"ORDER BY distance\";\n\n\t\tQuery query = entityManager.createQuery(distanceQueryString);\n\t\tquery.setParameter(\"latitude\", lat);\n\t\tquery.setParameter(\"longitude\", lon);\n\t\tquery.setParameter(\"searchRadius\", searchRadius);\n\t\tquery.setParameter(\"earthRadius\", EARTH_RADIUS);\n\t\tquery.setMaxResults(limit);\n\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> rows = query.getResultList();\n\t\tList<Location> sortedLocations = new ArrayList<>(rows.size());\n\t\tfor (Object[] row : rows) {\n\t\t\tsortedLocations.add((Location) row[0]);\n\t\t}\n\n\t\tCity city;\n\t\tMap<City, Double> unsortedMap = new HashMap<>();\n\n\t\tfor (Location entity : sortedLocations) {\n\t\t\tcity = entity.getCity();\n\t\t\tdouble distance = getDistanceFromBounds(new Coordinates(lat, lon), city.getBounds());\n\t\t\tunsortedMap.put(city, distance);\n\t\t}\n\n\t\tMap<City, Double> sortedMap = unsortedMap.entrySet().stream().sorted(Entry.comparingByValue())\n\t\t\t\t.collect(Collectors.toMap(Entry::getKey, Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));\n\n\t\tfor (Map.Entry<City, Double> entry : sortedMap.entrySet()) {\n\t\t\tif (entry.getValue() == 0.0) {\n\t\t\t\tSystem.out.println(\"Point is inside the bounds of \" + entry.getKey().getName() + \"(\"\n\t\t\t\t\t\t+ entry.getKey().getCountry() + \")\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"%.4f\", entry.getValue());\n\t\t\t\tSystem.out.println(\" km. - \" + entry.getKey().getName() + \"(\" + entry.getKey().getCountry() + \")\");\n\t\t\t}\n\t\t}\n\t}", "public int distBonus(){\n Player currentplayer = state.getCurrentPlayer();\n Maze maze = state.getMaze();\n Cell[][] tabcells = maze.getCells();\n ArrayList<GameObject> listObjectsOnCurrentCell;\n GameObject objectOnCell;\n int distTmp;\n int dist= tabcells.length+tabcells[0].length;\n for(int i=0;i<tabcells.length;i++){\n for(int j=0;j<tabcells[0].length;j++){\n listObjectsOnCurrentCell = tabcells[i][j].getGameObjects();\n for(GameObject object: listObjectsOnCurrentCell){\n if(object instanceof Bonus || object instanceof BonusWall){\n distTmp = manhattan(object,currentplayer);\n if(distTmp<dist){\n dist = distTmp;\n }\n }\n }\n }\n }\n return dist;\n }", "com.google.ads.googleads.v6.resources.DistanceView getDistanceView();", "public float getMetric(){\n float distance = 0.0f;\n MeasurementService.DataPoint prv = center;\n\n for(MeasurementService.DataPoint d : list){\n distance += Math.sqrt(\n Math.pow(prv.getX() - d.getX(),2) +\n Math.pow(prv.getY() - d.getY(),2)\n );\n prv = d;\n }\n\n return distance;\n }", "public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }", "public int calculateDistance(GraphNodeAL<MapPoint> l1, GraphNodeAL<MapPoint> l2){\n double x1 = l1.data.getxCo();\n double y1 = l1.data.getyCo();\n double x2 = l2.data.getxCo();\n double y2 = l2.data.getyCo();\n double dist = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n return (int) dist;\n }", "@JsonIgnore public Collection<Distance> getFlightDistanceDistances() {\n final Object current = myData.get(\"flightDistance\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Distance>) current;\n }\n return Arrays.asList((Distance) current);\n }", "public double getStartingDistance() {\n return myStartDistance;\n }", "public double getMilesOfTrail() {\n\t\treturn milesOfTrail;\n\t}", "public float getDistance() {\n shouldUpdateDistance = true;\n if (shouldUpdateDistance) {\n distance = getDistance(createSuggestedWindowFilter());\n shouldUpdateDistance = false;\n }\n return distance;\n }", "public float getDist() {\n return JniConstraintType.pinJointGetDist(nativeAddress);\n }", "public void calculateDistance() {\n SensorEventListener mSensorEventListener = new SensorEventListener() {\n @Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n mAngle = (Math.acos(sensorEvent.values[2] / 9.8)) * (180/Math.PI) - 5;\n mAngle = Math.toRadians(mAngle);\n mDistance = mHeight * Math.tan(mAngle);\n }\n\n @Override\n public void onAccuracyChanged(Sensor sensor, int i) {\n\n }\n };\n mSensorManager.registerListener(mSensorEventListener, mAccelerometer,\n SensorManager.SENSOR_DELAY_UI);\n\n // Calculating the distance.\n mDistance = mHeight * Math.tan(mAngle);\n // Rounding it up to 2 decimal places\n DecimalFormat df = new DecimalFormat(\"#.##\");\n mDistance = Double.valueOf(df.format(mDistance));\n String distanceString = Double.toString(mDistance);\n\n // Update the distance TextView\n TextView distanceView = (TextView) findViewById(R.id.distanceText);\n String text = distanceString + \" cm\";\n distanceView.setText(text);\n distanceView.setTextSize(36);\n }", "@ApiModelProperty(example = \"2\", value = \"Provides the unit of measure in which distance is provided in this message. Refer to OpenTravel Code List Unit of Measure (UOM).\")\n\n\n public Integer getDistanceUnitOfMeasureCode() {\n return distanceUnitOfMeasureCode;\n }", "public double getMaxSourceDistance();", "public double getDistance() {\n\t\tdouble sum = 0;\n\t\tfor(int i = 0; i < ordering.size() - 1; i++) {\n\t\t\tsum += cost[ordering.get(i) - 1][ordering.get(i+1) - 1];\n\t\t}\n\t\treturn sum;\n\t}", "@SuppressWarnings(\"unused\")\n double getDistanceCloseToGoal() {\n return mDistanceCloseToGoal;\n }", "public Map<Integer, Double> getDistance(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeDistanceStatement(geom), DOUBLE);\n }", "private static double calculateDist(StringBuffer sb, Statement stmt) throws SQLException{\n\t\tdouble distance;\n\t\tResultSet d=stmt.executeQuery(sb.toString());\n\t\td.next();\n\t\tdistance=d.getDouble(1);\n\t\t\n\t\treturn distance;\n\t}", "@Override\n public double pixelsToLengthV(\n final double displayWidth) {\n final GeoPosition gp = map.getTileFactory().pixelToGeo(\n new Point2D.Double(\n 0,\n 0),\n map.getZoom());\n final GeoPosition gps = map.getTileFactory().pixelToGeo(\n new Point2D.Double(\n displayWidth,\n 0),\n map.getZoom());\n final double distance = Point2D.distance(\n gp.getLongitude(),\n gp.getLatitude(),\n gps.getLongitude(),\n gps.getLatitude());\n Reporting.logExpected(\n \"%1$f = %2$f\",\n displayWidth,\n distance);\n return distance;\n }", "public Integer getLogisticsId() {\n return logisticsId;\n }", "public double distance(DataInstance d1, DataInstance d2, List<Attribute> attributeList);", "private double lPDistance(Instance one, Instance two, int p_value) {\n\n double distanceSum = 0;\n\n for (int i = 0; i < one.numAttributes() - 1; i++) {\n distanceSum += Math.pow(Math.abs(one.value(i) - two.value(i)), p_value);\n }\n\n distanceSum = Math.pow(distanceSum, 1.0 / p_value); // Root in base P\n\n return distanceSum;\n\n }", "public double getDistance(College c) {\n double salary_diff = Math.pow(this.medianSalary - c.getMedianSalary(), 2.0);\n double sat_diff = Math.pow(this.avgSAT - c.getAvgSAT(), 2.0);\n double gpa_diff = Math.pow(this.avgGPA - c.getAvgGPA(), 2.0);\n double accRate_diff = Math.pow(this.accRate - c.getAccRate(), 2.0);\n\n return Math.sqrt(salary_diff + sat_diff + gpa_diff + accRate_diff);\n }", "public int getAdministrativeDistance() {\n\t return this.administrativeDistance;\n\t}", "public long[] getDistancesToSSO() {\n List<PlanetarySystemObject> satellites = getSatellites();\n if (satellites == null || satellites.size() == 0) {\n return null;\n }\n long[] distances = new long[satellites.size()];\n for (int i = 0; i < distances.length; i++) {\n distances[i] = satellites.get(i).getDistanceForComputing();\n }\n return distances;\n }", "private double totalDriveDistance()\n\t{\n\t\tdouble totalDistance = 0;\n\t\tfor(int i = 0; i < saveData.size(); i++)//for each index of saveData\n\t\t{\n\t\t\t//grab the total distance\n\t\t\ttotalDistance += saveData.get(i).get(\"distance\"); //.get(\"distance\") to be replaced by whatever method we use to grab a variable from an jsonObject\n\t\t}\n\t\treturn totalDistance;\n\t}", "public static Double getltd(){\n // Log.e(\"LAT\",sharedPreferences.getString(USER_LTD, String.valueOf(0.0)));\n return Double.parseDouble(sharedPreferences.getString(USER_LTD, String.valueOf(0.0)));\n }", "public int findTotalLof() throws DAOException;", "@Override\n\tpublic BigDecimal getLongitud() {\n\t\treturn model.getLongitud();\n\t}", "private Integer getDistance(double lat1, double lon1, double lat2, double lon2) {\n Location locationA = new Location(\"Source\");\n locationA.setLatitude(lat1);\n locationA.setLongitude(lon1);\n Location locationB = new Location(\"Destination\");\n locationB.setLatitude(lat2);\n locationB.setLongitude(lon2);\n distance = Math.round(locationA.distanceTo(locationB));\n return distance;\n }", "@Override\n\tpublic BigDecimal getLatitud() {\n\t\treturn model.getLatitud();\n\t}", "public String getDistance(ExerciseEntry exerciseEntry){\n\n //get exerciseEntry distance\n double miles= exerciseEntry.getmDistance();\n\n //if its miles return Distance in Miles\n if(unitType.length()==5){\n return Integer.toString((int) miles )+\" Miles\";\n }\n //if unitType is Kilometers convert distance to kilometers and get String\n else{\n Double kilometers= miles*1.60934;\n return Integer.toString(kilometers.intValue())+\" Kilometers\";\n }\n }" ]
[ "0.591601", "0.5895395", "0.5782115", "0.5763311", "0.5760579", "0.5759473", "0.5705493", "0.5685716", "0.56080735", "0.56080735", "0.5588232", "0.5588232", "0.556318", "0.5552705", "0.55385077", "0.55385077", "0.55351275", "0.5532543", "0.5494013", "0.5478171", "0.5474542", "0.5460827", "0.54539126", "0.5452999", "0.5452999", "0.5445788", "0.5429225", "0.54285556", "0.5410884", "0.5410527", "0.54100394", "0.5397802", "0.538302", "0.53769714", "0.53709185", "0.5339529", "0.5336761", "0.5321861", "0.5295452", "0.5262738", "0.5260613", "0.5258733", "0.52318674", "0.5224024", "0.52222735", "0.5216616", "0.5207944", "0.52058226", "0.5200596", "0.5188616", "0.51778376", "0.51438147", "0.51430327", "0.5131991", "0.5121371", "0.5102622", "0.51009685", "0.50953287", "0.5066272", "0.5039221", "0.50207305", "0.50188917", "0.50086176", "0.500396", "0.5002482", "0.49832046", "0.4981988", "0.49801975", "0.49422225", "0.49285987", "0.49222893", "0.49167812", "0.49085957", "0.49081233", "0.490717", "0.49061447", "0.4853988", "0.48320323", "0.48268273", "0.4809208", "0.48081225", "0.480147", "0.47989866", "0.47927174", "0.479105", "0.47884575", "0.47829294", "0.4773812", "0.47671643", "0.47591442", "0.47589567", "0.47586316", "0.47565848", "0.47527522", "0.47310576", "0.47263888", "0.4719943", "0.47134417", "0.47122264", "0.47084746" ]
0.66067624
0
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.logistics_distance
public void setLogisticsDistance(String logisticsDistance) { this.logisticsDistance = logisticsDistance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DBField\n public void setDistance(float distance){\n this.distance = distance;\n }", "public void setDistance(double distance) {\r\n this.distance = distance;\r\n }", "public void setDistance(double distance) {\n this.distance = distance;\n }", "public void setDistance(double distance) {\n this.distance = distance;\n }", "public void setDistance(double distance) {\r\n\t\tthis.distance = distance;\r\n\t}", "public void setDistance(float distance) {\n this.distance = distance;\n }", "public void setDistance(double distance) {\n\t\tthis.distance = distance;\n\t}", "public void setDistance(int value) {\n this.distance = value;\n }", "public void setDistanceFunction(DistanceFunction distanceFunction);", "public String getLogisticsDistance() {\n return logisticsDistance;\n }", "@Override\r\n\tpublic void setDistance(Distance distance) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tthis.distance = distance;\r\n\t\t\r\n\t}", "public void setDistance(float dist);", "void setDistanceInM(int distanceInM);", "private void setupTurnDistanceCharacteristic() {\n turnDistanceCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNDISTANCE_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnDistanceCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnDistanceCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNDISTANCE_DESC));\n\n turnDistanceCharacteristic.setValue(turnDistanceCharacteristic_value);\n }", "public void setDistance(int d) {\r\n\t\tdistance = d;\r\n\t}", "void setDistanceInKm(float distanceInKm);", "public final void setDistance(float distance) {\n this.distance = distance;\n }", "@Override\n\tpublic void setCityDistance(String CityID1, String CityID2, double distance) {\n\t\t\n\t\t\n\t\tArrayList<String> cityList = constantPO.getCityList();\n\t\t\n\n\t\t\n\t\tint city_1 = 0 , city_2 =0;\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<cityList.size();i++){\t\t\t\n\t\t\tif (cityList.get(i).equals(CityID1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcity_1++;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<cityList.size();i++){\t\t\t\n\t\t\tif (cityList.get(i).equals(CityID2)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcity_2++;\n\t\t}\n\t\t\n\t\tString[] temp1=constantPO.getCityDistance().get(city_1).split(\" \");\n\t\tString temp =\"\";\n\t\tfor(int i=0;i<temp1.length;i++){\n\t\t\tif(i!=city_2)\n\t\t\t\ttemp+=temp1[i];\n\t\t\telse \n\t\t\t\ttemp+=distance+\"\";\n\t\t\t\n\t\t\t\n\t\t\tif(i!=temp1.length-1)\n\t\t\t\ttemp+=\" \";\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tString[] temp2=constantPO.getCityDistance().get(city_2).split(\" \");\n\t\tString temp3 =\"\";\n\t\tfor(int i=0;i<temp2.length;i++){\n\t\t\tif(i!=city_1)\n\t\t\t\ttemp3+=temp2[i];\n\t\t\telse \n\t\t\t\ttemp3+=distance+\"\";\n\t\t\t\n\t\t\t\n\t\t\tif(i!=temp2.length-1)\n\t\t\t\ttemp3+=\" \";\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\n\t\t\n\n\t\t\n\t\t\n\t\tArrayList<String> cityDistance = new ArrayList<>();\n\t\t\n\t\tfor(int i=0;i<constantPO.getCityDistance().size();i++){\n\t\t\t\n\t\t\tif(i==city_1)\n\t\t\t\tcityDistance.add(temp);\n\t\t\telse if (i==city_2) {\n\t\t\t\tcityDistance.add(temp3);\n\t\t\t}else {\n\t\t\t\tcityDistance.add(constantPO.getCityDistance().get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t\tconstantPO.setCityDistance(cityDistance);\n\t\t\n\t}", "public void setDistanceFromSource(double inDistance)\n {\n distanceFromSource = inDistance;\n }", "public void setSatelliteDistance(int distance) {\n this.satelliteDistance = distance;\n resetItems();\n }", "public void setDistance( float distance )\n {\n distance = Math.abs(distance);\n if ( distance == 0 )\n distance = 1;\n distance_slider.setValue( (int)(DISTANCE_SCALE_FACTOR * distance) );\n }", "public void setLogisticsCost(String logisticsCost) {\n this.logisticsCost = logisticsCost;\n }", "public void updateDist(double distance) {\n this.distance = distance;\n }", "public void setFallDistance ( float distance ) {\n\t\texecute ( handle -> handle.setFallDistance ( distance ) );\n\t}", "public static void setDistances (double idistances){\n\t\t\tdistances = idistances;\n\t}", "public void setViewDistance(float distance) { viewDistance = distance; }", "private void setDistanceValues(){\n float [] sumDistances = new float[1];\n\n distanceValue =0.0;\n\n for(int i= 0; i < trackingList.size()-1;i++){\n double startLong = trackingList.get(i).getLongtitude();\n double startLat = trackingList.get(i).getLatitude();\n double endLong = trackingList.get(i+1).getLongtitude();\n double endLat = trackingList.get(i+1).getLatitude();\n\n Location.distanceBetween(startLat,startLong,endLat,endLong,sumDistances);\n \n distanceValue += sumDistances[0];\n }\n\n }", "public void setMaxSourceDistance(double distance);", "public void setL(double value) {\n this.l = value;\n }", "@SuppressWarnings(\"unused\")\n void setDistanceCloseToGoal(double distanceCloseToGoal) {\n mDistanceCloseToGoal = distanceCloseToGoal;\n mDistanceCloseToGoalSquared = distanceCloseToGoal * distanceCloseToGoal;\n }", "org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance addNewDecisionSightDistance();", "public void setMerge_dist(float merge_dist) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 120, merge_dist);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 100, merge_dist);\n\t\t}\n\t}", "public double getDistance () {\n return distance;\n }", "public double getDistance(){\n return sensor.getVoltage()*100/2.54 - 12;\n }", "public double getDistance(){\n\t\treturn this.distance;\n\t}", "void setLongitude(Double longitude);", "public void setLogisticsId(Integer logisticsId) {\n this.logisticsId = logisticsId;\n }", "public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }", "public void setDistance(Dimension2D distance) {\n\t\tthis.distance.setSize(distance);\n\t}", "public void setDistanceFromStart(double distanceFromStart) {\n this.distanceFromStart = distanceFromStart;\n }", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public void recordFlightDistanceInKilometers(int distance) {\n\t\tthis.balance = this.balance + distance;\n\t\tif(this.balance < 10000) this.status = \"Bronze\";\n\t\telse if(this.balance >= 10000) this.status = \"Silver\";\n\t\t\n\t}", "public void setLon(double value) {\n lon = value;\n }", "public void driveToDistance(double distance) {\n //TODO\n }", "public double getDistance() {\r\n return this.distance;\r\n }", "public void setMilesOfTrail(double milesOfTrail) {\n\t\tthis.milesOfTrail = milesOfTrail;\n\t}", "public void calculateDistance() {\n\t\tdouble lon = coordinates.getLongitude(); // your longitude\n\t\tdouble lat = coordinates.getLatitude(); // your latitude\n\n\t\tString distanceQueryString = \"SELECT loc, \"\n\t\t\t\t+ \"(:earthRadius * FUNC('acos', FUNC('cos', FUNC('radians', :latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.longitude) - FUNC('radians', :longitude)) + \"\n\t\t\t\t+ \"FUNC('sin', FUNC('radians', :latitude)) * FUNC('sin', FUNC('radians', loc.latitude)) ) ) AS distance \"\n\t\t\t\t+ \"FROM Location loc \"\n\t\t\t\t+ \"WHERE ((:earthRadius * FUNC('acos', FUNC('cos', FUNC('radians', :latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.longitude) - FUNC('radians', :longitude)) + \"\n\t\t\t\t+ \"FUNC('sin', FUNC('radians', :latitude)) * FUNC('sin', FUNC('radians', loc.latitude)) ) )<= :searchRadius) \"\n\t\t\t\t+ \"ORDER BY distance\";\n\n\t\tQuery query = entityManager.createQuery(distanceQueryString);\n\t\tquery.setParameter(\"latitude\", lat);\n\t\tquery.setParameter(\"longitude\", lon);\n\t\tquery.setParameter(\"searchRadius\", searchRadius);\n\t\tquery.setParameter(\"earthRadius\", EARTH_RADIUS);\n\t\tquery.setMaxResults(limit);\n\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> rows = query.getResultList();\n\t\tList<Location> sortedLocations = new ArrayList<>(rows.size());\n\t\tfor (Object[] row : rows) {\n\t\t\tsortedLocations.add((Location) row[0]);\n\t\t}\n\n\t\tCity city;\n\t\tMap<City, Double> unsortedMap = new HashMap<>();\n\n\t\tfor (Location entity : sortedLocations) {\n\t\t\tcity = entity.getCity();\n\t\t\tdouble distance = getDistanceFromBounds(new Coordinates(lat, lon), city.getBounds());\n\t\t\tunsortedMap.put(city, distance);\n\t\t}\n\n\t\tMap<City, Double> sortedMap = unsortedMap.entrySet().stream().sorted(Entry.comparingByValue())\n\t\t\t\t.collect(Collectors.toMap(Entry::getKey, Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));\n\n\t\tfor (Map.Entry<City, Double> entry : sortedMap.entrySet()) {\n\t\t\tif (entry.getValue() == 0.0) {\n\t\t\t\tSystem.out.println(\"Point is inside the bounds of \" + entry.getKey().getName() + \"(\"\n\t\t\t\t\t\t+ entry.getKey().getCountry() + \")\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"%.4f\", entry.getValue());\n\t\t\t\tSystem.out.println(\" km. - \" + entry.getKey().getName() + \"(\" + entry.getKey().getCountry() + \")\");\n\t\t\t}\n\t\t}\n\t}", "void updateDistance(int distance);", "@Override\n\tpublic void setLongitude(double Longitude) {\n\t\t_locMstLocation.setLongitude(Longitude);\n\t}", "public FoursquarePathBuilder setLlAcc(double llAcc) {\n String llAccs = String.format(\"%f1\", llAcc);\n addParameter(\"llAcc\", llAccs);\n return this;\n }", "public void setPredictedDistance(double val) {\r\n predictedDistance = val;\r\n }", "public static native void OpenMM_HippoNonbondedForce_setSwitchingDistance(PointerByReference target, double distance);", "public double getDistance() {\n return distance;\n }", "void setMonto(double monto);", "void setMonto(double monto);", "@Schema(description = \"instead of using the from/to construct, it is also possible to give an indication of the distance to travel. The process identifier 'USE_ESTIMATED_DISTANCE' is used to indicate this scenario. Also in meters\")\n \n @Min(0) public Integer getEstimatedDistance() {\n return estimatedDistance;\n }", "public double distance(){\n return DistanceTraveled;\n }", "public double getDistanceToTarget() {\n if (!Config.isVisionInstalled) {\n return 0;\n }\n double distanceToVisionTarget =\n Config.visionDistanceConstant * (Config.fieldVisionTargetHeight-Config.limelightMountingHeight) /\n Math.tan(Math.toRadians(limelight.getTy() + Config.limelightMountingAngle));\n\n //now we can convert the new values into a new distance\n return distanceToVisionTarget;\n }", "public double getDistance() {\n return this.distance;\n }", "void setDropLocations(RouteDTO routeDTO, List<RoutePointDTO> points);", "public void setDistanceToStart(double val) {\r\n startDistance = val;\r\n }", "double getDistanceInMiles();", "public float getDistance() {\n return distance;\n }", "public final void setLuchtd(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal luchtd)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Luchtd.toString(), luchtd);\n\t}", "public void setMountains (int value)\n {\n if (value == 1)\n {\n this.mountains = (grid/12000)+1;\n }\n \n if (value == 2)\n {\n this.mountains = (grid/10000)+2;\n }\n \n if (value == 3)\n {\n this.mountains = (grid/8000)+3;\n }\n }", "public static native void OpenMM_AmoebaVdwForce_setCutoffDistance(PointerByReference target, double distance);", "void addDistance(float distanceToAdd);", "public void setDtMotivoLlamadoAtencion(DataTable dtMotivoLlamadoAtencion)\r\n/* 139: */ {\r\n/* 140:144 */ this.dtMotivoLlamadoAtencion = dtMotivoLlamadoAtencion;\r\n/* 141: */ }", "public Distance getDistance() {\n return distance;\n }", "public double\ntValue(double distance)\n{\n\treturn (distance/this.length());\n}", "public void setAdditionalDistance(int additionalDistance) {\n this.additionalDistance = additionalDistance;\n }", "public DraggableBehavior setDistance(int distance)\n\t{\n\t\tthis.options.put(\"distance\", distance);\n\t\treturn this;\n\t}", "private void changeDistance() {\n kilometers = sb.getProgress();\n TextView textView = (TextView) findViewById(R.id.distanceText);\n textView.setText(kilometers + \" km\");\n }", "public double getDist() {\n return distance;\n }", "void setDecisionSightDistanceArray(int i, org.landxml.schema.landXML11.DecisionSightDistanceDocument.DecisionSightDistance decisionSightDistance);", "public float getDistance() {\r\n return distance;\r\n }", "public void setMinDistance(double newdistance) {\r\n\t\t// TODO\r\n\t\tif (newdistance <= 0) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\tmindistance = newdistance;\r\n\t}", "void calculateAndPopulateDistance(){\n\n float distanceResult = helper.calculateDistance(this, city.getLat(), city.getLng());\n\n if(distanceResult > 0){\n ((TextView)findViewById(R.id.home_distance_value)).setText(String.format(Locale.US,\"%,.2f Kms\", distanceResult));\n }else{\n ((TextView)findViewById(R.id.home_distance_value)).setText(\"N/A\");\n }\n }", "public void setLat(double value) {\n this.lat = value;\n }", "public void calculateDistance() {\n SensorEventListener mSensorEventListener = new SensorEventListener() {\n @Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n mAngle = (Math.acos(sensorEvent.values[2] / 9.8)) * (180/Math.PI) - 5;\n mAngle = Math.toRadians(mAngle);\n mDistance = mHeight * Math.tan(mAngle);\n }\n\n @Override\n public void onAccuracyChanged(Sensor sensor, int i) {\n\n }\n };\n mSensorManager.registerListener(mSensorEventListener, mAccelerometer,\n SensorManager.SENSOR_DELAY_UI);\n\n // Calculating the distance.\n mDistance = mHeight * Math.tan(mAngle);\n // Rounding it up to 2 decimal places\n DecimalFormat df = new DecimalFormat(\"#.##\");\n mDistance = Double.valueOf(df.format(mDistance));\n String distanceString = Double.toString(mDistance);\n\n // Update the distance TextView\n TextView distanceView = (TextView) findViewById(R.id.distanceText);\n String text = distanceString + \" cm\";\n distanceView.setText(text);\n distanceView.setTextSize(36);\n }", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "public void addColumnDistantMetastasis() {\n addColumnInPrimarySection(ColumnMetaData.KEY_SECTION_METASTASIS);\n }", "public double distance() {\n return distance;\n }", "public double distance() {\n return distance;\n }", "@Override\n public void setDistance(double distance, int revolutions, int measurementsType) {\n distanceText.setText(String.format(\"%.1f\", distance));\n if (measurementsType == ThunderBoardPreferences.UNIT_METRIC) {\n distanceUnitsText.setText(getString(R.string.motion_meters));\n } else {\n distanceUnitsText.setText(getString(R.string.motion_feet));\n }\n revolutionsText.setText(String.valueOf(revolutions));\n }", "public double getDistance() {\n\t\treturn distance;\n\t}", "public double getDistance() {\n\t\treturn distance;\n\t}", "public int getDistance() {\n return distance;\n }", "public int getDistance() {\n return distance;\n }", "public void drive(double distance)\n {\n fuelInTank -= distance / fuelEfficiency; \n }", "public float getDistance(){\n\t\t\treturn s1.start.supportFinal.dot(normal);\n\t\t}", "public void calcDistance() {\n if (DataManager.INSTANCE.getLocation() != null && location.getLength() == 2) {\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n double dLat = Math.toRadians(location.getLatitude() - DataManager.INSTANCE.getLocation().getLatitude()); // deg2rad below\n double dLon = Math.toRadians(location.getLongitude() - DataManager.INSTANCE.getLocation().getLongitude());\n double a =\n Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.cos(Math.toRadians(location.getLatitude()))\n * Math.cos(Math.toRadians(location.getLatitude()))\n * Math.sin(dLon / 2)\n * Math.sin(dLon / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double d = KM_IN_RADIUS * c; // Distance in km\n distance = (float) d;\n } else distance = null;\n }", "public float getDistance() {\n return distance;\n }", "public void setDistanceToStart(float distanceToStart) {\n\t\tthis.distanceToStart = distanceToStart;\n\t}", "@Optional\n @ImportColumn(\"LAGEKL\")\n Property<Double> lageklasse();", "public void setInclination(double value) {\n this.inclination = value;\n }", "public abstract void setLOD(int lod);", "public int getDistance() {\r\n\t\treturn distance;\r\n\t}", "public int getDistance() {\r\n\t\treturn distance;\r\n\t}", "public distance()\n\t{\n\t\t// Initialize all data members.\n\t\tnumDatasets = 0;\t\t\t\n\t\tline = null;\n \tinputLine = null;\t\t\t\n\t\ttokenBuffer = null;\n\t\tlistSize = 0;\n\t}" ]
[ "0.59849906", "0.5528867", "0.5471759", "0.5471759", "0.5358892", "0.52833664", "0.52772963", "0.52404875", "0.52188766", "0.51070404", "0.5097872", "0.5092423", "0.5070945", "0.49949813", "0.4988736", "0.49310052", "0.49286598", "0.4837898", "0.48351425", "0.48079312", "0.4773841", "0.47715402", "0.47310883", "0.46996668", "0.46941507", "0.46730205", "0.46684057", "0.46655858", "0.45723265", "0.45707232", "0.4567476", "0.4520184", "0.44750726", "0.4459452", "0.444082", "0.4430841", "0.44204554", "0.44188872", "0.4403576", "0.4380472", "0.43796962", "0.43772018", "0.43671903", "0.43618044", "0.4357342", "0.43553042", "0.43271422", "0.4324299", "0.4320689", "0.43187764", "0.43178773", "0.431777", "0.43049517", "0.43045506", "0.43045506", "0.42968884", "0.4294524", "0.42909062", "0.42902747", "0.4284455", "0.42623085", "0.42585823", "0.42501354", "0.4244619", "0.4242207", "0.42397934", "0.42318308", "0.42266545", "0.4210274", "0.42076945", "0.42019027", "0.41972634", "0.4192438", "0.41864938", "0.41862133", "0.41809297", "0.41730595", "0.41723", "0.41721004", "0.41633675", "0.41628262", "0.4161554", "0.41555727", "0.41555727", "0.4154343", "0.41515836", "0.41515836", "0.41469273", "0.41469273", "0.41457087", "0.4144486", "0.4144233", "0.41378036", "0.41317564", "0.41243768", "0.41206583", "0.41179886", "0.41110787", "0.41110787", "0.41089493" ]
0.6603379
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.type
public String getType() { return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRoleType() {\n return roleType;\n }", "public String getRoleType() {\n return roleType;\n }", "RoleType getRoleType();", "public int getSqlType() { return _type; }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getType(){\r\n return type;\r\n }", "public String getType(){\n return this.type;\n }", "public int getJdbcType();", "public TYPE getType(){\n return this.type;\n }", "public String getType(){\r\n\t\treturn this.type;\r\n\t}", "public String getType(){\n\t\treturn type;\n\t}", "public String getType(){\n\t\treturn type;\n\t}", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\r\n return this.type;\r\n }", "public String getType() {\n return type;\n }", "public String getType()\n {\n return type;\n }", "String getType() {\n return type;\n }", "public String getType() {\n return (String) getObject(\"type\");\n }", "public String getType() \n {\n return type;\n }", "public String getType(){\n \treturn this.type;\n }", "public String getType(){\n\treturn type;\n }", "public String getType() \n {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\r\n\t\treturn type;\r\r\n\t}", "public String getType() {\n return type; \n }", "public String getType() {\n return type;\n }", "public String getType() {\n return _type;\n }", "public String getType()\r\n {\r\n return type;\r\n }", "public String assetType() {\n return assetType;\n }", "ResultColumn getTypeIdColumn(TableReference tableReference);", "String getType() {\r\n return this.type;\r\n }", "public String getType() {\n\n return this.type;\n }", "public String getType()\n {\n\treturn type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType() {\n\treturn type;\n }", "public String getType() {\r\n\t\treturn this.type;\r\n\t}", "public String getType()\n \t{\n \t\treturn this.type;\n \t}", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() { return type; }", "public String getType() {\r\n\t\treturn type_;\r\n\t}", "public int getType(){\n return type;\n }", "public String getType() {\n\t\treturn _type;\n\t}", "public int getType() {\n return type;\n }", "public int getType() throws SQLException\n {\n return m_rs.getType();\n }", "@Override\n\tpublic String getType() {\n\t\treturn this.type;\n\t}", "public int getType(){\n\t\treturn type;\n\t}", "public String getSqlType() {\n\t\treturn this.sqlType;\n\t}", "public String getType() {return type;}", "public String getType() {\r\n\t\treturn type;\r\n\t}", "public String getType() {\r\n\t\treturn type;\r\n\t}", "public String getType() {\r\n\t\treturn type;\r\n\t}", "@Override\n public String getType() {\n return this.type;\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}" ]
[ "0.58241427", "0.58241427", "0.57267314", "0.5710219", "0.5565382", "0.5565382", "0.5565382", "0.5565382", "0.5565382", "0.5565382", "0.5565382", "0.5565382", "0.5565382", "0.5565382", "0.5565382", "0.5555314", "0.5542775", "0.55376774", "0.55157363", "0.5509746", "0.5508997", "0.5508997", "0.55086315", "0.55086315", "0.54913205", "0.54872537", "0.5485195", "0.5484484", "0.5473835", "0.54508275", "0.54495746", "0.54491687", "0.544623", "0.54455316", "0.54455316", "0.54455316", "0.54455316", "0.54455316", "0.54455316", "0.54455316", "0.54455316", "0.54455316", "0.54455316", "0.5442683", "0.5437713", "0.54369766", "0.54358804", "0.54338163", "0.5433425", "0.5433125", "0.5429304", "0.54276204", "0.5417065", "0.54143417", "0.54127115", "0.54127115", "0.54127115", "0.54127115", "0.54127115", "0.54127115", "0.5410899", "0.5410673", "0.5407698", "0.54076356", "0.54076356", "0.54076356", "0.54076356", "0.54076356", "0.540757", "0.54072917", "0.54053134", "0.53979754", "0.5396628", "0.539412", "0.5390858", "0.539074", "0.5388413", "0.5388123", "0.53866494", "0.53866494", "0.53866494", "0.53864986", "0.5385068", "0.5384918", "0.5384918", "0.5384918", "0.5384918", "0.5384918", "0.5384918", "0.5384918", "0.5384918" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.type
public void setType(String type) { this.type = type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }", "void setType(Type type)\n {\n this.type = type;\n }", "void setType(String type) {\n this.type = type;\n }", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }", "public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}", "public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }", "public void setType(long type) {\r\n this.type = type;\r\n }", "private static String mapStatementSetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"setDate\";\n case INTEGER:\n return \"setInt\";\n case REAL:\n return \"setDouble\";\n case STRING:\n return \"setString\";\n default:\n return null;\n }\n }", "public void setRoleType(String roleType) {\n this.roleType = roleType == null ? null : roleType.trim();\n }", "public void setRoleType(String roleType) {\n this.roleType = roleType == null ? null : roleType.trim();\n }", "public void setType(String type){\n \tthis.type = type;\n }", "public void setType(String type) \n {\n this.type = type;\n }", "public void setType(String type){\n this.type = type;\n }", "public void setUserType(String type) {\r\n switch(type) {\r\n case (\"admin\"): \r\n this.userType = 0;\r\n break;\r\n case (\"seller\"):\r\n this.userType = 1;\r\n break;\r\n case (\"buyer\"):\r\n this.userType = 2;\r\n break;\r\n \r\n }\r\n }", "public void setType(int type) {\n type_ = type;\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(Type type){\n\t\tthis.type = type;\n\t}", "private void setJsonUpdateType(String type) {\n\t\tif(type == null || type.isEmpty()) {\n\t\t\ttype = Strings.jsonDirectDownload;\n\t\t}\n\t\tif(type.equals(Strings.jsonDirectDownload)) {\n\t\t\trdbtnDownloadJson.setSelected(true);\n\t\t} else if(type.equals(Strings.jsonLocalFile)) {\n\t\t\trdbtnJsonLocal.setSelected(true);\n\t\t} else if(type.equals(Strings.jsonUserDownload)) {\n\t\t\trdbtnJsonManualDownload.setSelected(true);\n\t\t} else {\n\t\t\trdbtnDownloadJson.setSelected(true);\n\t\t}\n\t}", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType( String type )\n {\n this.type = type;\n }", "public void set_type(String type)\r\n\t{\r\n\t\tthis.type = type;\r\n\t}", "public void setType(org.aspectj.compiler.base.ast.Type type) {\n this.type = type;\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType(Type type) {\n this.type = type;\n }", "public void setType(Type type) {\n this.type = type;\n }", "public void setType(Type type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }", "public void setType(int type) {\r\n this.type = type;\r\n }", "public void setType(int type) {\r\n this.type = type;\r\n }", "public void setType (int type) {\n this.type = type;\n }", "public void setType (int type) {\n this.type = type;\n }", "public void setType( String type ) {\n this.type = type;\n }", "@Override\n public void setType(String type) {\n this.type = type;\n }", "public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }", "public void xsetType(org.apache.xmlbeans.XmlInt type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(TYPE$2);\n }\n target.set(type);\n }\n }", "public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public void setType(String type){\n\t\tthis.type = type;\n\t}", "private void setJarUpdateType(String type) {\n\t\tif(type == null || type.isEmpty()) {\n\t\t\ttype = Strings.jarDirectDownload;\n\t\t}\n\t\tif(type.equals(Strings.jarDirectDownload)) {\n\t\t\trdbtnDownloadJar.setSelected(true);\n\t\t} else if(type.equals(Strings.jarLocalFile)) {\n\t\t\trdbtnJarLocal.setSelected(true);\n\t\t} else if(type.equals(Strings.jarUserDownload)) {\n\t\t\trdbtnJarManualDownload.setSelected(true);\n\t\t} else {\n\t\t\trdbtnDownloadJar.setSelected(true);\n\t\t}\n\t}", "public void setType(int type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "@JSProperty(\"type\")\n void setType(Type value);", "public void setType(String type){\r\n if(type == null){\r\n throw new IllegalArgumentException(\"Type can not be null\");\r\n }\r\n this.type = type;\r\n }", "public void setType(String type) {\n\n this.type = type;\n }", "public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}", "public OrderSetCustomTypeActionBuilder type(\n @Nullable final com.commercetools.api.models.type.TypeResourceIdentifier type) {\n this.type = type;\n return this;\n }", "@Override\n public void setType(ResourceType type) {\n if (this.type == null)\n this.type = type;\n }", "public String getRoleType() {\n return roleType;\n }", "public String getRoleType() {\n return roleType;\n }", "public void setResType(int ResType) {\n\t\tthis.ResType = ResType;\n\t}", "public void setType(int type) throws DBException {\n _type = type;\n }", "public void setType(int type) throws DBException {\n _type = type;\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "public void setType(String type) {\n setObject(\"type\", (type != null) ? type : \"\");\n }", "private void setType(String type) {\n mType = type;\n }", "final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }", "public final void setType(String type){\n\t\tthis.type = type;\t\n\t}", "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "@Override\n\tpublic void setType(String type) {\n\t\tthis.type = type;\n\t}", "public int getSqlType() { return _type; }", "public void changeToType(TYPE type){\n this.type=type;\n return;\n }", "public void setType(TurnType type) {\n\t\tthis.type = type;\n\t}", "public void setType(String type)\n\t{\n\t\tthis.type = type;\n\t}" ]
[ "0.5315762", "0.52612716", "0.5190576", "0.5186261", "0.5120472", "0.50763667", "0.5071811", "0.50702924", "0.5045644", "0.5042945", "0.5042863", "0.5042863", "0.5026604", "0.50228894", "0.5014006", "0.50114036", "0.49980327", "0.49563724", "0.49484822", "0.49361575", "0.49288356", "0.49288356", "0.49288356", "0.49288356", "0.491621", "0.49137804", "0.4907071", "0.4906453", "0.4905622", "0.4905622", "0.4898568", "0.4898568", "0.4898568", "0.48984525", "0.48984525", "0.48984525", "0.48974165", "0.48974165", "0.4891625", "0.4886332", "0.4886332", "0.48843768", "0.48843768", "0.4876993", "0.48697227", "0.48670968", "0.48643494", "0.48544693", "0.4849896", "0.4849896", "0.4849896", "0.48491403", "0.48339656", "0.4832838", "0.48323026", "0.48298165", "0.4822291", "0.4819564", "0.48125175", "0.4804352", "0.48039496", "0.48007962", "0.48007962", "0.4794667", "0.4789578", "0.4789578", "0.47883976", "0.47850528", "0.47788966", "0.47765213", "0.47734597", "0.47712764", "0.47712764", "0.47712764", "0.4755209", "0.47406396", "0.47388175", "0.47368386", "0.4732049" ]
0.48534036
69
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.status
public String getStatus() { return status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getStatus() {\n return this.Status;\n }", "public String getStatus() {\n return getProperty(Property.STATUS);\n }", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "public Integer getStatus() {\n return this.status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public String status() {\n return this.innerProperties() == null ? null : this.innerProperties().status();\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "public Integer getStatus() {\r\n return status;\r\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public DBRowStatus getStatus()\n\t{\n\t\treturn _Status;\n\t}", "@Transient\n\tpublic int getStatus()\t{\n\t\treturn mStatus;\n\t}", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatusId() {\n return getProperty(Property.STATUS_ID);\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public ReturnStatus getStatus() {\n return (ReturnStatus) get(\"status\");\n }", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public Integer getStatus() {\n\t\treturn status;\n\t}", "public int getStatus(){\r\n\t\treturn this.status;\r\n\t}", "public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }", "public String status() {\n return getString(FhirPropertyNames.PROPERTY_STATUS);\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public String getStatus() {\n return this.Status;\n }", "public String getStatus() {\n return this.Status;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "public String getStatus() {\n return status;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "public int getStatus()\n {\n return status;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public Status getStatus() {\r\n\t return status;\r\n\t }", "public String getStatus()\n {\n\n return status;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }" ]
[ "0.6070492", "0.60456777", "0.5904529", "0.5898663", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.58312225", "0.5830163", "0.582337", "0.582337", "0.5813316", "0.5813316", "0.5790951", "0.5786247", "0.5766272", "0.5766272", "0.5766272", "0.5765568", "0.5750017", "0.57423615", "0.57423615", "0.57423615", "0.57423615", "0.57423615", "0.57423615", "0.57423615", "0.5734301", "0.5732344", "0.5732344", "0.573223", "0.5705523", "0.5705523", "0.57025766", "0.57025766", "0.57025766", "0.57025766", "0.57025766", "0.5699709", "0.5699709", "0.569242", "0.569242", "0.569242", "0.5690996", "0.5690996", "0.5690996", "0.5690996", "0.5690996", "0.5690996", "0.5690996", "0.5687433", "0.56865263", "0.56865263", "0.5686433", "0.5686433", "0.5686433", "0.5686433", "0.5686433", "0.5686433", "0.5686433", "0.5686433", "0.5681369", "0.5678839", "0.56783307", "0.56783307", "0.56783307", "0.56783307", "0.56783307", "0.56783307", "0.56783307", "0.56783307", "0.56783307", "0.5675499", "0.5675499", "0.5675499", "0.5675499", "0.5675499", "0.5675499", "0.5675499", "0.5675499", "0.5675499", "0.56741434", "0.5672154", "0.5665038", "0.5665038" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.status
public void setStatus(String status) { this.status = status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setStatus(final String val) {\n status = val;\n }", "public void setRolloverStatus(boolean value) {\n _rollover = value;\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}", "public void setStatus(com.redknee.util.crmapi.soap.subscriptions.xsd._2010._06.BundleStatus param){\n localStatusTracker = true;\n \n this.localStatus=param;\n \n\n }", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setStatus(Long Status) {\n this.Status = Status;\n }", "@JsonProperty(\"status\")\n public void setStatus(Status status) {\n this.status = status;\n }", "@Override\n\tpublic void setStatus(VehicleStatus status) {\n\t\tthis.status = status;\n\t}", "@JsonSetter(\"status\")\r\n public void setStatus (String value) { \r\n this.status = value;\r\n }", "@JsonSetter(\"status\")\r\n public void setStatus (String value) { \r\n this.status = value;\r\n }", "public void setStatus(STATUS status) {\n this.status = status;\n }", "public void setStatusId(long statusId);", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public void setAdminMigrationStatus(Context context,String strStatus) throws Exception\r\n\t{\r\n\t\tString cmd = \"modify program eServiceSystemInformation.tcl property MigrationR212VariantConfiguration value \"+strStatus;\r\n\t\tMqlUtil.mqlCommand(context, mqlCommand, cmd);\r\n\t}", "public void setrowStatus(Integer value){\n\t}", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(CanaryStatus status) {\n this.status = status;\n }", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setRollbackStatus(Byte rollbackStatus) {\r\n this.rollbackStatus = rollbackStatus;\r\n }", "@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "public void setStatus(java.lang.Object status) {\n this.status = status;\n }", "public void setStatus(@NotNull Status status) {\n this.status = status;\n }", "public void setStatus(int status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) { this.status = status; }", "public void setStatus(Status status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setEntitystatus(int entitystatus);", "public void setStatus(EnumVar status) {\n this.status = status;\n }", "public void setStatus(JenkinsStatus status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(StatusOfCause status) {\n\t\tthis.statusValue = status.value;\n\t}", "public void setStatus(BatchStatus value) {\n this.status = value;\n }", "public void setStatus(net.opengis.gml.x32.StringOrRefType status)\n {\n generatedSetterHelperImpl(status, STATUS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public void setStatus(Status status)\n {\n this.status = status;\n }", "public void setRelDocStatus(int v) \n {\n \n if (this.relDocStatus != v)\n {\n this.relDocStatus = v;\n setModified(true);\n }\n \n \n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "public void setStatus(Status status) {\n this.status = status;\n }", "void setStatus(STATUS status);", "public void setOrderStatus(java.lang.String param){\n \n this.localOrderStatus=param;\n \n\n }", "public void setStatus(TransactionStatus status) {\n this.status = status;\n }", "public void setOwnerStatus(String ownerStatus)\n {\n // put your code here\n this.ownerStatus = ownerStatus;\n }", "private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with modify entries. \", exception);\n }\n\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n } else {\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n }\n }", "@Override\n @Transactional(readOnly = false)\n public void actualizarStatus(Integer status, String numControl) throws SIATException {\n try {\n jdbcTemplateDYC.update(SQLOracleDyC.ACTUALIZAR_TRAMITECOMPENSACION.toString(), new Object[] { status, numControl });\n } catch (DataAccessException dae) {\n log.error(\"actualizarStatus(); parametros= status:\" + status + \", numControl:\" + numControl +\n ConstantesDyC1.TEXTO_8_CAUSAS + dae.getCause());\n throw new SIATException(dae);\n }\n }", "public void setSsoStatus(long ssoStatus) {\r\n this.ssoStatus = ssoStatus;\r\n }", "public void setStatus(String Status) {\n this.Status = Status;\n }", "public void setStatus(String Status) {\n this.Status = Status;\n }", "public void setStatus(String status)\n {\n setValue(\"status\", status);\n }", "public void setStatus(boolean status) {\n\tthis.status = status;\n }", "public void setStatus(WorkflowInstanceStatus status) {\n this.status = status;\n }", "public void setAuditStatus(Byte auditStatus) {\n this.auditStatus = auditStatus;\n }", "public void setArrivalStatus(int status) {\n \tthis.arrivalStatus = status;\n }", "@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}" ]
[ "0.58947116", "0.5783256", "0.56617486", "0.55614907", "0.54427576", "0.5429197", "0.54235494", "0.5403781", "0.53953", "0.5369697", "0.5336215", "0.5336215", "0.53261274", "0.5324855", "0.5288029", "0.5288029", "0.52855057", "0.5258358", "0.5255661", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.5245144", "0.52438027", "0.523696", "0.52232146", "0.5218102", "0.52070993", "0.52000684", "0.51949215", "0.5193306", "0.51897484", "0.51795894", "0.51795894", "0.51691484", "0.5167287", "0.5167287", "0.5166682", "0.5158353", "0.51519954", "0.51519954", "0.51472443", "0.51334846", "0.51334375", "0.51109594", "0.51109594", "0.51105624", "0.51055384", "0.51051754", "0.51002127", "0.50988036", "0.5092185", "0.5092185", "0.5092185", "0.5092185", "0.50915325", "0.50784683", "0.50780654", "0.5074954", "0.5069886", "0.5064912", "0.50637716", "0.50631094", "0.50631094", "0.5062237", "0.50612986", "0.50583214", "0.5051598", "0.50464153", "0.5045691" ]
0.50846684
82
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.remark
public String getRemark() { return remark; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public java.lang.String getRemark () {\n\t\treturn _remark;\n\t}", "public String getRemark() {\r\n\t\treturn remark;\r\n\t}", "public String getRemark()\n/* */ {\n/* 255 */ return this.remark;\n/* */ }", "public String getRemark() {\n\t\treturn remark;\n\t}", "String getRemark();", "public java.lang.String getRemark () {\r\n\t\treturn remark;\r\n\t}", "public String getRemark() {\n return this.Remark;\n }", "public String getLovRemark() {\r\n\t\treturn lovRemark;\r\n\t}", "public String getRemarks() {\r\n return remarks;\r\n }", "public String getLineRemark() {\n return lineRemark;\n }", "public String getMlSremark() {\n return mlSremark;\n }", "public String getRemarks() { return remarks; }", "public java.lang.String getActualRemark () {\n\t\treturn actualRemark;\n\t}", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n return remarks;\n }", "public String getaRemarks() {\n return aRemarks;\n }", "public java.lang.String getRevisedRemark () {\n\t\treturn revisedRemark;\n\t}", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }", "public java.lang.String getRemarks() {\n return remarks;\n }", "public String getRemarks() {\n\t\t\treturn remarks;\n\t\t}", "public java.lang.String getPlannedRemark () {\n\t\treturn plannedRemark;\n\t}", "public String getRemarks() {\r\n return (String) getAttributeInternal(REMARKS);\r\n }", "public String getOrderRemark() {\n return orderRemark;\n }", "public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }", "public String getRemarks() {\n return (String) getAttributeInternal(REMARKS);\n }", "public java.lang.String getRemarks () {\n\t\treturn remarks;\n\t}", "public String getAdmRemarks() {\n return admRemarks;\n }", "public String getMoneyRemark() {\n return moneyRemark;\n }", "public java.lang.String getRemark3()\r\n {\r\n return _remark3;\r\n }", "public String getBusinessRemark() {\n return businessRemark;\n }", "public java.lang.String getRemark2()\r\n {\r\n return _remark2;\r\n }", "public java.lang.String getRemarks() {\n\t\treturn _tempNoTiceShipMessage.getRemarks();\n\t}", "public String getToolremark() {\r\n return toolremark;\r\n }", "@Column(name = \"DESCRIPTION\", length = 200 )\n public String getDescription() {\n return description;\n }", "public String getFailedRemark() {\r\n return failedRemark;\r\n }", "public String getComment() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_comment;\n\t}", "java.lang.String getNotes();", "java.lang.String getNotes();", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public StrColumn getRevisionDescription() {\n return delegate.getColumn(\"revision_description\", DelegatingStrColumn::new);\n }", "public String getAuditReason() {\n return auditReason;\n }", "public java.lang.String getRemark1()\r\n {\r\n return _remark1;\r\n }", "@Column(name = \"description\", nullable = false)\n public String getDescription() {\n\treturn this.description;\n }", "public String notes() {\n return this.innerProperties() == null ? null : this.innerProperties().notes();\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public String getDescription()\r\n\t{\r\n\t\tStringBuilder msgreturn = new StringBuilder().append(m_name).append(\" \").append(m_taxBaseAmt.toString());\r\n\t\treturn msgreturn.toString();\r\n\t}", "public String description(){\n\t\treturn \"Mark: \" + mark + \"\\n\" + \"Comment: \" + comment;\n\t}", "protected void setRemark(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString remark = rs.getString(EmployeeLeaveTable.COLUMN_REMARK);\n\t\tif(remark == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setRemark(remark);\n\t}", "public String getRoledescription() {\n return roledescription;\n }", "@AutoEscape\n\tpublic String getApellidoMaterno();", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }", "public void setRemark(String remark) {\n this.remark = remark;\n }" ]
[ "0.6215422", "0.61719126", "0.61719126", "0.61719126", "0.61719126", "0.61302006", "0.61071396", "0.61019194", "0.6064877", "0.6050889", "0.6025353", "0.60226846", "0.5973045", "0.5797626", "0.57579714", "0.5748427", "0.57437", "0.574139", "0.57153374", "0.57153374", "0.57153374", "0.57153374", "0.57153374", "0.57153374", "0.57153374", "0.5682421", "0.5639451", "0.56182975", "0.56182975", "0.56182975", "0.56182975", "0.56040466", "0.5592514", "0.5563979", "0.5533076", "0.5499053", "0.5494872", "0.5494872", "0.54476136", "0.5440429", "0.54135764", "0.5315726", "0.5287766", "0.5284454", "0.52564937", "0.5252996", "0.5220409", "0.520144", "0.5197431", "0.5157804", "0.5157804", "0.513981", "0.5128356", "0.5116991", "0.5109099", "0.51020527", "0.5101815", "0.50936", "0.50936", "0.5091822", "0.5088539", "0.50870174", "0.5073251", "0.50634557", "0.5039881", "0.5039881", "0.5039881", "0.5039881", "0.5039881", "0.5039881" ]
0.6117197
30
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.remark
public void setRemark(String remark) { this.remark = remark; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setRemark(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString remark = rs.getString(EmployeeLeaveTable.COLUMN_REMARK);\n\t\tif(remark == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setRemark(remark);\n\t}", "public void setRemark(String remark)\n/* */ {\n/* 267 */ this.remark = remark;\n/* */ }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark;\r\n }", "public void setRemark (java.lang.String remark) {\r\n\t\tthis.remark = remark;\r\n\t}", "public void setRemark(String remark) {\r\n\t\tthis.remark = remark;\r\n\t}", "public void setRemark(String Remark) {\n this.Remark = Remark;\n }", "public void setRemark(String remark) {\n\t\tthis.remark = remark == null ? null : remark.trim();\n\t}", "public void setRemark(String remark) {\r\n this.remark = remark == null ? null : remark.trim();\r\n }", "public void setRemark(String remark) {\r\n this.remark = remark == null ? null : remark.trim();\r\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark(String remark) {\n this.remark = remark == null ? null : remark.trim();\n }", "public void setRemark (java.lang.String _remark) {\n\t\tthis._remark = _remark;\n\t}", "public void setRemarks(String remarks) {\n this.remarks = remarks;\n }", "public void setRemarks(java.lang.String remarks) {\n this.remarks = remarks;\n }", "public void setRemarks (java.lang.String remarks) {\n\t\tthis.remarks = remarks;\n\t}", "public void setRemarks(String remarks) {\r\n this.remarks = remarks == null ? null : remarks.trim();\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public void setRemarks(String remarks) {\n this.remarks = remarks == null ? null : remarks.trim();\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\r\n return remark;\r\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\n return remark;\n }", "public String getRemark() {\r\n\t\treturn remark;\r\n\t}", "public void setMlSremark(String mlSremark) {\n this.mlSremark = mlSremark;\n }", "public String getRemark()\n/* */ {\n/* 255 */ return this.remark;\n/* */ }", "public String getRemark() {\n\t\treturn remark;\n\t}", "public void setRemarks(java.lang.String remarks) {\n\t\t_tempNoTiceShipMessage.setRemarks(remarks);\n\t}", "public void setToolremark(String toolremark) {\r\n this.toolremark = toolremark;\r\n }", "public String getRemark() {\n return this.Remark;\n }", "public void setActualRemark (java.lang.String actualRemark) {\n\t\tthis.actualRemark = actualRemark;\n\t}", "public final void setRemarks(java.lang.String remarks)\n\t{\n\t\tsetRemarks(getContext(), remarks);\n\t}", "public final void setRemarks(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String remarks)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Remarks.toString(), remarks);\n\t}", "public java.lang.String getRemark () {\n\t\treturn _remark;\n\t}", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "public java.lang.String getRemark () {\r\n\t\treturn remark;\r\n\t}", "public void setLineRemark(String lineRemark) {\n this.lineRemark = lineRemark == null ? null : lineRemark.trim();\n }" ]
[ "0.64153284", "0.62691045", "0.6030024", "0.59860873", "0.59860873", "0.59183824", "0.58885336", "0.58689487", "0.5777481", "0.57612634", "0.57612634", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5748394", "0.5673602", "0.56545705", "0.55022347", "0.54727376", "0.5472259", "0.5465856", "0.54488415", "0.54488415", "0.54488415", "0.54488415", "0.54488415", "0.54196495", "0.54196495", "0.54196495", "0.54196495", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.534426", "0.5334504", "0.532307", "0.53084344", "0.5266433", "0.5257025", "0.52430993", "0.52068686", "0.51773244", "0.51666075", "0.5122684", "0.51111734", "0.50798625", "0.5077675", "0.5042951" ]
0.58991617
13
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.is_deductible
public String getIsDeductible() { return isDeductible; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ModelNodeBinding(detypedName = \"jdbc-compliant\")\n\tpublic Boolean jdbcCompliant() {\n\t\treturn this.jdbcCompliant;\n\t}", "public Boolean deceasedBoolean() {\n return data.getBoolean(FhirPropertyNames.PROPERTY_DECEASED_BOOLEAN);\n }", "@Transient\n\tpublic boolean getRefundable(){\n\t\treturn this.mRefundable;\n\t}", "@Transient\n\tpublic boolean isRefundable(){\n\t\treturn this.mRefundable;\n\t}", "public Boolean getResilierContrat() {\n return resilierContrat;\n }", "public String getIsDerate() {\n return isDerate;\n }", "@Override\n public boolean getAsBoolean() {\n return this.persistenceCheck.getAsBoolean();\n }", "public boolean getVDD(){return this.vientDeDouble;}", "public Boolean isAuthorizedForDataset() {\n return (attributes.containsKey(KEY_IS_AUTHORIZED_FOR_DS) ? (Boolean) attributes\n .get(KEY_IS_AUTHORIZED_FOR_DS) : null);\n }", "public void setIsDeductible(String isDeductible) {\n this.isDeductible = isDeductible;\n }", "@Override\n\tpublic boolean isDropOk () {\n\t\treturn isAllowed ( selectedAttribute ) ;\n\t}", "@Override\n\tpublic boolean isPoolable() throws SQLException {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean isPoolable() throws SQLException {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isPoolable() throws SQLException {\n\t\treturn false;\r\n\t}", "public boolean getAvailability(){\n return availabile;\n }", "public int getHoldability() throws SQLException {\n\n try {\n debugCodeCall(\"getHoldability\");\n checkClosed();\n return conn.getHoldability();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "@Override\n\tpublic boolean isPoolable()\n\t\tthrows SQLException {\n return false;\n }", "public boolean isAlg_isFileOrDBOut() {\r\n return this.Alg_isFileOrDBOut;\r\n }", "public Integer getIsDeteled() {\n return isDeteled;\n }", "public boolean isPoolable() throws SQLException {\n return currentPreparedStatement.isPoolable();\n }", "public Long getIsRevisable() {\n return isRevisable;\n }", "public Boolean getDf() {\n return df;\n }", "public String getDstAccessType() {\n return this.DstAccessType;\n }", "public BooleanDt getIsModifierElement() { \n\t\tif (myIsModifier == null) {\n\t\t\tmyIsModifier = new BooleanDt();\n\t\t}\n\t\treturn myIsModifier;\n\t}", "public Character getDistrictPermitFlag() {\n return districtPermitFlag;\n }", "final boolean isDateRollEnforced() {\n return this.dateRollEnforced;\n }", "public Optional<Boolean> skipGetVaultVersion() {\n return Codegen.booleanProp(\"skipGetVaultVersion\").config(config).get();\n }", "@Override\r\n\t\tpublic int getHoldability() throws SQLException {\n\t\t\treturn 0;\r\n\t\t}", "public boolean getFacingRight(){\n return facingRight;\n }", "public DamageType getDamagetype();", "boolean hasDowntimeJailDuration();", "@Override\n\tpublic boolean getIsFinal() {\n\t\treturn _esfTournament.getIsFinal();\n\t}", "@Override\r\n\t\tpublic boolean isReadOnly() throws SQLException {\n\t\t\treturn false;\r\n\t\t}", "@Override\r\n public Integer checkAdvIsUpload(CmsSupplierAdcolumn supplierAdcolumn)\r\n throws SQLException {\n return (Integer) sqlMapClient.queryForObject(\"CMS_SUPPLIER_ADCOLUMN.abatorgenerated_checkAdvIsUpload\", supplierAdcolumn);\r\n }", "public boolean isEdible()\n {\n return this.aEdible;\n }", "public boolean getBoolean(int columnIndex) throws SQLException\n {\n return m_rs.getBoolean(columnIndex);\n }", "public boolean getDiceRoller() {\n return this.diceRoller;\n }", "public Boolean contributedToDeath() {\n return data.getBoolean(FhirPropertyNames.PROPERTY_CONTRIBUTED_TO_DEATH);\n }", "@Transient\n\tpublic String getNonRefundableDescription(){\n\t\treturn this.mNonRefundableDescription;\n\t}", "public BoundCodeDt<InstanceAvailabilityEnum> getAvailability() { \n\t\tif (myAvailability == null) {\n\t\t\tmyAvailability = new BoundCodeDt<InstanceAvailabilityEnum>(InstanceAvailabilityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myAvailability;\n\t}", "public BoundCodeDt<InstanceAvailabilityEnum> getAvailability() { \n\t\tif (myAvailability == null) {\n\t\t\tmyAvailability = new BoundCodeDt<InstanceAvailabilityEnum>(InstanceAvailabilityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myAvailability;\n\t}", "public boolean isDropper() {\n return this.type == Type.DROPPER;\n }", "@JsonGetter(\"dnisEnabled\")\r\n public boolean getDnisEnabled ( ) { \r\n return this.dnisEnabled;\r\n }", "public StrColumn getUnpublishedFlag() {\n return delegate.getColumn(\"unpublished_flag\", DelegatingStrColumn::new);\n }", "public java.lang.Boolean getPwrreserve() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Boolean) __getCache(\"pwrreserve\")));\n }", "public boolean isShootRight() {\n return shootRight;\n }", "private boolean distBeltExists(){ \n String table = \"DISTBELT\";\n \n try {\n stmt = conn.createStatement();\n rs = stmt.executeQuery(\"SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'PUBLIC'\");\n \n while(rs.next()){\n if(table.equalsIgnoreCase(rs.getString(\"TABLE_NAME\"))){\n return true;\n }\n }\n \n stmt.close();\n rs.close();\n \n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return false; \n }", "public boolean isBlocNatureDynamique() {\n\t\tboolean isDynamique = false;\n\t\tif (toTplBlocNature().tbnLibelle().equals(EOTplBlocNature.TPL_BLOC_NATURE_DYNAMIQUE)) {\n\t\t\tisDynamique = true;\n\t\t}\n\t\treturn isDynamique;\n\t}", "@JsonProperty(\"dataAccessRole\")\n public String getDataAccessRole() {\n return dataAccessRole;\n }", "@Transient\r\n\tpublic boolean isSurcharge() {\r\n\t\treturn false;\r\n\t}", "public boolean getCarry() {\n return mAndGate.getOutput();\n }", "@Override\n public boolean isIgnorable() {\n return columnInfo.isIgnorable();\n }", "boolean hasDrugLumn();", "boolean hasDrugLumn();", "@Override protected String isEnabled(final String param) {\n if (getDrbdResource().isCommited()\n && DRBD_RES_PARAM_NAME.equals(param)) {\n return \"\";\n }\n return null;\n }", "public boolean referenceColumnInSql() {\n return false;\n }", "public boolean isLayoutable() {\n return (rawData != null && !rawData.optBoolean(Constants.HIDDEN_FIELD)\n && rawData.optBoolean(Constants.LAYOUTABLE_FIELD));\n }", "public YangEnumeration getDualVectorTypeValue() throws JNCException {\n YangEnumeration dualVectorType = (YangEnumeration)getValue(\"dual-vector-type\");\n if (dualVectorType == null) {\n dualVectorType = new YangEnumeration(\"disable\", new String[] { // default\n \"enable\",\n \"disable\",\n });\n }\n return dualVectorType;\n }", "@Override\r\n\tpublic int productInputDontPerm() {\n\t\treturn getSqlSession().selectOne(productInputNameSpace+\".productInputDontPerm\");\r\n\t}", "public boolean isDamageTaken() {\n return damageTaken;\n }", "private boolean getMigrates() {\n\t\treturn this.migrates;\n\t}", "public boolean isSetContructionType()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(CONTRUCTIONTYPE$24) != null;\r\n }\r\n }", "public boolean isSupportDtd() {\n\t\treturn this.supportDtd;\n\t}", "public DesignResidentialElements getDesignResidentialAccess() {\n\t\treturn pDesignResidential;\n\t}", "public Boolean getIsUnpacked() {\n return isUnpacked;\n }", "@Override\n public Watermark getNullableResult(ResultSet rs, String columnName) throws SQLException {\n return new Watermark();\n }", "public int getAccessLevel() {\n return 0;\r\n }", "public boolean isSetDrop_priv() {\n return this.__isset.drop_priv;\n }", "@java.lang.Override\n public boolean getCausesDrop() {\n return causesDrop_;\n }", "@Updatable\n public Boolean getAutoRepair() {\n return autoRepair;\n }", "public boolean hasRoleId() {\n return result.hasRoleId();\n }", "@Override\n public boolean equipped() {\n\treturn this.equipped;\n }", "public boolean getFinalHullDown() {\n if (getLastStep() != null) {\n return getLastStep().isHullDown();\n }\n if (getEntity() == null) {\n return false;\n }\n return getEntity().isHullDown();\n }", "protected abstract boolean isMigrationNecessary();", "@Override\n public Watermark getNullableResult(ResultSet rs, int columnIndex) throws SQLException {\n return new Watermark();\n }", "@java.lang.Override\n public boolean hasLicensePlate() {\n return licensePlate_ != null;\n }", "public int CheckSysLibDRARes(int ResID) throws SQLException, Exception {\n\t\tint pkDRA = 0;\n\t\t\n\t\tString query = \"SELECT IsSystemGenerated FROM tblDRARes \";\n\t\tquery = query + \"WHERE ResID = \" + ResID;\n\t\tConnection con = null;\n\t\tStatement st = null;\n\t\tResultSet rs = null;\n\t\n\n\t\ttry{\n\t\t\tcon=ConnectionBean.getConnection();\n\t\t\tst=con.createStatement();\n\t\t\trs=st.executeQuery(query);\n\n\t\t\tif(rs.next())\n\t\t\t\tpkDRA = rs.getInt(1);\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"DevelpmentResources.java - CheckSysLibDRARes - \"+e);\n\t\t}finally{\n\t\t\tConnectionBean.closeRset(rs); //Close ResultSet\n\t\t\tConnectionBean.closeStmt(st); //Close statement\n\t\t\tConnectionBean.close(con); //Close connection\n\n\t\t}\t\t\t\n\t\t\n\t\t\t\n\t\treturn pkDRA;\n\t}", "public String getApplicableLawReference() {\n return applicableLawReference;\n }", "public String getAccessionStatus() {\n\t\tString t = doc.get(\"collaccessionstatus\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}", "public boolean isOcuppied() {\n return ocuppied;\n }", "public boolean getGeneratedCheck(){\n return generatedCheck;\n }", "public boolean getDistributable();", "public Boolean getDescTraslado(){\n return this.descTraslado;\n }", "AbilityDamage getAbilityDamage();", "public BooleanDt getMustSupportElement() { \n\t\tif (myMustSupport == null) {\n\t\t\tmyMustSupport = new BooleanDt();\n\t\t}\n\t\treturn myMustSupport;\n\t}", "boolean hasProduceResType();", "@Kroll.getProperty @Kroll.method\n\tpublic boolean getSpecified() {\n\t\tif (attr.getOwnerElement() == null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn attr.getSpecified();\n\t}", "public boolean getEffdatedOnly()\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(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(EFFDATEDONLY$20);\r\n }\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }", "public boolean getHasVacuum(){return this.hasVacuum;}", "public boolean isRestricted() {\n return _restricted;\n }", "public TypeLivraisonDto getTypeLivraison() {\n return typeLivraison;\n }", "EDataType getResistance();", "public Boolean getNotHasPermission()\r\n {\r\n return notHasPermission;\r\n }", "@Updatable\n public Boolean getAutoUpgrade() {\n return autoUpgrade;\n }", "@java.lang.Override\n public boolean getCausesDrop() {\n return causesDrop_;\n }", "public boolean getSouth()\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(SOUTH$2, 0);\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "public BoundCodeDt<InstanceAvailabilityEnum> getAvailabilityElement() { \n\t\tif (myAvailability == null) {\n\t\t\tmyAvailability = new BoundCodeDt<InstanceAvailabilityEnum>(InstanceAvailabilityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myAvailability;\n\t}", "public BoundCodeDt<InstanceAvailabilityEnum> getAvailabilityElement() { \n\t\tif (myAvailability == null) {\n\t\t\tmyAvailability = new BoundCodeDt<InstanceAvailabilityEnum>(InstanceAvailabilityEnum.VALUESET_BINDER);\n\t\t}\n\t\treturn myAvailability;\n\t}", "public boolean get_destination() {\r\n return (final_destination);\r\n }", "public String getTableGenerationDropCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_DROP_AND_CREATE_ACTION;\n }" ]
[ "0.5016051", "0.49298662", "0.49036208", "0.4846419", "0.4806875", "0.48062846", "0.48011827", "0.47784173", "0.4702538", "0.4676181", "0.46508893", "0.45884365", "0.45723033", "0.45723033", "0.45265156", "0.4510268", "0.44892564", "0.44533193", "0.44268462", "0.4419678", "0.441672", "0.4416493", "0.44134173", "0.4403297", "0.44020516", "0.43936962", "0.4378218", "0.43778023", "0.4369822", "0.43364516", "0.4309674", "0.43014047", "0.4300448", "0.4289333", "0.4288608", "0.42814806", "0.42760196", "0.42723033", "0.42611742", "0.42525008", "0.42525008", "0.42522305", "0.42477292", "0.42342815", "0.4229239", "0.422596", "0.42256564", "0.42195097", "0.41979718", "0.41968742", "0.4194069", "0.41896823", "0.41862306", "0.41862306", "0.41834185", "0.41774547", "0.4167058", "0.41667825", "0.41650236", "0.41613552", "0.4158553", "0.41489083", "0.41481972", "0.41427836", "0.414244", "0.41349867", "0.41348293", "0.41333145", "0.41285205", "0.41211748", "0.41196442", "0.41168496", "0.41163144", "0.4114403", "0.41125253", "0.41124532", "0.4111545", "0.4110842", "0.41025794", "0.41006434", "0.40989107", "0.4096818", "0.40948752", "0.40942106", "0.409194", "0.40913475", "0.40902033", "0.4083746", "0.40805456", "0.4075145", "0.40739816", "0.40708965", "0.40705943", "0.40636554", "0.40614903", "0.40564921", "0.40560094", "0.40560094", "0.40557566", "0.4055617" ]
0.57288754
0
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.is_deductible
public void setIsDeductible(String isDeductible) { this.isDeductible = isDeductible; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setPoolable(boolean poolable)\n\t\tthrows SQLException {\n \n }", "@Override\r\n\tpublic void setPoolable(boolean poolable) throws SQLException {\n\t\t\r\n\t}", "@Override\n\tpublic void setPoolable(boolean poolable) throws SQLException {\n\t\t\n\t}", "@Override\r\n\tpublic void setPoolable(boolean poolable) throws SQLException {\n\r\n\t}", "public void setPoolable(boolean poolable) throws SQLException {\n currentPreparedStatement.setPoolable(poolable);\n }", "public String getIsDeductible() {\n return isDeductible;\n }", "public void setIsDerate(String isDerate) {\n this.isDerate = isDerate;\n }", "public void setResilierContrat(Boolean resilierContrat) {\n this.resilierContrat = resilierContrat;\n }", "@Override\n\tpublic boolean isPoolable() throws SQLException {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isDropOk () {\n\t\treturn isAllowed ( selectedAttribute ) ;\n\t}", "public void setRequiresTaxCertificate (boolean RequiresTaxCertificate)\n{\nset_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate));\n}", "@Override\r\n\tpublic boolean isPoolable() throws SQLException {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isPoolable() throws SQLException {\n\t\treturn false;\r\n\t}", "public void setSummable(Boolean summable);", "public void setDistributable(boolean distributable);", "public void setPerishable(boolean value) {\r\n this.perishable = value;\r\n }", "public void setCoverable(entity.APDCoverable value);", "void setDeducted(double deducted) {\n this.deducted = deducted;\n }", "@Override\n\tpublic boolean isPoolable()\n\t\tthrows SQLException {\n return false;\n }", "public void setAutoDdl(String value)\n\t{\n\t\tm_autoDdl = new Boolean(value).booleanValue();\n\t}", "public void setAvalible(boolean val) {\n this.available = val;\n }", "public void setTallied(java.lang.Boolean value);", "public void setHasVacuum(boolean value){this.hasVacuum = value;}", "public void setInDatabase(boolean b) {\n \n }", "public void setAutoDdl(String value)\n\t{\n\t\tautoDdl = new Boolean(value).booleanValue();\n\t}", "public void setDSCComplianceEnabled(boolean value) {\n this.dscCompliant = value;\n }", "public void setImmunity(boolean bool) {\r\n shieldImmune = bool;\r\n }", "public boolean getVDD(){return this.vientDeDouble;}", "public void setInvulnerable ( boolean flag ) {\n\t\ttry {\n\t\t\tinvokeSafe ( \"setInvulnerable\" , flag );\n\t\t} catch ( NoSuchMethodError ex ) { // legacy\n\t\t\thandleOptional ( ).ifPresent (\n\t\t\t\t\thandle -> EntityReflection.setInvulnerable ( handle , flag ) );\n\t\t}\n\t}", "@ModelNodeBinding(detypedName = \"jdbc-compliant\")\n\tpublic Boolean jdbcCompliant() {\n\t\treturn this.jdbcCompliant;\n\t}", "public void setIsDeteled(Integer isDeteled) {\n this.isDeteled = isDeteled;\n }", "public void setIsRevisable(Long isRevisable) {\n this.isRevisable = isRevisable;\n }", "void setCannotDamage(List<Type> cannotDamage) {\n this.cannotDamage = cannotDamage;\n }", "public void setD ( boolean d ) {\n\n\tthis.d = d;\n }", "void setHasAppliedModifier(boolean hasAppliedModifier);", "@Override\n\tpublic void setIsFinal(boolean isFinal) {\n\t\t_esfTournament.setIsFinal(isFinal);\n\t}", "public void setDistrictPermitFlag(Character aDistrictPermitFlag) {\n districtPermitFlag = aDistrictPermitFlag;\n }", "public void setCollided(boolean collided) {\n this.collided = collided;\n }", "@JsonSetter(\"dnisEnabled\")\r\n public void setDnisEnabled (boolean value) { \r\n this.dnisEnabled = value;\r\n }", "@Transient\n\tpublic boolean isRefundable(){\n\t\treturn this.mRefundable;\n\t}", "public void setDamageTaken(boolean damageTaken) {\n this.damageTaken = damageTaken;\n }", "public void setCascadedLookup(java.lang.Boolean value);", "public void setOcuppied(boolean ocuppied) {\n this.ocuppied = ocuppied;\n }", "public Boolean deceasedBoolean() {\n return data.getBoolean(FhirPropertyNames.PROPERTY_DECEASED_BOOLEAN);\n }", "boolean supportsRollbackAfterDDL();", "public void setup(PojoDataAccess pojoDataAccess, boolean readOnly) {\n pojoDataAccess = pojoDataAccess == null ? PojoDataAccess.getInstance() : pojoDataAccess;\n this.Setup(pojoDataAccess);\n try {\n addLayers();\n if (!readOnly) {\n addToolsAndCommands();\n }\n } catch (InitializeLayerException ex) {\n Messaging.getInstance().show(GisMessage.CADASTRE_CHANGE_ERROR_SETUP);\n org.sola.common.logging.LogUtility.log(GisMessage.CADASTRE_CHANGE_ERROR_SETUP, ex);\n }\n }", "@Override\n protected boolean preCommit() {\n dashboardDs.getDsContext().getChildren().removeIf(dsContext ->\n !((dsContext.get(\"parametersDs\") != null && dsContext.get(\"parametersDs\").getMetaClass() != null &&\n \"dashboard$Parameter\".equals(dsContext.get(\"parametersDs\").getMetaClass().getName())) ||\n (dsContext.get(\"widgetTemplatesDs\") != null && dsContext.get(\"widgetTemplatesDs\").getMetaClass() != null) &&\n \"dashboard$WidgetTemplate\".equals(dsContext.get(\"widgetTemplatesDs\").getMetaClass().getName())));\n\n FieldGroup.FieldConfig assistantBeanName = fieldGroup2.getField(\"assistantBeanName\");\n LookupField lookupField = (LookupField) assistantBeanName.getComponent();\n String val = lookupField.getValue();\n dashboardDs.getItem().setAssistantBeanName(val);\n\n PersistentDashboard persDash = getItem();\n Dashboard dashboard = getDashboard();\n String jsonModel = converter.dashboardToJson(dashboard);\n persDash.setDashboardModel(jsonModel);\n persDash.setName(dashboard.getTitle());\n persDash.setCode(dashboard.getCode());\n persDash.setIsAvailableForAllUsers(dashboard.getIsAvailableForAllUsers());\n return true;\n }", "@Transient\n\tpublic boolean getRefundable(){\n\t\treturn this.mRefundable;\n\t}", "@VTID(40)\n void setRequireManualUpdate(\n boolean rhs);", "public boolean isPoolable() throws SQLException {\n return currentPreparedStatement.isPoolable();\n }", "public void setDropEnabled(boolean enabled) { this.dropEnabled = enabled; }", "public void setI_IsImported (boolean I_IsImported);", "public Boolean isAuthorizedForDataset() {\n return (attributes.containsKey(KEY_IS_AUTHORIZED_FOR_DS) ? (Boolean) attributes\n .get(KEY_IS_AUTHORIZED_FOR_DS) : null);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic T jdbcCompliant(Boolean value) {\n\t\tthis.jdbcCompliant = value;\n\t\treturn (T) this;\n\t}", "public void setRestricted(boolean restricted) {\n _restricted = (restricted && _dropType == DropType.ITEM);\n }", "public void setDirezione(boolean direzione) {\n\r\n }", "public void setPortalPriv(Connection dbConn, int id, String role,\n String user, String dept) throws Exception {\n Statement ps = null;\n try {\n String sql = \"update PORTAL set DEPT_ID = '\" + dept\n + \"' , PRIV_ID = '\" + role + \"' ,USER_ID = '\" + user\n + \"' where SEQ_ID=\" + id;\n ps = dbConn.createStatement();\n ps.executeUpdate(sql);\n } catch (Exception ex) {\n throw ex;\n } finally {\n T9DBUtility.close(ps, null, log);\n }\n }", "public ElementDefinitionDt setIsModifier( boolean theBoolean) {\n\t\tmyIsModifier = new BooleanDt(theBoolean); \n\t\treturn this; \n\t}", "@Test(timeout = 4000)\n public void test064() throws Throwable {\n boolean boolean0 = SQLUtil.isDDL(\"drop materialized view\");\n assertTrue(boolean0);\n }", "@Override\r\n\t\tpublic void setHoldability(int holdability) throws SQLException {\n\t\t\t\r\n\t\t}", "public void setDesignation(String Designation)\n\t{ f_Designation=Designation; }", "public void setIsEffective(Boolean isEffective) {\n this.isEffective = isEffective;\n }", "public void setCanPierce(boolean canPierce) {\n\t\tthis.canPierce = canPierce;\n\t}", "public void setAssignable(boolean assignable) {\n isAssignable = assignable;\n }", "public void setIsMarried(String isMarried) {\n this.isMarried = isMarried;\n }", "public void setIndicadorDiscapacidad(boolean indicadorDiscapacidad)\r\n/* 218: */ {\r\n/* 219:400 */ setActivo(indicadorDiscapacidad ? indicadorDiscapacidad : this.activo);\r\n/* 220:401 */ this.indicadorDiscapacidad = indicadorDiscapacidad;\r\n/* 221: */ }", "protected abstract boolean isMigrationNecessary();", "@Override\n\tpublic void setDownLoad_AutoRecover(Boolean paramBoolean)\n\t{\n\n\t}", "public void setIsAssigned(boolean isAssigned) {\r\n this.isAssigned = isAssigned;\r\n }", "public void setDf(Boolean df) {\n this.df = df;\n }", "@Override\r\n\t\tpublic void setReadOnly(boolean readOnly) throws SQLException {\n\t\t\t\r\n\t\t}", "public void setDataAccessRole(String dataAccessRole) {\n this.dataAccessRole = dataAccessRole;\n }", "public void setControlledSubstance(boolean value) {\r\n this.controlledSubstance = value;\r\n }", "@Override\r\n\t\tpublic boolean isReadOnly() throws SQLException {\n\t\t\treturn false;\r\n\t\t}", "public void directionRestriction(){\n \t\n }", "@Test(timeout = 4000)\n public void test064() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"alter table\");\n assertTrue(boolean0);\n }", "final boolean isDateRollEnforced() {\n return this.dateRollEnforced;\n }", "public void setRight(boolean b){ right = b; }", "public void setRight(boolean b){ right = b; }", "public void setAchieved(Boolean newValue);", "@Override\n\tpublic void updatePitchFlagTrue(int appointmentId) {\n\t\ttry{\n\t\t\tjdbcTemplate.update(UPDATE_HAS_PITCH, (ps)->{\n\t\t\t\tps.setInt(1, appointmentId);\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setAlg_isFileOrDBOut(boolean Alg_isFileOrDBOut) {\r\n this.Alg_isFileOrDBOut = Alg_isFileOrDBOut;\r\n }", "public void setRolled(boolean rolled) {\n\t\tthis.rolled = rolled;\n\t\trepaint();\n\t}", "private void implicitDestinationFieldsEnabled(boolean isImplictDestSelected) {\r\n\r\n // implicit dest fields\r\n pageNumberTextField.setEnabled(isImplictDestSelected);\r\n implicitDestTypeComboBox.setEnabled(isImplictDestSelected);\r\n leftTextField.setEnabled(isImplictDestSelected);\r\n topTextField.setEnabled(isImplictDestSelected);\r\n zoomTextField.setEnabled(isImplictDestSelected);\r\n\r\n }", "public void setAffichageAideDeplacement(boolean b) {\n this.affichageAideDeplacement = b;\n }", "public void setAbleToBuyHouses(boolean bool){\n\t\tableToBuyHouses=bool;\r\n\t}", "public void setAvailable(boolean x){\n availabile = x;\n }", "@Override protected String isEnabled(final String param) {\n if (getDrbdResource().isCommited()\n && DRBD_RES_PARAM_NAME.equals(param)) {\n return \"\";\n }\n return null;\n }", "public void setDescargable(boolean descargable) {\n this.descargable = descargable;\n }", "public void setClaim(boolean a){\n isClaimed= a;\n \n}", "public void setCollidable(boolean collide) {\r\n collidable = collide;\r\n }", "@Override\n\tpublic boolean jdbcCompliant() {\n\t\treturn false;\n\t}", "public void setSprint(boolean s){\n this.sprint = s;\n }", "public void setModifiable(boolean modifiable) {\n this.modifiable.set(modifiable);\n }", "public void setIsUnionRule(Long IsUnionRule) {\n this.IsUnionRule = IsUnionRule;\n }", "public boolean isSetDrop_priv() {\n return this.__isset.drop_priv;\n }", "private void rsSetInfo(ResultSet rs,DataPreventInfo info) throws SQLException {\n info.setId(rsGetLong(rs, \"id\"));\n info.setSynchronizeId(rsGetString(rs, \"synchronize_id\"));\n info.setPropertyId(rsGetLong(rs, \"property_id\"));\n info.setOriginKind(rsGetString(rs, \"origin_kind\"));\n info.setDeleteFlg(rsGetBoolean(rs, \"delete_flg\"));\n info.setPreventRegistAgency(rsGetString(rs, \"prevent_regist_agency\"));\n info.setPreventInBookNumber(rsGetString(rs, \"prevent_in_book_number\"));\n info.setPreventPersonInfo(rsGetString(rs, \"prevent_person_info\"));\n info.setPreventDocNumber(rsGetString(rs, \"prevent_doc_number\"));\n info.setPreventDocDate(rsGetTimestamp(rs, \"prevent_doc_date\"));\n info.setPreventDocReceiveDate(rsGetTimestamp(rs, \"prevent_doc_receive_date\"));\n info.setPreventInputDate(rsGetTimestamp(rs, \"prevent_input_date\"));\n info.setPreventDocSummary(rsGetString(rs, \"prevent_doc_summary\"));\n info.setPreventFileName(rsGetString(rs, \"prevent_file_name\"));\n info.setPreventFilePath(rsGetString(rs, \"prevent_file_path\"));\n info.setPreventNote(rsGetString(rs, \"prevent_note\"));\n info.setReleaseFlg(rsGetBoolean(rs, \"release_flg\"));\n info.setReleaseRegistAgency(rsGetString(rs, \"release_regist_agency\"));\n info.setReleaseInBookNumber(rsGetString(rs, \"release_in_book_number\"));\n info.setReleasePersonInfo(rsGetString(rs, \"release_person_info\"));\n info.setReleaseDocNumber(rsGetString(rs, \"release_doc_number\"));\n info.setReleaseDocDate(rsGetTimestamp(rs, \"release_doc_date\"));\n info.setReleaseDocReceiveDate(rsGetTimestamp(rs, \"release_doc_receive_date\"));\n info.setReleaseInputDate(rsGetTimestamp(rs, \"release_input_date\"));\n info.setReleaseDocSummary(rsGetString(rs, \"release_doc_summary\"));\n info.setReleaseFileName(rsGetString(rs, \"release_file_name\"));\n info.setReleaseFilePath(rsGetString(rs, \"release_file_path\"));\n info.setReleaseNote(rsGetString(rs, \"release_note\"));\n info.setEntryUserId(rsGetLong(rs, \"entry_user_id\"));\n info.setEntryUserName(rsGetString(rs, \"entry_user_name\"));\n// info.setEntryDateTime(rsGetTimestamp(rs, \"entry_date_time\"));\n// info.setUpdateUserId(rsGetLong(rs, \"update_user_id\"));\n// info.setUpdateUserName(rsGetString(rs, \"update_user_name\"));\n// info.setUpdateDateTime(rsGetTimestamp(rs, \"update_date_time\"));\n\n info.setType(rsGetString(rs, \"type\"));\n info.setPropertyInfo(rsGetString(rs, \"property_info\"));\n info.setOwnerInfo(rsGetString(rs, \"owner_info\"));\n info.setOtherInfo(rsGetString(rs, \"other_info\"));\n info.setLandCertificate(rsGetString(rs, \"land_certificate\"));\n info.setLandIssuePlace(rsGetString(rs, \"land_issue_place\"));\n info.setLandIssueDate(rsGetTimestamp(rs, \"land_issue_date\"));\n info.setLandMapNumber(rsGetString(rs, \"land_map_number\"));\n info.setLandNumber(rsGetString(rs, \"land_number\"));\n info.setLandAddress(rsGetString(rs, \"land_address\"));\n info.setLandArea(rsGetString(rs, \"land_area\"));\n info.setLandPublicArea(rsGetString(rs, \"land_public_area\"));\n info.setLandPrivateArea(rsGetString(rs, \"land_private_area\"));\n info.setLandUsePurpose(rsGetString(rs, \"land_use_purpose\"));\n info.setLandUsePeriod(rsGetString(rs, \"land_use_period\"));\n info.setLandUseOrigin(rsGetString(rs, \"land_use_origin\"));\n info.setLandAssociateProperty(rsGetString(rs, \"land_associate_property\"));\n info.setLandDistrict(rsGetString(rs, \"land_district\"));\n info.setLandStreet(rsGetString(rs, \"land_street\"));\n// info.setLandProvince(rsGetString(rs, \"land_province\"));\n info.setCarLicenseNumber(rsGetString(rs, \"car_license_number\"));\n info.setCarRegistNumber(rsGetString(rs, \"car_regist_number\"));\n info.setCarIssuePlace(rsGetString(rs, \"car_issue_place\"));\n info.setCarIssueDate(rsGetTimestamp(rs, \"car_issue_date\"));\n info.setCarFrameNumber(rsGetString(rs, \"car_frame_number\"));\n info.setCarMachineNumber(rsGetString(rs, \"car_machine_number\"));\n \n }", "public String getIsDerate() {\n return isDerate;\n }", "private void setRelationsValid(boolean value)\n {\n __relationsValid = value;\n }", "@Updatable\n public Boolean getAutoRepair() {\n return autoRepair;\n }" ]
[ "0.5194837", "0.51913446", "0.5117781", "0.5109441", "0.4749381", "0.47095382", "0.46777037", "0.45325744", "0.4507483", "0.45047086", "0.44963697", "0.4494019", "0.4494019", "0.44811833", "0.44129974", "0.4411135", "0.44021738", "0.43713567", "0.43660545", "0.4347451", "0.43428686", "0.4341082", "0.43408883", "0.433849", "0.43307203", "0.42970514", "0.4296409", "0.42935705", "0.4280855", "0.4278632", "0.42730471", "0.42476377", "0.42441493", "0.4229088", "0.42153266", "0.42144218", "0.42033002", "0.41896328", "0.41810903", "0.41702837", "0.41701412", "0.41666627", "0.4166385", "0.41618344", "0.41470063", "0.41460043", "0.41436765", "0.4139003", "0.41384292", "0.41252705", "0.41221413", "0.4121242", "0.41108593", "0.41080353", "0.40996012", "0.40983084", "0.4085803", "0.40721565", "0.4071547", "0.40678725", "0.40651542", "0.4058504", "0.40516427", "0.40472785", "0.4046979", "0.40436438", "0.40414345", "0.4040979", "0.4038729", "0.40340975", "0.40302995", "0.40294358", "0.40280956", "0.4026031", "0.40243", "0.4019737", "0.40024108", "0.39960635", "0.39960635", "0.39846128", "0.3984202", "0.39839166", "0.39724717", "0.39669558", "0.3966776", "0.3963173", "0.39623034", "0.39622086", "0.39603844", "0.3953851", "0.39537597", "0.39465094", "0.3945929", "0.39355952", "0.39310312", "0.39302358", "0.39294878", "0.39291194", "0.39285946", "0.39279723" ]
0.56511337
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.total_payment
public String getTotalPayment() { return totalPayment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int pastPaymentsAmount(Payment payment) {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\r\n\t\ttry {\r\n\t\t\tString sql = \"select sum(\\\"paymentAmount\\\") from \\\"Registration DB\\\".\\\"Payments\\\" where id='\"\r\n\t\t\t\t\t+ payment.getId() + \"'\";\r\n\t\t\treturn jdbcTemplate.queryForObject(sql, Integer.class);\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\r\n\t\t\r\n\r\n\t}", "public double getTotalPayment() {\n double totalPayment = getMonthlyPayment() * numberOfYears * 12;\n \n return totalPayment;\n }", "public double getTotalPayments(){return this.total;}", "public double getPaymentAmount() {\n\t\treturn baseSalary+this.grossSales*this.commissionRate;\r\n\t}", "@ApiModelProperty(value = \"Total amount of money paid (or should be paid)\")\n @JsonProperty(\"total\")\n public String getTotal() {\n return total;\n }", "public BigDecimal getTotalCashPayment() {\n return totalCashPayment;\n }", "public void setTotalPayment(String totalPayment) {\n this.totalPayment = totalPayment;\n }", "TotalInvoiceAmountType getTotalInvoiceAmount();", "public Long total() {\n return this.total;\n }", "public String getWalletTotal() {\n return \"$\" + wallet.getMoney();\n }", "@ApiModelProperty(value = \"The total price of staying in this room from the given check-in date to the given check-out date\")\n public Amount getTotalAmount() {\n return totalAmount;\n }", "public BigDecimal getTotal() {\n return total;\n }", "public BigDecimal getTotal() {\n return total;\n }", "@Override\n\tpublic double getPayment() {\n\t\treturn baseSalary + (this.getGrossSales() * this.getCommissionRate());\n\t}", "public Long getPayamount() {\n return payamount;\n }", "public double getBillTotal(){\n\t\treturn user_cart.getBillTotal();\n\t}", "public Amount getAmountTotal() {\n return this.amountTotal;\n }", "BigDecimal getTotal();", "BigDecimal getTotal();", "public BigDecimal getTotalAmount() {\n return totalAmount;\n }", "public Long getTotalcommission() {\n return totalcommission;\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderPayment getPayment();", "public double getTotal(){\n return total;\n }", "public float getProductTotalMoney(){\n connect();\n float total = 0;\n String sql = \"SELECT SUM(subtotal) + (SUM(subtotal) * (SELECT iva FROM configuraciones)) FROM productos\";\n ResultSet result = null;\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n result = ps.executeQuery();\n //result = getQuery(sql);\n if(result != null){\n while(result.next()){\n total = result.getFloat(1);\n }\n }\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n }\n return total; \n }", "public long getTotal() {\n return total;\n }", "public long getTotal() {\n return total;\n }", "public BigDecimal getTOTAL_PRINCIPAL_OUTSTANDIG() {\r\n return TOTAL_PRINCIPAL_OUTSTANDIG;\r\n }", "public double getTotal (){ \r\n return total;\r\n }", "public java.math.BigDecimal getTotalDebit()\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(TOTALDEBIT$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getBigDecimalValue();\n }\n }", "public Integer total() {\n return this.total;\n }", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "public double getPaymentAmount() {\n\t\tdouble amount = 0.0;\n\t\tString content = \"\";\n\t\t\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t.until(ExpectedConditions.presenceOfElementLocated(By.id(\"totalAmt\")));\t\t\n\t\tcontent = temp.findElement(By.xpath(\"span[2]\")).getAttribute(\"innerHTML\");\n\t\tamount = Double.parseDouble(content);\n\t\treturn amount;\n\t}", "int getTotal(){\n\t\treturn this.orderTotal;\n\t}", "public double getMonthlyPayment() {\n double monthlyInterestRate = annualInterestRate / 1200;\n double monthlyPayment = loanAmount * monthlyInterestRate / (1 - (1 / Math.pow(1 + monthlyInterestRate, numberOfYears * 12)));\n \n return monthlyPayment;\n }", "public com.jspgou.cms.entity.Payment getPayment () {\r\n\t\treturn payment;\r\n\t}", "public String getAccountPayment() {\r\n return accountPayment;\r\n }", "public int getTotal() {\n return total;\n }", "public int getTotalAmount();", "@Override\n public void calculatePayment()\n {\n this.paymentAmount = annualSalary / SALARY_PERIOD;\n }", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }", "public Double getTotal() {\n return total;\n }", "public Double getTotal() {\n return total;\n }", "public Double getTotal() {\n return total;\n }", "public Long getTotalprice() {\n return totalprice;\n }", "public double getTotalAmountPaid(){\n\t\tdouble amount = getAmountOfFixedPayments()*no_years*no_payments_yearly;\n\t\tdouble result = Math.round(amount*100.0) / 100.0;\n\t\treturn result;\n\t}", "public BigDecimal getTotalTransactrateMoney() {\n return totalTransactrateMoney;\n }", "public double obtenerTotalCarrito() throws DBException {\r\n\t\tdouble precioTotal = 0;\r\n\t\tString sentSQL = \"SELECT SUM(precio) FROM carrito\";\r\n\t\ttry {\r\n\t\t\tStatement st = conexion.createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(sentSQL);\r\n\t\t\tif(rs.next()) {\r\n\t\t\t\tprecioTotal = rs.getDouble(1);\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tst.close();\r\n\t\t\tLOG.log(Level.INFO,\"Precio total obtenido\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tLOG.log(Level.WARNING,e.getMessage());\r\n\t\t\tthrow new DBException(\"No se ha podido ejecutar la query\");\r\n\t\t}\r\n\t\treturn precioTotal;\r\n\t}", "public BigDecimal getPayAmt();", "public int getTotal () {\n return total;\n }", "public double getTotal() {\r\n\t\treturn total;\r\n\t}", "public int getTotal() {\n return total;\n }", "public int getTotal() {\n return total;\n }", "public long getTotal() { return total; }", "public long getTotal() { return total; }", "public Number getTotal() {\n return (Number)getAttributeInternal(TOTAL);\n }", "public String getTotalProperty() {\n\t\tif (null != this.totalProperty) {\n\t\t\treturn this.totalProperty;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"totalProperty\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public double getTotal() {\n return Total;\n }", "public double getTotal() {\n\t\treturn total;\n\t}", "public double getTotal() {\n double amount = 0;\n amount = (this.getQuantity() * product.getPrice().doubleValue());\n return amount;\n }", "public Total getTotal() {\r\n\t\treturn total;\r\n\t}", "public void calculatePayment() {\n\t\tdouble pay = this.annualSalary / NUM_PAY_PERIODS;\n\t\tsuper.setPayment(pay);\n\t}", "@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }", "public BigDecimal getValorTotal() {\r\n \treturn valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN).subtract(valorDesconto).setScale(3, BigDecimal.ROUND_HALF_EVEN);\r\n }", "@Query(value = \"SELECT sum(total_lkr) FROM receipt WHERE rec_date BETWEEN :Date1 and :Date2\", nativeQuery = true)\n\tBigDecimal TotalrevanuelastYear(@Param(\"Date1\") LocalDate Date1, @Param(\"Date2\") LocalDate Date2);", "@Override\n public double getTotal() {\n return total;\n }", "public float getTotal() {\n return this.total;\n }", "public int total() {\n return this.total;\n }", "public Integer getPktotal() {\n return pktotal;\n }", "@Override\n\tpublic double getSumOfCost() {\n\t String sql=\"SELECT SUM(cost) FROM supplier_product\";\n\t double total=this.getJdbcTemplate().queryForObject(sql, double.class);\n\t\treturn total;\n\t}", "public double CalculateTotalCompensation(){\r\n\t\tsetTotalCompensation(getCommission() + getBaseSalary());\r\n\t\treturn getTotalCompensation();\r\n\t}", "public int getTotal() {\n\t\treturn this.total;\n\t}", "public Coverage getTotal() {\n return this.total;\n }", "@Override\n public String getTotalSavings() {\n\n setLogString(\"Get total Savings Amount\", true, CustomLogLevel.HIGH);\n final String savingsValue = getElement(getDriver(), By.className(SAVINGS_DOLLARS),\n TINY_TIMEOUT).getText();\n setLogString(\"Total Savings :\" + savingsValue, true, CustomLogLevel.LOW);\n return savingsValue;\n }", "public static double getTotal() throws IOException{\n\t\tPhotovoltaicDao pd = new PhotovoltaicDao();\n\t\tArrayList<Photovoltaic> mdList = pd.selectPhotovoltaic();\n\t\tdouble sum = 0;\n\t\tfor(int iter=0;iter!=mdList.size();iter++)\n\t\t\tsum+=mdList.get(iter).getCurrentGeneration();\n\t\treturn sum;\n\t}", "double getPaidAmount();", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "public int sumofPrice(){\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString selectQuery = \"SELECT SUM(price) FROM \" + TABLE_SHOP;\n\t\tCursor cur = db.rawQuery(selectQuery, null);\n\t\tint total=0;\n\t\tif(cur.moveToFirst())\n\t\t{\n\t\t\ttotal = cur.getInt(0);\n\t\t}\n\t\treturn total;\n\t}", "@Override \r\n public double getPaymentAmount() \r\n { \r\n return getQuantity() * getPricePerItem(); // calculate total cost\r\n }", "public int getTotal()\n\t{\n\t\treturn total;\n\t\t\n\t}", "public static double getPaymentAmountDue(Payment payment, HashMap requestParams, accVendorPaymentDAO accVendorPaymentobj) throws ServiceException, ParseException {\n boolean isOpeningPayment = false;\n boolean isAdvancePaymentToVendor = false;\n boolean isRefundPaymentToCustomer = false;\n DateFormat df = (DateFormat) requestParams.get(GoodsReceiptCMNConstants.DATEFORMAT);\n if (df == null) {\n df = (DateFormat) requestParams.get(Constants.df);\n }\n String companyid = (String) requestParams.get(GoodsReceiptCMNConstants.COMPANYID);\n double paymentDueAmt = 0;\n if ((payment.getAdvanceDetails() != null && !payment.getAdvanceDetails().isEmpty()) || payment.isIsOpeningBalencePayment()) {\n double paymentAmt = 0;\n double linkedPaymentAmt = 0;\n if (payment.isIsOpeningBalencePayment()) {//opening payment\n isOpeningPayment = true;\n paymentAmt += payment.getDepositAmount();\n } else if (payment.getVendor() != null) {//advance payment against vendor\n isAdvancePaymentToVendor = true;\n for (AdvanceDetail advanceDetail : payment.getAdvanceDetails()) {\n paymentAmt += advanceDetail.getAmount();\n }\n } else if (payment.getCustomer() != null) {//Refund payment against customer\n isRefundPaymentToCustomer = true;\n for (AdvanceDetail advanceDetail : payment.getAdvanceDetails()) {\n if (advanceDetail.getReceiptAdvanceDetails() == null) {//Only such refunds can be due in which at the time of creation no document (no advance receipt) is selected \n paymentAmt += advanceDetail.getAmount();\n }\n }\n //In this case paymentAmt can be zero (if all refund have advance receipt documnet selected) so we need to retun amount due zero here\n if (paymentAmt == 0) {\n return 0;\n }\n }\n HashMap<String, Object> reqParams1 = new HashMap();\n reqParams1.put(\"paymentid\", payment.getID());\n reqParams1.put(\"companyid\", companyid);\n reqParams1.put(Constants.df, df);\n if (requestParams.containsKey(\"asofdate\") && requestParams.get(\"asofdate\") != null) {\n reqParams1.put(\"asofdate\", requestParams.get(\"asofdate\"));\n }\n if (isOpeningPayment || isAdvancePaymentToVendor) {\n KwlReturnObject result = accVendorPaymentobj.getLinkedDetailsPayment(reqParams1);\n List<LinkDetailPayment> linkedDetaisPayments = result.getEntityList();\n for (LinkDetailPayment ldp : linkedDetaisPayments) {\n linkedPaymentAmt += ldp.getAmount();\n }\n result = accVendorPaymentobj.getLinkDetailPaymentToCreditNote(reqParams1);\n List<LinkDetailPaymentToCreditNote> linkedDetaisPaymentsToCN = result.getEntityList();\n for (LinkDetailPaymentToCreditNote ldp : linkedDetaisPaymentsToCN) {\n linkedPaymentAmt += ldp.getAmount();\n }\n result = accVendorPaymentobj.getAdvanceReceiptDetailsByPayment(reqParams1);\n List<Object[]> list2 = result.getEntityList();\n for (Object obj[] : list2) {\n double revExchangeRate = 1.0;\n double amount = obj[1] != null ? Double.parseDouble(obj[1].toString()) : 0.0;\n double exchangeRate = obj[2] != null ? Double.parseDouble(obj[2].toString()) : 0.0;\n if (exchangeRate != 0.0) {\n revExchangeRate = 1 / exchangeRate;\n }\n linkedPaymentAmt += authHandler.round(revExchangeRate * amount, companyid);\n }\n result = accVendorPaymentobj.getLinkDetailReceiptToAdvancePayment(reqParams1);\n List<LinkDetailReceiptToAdvancePayment> linkDetailReceiptToAdvancePayment = result.getEntityList();\n for (LinkDetailReceiptToAdvancePayment ldp : linkDetailReceiptToAdvancePayment) {\n linkedPaymentAmt += ldp.getAmountInPaymentCurrency();\n }\n paymentDueAmt = paymentAmt - linkedPaymentAmt;\n } else if (isRefundPaymentToCustomer) {\n KwlReturnObject result = accVendorPaymentobj.getLinkDetailAdvanceReceiptToRefundPayment(reqParams1);\n List<LinkDetailPaymentToAdvancePayment> linkDetailPaymentToAdvancePayment = result.getEntityList();\n for (LinkDetailPaymentToAdvancePayment ldp : linkDetailPaymentToAdvancePayment) {\n linkedPaymentAmt += ldp.getAmount();\n }\n paymentDueAmt = paymentAmt - linkedPaymentAmt;\n }\n }\n paymentDueAmt = authHandler.round(paymentDueAmt, companyid);\n return paymentDueAmt;\n }", "public double getTotal() {\r\n\r\n return getSubtotal() + getTax();\r\n }", "@Override\n\tpublic ResultSet displayTotalFinancialBudget() {\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tc=MakeConnection.getConnection();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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\t\n\t\ttry {\n\t\t\tPreparedStatement pr=c.prepareStatement(\"select sum(TrainingModule.Budget) from TrainingModule NATURAL JOIN link_tm_tp\");\n\t\t\trs=pr.executeQuery();\n\t\t\t\treturn rs;\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn rs;\n\t}", "public int getMinimumPaymentSum() {\n return model.getMinimumPaymentSum();\n }", "public int total() {\n return _total;\n }", "public int getSueldoTotal() {\n return sueldoTotal;\n }", "public double sumMoney(){\n\t\tdouble result = 0;\n\t\tfor(DetailOrder detail : m_DetailOrder){\n\t\t\tresult += detail.calMoney();\n\t\t}\n\t\tif(exportOrder == true){\n\t\t\tresult = result * 1.1;\n\t\t}\n\t\treturn result;\n\t}", "BigDecimal getSumOfTransactions(StatisticalDTO dto) throws DaoException;", "public int getBalance() {\n return total_bal;\n }", "public double getPayment() {\n\t\treturn getNumHours() * getHourlyRates();\n\t}", "public BigDecimal getTradeTotal() {\n return tradeTotal;\n }", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public float getTotal(){\r\n\t\treturn Total;\r\n\t}", "public Integer getTotalprice() {\n return totalprice;\n }", "public int getTotal() {\n\t\treturn total;\n\t}", "public BigDecimal getSaldo() {\r\n return saldo;\r\n }", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}" ]
[ "0.7046924", "0.6640243", "0.6395426", "0.6251371", "0.6014279", "0.5998226", "0.5975085", "0.59481645", "0.59350944", "0.5898698", "0.5898072", "0.5895898", "0.5895898", "0.5850611", "0.57936597", "0.5778879", "0.57602876", "0.57558376", "0.57558376", "0.5741892", "0.5740873", "0.57116586", "0.5669717", "0.5642605", "0.56374764", "0.56374764", "0.56345326", "0.563011", "0.5629928", "0.5628226", "0.5626171", "0.5619534", "0.56078583", "0.5595381", "0.55787075", "0.5577313", "0.5573719", "0.55729145", "0.5565693", "0.55633855", "0.5558161", "0.55530876", "0.55496603", "0.55496603", "0.55496603", "0.5541033", "0.55391204", "0.5533763", "0.55325955", "0.5531864", "0.5525025", "0.5521241", "0.5518745", "0.5518745", "0.5509832", "0.5509832", "0.5509462", "0.54879344", "0.5479372", "0.5474208", "0.54698735", "0.5468552", "0.5447468", "0.5443294", "0.5442896", "0.54336387", "0.54220986", "0.54218227", "0.541937", "0.5415041", "0.5413127", "0.5402242", "0.53959304", "0.53941536", "0.5379092", "0.53766", "0.53704077", "0.5369617", "0.5366562", "0.53653574", "0.5356595", "0.5353808", "0.5339234", "0.53377503", "0.5336271", "0.53320396", "0.53312194", "0.53311527", "0.53281677", "0.5324739", "0.53238636", "0.53139675", "0.5313788", "0.5313788", "0.52866966", "0.527453", "0.52624613", "0.52613896", "0.52533555", "0.5250723" ]
0.6767903
1
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.total_payment
public void setTotalPayment(String totalPayment) { this.totalPayment = totalPayment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void calculatePayment()\n {\n this.paymentAmount = annualSalary / SALARY_PERIOD;\n }", "@Override\r\n\tpublic int pastPaymentsAmount(Payment payment) {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\r\n\t\ttry {\r\n\t\t\tString sql = \"select sum(\\\"paymentAmount\\\") from \\\"Registration DB\\\".\\\"Payments\\\" where id='\"\r\n\t\t\t\t\t+ payment.getId() + \"'\";\r\n\t\t\treturn jdbcTemplate.queryForObject(sql, Integer.class);\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\r\n\t\t\r\n\r\n\t}", "public void calculatePayment() {\n\t\tdouble pay = this.annualSalary / NUM_PAY_PERIODS;\n\t\tsuper.setPayment(pay);\n\t}", "void setTotal(BigDecimal total);", "public double getTotalPayments(){return this.total;}", "public void setTotalCashPayment(BigDecimal totalCashPayment) {\n this.totalCashPayment = totalCashPayment;\n }", "public void setTotal(BigDecimal total) {\n this.total = total;\n }", "public void setTotal(BigDecimal total) {\n this.total = total;\n }", "public String getTotalPayment() {\n return totalPayment;\n }", "public void setTotalcommission(Long totalcommission) {\n this.totalcommission = totalcommission;\n }", "public double getTotalPayment() {\n double totalPayment = getMonthlyPayment() * numberOfYears * 12;\n \n return totalPayment;\n }", "public void setTotal(BigDecimal amount){\r\n\t\ttotal = amount.doubleValue();\r\n\t}", "public static void setMoney(Integer payment) {\n\n money.moneyLevel += payment;\n money.save();\n }", "public void setTotal(int total) {\n this.total = total;\n }", "public void setTOTAL_PRINCIPAL_OUTSTANDIG(BigDecimal TOTAL_PRINCIPAL_OUTSTANDIG) {\r\n this.TOTAL_PRINCIPAL_OUTSTANDIG = TOTAL_PRINCIPAL_OUTSTANDIG;\r\n }", "public void setTotalDebit(java.math.BigDecimal totalDebit)\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(TOTALDEBIT$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TOTALDEBIT$0);\n }\n target.setBigDecimalValue(totalDebit);\n }\n }", "public void setTotal(Double total);", "@ApiModelProperty(value = \"The total price of staying in this room from the given check-in date to the given check-out date\")\n public Amount getTotalAmount() {\n return totalAmount;\n }", "public void setTotal(int value) {\n this.total = value;\n }", "public void setTotal(Double total) {\n this.total = total;\n }", "public void setTotal(Double total) {\n this.total = total;\n }", "public void setTotal(Double total) {\n this.total = total;\n }", "private void updateTotal() {\n int total = table.getTotal();\n vip.setConsumption(total);\n if (total > 0)\n payBtn.setText(PAY + RMB + total);\n else if (total == 0)\n payBtn.setText(PAY);\n }", "public double getPaymentAmount() {\n\t\treturn baseSalary+this.grossSales*this.commissionRate;\r\n\t}", "TotalInvoiceAmountType getTotalInvoiceAmount();", "public void setTotalAmount(BigDecimal totalAmount) {\n this.totalAmount = totalAmount;\n }", "@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }", "public BigDecimal getTotalCashPayment() {\n return totalCashPayment;\n }", "@ApiModelProperty(value = \"Total amount of money paid (or should be paid)\")\n @JsonProperty(\"total\")\n public String getTotal() {\n return total;\n }", "public void setAccountPayment(String accountPayment) {\r\n this.accountPayment = accountPayment;\r\n }", "public void setTotal(Coverage total) {\n this.total = total;\n }", "public void setTotalTransactrateMoney(BigDecimal totalTransactrateMoney) {\n this.totalTransactrateMoney = totalTransactrateMoney;\n }", "public void setPayAmt (BigDecimal PayAmt);", "public void setTotal(int total) {\n\t\tthis.total = total;\n\t}", "@Override\n public double pay() {\n double payment = super.pay() + (this.commision_rate * this.total_sales);\n this.total_sales = 0;\n return payment;\n }", "protected void setTotalBalance(double balance)\r\n {\r\n totalBalance = balance;\r\n }", "public void setTotal(float total) {\n this.total = total;\n }", "public void updateTotalPrice(){\n\t\tBigDecimal discount = currentOrder.getDiscount();\n\t\tBigDecimal subtotal = currentOrder.getSubtotal();\n\t\tthis.subtotal.text.setText(CURR+subtotal.add(discount).toString());\n\t\tthis.discount.text.setText(CURR + discount.toString());\n\t\tthis.toPay.text.setText(CURR+subtotal.toString());\n\t}", "public Payment(Amount paidAmount, SaleTotal total) {\r\n this.paidAmount = paidAmount;\r\n this.total = total;\r\n }", "public void setPayment (com.jspgou.cms.entity.Payment payment) {\r\n\t\tthis.payment = payment;\r\n\t}", "public void setPktotal(Integer pktotal) {\n this.pktotal = pktotal;\n }", "public void setTotalBank(double totalBank) {\n this.totalBank = totalBank;\n }", "public static void amountPaid(){\n NewProject.tot_paid = Double.parseDouble(getInput(\"Please enter NEW amount paid to date: \"));\r\n\r\n UpdateData.updatePayment();\r\n updateMenu();\t//Return back to previous menu.\r\n\r\n }", "public void setTotal (java.lang.Double total) {\r\n\t\tthis.total = total;\r\n\t}", "public Amount getAmountTotal() {\n return this.amountTotal;\n }", "@Override\n public void newSale(double payment) {\n calculateTotalRevenue(payment);\n showTotalRevenue();\n }", "@Override\n\tpublic double getPayment() {\n\t\treturn baseSalary + (this.getGrossSales() * this.getCommissionRate());\n\t}", "@Deprecated\n @JsonProperty\n public void setTotal(final long total) {\n //do nothing\n }", "@Override\r\n\tpublic int updatePaymentInfo(Payment payment) {\n\t\treturn session.update(\"payments.updatePayment\", payment);\r\n\t}", "public void increasePaymentCounter() throws SQLException{\n\t\tConnection conn = DataSource.getConnection();\n\t\ttry{\n\t\n\t\t\tString query = \"Update loan \"\n\t\t\t\t\t\t+ \" SET current_payment_counter = current_payment_counter+1\"\n\t\t\t\t\t\t+ \" WHERE client_id = '\"+this.client_id+\"' AND start_date = '\"+this.start_date+\"';\";\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tstat.execute(query);\n\t\t\t\n\t\t}finally{\n\t\t\tconn.close();\n\t\t}\n\t}", "public Long getPayamount() {\n return payamount;\n }", "public void setBALLOON_PAYMENT(BigDecimal BALLOON_PAYMENT) {\r\n this.BALLOON_PAYMENT = BALLOON_PAYMENT;\r\n }", "public void setTradeTotal(BigDecimal tradeTotal) {\n this.tradeTotal = tradeTotal;\n }", "public void setTotalprice(Long totalprice) {\n this.totalprice = totalprice;\n }", "void setSubtotal(BigDecimal subtotal);", "public void setSueldoTotal(int sueldoTotal) {\n this.sueldoTotal = sueldoTotal;\n }", "@Override\n\tpublic void setPayment(java.lang.String payment) {\n\t\t_esfShooterAffiliationChrono.setPayment(payment);\n\t}", "public void addSales(double totalSales) {\n this.total_sales = totalSales;\n }", "public void setTotal_Venta(double total_Venta) {\n this.total_Venta = total_Venta;\n }", "public void xsetTotalDebit(x0101.oecdStandardAuditFileTaxPT1.SAFmonetaryType totalDebit)\n {\n synchronized (monitor())\n {\n check_orphaned();\n x0101.oecdStandardAuditFileTaxPT1.SAFmonetaryType target = null;\n target = (x0101.oecdStandardAuditFileTaxPT1.SAFmonetaryType)get_store().find_element_user(TOTALDEBIT$0, 0);\n if (target == null)\n {\n target = (x0101.oecdStandardAuditFileTaxPT1.SAFmonetaryType)get_store().add_element_user(TOTALDEBIT$0);\n }\n target.set(totalDebit);\n }\n }", "public void setGrandTotal (BigDecimal GrandTotal);", "public void setGrandTotal (BigDecimal GrandTotal);", "public BigDecimal getTotal() {\n return total;\n }", "public BigDecimal getTotal() {\n return total;\n }", "BigDecimal getTotal();", "BigDecimal getTotal();", "public BigDecimal getTotalAmount() {\n return totalAmount;\n }", "public void setPaymentId( Integer paymentId ) {\n this.paymentId = paymentId ;\n }", "public static double calculateMonthlyPaymentTotal(double amountLoan, double annualRateBank, double annualRateInsurance, int nbOfMonthlyPayment){\n double monthlyPaymentBank = calculateMonthlyPaymentBank(amountLoan, annualRateBank, nbOfMonthlyPayment);\n double monthlyPaymentInsurance = calculateMonthlyPaymentInsuranceOnly(amountLoan, annualRateInsurance);\n\n return monthlyPaymentBank + monthlyPaymentInsurance;\n }", "private void updateTotalPayment(BarcodedItem barcodedItem, int quantity) {\n\n\t\tBigDecimal price = ProductDatabases.BARCODED_PRODUCT_DATABASE.get(barcodedItem.getBarcode())\n\t\t\t\t.getPrice().multiply(new BigDecimal(quantity));\n\t\n\t\t\n\t\tprice = price.setScale(2, BigDecimal.ROUND_HALF_UP); \n\t\n\t\t\t\t\t\t\n\t\ttotalPayment = totalPayment.add(price);\n\t\t\n\t\tSystem.out.println(\"Total Payment = \" + totalPayment.toString());\n\t\n\t}", "@Override\r\n\tpublic IPage<T> setTotal(long total) {\n\t\treturn null;\r\n\t}", "public Long total() {\n return this.total;\n }", "public void setTotalprice(Integer totalprice) {\n this.totalprice = totalprice;\n }", "public void setInputTotal(BigDecimal inputTotal) {\r\n this.inputTotal = inputTotal;\r\n }", "public void salesTotal(){\n\t\tif (unitsSold<10){\n\t\t\tsetTotalCost(basePrice);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<20){\n\t\t\tsetTotalCost((RETAIL_PRICE*.8)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t\t\n\t\t}\n\t\telse if (unitsSold<50){\n\t\t\tsetTotalCost((RETAIL_PRICE*.7)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<100){\n\t\t\tsetTotalCost((RETAIL_PRICE*.6)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse {\n\t\t\tsetTotalCost((RETAIL_PRICE*.5)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t}", "@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }", "public double getMonthlyPayment() {\n double monthlyInterestRate = annualInterestRate / 1200;\n double monthlyPayment = loanAmount * monthlyInterestRate / (1 - (1 / Math.pow(1 + monthlyInterestRate, numberOfYears * 12)));\n \n return monthlyPayment;\n }", "@ApiModelProperty(value = \"The payment amount for the past due invoices. This value must match the pastDueBalance value retrieved using Get Past Due Invoices.\")\n public String getPaymentAmount() {\n return paymentAmount;\n }", "public void setPointsTotal(long pointsTotal)\n {\n this.pointsTotal = pointsTotal;\n }", "public void setTotalDue(BigDecimal totalDue) {\n\t\tthis.totalDue = totalDue;\n\t}", "public void setTotalProperty(String totalProperty) {\n\t\tthis.totalProperty = totalProperty;\n\t\tthis.handleConfig(\"totalProperty\", totalProperty);\n\t}", "private void updateTotal()\n {\n if(saleItems != null)\n {\n double tempVal = 0;\n\n for(int i = 0; i < saleItems.size(); i++)\n {\n if(saleItems.get(i) != null)\n {\n tempVal += saleItems.get(i).getPrice() * saleItems.get(i).getQuantity();\n }\n }\n totalText.setText(moneyFormat(String.valueOf(tempVal)));\n }\n }", "public ModelPayment(double payment) {\n this.payment = payment;\n }", "@Override\n public void setTotalMoney(BigDecimal inputMoney) {\n totalMoney = inputMoney;\n }", "public void setC_Payment_ID (int C_Payment_ID);", "@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }", "public BigDecimal getTOTAL_PRINCIPAL_OUTSTANDIG() {\r\n return TOTAL_PRINCIPAL_OUTSTANDIG;\r\n }", "public void calculatePayment() {}", "public String getAccountPayment() {\r\n return accountPayment;\r\n }", "public void setTotalInvoiceBalance(java.math.BigDecimal totalInvoiceBalance) {\n this.totalInvoiceBalance = totalInvoiceBalance;\n }", "public static void calculateLoanPayment() {\n\t\t//get values from text fields\n\t\tdouble interest = \n\t\t\t\tDouble.parseDouble(tfAnnualInterestRate.getText());\n\t\tint year = Integer.parseInt(tfNumberOfYears.getText());\n\t\tdouble loanAmount =\n\t\t\t\tDouble.parseDouble(tfLoanAmount.getText());\n\t\t\n\t\t//crate a loan object\n\t\t Loan loan = new Loan(interest, year, loanAmount);\n\t\t \n\t\t //Display monthly payment and total payment\n\t\t tfMonthlyPayment.setText(String.format(\"$%.2f\", loan.getMonthlyPayment()));\n\t\t tfTotalPayment.setText(String.format(\"$%.2f\", loan.getTotalPayment()));\n\t}", "@Override\r\n\tpublic ArrayList<FacturaVentaDTO> periodoxTotal(String periodo, String total) {\n\t\treturn dao.periodoxTotal(periodo, total);\r\n\t}", "public double pay(double amountPaid,String currency){\n \n saleDTO = sale.createSaleDTO();\n paymentDTO = new PaymentDTO(amountPaid,currency);\n double change = Math.round((paymentDTO.getAmountPaid() - saleDTO.getTotalPrice()) * 100.0) / 100.0;\n\n cashRegister.updateAmountInRegister(amountPaid - change);\n return change;\n\n }", "public void setTotalKoperasi(double totalKoperasi) {\n this.totalKoperasi = totalKoperasi;\n }", "public void setTotalAmt(BigDecimal totalAmt) {\n\t\tthis.totalAmt = totalAmt;\n\t}", "public static double getPaymentAmountDue(Payment payment, HashMap requestParams, accVendorPaymentDAO accVendorPaymentobj) throws ServiceException, ParseException {\n boolean isOpeningPayment = false;\n boolean isAdvancePaymentToVendor = false;\n boolean isRefundPaymentToCustomer = false;\n DateFormat df = (DateFormat) requestParams.get(GoodsReceiptCMNConstants.DATEFORMAT);\n if (df == null) {\n df = (DateFormat) requestParams.get(Constants.df);\n }\n String companyid = (String) requestParams.get(GoodsReceiptCMNConstants.COMPANYID);\n double paymentDueAmt = 0;\n if ((payment.getAdvanceDetails() != null && !payment.getAdvanceDetails().isEmpty()) || payment.isIsOpeningBalencePayment()) {\n double paymentAmt = 0;\n double linkedPaymentAmt = 0;\n if (payment.isIsOpeningBalencePayment()) {//opening payment\n isOpeningPayment = true;\n paymentAmt += payment.getDepositAmount();\n } else if (payment.getVendor() != null) {//advance payment against vendor\n isAdvancePaymentToVendor = true;\n for (AdvanceDetail advanceDetail : payment.getAdvanceDetails()) {\n paymentAmt += advanceDetail.getAmount();\n }\n } else if (payment.getCustomer() != null) {//Refund payment against customer\n isRefundPaymentToCustomer = true;\n for (AdvanceDetail advanceDetail : payment.getAdvanceDetails()) {\n if (advanceDetail.getReceiptAdvanceDetails() == null) {//Only such refunds can be due in which at the time of creation no document (no advance receipt) is selected \n paymentAmt += advanceDetail.getAmount();\n }\n }\n //In this case paymentAmt can be zero (if all refund have advance receipt documnet selected) so we need to retun amount due zero here\n if (paymentAmt == 0) {\n return 0;\n }\n }\n HashMap<String, Object> reqParams1 = new HashMap();\n reqParams1.put(\"paymentid\", payment.getID());\n reqParams1.put(\"companyid\", companyid);\n reqParams1.put(Constants.df, df);\n if (requestParams.containsKey(\"asofdate\") && requestParams.get(\"asofdate\") != null) {\n reqParams1.put(\"asofdate\", requestParams.get(\"asofdate\"));\n }\n if (isOpeningPayment || isAdvancePaymentToVendor) {\n KwlReturnObject result = accVendorPaymentobj.getLinkedDetailsPayment(reqParams1);\n List<LinkDetailPayment> linkedDetaisPayments = result.getEntityList();\n for (LinkDetailPayment ldp : linkedDetaisPayments) {\n linkedPaymentAmt += ldp.getAmount();\n }\n result = accVendorPaymentobj.getLinkDetailPaymentToCreditNote(reqParams1);\n List<LinkDetailPaymentToCreditNote> linkedDetaisPaymentsToCN = result.getEntityList();\n for (LinkDetailPaymentToCreditNote ldp : linkedDetaisPaymentsToCN) {\n linkedPaymentAmt += ldp.getAmount();\n }\n result = accVendorPaymentobj.getAdvanceReceiptDetailsByPayment(reqParams1);\n List<Object[]> list2 = result.getEntityList();\n for (Object obj[] : list2) {\n double revExchangeRate = 1.0;\n double amount = obj[1] != null ? Double.parseDouble(obj[1].toString()) : 0.0;\n double exchangeRate = obj[2] != null ? Double.parseDouble(obj[2].toString()) : 0.0;\n if (exchangeRate != 0.0) {\n revExchangeRate = 1 / exchangeRate;\n }\n linkedPaymentAmt += authHandler.round(revExchangeRate * amount, companyid);\n }\n result = accVendorPaymentobj.getLinkDetailReceiptToAdvancePayment(reqParams1);\n List<LinkDetailReceiptToAdvancePayment> linkDetailReceiptToAdvancePayment = result.getEntityList();\n for (LinkDetailReceiptToAdvancePayment ldp : linkDetailReceiptToAdvancePayment) {\n linkedPaymentAmt += ldp.getAmountInPaymentCurrency();\n }\n paymentDueAmt = paymentAmt - linkedPaymentAmt;\n } else if (isRefundPaymentToCustomer) {\n KwlReturnObject result = accVendorPaymentobj.getLinkDetailAdvanceReceiptToRefundPayment(reqParams1);\n List<LinkDetailPaymentToAdvancePayment> linkDetailPaymentToAdvancePayment = result.getEntityList();\n for (LinkDetailPaymentToAdvancePayment ldp : linkDetailPaymentToAdvancePayment) {\n linkedPaymentAmt += ldp.getAmount();\n }\n paymentDueAmt = paymentAmt - linkedPaymentAmt;\n }\n }\n paymentDueAmt = authHandler.round(paymentDueAmt, companyid);\n return paymentDueAmt;\n }", "public String getWalletTotal() {\n return \"$\" + wallet.getMoney();\n }", "@ApiModelProperty(value = \"The estimated total cost of the rental given the rental period and location provided, including all mandatory taxes and charges, and using a default set of rental options and restrictions defined by the car company.\")\n public Amount getEstimatedTotal() {\n return estimatedTotal;\n }", "private void calculateLoanPayment() {\n double interest =\n Double.parseDouble(tfAnnualInterestRate.getText());\n int year = Integer.parseInt(tfNumberOfYears.getText());\n double loanAmount =\n Double.parseDouble(tfLoanAmount.getText());\n\n // Create a loan object. Loan defined in Listing 10.2\n loan lloan = new loan(interest, year, loanAmount);\n\n // Display monthly payment and total payment\n tfMonthlyPayment.setText(String.format(\"$%.2f\",\n lloan.getMonthlyPayment()));\n tfTotalPayment.setText(String.format(\"$%.2f\",\n lloan.getTotalPayment()));\n }", "public void setSales(Integer sales) {\n this.sales = this.sales + sales;\n }" ]
[ "0.6422039", "0.62600356", "0.61430705", "0.6137557", "0.60385746", "0.5941889", "0.5930094", "0.5930094", "0.5911535", "0.5808353", "0.57932323", "0.5764247", "0.57059556", "0.5648191", "0.5647162", "0.5608474", "0.55954546", "0.55696917", "0.5557705", "0.5557516", "0.5557516", "0.5557516", "0.5548658", "0.5546918", "0.54801625", "0.5475826", "0.5475085", "0.5464424", "0.5448682", "0.5442453", "0.54304856", "0.5428292", "0.54149634", "0.5408049", "0.5354844", "0.5330926", "0.5327492", "0.5326041", "0.53145415", "0.5309018", "0.5301813", "0.5300368", "0.52750796", "0.5268754", "0.5247802", "0.52352124", "0.52351576", "0.52273023", "0.52027255", "0.52024406", "0.51927817", "0.5190786", "0.51725215", "0.5171657", "0.5164984", "0.5163185", "0.5162098", "0.5151971", "0.51385546", "0.513598", "0.5132024", "0.5132024", "0.51280224", "0.51280224", "0.51240623", "0.51240623", "0.512068", "0.5119978", "0.51096106", "0.5108162", "0.50995874", "0.5080224", "0.5070522", "0.5067331", "0.5063551", "0.50609046", "0.50571007", "0.50514454", "0.50482553", "0.50442344", "0.5036001", "0.5027486", "0.50261605", "0.50254816", "0.50044125", "0.5003562", "0.5002977", "0.5000701", "0.49927253", "0.49911502", "0.49774656", "0.49701777", "0.4969396", "0.49646384", "0.49593583", "0.49541718", "0.49532244", "0.49521026", "0.49513188", "0.49477124" ]
0.6761412
0
This method was generated by MyBatis Generator. This method returns the value of the database column asset_rollout.attach_id
public String getAttachId() { return attachId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.Long getAttachmentId() {\n return attachmentId;\n }", "public int getAuditId();", "public String getAssetId();", "public long getAuditLogId() {\n return auditLogId;\n }", "public void setAttachId(String attachId) {\n this.attachId = attachId;\n }", "public String get_attachPoint() {\n return _attachPoint;\n }", "@EmbeddedId\n/* */ @AttributeOverrides({@AttributeOverride(name = \"workflowId\", column = @Column(name = \"WORKFLOW_ID\", precision = 18, scale = 0)), @AttributeOverride(name = \"versionId\", column = @Column(name = \"VERSION_ID\", precision = 18, scale = 0))})\n/* */ @Order(1)\n/* 46 */ public VfeWorkflowsAdpId getId() { return this.id; }", "public String getPhotoId() {\n return fullPhoto.getPhotoId();\n }", "public void setAttachmentId(java.lang.Long attachmentId) {\n this.attachmentId = attachmentId;\n }", "public int getPrimaryKey() {\r\n for (int i = 0; i < eventFields.size(); i++) {\r\n EventDataEntry currentEntry = eventFields.get(i);\r\n if (currentEntry.getColumnName().equalsIgnoreCase(\"linkid\")) {\r\n Integer it = (Integer) currentEntry.getValues().getFirst();\r\n return it.intValue();\r\n }\r\n }\r\n return -1;\r\n }", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name = \"leadTypeId\")\n\tpublic Long getId()\n\t{\n\t\treturn super.getId();\n\t}", "@Override\n\tpublic Tnoticeattach getAttachById(Long attachs) {\n\t\tSystem.out.println(attachs);\n\t\treturn (Tnoticeattach) queryOneObject(\n\t\t\t\t\"select t from Tnoticeattach t where t.naattachid= ?\", attachs);\n\t}", "public Text getIdAttachHolder()\r\n\t{\r\n\t\treturn idAttachHolder;\r\n\t}", "public Long getAlertId();", "public java.lang.String getPrimaryKey() {\n\t\treturn _imageCompanyAg.getPrimaryKey();\n\t}", "public java.lang.Long getIntAssetID()\n\t{\n\t\treturn intAssetID;\n\t}", "long getAccountLinkId();", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "public Integer getId() {\n return aao.getId();\n }", "public IAuditID getAuditID() {\n return this.auditID;\n }", "@Override\n\tpublic Serializable getId() {\n\t\treturn imageId;\n\t}", "public int getId() {\n return parameter.getId();\n }", "public long getPrimaryKey() {\n return _courseImage.getPrimaryKey();\n }", "public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }", "public Long getAuditUserId() {\n return auditUserId;\n }", "public String getAttachment() {\n return attachment;\n }", "protected int GetID() {\n\t\treturn this.JunctionID;\n\t}", "int getSrcId();", "int getSrcId();", "public String getOriginalId()\r\n {\r\n return originalId;\r\n }", "@Transient\n @Override\n public Integer getId()\n {\n return this.journalId;\n }", "protected Field getPrimaryKeyField() {\n Field returnField = null;\n Field[] fieds = MetaData.class.getDeclaredFields();\n for (Field field : fieds) {\n Id annotation = field.getAnnotation(Id.class);\n EmbeddedId annotationEmb = field.getAnnotation(EmbeddedId.class);\n if (annotation != null || annotationEmb != null) {\n return field;\n }\n }\n return returnField;\n }", "public String getSrcId()\n\t\t{\n\t\t\tElement srcIdElement = XMLUtils.findChild(mediaElement, SRC_ID_ELEMENT_NAME);\n\t\t\treturn srcIdElement == null ? null : srcIdElement.getTextContent();\n\t\t}", "public int getAId() {\n return instance.getAId();\n }", "public Object getAttachment() {\n\t\treturn attachment;\n\t}", "public Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dlSyncEvent.getPrimaryKey();\n\t}", "public String getBindingItemIdResourceBlob(){\n return resourceBlobBindingSetItemId;\n }", "public Long getAuditingManId() {\r\n return auditingManId;\r\n }", "public Object getAttachment() {\n\treturn attachment;\n }", "java.lang.String getStageId();", "public int getImageId(){\n \t\treturn imageId;\n \t}", "public Long getIncidentId();", "public String getReferenceId();", "public String getId()\n\t\t{\n\t\t\treturn mediaElement.getAttribute(ID_ATTR_NAME);\n\t\t}", "public Long getAssignLogId() {\n return assignLogId;\n }", "@Import(\"note\")\n\tint getLinkedNoteId();", "public Integer getaId() {\r\n return aId;\r\n }", "@Override\n @EmbeddedId\n public UserDetailsPk getId() {\n return id;\n }", "public long getImageId() {\n return imageId;\n }", "public long getImageId() {\n return this.imageId;\n }", "public int getAId() {\n return aId_;\n }", "public Integer getaId() {\n return aId;\n }", "String getSnapshot_id();", "private long getAttributeIdForChainId(FeedMapping feedMapping) {\n Optional<AttributeFieldMapping> fieldMapping =\n feedMapping.getAttributeFieldMappingsList().stream()\n .filter(\n m -> m.getAffiliateLocationField() == AffiliateLocationPlaceholderField.CHAIN_ID)\n .findFirst();\n if (!fieldMapping.isPresent()) {\n throw new RuntimeException(\"Affiliate location field mapping isn't setup correctly\");\n }\n return fieldMapping.get().getFeedAttributeId();\n }", "public Long getId() {\r\n\t\treturn objectId;\r\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _contentupdate.getPrimaryKey();\n\t}", "public Integer getRecordId() {\n return recordId;\n }", "public int getSrcId() {\n return instance.getSrcId();\n }", "private String getRowIdColumn(ConnectorTableMetadata meta)\n {\n String rowIdColumn = AccumuloTableProperties.getRowId(meta.getProperties());\n if (rowIdColumn == null) {\n rowIdColumn = meta.getColumns().get(0).getName();\n }\n return rowIdColumn.toLowerCase();\n }", "public Integer getId() {\n return (Integer) get(\"id\");\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _employee.getPrimaryKey();\n\t}", "public long getId() {\n\t\treturn getTo(true).getId();\n\t}", "long getAdId();", "public Integer getBtrAudUid() {\n return btrAudUid;\n }", "NjOrderAttachment selectByPrimaryKey(String id);", "public int getSrcId() {\n return instance.getSrcId();\n }", "@Override\n\tpublic int insert(Attachment attach) {\n\t\treturn aDao.insert(attach);\n\t}", "public java.lang.String getPrimaryKey() {\n\t\treturn _pnaAlerta.getPrimaryKey();\n\t}", "public Integer getElementID()\r\n\t\t{ return element instanceof Schema ? ((Schema)element).getId() : ((SchemaElement)element).getId(); }", "public String getImageId() {\n return this.ImageId;\n }", "public Optional<AggregateIdentifier> getId() {\n return Optional.ofNullable(id);\n }", "public int getImage_id() {\n\t\treturn image_id;\n\t}", "public String getId()\r\n {\r\n return getAttribute(\"id\");\r\n }", "public java.lang.String getPhotoId() {\n return photoId;\n }", "public java.lang.String getPhotoId() {\n return photoId;\n }", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}", "public Long getImgId() {\r\n return imgId;\r\n }", "public Long getId() {\n\t\t\t\treturn this.id;\n\t}", "public Long getId() {\n return this.id.get();\n }", "@Transient\r\n\tpublic static Long getIdActivida() {\r\n\t\treturn idActivida;\r\n\t}", "Long getInvoiceId();", "public Integer getAccountSrcId() {\n return accountSrcId;\n }", "public Long getParentAssignLogId() {\n return parentAssignLogId;\n }", "public long getVocubalaryId();", "public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }", "public Long getId() {\n\t\treturn this.id;\n\t\t\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _candidate.getPrimaryKey();\n\t}", "public Integer getAdvId() {\n return advId;\n }", "public String getImageId() {\n return imageId;\n }", "public int getImageId() {\n return imageId_;\n }", "public String getImageId() {\n return this.imageId;\n }", "public String managedIdentityResourceId() {\n return this.managedIdentityResourceId;\n }", "public Map<String, Object> getPrimaryKey() {\n Map<String, Object> ret = new LinkedHashMap<String, Object>(6);\n ret.put(\"atrfAudUid\", getAtrfAudUid());\n return ret;\n }", "public Long getId() {\n\t\treturn this.id;\n\t}", "public Long getId() {\n\t\treturn this.id;\n\t}", "public Long getId() {\n\t\treturn this.id;\n\t}", "public ResourceReferenceDt getAttachment() { \n\t\tif (myAttachment == null) {\n\t\t\tmyAttachment = new ResourceReferenceDt();\n\t\t}\n\t\treturn myAttachment;\n\t}", "public Long getId() {\n return super.getId();\n }", "public int getId() {\n return oid ;\n }" ]
[ "0.63393205", "0.5461979", "0.53173757", "0.5302827", "0.5234313", "0.5227137", "0.5221223", "0.52042466", "0.5194561", "0.5191135", "0.5167757", "0.5163343", "0.51356447", "0.51260054", "0.50768685", "0.5068431", "0.5038802", "0.49898896", "0.4978452", "0.49314272", "0.49243426", "0.4862787", "0.48558888", "0.48470956", "0.48387212", "0.4824833", "0.48175734", "0.48050258", "0.48050258", "0.48030058", "0.47992423", "0.47968236", "0.47687328", "0.47610265", "0.47551686", "0.47504976", "0.47477764", "0.47355518", "0.47291103", "0.4726595", "0.47263205", "0.47246432", "0.47231826", "0.4718799", "0.47187367", "0.47089785", "0.4703428", "0.47002402", "0.46984655", "0.46962407", "0.46947908", "0.46907514", "0.46873707", "0.4684195", "0.46833566", "0.46830758", "0.46821186", "0.46773645", "0.46765012", "0.46761", "0.46682492", "0.4667468", "0.46612284", "0.46611136", "0.46609208", "0.46591273", "0.4656357", "0.46528152", "0.46509174", "0.4650595", "0.46491256", "0.46490782", "0.4639084", "0.46370614", "0.46350417", "0.46350417", "0.46338066", "0.46310335", "0.46292776", "0.46285352", "0.46267366", "0.462161", "0.46128747", "0.4612009", "0.460904", "0.46069416", "0.46003708", "0.45962858", "0.45959526", "0.45904544", "0.45886478", "0.4587544", "0.45843875", "0.45780864", "0.45772982", "0.45772982", "0.45772982", "0.45725104", "0.45720136", "0.45707592" ]
0.6226212
1
This method was generated by MyBatis Generator. This method sets the value of the database column asset_rollout.attach_id
public void setAttachId(String attachId) { this.attachId = attachId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttachmentId(java.lang.Long attachmentId) {\n this.attachmentId = attachmentId;\n }", "public String getAttachId() {\n return attachId;\n }", "private void updateAsset(\n\t\tLead lead, ServiceContext serviceContext)\n\t\tthrows PortalException {\n\n\t\tassetEntryLocalService.updateEntry(\n\t\t\tserviceContext.getUserId(), serviceContext.getScopeGroupId(),\n\t\t\tlead.getCreateDate(), lead.getModifiedDate(),\n\t\t\tLead.class.getName(), lead.getLeadId(),\n\t\t\tlead.getUuid(), 0, serviceContext.getAssetCategoryIds(),\n\t\t\tserviceContext.getAssetTagNames(), true, true,\n\t\t\tlead.getCreateDate(), null, null, null,\n\t\t\tContentTypes.TEXT_HTML,\n\t\t\tlead.getTitle(serviceContext.getLocale()),\n\t\t\tlead.getDescription(), null, null, null, 0, 0,\n\t\t\tserviceContext.getAssetPriority());\n\t}", "public void setAttachment(Object attachment) {\n\tthis.attachment = attachment;\n }", "public void setAmusementObjectImageA(int imageId){\r\n amusementObjectImageA = imageId;\r\n }", "public java.lang.Long getAttachmentId() {\n return attachmentId;\n }", "public void setAttachment(Object attachment) {\n\t\tthis.attachment = attachment;\n\t}", "void setValueAttachment(org.hl7.fhir.Attachment valueAttachment);", "int setAttachment(Attachment attachment) throws NotAuthorizedException;", "public void setPipePipelinedetailsElementId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/pipe_pipelineDetails_element_id\",v);\n\t\t_PipePipelinedetailsElementId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setAuditLogId(long value) {\n this.auditLogId = value;\n }", "public void setAmusementObjectImageB(int imageId){\r\n amusementObjectImageB = imageId;\r\n }", "org.hl7.fhir.Attachment addNewValueAttachment();", "public void setAttachments(List<Attachment> attachments) {\n this.attachments = null;\n\n if (attachments != null) {\n // Make sure the IDs are set correctly\n for (Attachment attachment : attachments) {\n addAttachement(attachment);\n }\n }\n }", "public SeriesInstance setAttachment(ResourceReferenceDt theValue) {\n\t\tmyAttachment = theValue;\n\t\treturn this;\n\t}", "public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }", "protected void setId(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString id = rs.getString(EmployeeLeaveTable.COLUMN_ID);\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setId(id);\n\t}", "public void setAssetDetail(Asset asset, AssetDTO assetDTO) {\n\t\tasset.setId(assetDTO.getId());\n\t\tasset.setVersion(assetDTO.getVersion());\n\t\tasset.setTitle(assetDTO.getTitle());\n\t\tasset.setDescription(assetDTO.getDescription());\n\t\tasset.setGuid(assetDTO.getGuid());\n\t\tDocumentDTO documentDTO = assetDTO.getThumbnail();\n\t\tif (documentDTO != null) {\n\t\t\tDocument document = documentDTO.getDocument();\n\t\t\tasset.setThumbnail(document);\n\t\t}\n\t}", "@EmbeddedId\n/* */ @AttributeOverrides({@AttributeOverride(name = \"workflowId\", column = @Column(name = \"WORKFLOW_ID\", precision = 18, scale = 0)), @AttributeOverride(name = \"versionId\", column = @Column(name = \"VERSION_ID\", precision = 18, scale = 0))})\n/* */ @Order(1)\n/* 46 */ public VfeWorkflowsAdpId getId() { return this.id; }", "public void setId(VfeWorkflowsAdpId id) { this.id = id; }", "public void setAttachmentList(ArrayList attachmentList) {\n this.attachmentList = attachmentList;\n }", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.ATTACH,\n adderName = \"attachment\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setAttachments(final Set<BwAttachment> val) {\n attachments = val;\n }", "public void setAD_Workflow_ID (int AD_Workflow_ID);", "public void setPrimaryKey(long primaryKey) {\n _courseImage.setPrimaryKey(primaryKey);\n }", "public abstract void setAcma_id(java.lang.Long newAcma_id);", "public String getAssetId();", "public void setAttachment(String attachment) {\n this.attachment = attachment == null ? null : attachment.trim();\n }", "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_imageCompanyAg.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic int insert(Attachment attach) {\n\t\treturn aDao.insert(attach);\n\t}", "private void setAId(int value) {\n \n aId_ = value;\n }", "@PreUpdate\n @CanSetDownloadIdentifier\n public void onBeforeUpdate() {\n Video video2 = this.video;\n if (video2 != null && video2.getDownloadId() == null) {\n this.video.setDownloadId(this.key);\n }\n }", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "public static void setIdActivida(Long idActivida) {\r\n\t\tNotaActividad.idActivida = idActivida;\r\n\t}", "public void setAttachLocation(float attachLocationX, float attachLocationY) {\n\t\tthis.attachLocationX = attachLocationX;\n\t\tthis.attachLocationY = attachLocationY;\n\t}", "public String get_attachPoint() {\n return _attachPoint;\n }", "public void setLinkid(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localLinkidTracker = true;\r\n } else {\r\n localLinkidTracker = false;\r\n \r\n }\r\n \r\n this.localLinkid=param;\r\n \r\n\r\n }", "public void setAttachments(com.sforce.soap.enterprise.QueryResult attachments) {\r\n this.attachments = attachments;\r\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_candidate.setPrimaryKey(primaryKey);\n\t}", "protected void setId(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString id = rs.getString(UiActionTable.COLUMN_ID);\n\t\t\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setId(id);\n\t}", "public void setImage(int imageId) {\n this.imageId=imageId;\n\t}", "public void setAlertId(Long alertId);", "public void setAD_Column_ID (int AD_Column_ID);", "public static void setIdAssigner(ImageIdAssigner idAssigner)\n\t{\n\t\tif(ItemImage.idAssigner == null)\n\t\t\tItemImage.idAssigner = idAssigner;\n\t}", "public long getAuditLogId() {\n return auditLogId;\n }", "private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dlSyncEvent.setPrimaryKey(primaryKey);\n\t}", "public int updateByPrimaryKeySelective(EpAssets record) {\n int rows = getSqlMapClientTemplate().update(\"EP_ASSETS.abatorgenerated_updateByPrimaryKeySelective\", record);\n return rows;\n }", "private void setPhotoAttcher() {\n\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfShooterAffiliationChrono.setPrimaryKey(primaryKey);\n\t}", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name = \"leadTypeId\")\n\tpublic Long getId()\n\t{\n\t\treturn super.getId();\n\t}", "public int updateByPrimaryKey(EpAssets record) {\n int rows = getSqlMapClientTemplate().update(\"EP_ASSETS.abatorgenerated_updateByPrimaryKey\", record);\n return rows;\n }", "public Long getAssignLogId() {\n return assignLogId;\n }", "@Override\r\n\tpublic UserAttachment getUserAttachment(Long id) {\n\t\treturn null;\r\n\t}", "public Text getIdAttachHolder()\r\n\t{\r\n\t\treturn idAttachHolder;\r\n\t}", "public void setFileID(Long fileID)\n/* */ {\n/* 100 */ this.fileID = fileID;\n/* */ }", "public void assignAsset(String name, int empID) {\n asset asset = getAssetById(empID);\n asset.setAssignmentStatus(\"Assigned\");\n asset.setAssignedEmployeeId(empID);\n saveOrUpdate(asset);\n }", "public void setAttachmentPath(String attachmentPath) {\n\t\tthis.attachmentPath = attachmentPath;\n\t}", "@Override\n public void onSaveAttachment(AttachmentViewInfo attachment) {\n\n getAttachmentController(attachment).saveAttachment();\n }", "@Generated(hash = 1943213675)\npublic void setTarefaExecutada(TarefasExecutadas tarefaExecutada) {\n synchronized (this) {\n this.tarefaExecutada = tarefaExecutada;\n tarefaExecutadaId = tarefaExecutada == null ? null : tarefaExecutada.getId();\n tarefaExecutada__resolvedKey = tarefaExecutadaId;\n }\n}", "protected void sequence_AttributeReference_SetAssignment(ISerializationContext context, AttributeReference semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void setId(int driverDBId);", "public void setUpId( byte[] upId )\n {\n setUpId( upId, attributeType );\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_employee.setPrimaryKey(primaryKey);\n\t}", "@Override\n public InferredOWLOntologyID attachFileReference(final InferredOWLOntologyID ontologyIRI, final IRI objectIRI,\n final String label, final String repositoryAlias, final String filePathInRepository)\n throws PoddClientException\n {\n return null;\n }", "@Override\n \t\t\t\tpublic void doAttachTo() {\n \n \t\t\t\t}", "public void setAssignLogId(Long assignLogId) {\n this.assignLogId = assignLogId;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_news_Blogs.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setUid(Integer uid) {\n\t\tthis.ordAmmId = uid;\n\t}", "public void setArtId(DBSequence value) {\n setAttributeInternal(ARTID, value);\n }", "public void setIsAttachment(boolean isAttachment) {\n this.isAttachment = isAttachment;\n }", "public void setId(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localIdTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localId=param;\r\n \r\n\r\n }", "public void setLead(Account lead) {\r\n this.lead = lead;\r\n }", "private <T> void setIdGeneration(DeployBeanDescriptor<T> desc) {\n if (desc.getIdGenerator() != null) {\n // already assigned (So custom or UUID)\n return;\n }\n if (desc.idProperty() == null) {\n return;\n }\n final DeployIdentityMode identityMode = desc.getIdentityMode();\n if (identityMode.isSequence() && !dbIdentity.isSupportsSequence()) {\n // explicit sequence but not supported by the DatabasePlatform\n log.log(INFO, \"Explicit sequence on {0} but not supported by DB Platform - ignored\", desc.getFullName());\n identityMode.setIdType(IdType.AUTO);\n }\n if (identityMode.isIdentity() && !dbIdentity.isSupportsIdentity()) {\n // explicit identity but not supported by the DatabasePlatform\n log.log(INFO, \"Explicit Identity on {0} but not supported by DB Platform - ignored\", desc.getFullName());\n identityMode.setIdType(IdType.AUTO);\n }\n\n if (identityMode.isAuto()) {\n if (desc.isPrimaryKeyCompoundOrNonNumeric()) {\n identityMode.setIdType(IdType.EXTERNAL);\n return;\n }\n if (desc.isIdGeneratedValue() || config.isIdGeneratorAutomatic()) {\n // use IDENTITY or SEQUENCE based on platform\n identityMode.setPlatformType(dbIdentity.getIdType());\n } else {\n // externally/application supplied Id values\n identityMode.setIdType(IdType.EXTERNAL);\n return;\n }\n }\n\n if (desc.getBaseTable() == null) {\n // no base table so not going to set Identity or sequence information\n return;\n }\n\n if (identityMode.isIdentity()) {\n // used when getGeneratedKeys is not supported (SQL Server 2000, SAP Hana)\n String selectLastInsertedId = dbIdentity.getSelectLastInsertedId(desc.getBaseTable());\n String selectLastInsertedIdDraft = (!desc.isDraftable()) ? selectLastInsertedId : dbIdentity.getSelectLastInsertedId(desc.getDraftTable());\n desc.setSelectLastInsertedId(selectLastInsertedId, selectLastInsertedIdDraft);\n return;\n }\n\n if (identityMode.isSequence()) {\n String seqName = identityMode.getSequenceName();\n if (seqName == null || seqName.isEmpty()) {\n String primaryKeyColumn = desc.getSinglePrimaryKeyColumn();\n seqName = namingConvention.getSequenceName(desc.getBaseTable(), primaryKeyColumn);\n }\n int stepSize = desc.setIdentitySequenceBatchMode(databasePlatform.sequenceBatchMode());\n desc.setIdGenerator(createSequenceIdGenerator(seqName, stepSize));\n }\n }", "public void setIdPath(String idPath) {\n\t\tthis.idPath = idPath;\n\t\tthis.handleConfig(\"idPath\", idPath);\n\t}", "public void insert(EpAssets record) {\n getSqlMapClientTemplate().insert(\"EP_ASSETS.abatorgenerated_insert\", record);\n }", "public void setWFMS_associate_skills_auditPersistence(\n\t\tWFMS_associate_skills_auditPersistence wfms_associate_skills_auditPersistence) {\n\t\tthis.wfms_associate_skills_auditPersistence = wfms_associate_skills_auditPersistence;\n\t}", "public void setId(Long value) {\r\n this.id = value;\r\n }", "public void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);", "public Attachment attachment(String owner, String repo, long id, long attachmentId, EditAttachmentOptions options) {\n return apiClient.deserialize(apiClient.patch(String.format(\"/repos/%s/%s/releases/%d/assets/%d\", owner, repo, id, attachmentId),\n options),\n Attachment.class);\n }", "public void setFileAttachmentIndex(int annotation) {\n\t\tput(PdfName.A, new PdfNumber(annotation));\n\t}", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "public void setBtrAudUid(Integer aBtrAudUid) {\n btrAudUid = aBtrAudUid;\n }", "public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }", "public void setId(Long objectId) {\r\n\t\tthis.objectId = objectId;\r\n\t}", "public int addAttachment(Attachment attachment) {\n\t\tPreparedStatement ps = prepareInsert(attachment);\n\t\ttry {\n\t\t\treturn ps.executeUpdate();\n\t\t} catch (SQLException ex) {\n\t\t\tlogger.error(\"Exception in addAttachment - Problem in your SQL Insert query\", ex);\n\t\t\treturn 0;\n\t\t}\n\t}", "private void setAid(int value) {\n \n aid_ = value;\n }", "@Override\n @EmbeddedId\n public UserDetailsPk getId() {\n return id;\n }", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_contentupdate.setPrimaryKey(primaryKey);\n\t}", "public int updateByPrimaryKeyWithBLOBs(TbAdminMenu record) {\n int rows = getSqlMapClientTemplate().update(\"tb_admin_menu.ibatorgenerated_updateByPrimaryKeyWithBLOBs\", record);\n return rows;\n }", "public int getAuditId();", "public IBusinessObject setLinkAttached(boolean linkAttached)\n throws OculusException;", "public void setAccountId(long value) {\n this.accountId = value;\n }", "private void setSrcId(int value) {\n \n srcId_ = value;\n }", "public void setId(Long id) \n {\n this.id = id;\n }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setNewsletterId(int v) \n {\n \n if (this.newsletterId != v)\n {\n this.newsletterId = v;\n setModified(true);\n }\n \n \n }", "public void setID( Element elem, GraphObject go ) {\n NamedNodeMap docmap = elem.getAttributes();\n String oldID = getNamedAttributeFromMap( docmap, \"id\" );\n if ( oldID == null ) {\n return; // a special case when copying, since the top level element has no info\n }\n if ( !isKeepIDs() ) {\n oldNewIDs.put( oldID, go.objectID.toString() );\n } else {\n go.objectID = new GraphObjectID( oldID );\n }\n }", "public void setRefId(long value) {\n this.refId = value;\n }", "public void setAutomatedRecordId(StringWithCustomFacts automatedRecordId) {\n this.automatedRecordId = automatedRecordId;\n }" ]
[ "0.5538317", "0.5355113", "0.5240892", "0.5221314", "0.5199694", "0.51871496", "0.51389486", "0.5061431", "0.50156635", "0.49909863", "0.49407724", "0.4884892", "0.48516178", "0.48239368", "0.47924757", "0.4786061", "0.47769028", "0.47198784", "0.4675222", "0.45617163", "0.45460677", "0.45369527", "0.4536012", "0.45220852", "0.45150447", "0.44996113", "0.44881243", "0.44780433", "0.4443412", "0.4422007", "0.4419303", "0.44115898", "0.440417", "0.43990177", "0.43839827", "0.43827194", "0.43702582", "0.4366761", "0.43650794", "0.43622494", "0.4347008", "0.43463397", "0.4345117", "0.4337741", "0.43371046", "0.4331631", "0.43312523", "0.4329076", "0.43247437", "0.43216503", "0.43167287", "0.43164864", "0.43099278", "0.43030256", "0.4296939", "0.42865443", "0.42771304", "0.4276872", "0.4276638", "0.4263566", "0.42411283", "0.42398617", "0.42351007", "0.42304802", "0.422242", "0.42183045", "0.42182785", "0.42140234", "0.4212985", "0.42096138", "0.4207924", "0.42078814", "0.42015213", "0.4198298", "0.41923195", "0.41902745", "0.41900644", "0.41899675", "0.41897336", "0.4188317", "0.41834256", "0.41827217", "0.41818756", "0.41807428", "0.41743428", "0.4172438", "0.41702685", "0.41542423", "0.41530016", "0.41522118", "0.41509503", "0.41502586", "0.41424838", "0.41326", "0.41322866", "0.41322866", "0.41276214", "0.41259593", "0.4125651", "0.4125483" ]
0.5702458
0
TODO Autogenerated method stub
public static void main(String[] args) { Order order1 = new Order("ItemNameA", "OrdererA10", 15); Order order2 = new Order("ItemName6", "OrdererO10", 22); System.out.println(order1.compareTo(order2)); }
{ "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
set HTTP request method
public void setRequestMethod(int requestMethod) { this.requestMethod = requestMethod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMethod(HTTPMethod method);", "private void setRequestMethod() {\n switch (type) {\n case GET:\n try {\n connection.setRequestMethod(GET);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as GET successfully\");\n LOG.severe(e.toString());\n }\n break;\n case POST:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(POST);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as POST successfully\");\n LOG.severe(e.toString());\n }\n break;\n case PUT:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(PUT);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as PUT successfully\");\n LOG.severe(e.toString());\n }\n break;\n case DELETE:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(DELETE);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as DELETE successfully\");\n LOG.severe(e.toString());\n }\n break;\n case PATCH:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(PATCH);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as PATCH successfully\");\n LOG.severe(e.toString());\n }\n break;\n }\n }", "public HTTPRequestMethod getMethod();", "public void setHttpMethod(int httpMethod) {\n method = httpMethod;\n }", "public void setRequestMethod(String requestMethod){\n this.requestMethod = requestMethod;\n }", "@Override\n\tpublic String getRequestMethod() {\n\t\treturn requestMethod;\n\t}", "public void setReqMethod(java.lang.String value) {\n this.req_method = value;\n }", "String getHttpMethod();", "String getHttpMethod();", "public String getRequestMethod(){\n return this.requestMethod;\n }", "public HttpMethod getMethod()\r\n/* 31: */ {\r\n/* 32:60 */ return HttpMethod.valueOf(this.httpRequest.getMethod());\r\n/* 33: */ }", "public String getRequestMethod()\n {\n return requestMethod;\n }", "public HttpMethod getMethod()\r\n/* 44: */ {\r\n/* 45: 78 */ return HttpMethod.valueOf(this.servletRequest.getMethod());\r\n/* 46: */ }", "public String getHttpMethod() {\n return httpMethod;\n }", "public String getHttpmethod() {\n return httpmethod;\n }", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "public Builder setHttpMethod(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n httpMethod_ = value;\n onChanged();\n return this;\n }", "public HttpsConnection setRequestMethod(final Method requestMethod) {\n log.log(Level.INFO, \"Set Request Method: \" + requestMethod);\n this.mRequestMethod = requestMethod;\n return this;\n }", "public io.confluent.developer.InterceptTest.Builder setReqMethod(java.lang.String value) {\n validate(fields()[6], value);\n this.req_method = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "public void setMethod(String method)\r\n {\r\n routing_method=method;\r\n }", "public String getHttpMethod() {\n Object ref = httpMethod_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n httpMethod_ = s;\n }\n return s;\n }\n }", "@Override\n\tpublic void setHTTPMODE(HttpMethod httpmodel) {\n\t\tthis.httpmodel = httpmodel;\n\t}", "public java.lang.String getReqMethod() {\n return req_method;\n }", "public java.lang.String getReqMethod() {\n return req_method;\n }", "public String getHttpMethod() {\n Object ref = httpMethod_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n httpMethod_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Override\n public HttpMethods getMethod() {\n return HttpMethods.EVAL;\n }", "public HttpMethod method() {\n return method;\n }", "public HttpMethod method() {\n\t\treturn method;\n\t}", "public RestUtils setMethodPost()\n\t{\n\t\trestMethodDef.setHttpMethodPost(true);\n\t\treturn this;\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public HttpMethod getMethod() {\n return method;\n }", "public void setHttpmethod(String httpmethod) {\n this.httpmethod = httpmethod == null ? null : httpmethod.trim();\n }", "public RestUtils setMethodGet()\n\t{\n\t\trestMethodDef.setHttpMethodPost(false);\n\t\treturn this;\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "Collection<HttpMethod> getMinimalSupportedHttpMethods();", "public HttpMethod getMethod()\r\n/* 29: */ {\r\n/* 30:56 */ return this.method;\r\n/* 31: */ }", "public RestUtils setMethodOptions()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.OPTIONS);\n\t\treturn this;\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "public com.google.protobuf.ByteString\n getHttpMethodBytes() {\n Object ref = httpMethod_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n httpMethod_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "@Override\n\t\tpublic String getMethod() {\n\t\t\treturn null;\n\t\t}", "@Override\n public String getMethod() {\n return METHOD_NAME;\n }", "boolean hasHttpMethod();", "public Builder setHttpMethodBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n httpMethod_ = value;\n onChanged();\n return this;\n }", "public void setRequestProtocol(String requestProtocol){\n this.requestProtocol = requestProtocol;\n }", "@Nullable\n public static EHTTPMethod getHttpMethod (@Nonnull final HttpServletRequest aHttpRequest)\n {\n ValueEnforcer.notNull (aHttpRequest, \"HttpRequest\");\n\n final String sMethod = aHttpRequest.getMethod ();\n return EHTTPMethod.getFromNameOrNull (sMethod);\n }", "public String getMethod() {\n\t\treturn getParameter(\"method\");\n\t}", "public void setMethod(String method) {\r\n this.method = method;\r\n }", "Request _request(String operation);", "public com.google.protobuf.ByteString\n getHttpMethodBytes() {\n Object ref = httpMethod_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n httpMethod_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getMethod(String request) {\n return request.split(\" \")[0];\n }", "private void setControlsForMethodType ( String methodType ) {\n \t\tif (getCurrentTestType().equalsIgnoreCase(JAX_RS) &&\n \t\t\t\t(methodType.equalsIgnoreCase(GET) ||\n \t\t\t\t methodType.equalsIgnoreCase(OPTIONS))) {\n \t\t\tbodyText.setEnabled(false);\n \t\t\ttreeRequestBody.getTree().setEnabled(false);\n \t\t} else {\n \t\t\tbodyText.setEnabled(true);\n \t\t\ttreeRequestBody.getTree().setEnabled(true);\n \t\t}\n \t}", "public RestUtils setMethodPut()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.PUT);\n\t\treturn this;\n\t}", "public void addMethod(MethodRequest method) {\n\t\tmethods.add(method);\n\t}", "String getMethod();", "String getMethod();", "@Override\n public Type getType() {\n return Type.TypeRequest;\n }", "public interface RequestModifier {\n\n /**\n * Set HTTP request method, only support get, post,put , delete method.\n *\n * @param method\n *\n */\n public void setMethod(HTTPMethod method);\n\n /**\n * Set HTTP Protocol.\n *\n * @param protocol\n *\n */\n public void setProtocol(String protocol);\n\n /**\n * Set HTTP version , such as HTTP1.1.\n *\n * @param version\n *\n */\n public void setVersion(String version);\n\n /**\n * Set HTTP domain.\n *\n * @param domain\n *\n */\n public void setDomain(String domain);\n\n /**\n * Set path in the url.\n *\n * @param path\n *\n */\n public void setPath(String path);\n\n /**\n * Set web server port\n *\n * @param port\n *\n */\n public void setPort(int port);\n\n /**\n * Set HTTP url\n *\n * @param url\n *\n */\n public void setUrl(URL url);\n\n /**\n * Set HTTP url string\n *\n * @param url\n *\n */\n public void setUrl(String url);\n\n /**\n * Modify the exist argument in url.\n *\n * @param urlArg\n *\n * @return boolean, if success to modfiy this argument, return true.\n * if fail to modfiy this argument, return false.\n */\n public boolean modifyURIArgContent(URLArg urlArg);\n\n /**\n * Modify the exist header in HTTP request headers.\n *\n * @param header\n *\n * @return boolean, if success to modfiy this argument, return true.\n * if fail to modfiy this argument, return false.\n */\n public boolean modifyHeaderContent(Header header);\n\n /**\n * Add the request header, if this header is exist, modfiy this value.\n *\n * @param key\n *\n * @param header\n *\n */\n public void addHeader(String key, String header);\n\n /**\n * Add the request header, if this header is exist, modfiy this value.\n *\n * @param key\n *\n * @param header\n *\n */\n public void delHeader(String key);\n\n /**\n * Add the post arg in request header, if this argument is exist, modfiy this value.\n *\n * @param key\n *\n * @param value\n *\n */\n public void addPostArg(String key, String value);\n\n /**\n * Add the url arg in request url, if this argument is exist, modfiy this value.\n *\n * @param key\n *\n * @param value\n *\n */\n public void addUrlArg(String key, String value);\n}", "public synchronized void setMethod(int whatMethod) {\n method = whatMethod;\n }", "public int getMethod(){\n return method;\n }", "public String getMethod ()\n {\n return method;\n }", "MethodType getMethodType();", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "public Method getMethod();", "public static Node getMethod() {\n Element testRequest = TECore.doc.createElement(Constants.Request);\n testRequest.setAttribute(NO, String.valueOf(TECore.methodCount));\n // append child into testRequest\n testRequest.appendChild(getMethodElements(TECore.doc, testRequest, Constants.Assertion, TECore.assertionMsz));\n testRequest.appendChild(getMethodElements(TECore.doc, testRequest, Constants.URL, TECore.pathURL));\n testRequest.appendChild(getMethodElements(TECore.doc, testRequest, Constants.Message, TECore.messageTest));\n return testRequest;\n }", "public boolean hasHttpMethod() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasHttpMethod() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public Builder clearHttpMethod() {\n bitField0_ = (bitField0_ & ~0x00000002);\n httpMethod_ = getDefaultInstance().getHttpMethod();\n onChanged();\n return this;\n }", "public HTTPUtility(String requestURL, String method) {\n this.requestURL = requestURL;\n this.method = method;\n }", "public String getMethod() {\n\t\treturn method;\n\t}", "private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n (\"GET\", \"/\", HttpVersion.HTTP_1_1);\r\n //(\"OPTIONS\", \"*\", HttpVersion.HTTP_1_1);\r\n\r\n return req;\r\n }", "@Nonnull\n protected String getRequestSpec(WebTarget target, String method) {\n return method + \" \" + target.getUri().getPath();\n }", "@Override\n protected String inferProtocol() {\n return \"http\";\n }", "public String getMethod() {\n\t\t\treturn method;\n\t\t}", "public String getRequestProtocol(){\n return this.requestProtocol;\n }", "public void setMethod(Method method) {\n this.method = method;\n }", "Method getMethod();", "Method getMethod();", "public RestUtils setMethodDelete()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.DELETE);\n\t\treturn this;\n\t}", "public String getRequestType() { return this.requestType; }", "public InputMethod getMethod() {\n return method;\n }", "com.google.protobuf.ByteString\n getHttpMethodBytes();", "public abstract Builder methods(RequestMethod... paramVarArgs);", "public interface RequestType {\n String GET = \"GET\";\n String POST = \"POST\";\n String UPDATE = \"UPDATE\";\n String DELETE = \"DELETE\";\n String DEFAULT = \"DEFAULT\";\n}", "protected String getAuthMethod() {\n return \"Token\" ;// TODO this.conf.getAuthMethod();\n }", "@SuppressWarnings(\"hiding\")\n @Override\n public void setMethod(String method) {\n this.method = method;\n }", "@Override\n\tpublic String getRequestType() {\n\t\treturn null;\n\t}", "default PacketMethod getMethod() {\n return PacketMethod.POST;\n }", "void setRequest(Request req);", "@Description(\"request with method '{method}'\")\n public static Criteria<HarEntry> recordedRequestMethod(@DescriptionFragment(\"method\") HttpMethod method) {\n checkArgument(nonNull(method), \"Method should be defined\");\n\n return condition(entry -> {\n HttpMethod requestMethod = entry.getRequest().getMethod();\n\n return Objects.equals(requestMethod, method);\n });\n }", "public String getMethod() {\n return method;\n }", "public String getMethod() {\n return method;\n }", "public String getMethod() {\n return method;\n }", "private String computeMethodForRedirect(String initialMethod, String responseCode) {\n if (!HTTPConstants.HEAD.equalsIgnoreCase(initialMethod)) {\n return HTTPConstants.GET;\n }\n return initialMethod;\n }", "public io.confluent.developer.InterceptTest.Builder clearReqMethod() {\n req_method = null;\n fieldSetFlags()[6] = false;\n return this;\n }", "public void setRequest(final String request) {\n this.request = request;\n }", "ResourceMethod getMethodType();", "public void setRequestDirection(String requestDirection);", "private void mimicSunRequestHeaders() {\n if (!isHeaderSet(method.getRequestHeader(\"Accept\"))) {\n setRequestProperty(\"Accept\", acceptHeader);\n }\n if (!isHeaderSet(method.getRequestHeader(\"Connection\"))) {\n setRequestProperty(\"Connection\", \"keep-alive\");\n }\n }", "private static void sendRequest(PrintWriter pw, String method, Boolean requestFileFlag, Boolean bodyFlag) {\n pw.print(method + \" /\");\n if (requestFileFlag) { //requestFileFlag is to specify concrete service in the server.\n //This is a wrong folder, so you should not find index.html.\n pw.print(\"xyz\");\n }\n pw.print(\" HTTP/1.1\\r\\n\");\n //request headers formation.\n pw.print(\"Host: localhost\\r\\n\\r\\n\");\n //request body formation.\n if (bodyFlag) { //bodyFlag is to specify whether to add a request body in the message.\n pw.print(\"username = Smith\\r\\n\");\n }\n pw.flush();\n }" ]
[ "0.8449699", "0.7941373", "0.7866202", "0.7808492", "0.77903336", "0.77856857", "0.7614908", "0.7478118", "0.7478118", "0.7462053", "0.73868465", "0.7380505", "0.73373044", "0.7177245", "0.71698433", "0.7165566", "0.7134036", "0.70316625", "0.69356954", "0.68050003", "0.66916096", "0.66753495", "0.6641306", "0.66183645", "0.6548781", "0.6529183", "0.6506397", "0.6505842", "0.6464117", "0.64190793", "0.6396604", "0.6392771", "0.63758427", "0.6351508", "0.63416576", "0.6339177", "0.6268643", "0.6200239", "0.612415", "0.6114334", "0.6111495", "0.6101386", "0.6097718", "0.60876256", "0.60532594", "0.60499305", "0.60271996", "0.60203093", "0.6017239", "0.6004435", "0.59968984", "0.59558", "0.59410316", "0.5899503", "0.5882536", "0.5882536", "0.58798766", "0.5871594", "0.5865054", "0.58516467", "0.58371377", "0.5830536", "0.58181894", "0.5804878", "0.57539195", "0.57465273", "0.5745157", "0.57445914", "0.5726347", "0.57235914", "0.570977", "0.5708903", "0.56971246", "0.5695915", "0.56902313", "0.5683809", "0.56811875", "0.56811875", "0.56747025", "0.5670357", "0.56608504", "0.56550884", "0.563896", "0.56331843", "0.56298804", "0.562444", "0.56179154", "0.5615413", "0.5615366", "0.5605831", "0.56053126", "0.56053126", "0.56053126", "0.55961406", "0.55952156", "0.559468", "0.5585988", "0.55795974", "0.55783653", "0.5574089" ]
0.7786281
5
execute http request to fetch data from server
public void execute(String url) { this.url = url; Log.d(this.getClass().getName(), "Request URL: " + url); Log.d(this.getClass().getName(), "Request Body: " + jsonBody); ErrorListener errorListener = new ErrorListener() { @Override public void onErrorResponse(VolleyError error) { if (retryCountForNetworkError < 3) { retryCountForNetworkError++; Log.d("", "retryCountForNetworkError: " + retryCountForNetworkError + ""); execute(PoolNetworkRequest.this.url); } else if (listener != null) { listener.onError(error); } } }; Request<String> request = new Request<String>(requestMethod, url, errorListener) { @Override public byte[] getBody() throws AuthFailureError { if (jsonBody != null) { return jsonBody.getBytes(); } return super.getBody(); } @Override protected void deliverResponse(String response) { } @Override protected Response<String> parseNetworkResponse(NetworkResponse response) { try { String json = new String(response.data, HttpHeaderParser.parseCharset(response.headers)); Log.d("", "Response: " + json); if (listener != null) { final T parseData = listener.parseData(json); ((Activity) context).runOnUiThread(new Runnable() { @Override public void run() { if (listener != null) { listener.onResponse(parseData); } } }); return Response.success("success", HttpHeaderParser.parseCacheHeaders(response)); } } catch (Exception e) { if (e != null) { e.printStackTrace(); } return Response.error(new VolleyError(response)); } return Response.success("success", HttpHeaderParser.parseCacheHeaders(response)); } @Override public Priority getPriority() { Priority mPriority = Priority.HIGH; return mPriority; } @Override public Map<String, String> getParams() throws AuthFailureError { if (params != null) { return params; } else { return super.getParams(); } } @Override public Map<String, String> getHeaders() throws AuthFailureError { Map<String, String> headers = super.getHeaders(); if (headers == null || headers.equals(Collections.emptyMap())) { headers = new HashMap<>(); } headers.put("Content-Type", "application/json"); if (header != null) { headers.putAll(header); } setLoggerHeader(headers); return headers; } }; request.setRetryPolicy(new DefaultRetryPolicy(REQUEST_TIMEOUT, MAX_RETRIES, BACKOFF_MULTIPLIER)); request.setShouldCache(false); VolleySingleton.getInstance(context).addToRequestQueue(request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\t\t\t\tStringBuilder response = new StringBuilder();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"GET\");\r\n\t\t\t\t\tconnection.setConnectTimeout(8000);\r\n\t\t\t\t\tconnection.setReadTimeout(8000);\r\n\t\t\t\t\tconnection.setDoInput(true);\r\n\t\t\t\t\t//connection.setDoOutput(true);\r\n\t\t\t\t\tint responseCode = connection.getResponseCode();\r\n\t\t\t\t\tLog.d(\"HttpUtil\", String.valueOf(responseCode));\r\n\t\t\t\t\tif(responseCode != 200){\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Get Fail\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tInputStream in = connection.getInputStream();\r\n\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\r\n\t\t\t\t\t\tString line;\r\n\t\t\t\t\t\twhile((line = reader.readLine()) != null){\r\n\t\t\t\t\t\t\tresponse.append(line);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Get Success\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onFinish(response.toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onError(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tif(connection != null){\r\n\t\t\t\t\t\tconnection.disconnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "void getDataFromServer();", "@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tList<String> headers = readRequest(client);\n\t\t\t\t\t\t\tif (headers != null && headers.size() >= 1) {\n\t\t\t\t\t\t\t\tString requestURL = getRequestURL(headers.get(0));\n\t\t\t\t\t\t\t\tLog.d(TAG, requestURL);\n\n\t\t\t\t\t\t\t\tif (requestURL.startsWith(\"http://\")) {\n\n\t\t\t\t\t\t\t\t\t// HttpRequest request = new\n\t\t\t\t\t\t\t\t\t// BasicHttpRequest(\"GET\", requestURL);\n\n\t\t\t\t\t\t\t\t\tprocessHttpRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprocessFileRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private void requestData(String uri) {\n MyTask myTask = new MyTask();\n\n // Work parralial\n myTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, uri);\n }", "@Override\n\tprotected String doInBackground(String... params) {\n\t\t RESTClient request=new RESTClient(getURL());\n\t try {\n\t\t\t\trequest.Execute(RequestMethod.GET);\n\t\t\t\treturn request.getResponse();\n\t\t\t} \n\t catch (Exception e) \n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t \n\t}", "private static String executeRequest(String url) throws IOException {\n\n\t\tLog.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t\n\t\tSocket s = new Socket(IP, PORT);\n\t\tPrintStream ps = new PrintStream(s.getOutputStream());\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"PS OPENED\");\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(\n\t\t\t\ts.getInputStream()));\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"BR OPENED\");\n\t\tps.println(url);\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"URL PRNTED\");\n\t\tString response = r.readLine();\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"RESPONSE: \" + response);\n\t\treturn response;\n\n\t\t// boolean unsuccessful = true;\n\t\t// int tries = 0;\n\t\t// String response = \"\";\n\t\t// while(unsuccessful && tries != 3){\n\t\t// unsuccessful = false;\n\t\t// URL requestUrl = new URL(url);\n\t\t// HttpsURLConnection connection = (HttpsURLConnection)\n\t\t// requestUrl.openConnection();\n\t\t// try{\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t// connection.setRequestMethod(\"GET\");\n\t\t// connection.getResponseCode();\n\t\t//\n\t\t// //connection.\n\t\t//\n\t\t// connection.connect();\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\t// //Needs error checking on connection\n\t\t//\n\t\t// InputStream in = new\n\t\t// BufferedInputStream(connection.getInputStream());\n\t\t// BufferedReader reader = new BufferedReader(new\n\t\t// InputStreamReader(in));\n\t\t// StringBuffer buffer = new StringBuffer();\n\t\t// String line;\n\t\t//\n\t\t// //reads response in and appends it to buffer\n\t\t// do{\n\t\t// line = reader.readLine();\n\t\t// buffer.append(line);\n\t\t// }while (line != null);\n\t\t//\n\t\t// //disconnects the HttpURLConnection so other requests can be made\n\t\t// connection.disconnect();\n\t\t// //Log.d(RiotJsonRequest.class.getSimpleName() , \"RECEIVED: \" +\n\t\t// buffer.toString());\n\t\t// response = buffer.toString();\n\t\t// }catch(Exception e){\n\t\t// String code = Integer.toString(connection.getResponseCode());\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , \"CODE: \" + code);\n\t\t// if(code.equals(\"404\")){\n\t\t// return code;\n\t\t// }\n\t\t// unsuccessful = true;\n\t\t// tries++;\n\t\t// connection.disconnect();\n\t\t// connection = null;\n\t\t// requestUrl = null;\n\t\t// try {\n\t\t// Thread.sleep(1000);\n\t\t// } catch (InterruptedException e1) {\n\t\t// e1.printStackTrace();\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t// return response;\n\t}", "private void requestServerToGetInformation() {\n Net net = Net.getInstance();\n Log.i(TAG, \"requestServerToGetInformation: Start connect server\");\n net.get(AppConstant.SERVER_COMBO_URL, new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.i(TAG, \"onFailure: connect error; \" + e.getMessage());\n }\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n // get the JSON from responses.\n String jsonStr = response.body().string();\n Log.i(TAG, \"onResponse: --------------------------------\" + jsonStr);\n parseJsonAndUpdateView(jsonStr.trim());\n }\n });\n }", "@Api(1.1)\n public Response execute() throws HaloNetException {\n return mBuilder.mClient.request(mRequest);\n }", "private synchronized String execute(final HttpUriRequest request) {\n request.setParams(params);\n\n // Set the request's headers\n for (Entry<String, String> header : headers.entrySet()) {\n request.setHeader(header.getKey(), header.getValue());\n }\n\n // Execute the request and get it's content\n HttpResponse response;\n String content;\n try {\n\n // Execute the request\n response = getClient().execute(request);\n\n // Get the response content\n content = EntityUtils.toString(response.getEntity(), charset);\n } catch (IOException e) {\n throw new JsogClientException(\"Get request failed.\", e);\n }\n\n // Check the response code\n StatusLine sl = response.getStatusLine();\n if (sl.getStatusCode() != 200) {\n throw new Non200ResponseCodeException(\n sl.getStatusCode(),\n sl.getReasonPhrase(),\n content);\n }\n\n return content;\n }", "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\r\n\t\t\t\tPrintWriter printWriter = null;\r\n\t\t\t\tBufferedReader bufferedReader = null;\r\n\r\n\t\t\t\tStringBuffer response = new StringBuffer();\r\n\t\t\t\tStringBuffer request = new StringBuffer();\r\n\r\n\t\t\t\t// 组织请求参数\r\n\t\t\t\tif (null != params && !params.isEmpty()){\r\n\t\t\t\t\tfor (Map.Entry<String, String> entry : params.entrySet()){\r\n\t\t\t\t\t\trequest.append(entry.getKey()).append(\"=\").append(entry.getValue()).append(\"&\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//< 删除多余的&\r\n\t\t\t\t\trequest.deleteCharAt(request.length() - 1);\r\n\t\t\t\t}\r\n\t\t\t\tLog.d(\"HttpUtil\", request.toString());\r\n\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"POST\");\r\n\t\t\t\t\tconnection.setRequestProperty(\"Content-Length\", String.valueOf(request.length()));\r\n\t\t\t\t\tconnection.setDoInput(true);\r\n\t\t\t\t\tconnection.setDoOutput(true);\r\n\t\t\t\t\tprintWriter = new PrintWriter(connection.getOutputStream());\r\n\t\t\t\t\tprintWriter.write(request.toString());\r\n\t\t\t\t\tprintWriter.flush();\r\n\r\n\t\t\t\t\tint responseCode = connection.getResponseCode();\r\n\t\t\t\t\tif(responseCode != 200){\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Post Fail\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Post Success\");\r\n\t\t\t\t\t\tbufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\r\n\t\t\t\t\t\tString line;\r\n\t\t\t\t\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\t\t\t\t\t\t\tresponse.append(line);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onFinish(response.toString());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onError(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tif(connection != null){\r\n\t\t\t\t\t\tconnection.disconnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (printWriter != null) {\r\n\t\t\t\t\t\t\tprintWriter.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (bufferedReader != null) {\r\n\t\t\t\t\t\t\tbufferedReader.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "private String doHttpClientGet() {\n\t\t\r\n\t\tHttpGet httpGet=new HttpGet(url);\r\n\t\tHttpClient client=new DefaultHttpClient();\r\n\t\ttry {\r\n\t\t\tHttpResponse response=client.execute(httpGet);\r\n\t\t\tif(response.getStatusLine().getStatusCode()==HttpStatus.SC_OK){\r\n\t\t\t\tresult=EntityUtils.toString(response.getEntity());\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"content----->\"+result);\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tProxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(\n\t\t\t\t\t\t\"proxy.iiit.ac.in\", 8080));\n\t\t\t\tURL url = new URL(url1);\n\t\t\t\tHttpURLConnection conn = (HttpURLConnection) url\n\t\t\t\t\t\t.openConnection(proxy);\n\t\t\t\tconn.setRequestMethod(\"GET\");\n\t\t\t\tconn.setRequestProperty(\"Accept\", \"application/json\");\n\n\t\t//\t\tif (conn.getResponseCode() != 200) {\n\t\t\t//\t\tthrow new RuntimeException(\"Failed : HTTP error code : \"\n\t\t\t//\t\t\t\t+ conn.getResponseCode());\n\t\t\t//\t}\n\n\t\t\t\t/*\n\t\t\t\t * BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t * (conn.getInputStream())));\n\t\t\t\t * \n\t\t\t\t * String output;\n\t\t\t\t * System.out.println(\"Output from Server .... \\n\"); while\n\t\t\t\t * ((output = br.readLine()) != null) {\n\t\t\t\t * System.out.println(output); }\n\t\t\t\t */\n\t\t\t\tlong tID = Thread.currentThread().getId();\n\t\t\t\tlong time = ManagementFactory.getThreadMXBean()\n\t\t\t\t\t\t.getThreadCpuTime(tID);\n\t\t\t\tSystem.out.println(\"My thread \" + tID + \" execution time: \"\n\t\t\t\t\t\t+ time + \" ns.\");\n\t\t\t\tsumTimes=sumTimes+time;\n\t\t\t\tconn.disconnect();\n\n\t\t\t} catch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\n\t\t\t// long end_time = System.currentTimeMillis();\n\n\t\t\t// long difference = end_time-start_time;\n\t\t\t// System.out.println(\"Complete in \"+difference+\" ms.\");\n\t\t}", "private RawHttpResponse<?> executeRequest(String method, String path) throws IOException {\r\n\t\tSocket socket = new Socket(\"localhost\", 8080);\r\n\t\treturn executeRequest(method, path, \"\", socket);\r\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException {\n //parsing request parameters in order to match operation to implement\n\n this.serverManager.execute(request, response);\n }", "private void getData(){\r\n \tsetProgressBarIndeterminateVisibility(true);\r\n \t\r\n\t String url = \"HospitalInfo?hospital=\" + URLEncoder.encode(hospital) + \"&ssid=\" + UserInfo.getSSID();\r\n\t download = new HttpGetJSONConnection(url, mHandler, TASK_GETDATA);\r\n\t download.start();\r\n }", "public void accessWebService() {\n\r\n JsonReadTask task = new JsonReadTask();\r\n // passes values for the urls string array\r\n task.execute(new String[] { url });\r\n }", "public String getChannelData()\n {\n System.setProperty(\"http.keepAlive\", \"false\");\n HttpParams httpParameters = new BasicHttpParams();\n\n int timeoutConnection = 60000 * 20;\n HttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);\n\n int timeoutSocket = 60000 * 20;\n HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\n\n HttpProtocolParams.setVersion(httpParameters, HttpVersion.HTTP_1_1);\n HttpConnectionParams.setSocketBufferSize(httpParameters, 8*1024);\n\n DefaultHttpClient httpclient = new DefaultHttpClient(httpParameters);\n String link = \"https://api.hkgalden.com/f/\";\n\n System.out.println(\"link :\" + link);\n\n HttpGet httppost = new HttpGet(link);\n\n httppost.addHeader(\"X-GALAPI-KEY\",\"d9b511eb952d7da22e7d575750766bb5807a8bd0\");\n\n httppost.setHeader(\"Cache-Control\", \"no-cache\");\n\n try {\n System.out.println(\"Response:\"+ \"start execute\");\n HttpResponse response = httpclient.execute(httppost);\n System.out.println(\"Response:\"+response.getStatusLine().getStatusCode());\n HttpEntity getResponseEntity = response.getEntity();\n InputStream httpResponseStream = getResponseEntity.getContent();\n String result = slurp(httpResponseStream , 8192);\n return result;\n\n } catch (ClientProtocolException e) {\n e.printStackTrace();\n return e.getMessage();\n } catch (ConnectTimeoutException e){\n e.printStackTrace();\n return e.getMessage();\n }catch (IOException e) {\n e.printStackTrace();\n return e.getMessage();\n }\n }", "@Override\n protected String doInBackground(String... params) {\n String content = HttpManager.getData(params[0],params[1],params[2]);\n return content;\n\n }", "public static void operation() {\n try ( QueryExecution qExec = QueryExecutionHTTP.service(dataURL).query(\"ASK{}\").build() ) {\n qExec.execAsk();\n System.out.println(\"Operation succeeded\");\n } catch (QueryException ex) {\n System.out.println(\"Operation failed: \"+ex.getMessage());\n }\n System.out.println();\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\thandlHttpRequest(url, trackerinfo.get_info_hash(), Settings.PEER_DEFAULT_ID);\n\t\t\t\t\t}", "private void sendRequest() {\n\t\tloading = ProgressDialog.show(this, \"Loading\", \"Please wait...\");\n\n\t\tUri.Builder uri = new Uri.Builder();\n\t\turi.authority(DatabaseContract.PROVIDER_NAME);\n\t\turi.path(Integer.toString(Constants.LOADREQUESTSCMD));\n\t\turi.scheme(\"content\");\n\n\t\tIntent intent = new Intent(this, MyService.class);\n\t\tintent.putExtra(\"ACTION\", \"QUERY\");\n\t\tintent.setData(uri.build());\n\n\t\trequestid = new Date().getTime();\n\t\tintent.putExtra(\"requestid\", requestid);\n\t\tstartService(intent);\n\t}", "private static HttpResponse sendGet() throws Exception {\n // Create the Call using the URL\n HttpGet http = new HttpGet(url);\n // Set the credentials set earlier into the headers\n Header header = new BasicScheme(StandardCharsets.UTF_8).authenticate(creds, http, null);\n // Set the header into the HTTP request\n http.addHeader(header);\n // Print the response\n return httpClient.execute(http);\n }", "@Override\n\tprotected HttpResponse doHttpRequest() throws ClientProtocolException, IOException {\n\t\tHttpRequestGenerator requestor = new HttpRequestGenerator(username, password);\n\t\treturn requestor.makeKeyFetchRequest(keyServerUrl, null);\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tProxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(\n\t\t\t\t\t\t\"proxy.iiit.ac.in\", 8080));\n\t\t\t\tURL url = new URL(url1);\n\t\t\t\tHttpURLConnection connection = (HttpURLConnection) url\n\t\t\t\t\t\t.openConnection(proxy);\n\t\t\t\tconnection.setRequestMethod(\"POST\");\n\t\t\t\t// connection.setRequestProperty(\"Content-Type\",\n\t\t\t\t// \"application/x-www-form-urlencoded\");\n\n\t\t\t\tconnection.setRequestProperty(\"Content-Length\",\n\t\t\t\t\t\t\"\" + Integer.toString(parameters.getBytes().length));\n\t\t\t\tconnection.setRequestProperty(\"Content-Language\", \"en-US\");\n\n\t\t\t\tconnection.setUseCaches(false);\n\t\t\t\tconnection.setDoInput(true);\n\t\t\t\tconnection.setDoOutput(true);\n\n\t\t\t\t// Send request\n\t\t\t\tDataOutputStream wr = new DataOutputStream(\n\t\t\t\t\t\tconnection.getOutputStream());\n\t\t\t\twr.writeBytes(parameters);\n\t\t\t\twr.flush();\n\t\t\t\twr.close();\n\n\t\t\t\t// Get Response\n\t\t\t\tInputStream is = connection.getInputStream();\n\t\t\t\tBufferedReader rd = new BufferedReader(\n\t\t\t\t\t\tnew InputStreamReader(is));\n\t\t\t\tString line;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\t\tresponse.append(line);\n\t\t\t\t\tresponse.append('\\r');\n\t\t\t\t}\n\t\t\t\trd.close();\n\t\t\t\t// return response.toString();\n\t\t\t\tlong tID = Thread.currentThread().getId();\n\t\t\t\tlong time = ManagementFactory.getThreadMXBean()\n\t\t\t\t\t\t.getThreadCpuTime(tID);\n\t\t\t\tSystem.out.println(\"My thread \" + tID + \" execution time: \"\n\t\t\t\t\t\t+ time + \" ns.\");\n\t\t\t\tsumTimes=sumTimes+time;\n\t\t\t\tconnection.disconnect();\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\t// return null;\n\n\t\t\t} finally {\n\n\t\t\t}\n\t\t}", "private HttpResponse httpRequest(URL url, List<Header> headers, String method, byte[] data) throws IOException {\n\n BufferedReader streamReader;\n\n HttpURLConnection connection = setupConnection(url,headers,method);\n connection.setDoOutput(true);\n connection.connect();\n\n OutputStream outputStream = connection.getOutputStream();\n outputStream.write(data);\n outputStream.flush();\n outputStream.close();\n\n final int httpResponseCode = connection.getResponseCode();\n final List<Header> responseHeaders = Header.getHeaders(connection.getHeaderFields());\n\n try {\n streamReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n }\n catch (IOException e) {\n streamReader = new BufferedReader(new InputStreamReader(connection.getErrorStream()));\n }\n\n StringBuilder sb = new StringBuilder();\n String currentLine;\n\n while((currentLine = streamReader.readLine()) != null) {\n sb.append(currentLine).append(\"\\n\");\n }\n\n connection.disconnect();\n\n try {\n Objects.requireNonNull(streamReader).close();\n }\n catch (IOException ignored){ }\n\n return new HttpResponse(responseHeaders,httpResponseCode,sb.toString().trim());\n }", "@Override\n public void run() {\n super.run(); // obtain connection\n if (connection == null)\n return; // problem obtaining connection\n\n try {\n request_spec.context.setAttribute\n (ExecutionContext.HTTP_CONNECTION, connection);\n\n doOpenConnection();\n\n HttpRequest request = (HttpRequest) request_spec.context.\n getAttribute(ExecutionContext.HTTP_REQUEST);\n request_spec.executor.preProcess\n (request, request_spec.processor, request_spec.context);\n\n response = request_spec.executor.execute\n (request, connection, request_spec.context);\n\n request_spec.executor.postProcess\n (response, request_spec.processor, request_spec.context);\n\n doConsumeResponse();\n\n } catch (Exception ex) {\n if (exception != null)\n exception = ex;\n\n } finally {\n conn_manager.releaseConnection(connection, -1, null);\n }\n }", "@Override\n\t\tprotected Bundle doInBackground(String... params) {\n\t\t\tint status = 0;\n\t\t\tBundle responseData = new Bundle();\n\t\t\tif (HttpUtil.isNetEnable(mContext)){\n\t\t\t\tString result = null;\n\t\t\t\ttry {\n\t\t\t\t\tresult = HttpUtil.HttpGetRequest(params[0]);\n\t\t\t\t\tif (!TextUtils.isEmpty(result)) {\n\t\t\t\t\t\tstatus = Constant.Msg.REQUEST_SUCCESS;\n\t\t\t\t\t\tresponseData.putString(Constant.BASE_DATA_KEY,result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstatus = Constant.Msg.REQUEST_FAILED;\n\t\t\t\t\t}\n\t\t\t\t} catch (SocketTimeoutException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tstatus = Constant.Msg.SOCKET_TIME_OUT;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstatus = Constant.Msg.NETWORK_ERROR;\n\t\t\t}\n\t\t\tresponseData.putInt(Constant.STATUS_KEY, status);\n\t\t\tresponseData.putInt(Constant.REQUEST_MSG_KEY, Constant.Msg.BASE_REQUEST);\n\n\t\t\treturn responseData;\n\t\t}", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "@Override \n public void run() {\n\t\tString path = Urls.URL_32;\n\t\t\n\t\tMap<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"login-name-or-mobile\", username);\n\t\tmap.put(\"pwd\", password);\n\t \tList<BasicNameValuePair> params = HttpUtils.setParams(map);\n\t \t\n\t\tMap<String, String> map2 = new HashMap<String, String>();\n\t \tmap2.put(\"Accept-Encoding\", \"gzip, deflate\");\n\t \tmap2.put(\"Accept\", \"application/json\");\n\n\t \tMap<String,String> info = new HashMap<String,String>();\n\t\tString jsonStr = \"\";\n\t\ttry {\n\t\t\tjsonStr = RequestService.getInstance().getRequest(params, path, map2);\n\t\t\t\n\t\t\tif(jsonStr==null || \"null\".equals(jsonStr) || \"\".equals(jsonStr)){\n\t\t\t\tinfo.put(\"available\", \"0\");\n\t\t\t}else{\n\t\t\t\tHttpUtils.parseJson(jsonStr, info, null);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tMessage msg = new Message(); \n\t msg.what = Constants.NETWORK_ERROR;\n\t handler.sendMessage(msg); \n\t return;\n\t\t}\n\t\t\n Message msg = new Message(); \n msg.obj = info;\n msg.what = Constants.GET_BALANCE_SUCCESS;\n handler.sendMessage(msg); \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "R request();", "protected static String fetchDataFromServer(String fullUrl)\r\n \t\t\tthrows Exception {\r\n \t\tBufferedReader reader = null;\r\n \t\tString result = null;\r\n \t\ttry {\r\n \t\t\tURL url = new URL(fullUrl);\r\n \t\t\tSystem.out.println(\"Calling: \" + url.toString());\r\n \t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\r\n \t\t\tconn.setRequestMethod(\"GET\");\r\n \t\t\tconn.setDoOutput(true);\r\n \r\n \t\t\treader = new BufferedReader(new InputStreamReader(conn\r\n \t\t\t\t\t.getInputStream()));\r\n \t\t\tStringBuilder sb = new StringBuilder();\r\n \t\t\tString line = null;\r\n \r\n \t\t\twhile ((line = reader.readLine()) != null) {\r\n \t\t\t\tsb.append(line + \"\\n\");\r\n \t\t\t}\r\n \t\t\tresult = sb.toString();\r\n \t\t} finally {\r\n \t\t\tif (reader != null) {\r\n \t\t\t\treader.close();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn result;\r\n \t}", "void requestData();", "public void httpclient(String url){\n\t\t\r\n\t\t\r\n\t\tString httpUrl =BASIC_URL+url;\r\n\t\t\r\n\t\tSystem.out.println(httpUrl);\r\n\t\t\r\n\t\tHttpGet method =new HttpGet(httpUrl);\r\n\t\t\r\n\t\tmethod.setHeader(\"Content-Type\",\"application/json\");\r\n\t\tmethod.setHeader(\"charset\",\"UTF-8\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tCloseableHttpResponse res =client.execute(method,context);\r\n\r\n\t\t AuthState targetAuthState = context.getTargetAuthState();\r\n\t\t System.out.println(\"Target auth state: \" + targetAuthState.getState());\r\n\t\t System.out.println(\"Target auth scheme: \" + targetAuthState.getAuthScheme());\r\n\t\t System.out.println(\"Target auth credentials: \" + targetAuthState.getCredentials());\r\n\t\t\t\r\n\t\t HttpEntity ent =res.getEntity();\r\n\t\t \r\n\t\t if (ent != null) { \r\n System.out.println(\"Response content length: \" + ent.getContentLength()); \r\n System.out.println(ent+\"3214242423\");\r\n \r\n System.out.println(EntityUtils.toString(ent));\r\n } \r\n\t\t \r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n return jsonResponse;\n }\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } catch (Exception e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "private void fetchData() {\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setDataObject(hierarchyTitle);\r\n requesterBean.setFunctionType(GET_HIERARCHY_DATA);\r\n AppletServletCommunicator conn = new AppletServletCommunicator(connect,requesterBean);\r\n conn.send();\r\n ResponderBean responderBean = conn.getResponse();\r\n if(responderBean != null) {\r\n if(responderBean.isSuccessfulResponse()) {\r\n queryKey = hierarchyTitle;\r\n Hashtable htData = (Hashtable)responderBean.getDataObject();\r\n extractToQueryEngine(htData);\r\n }\r\n }else {\r\n //Server Error\r\n// throw new CoeusUIException(responderBean.getMessage(),CoeusUIException.ERROR_MESSAGE);\r\n }\r\n }", "public String request(String method, String url, String data) {\n HttpURLConnection connection = null;\n try {\n if ((method.compareTo(\"GET\") == 0) && (data != null) && (!data.isEmpty())) {\n if (url.contains(\"?\"))\n url = url.concat(\"&\");\n else\n url = url.concat(\"?\");\n url = url.concat(data);\n }\n // Create connection\n URL requestUrl = new URL(url);\n connection = (HttpURLConnection) requestUrl.openConnection();\n connection.setRequestProperty(\"Veridu-Client\", this.key);\n if ((this.storage.getSessionToken() != null) && (!this.storage.getSessionToken().isEmpty()))\n connection.setRequestProperty(\"Veridu-Session\", this.storage.getSessionToken());\n connection.setRequestMethod(method);\n connection.setConnectTimeout(10000);\n connection.setReadTimeout(10000);\n connection.setUseCaches(false);\n connection.setDoOutput(true);\n // Send request\n if ((method.compareTo(\"GET\") != 0) && (data != null) && (!data.isEmpty())) {\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n connection.setRequestProperty(\"Content-Length\", Integer.toString(data.getBytes().length));\n connection.setDoInput(true);\n DataOutputStream wr = new DataOutputStream(connection.getOutputStream());\n wr.writeBytes(data);\n wr.flush();\n wr.close();\n }\n\n // Get Response\n this.lastCode = connection.getResponseCode();\n InputStream is;\n if (this.lastCode >= 400)\n is = connection.getErrorStream();\n else\n is = connection.getInputStream();\n BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n String line;\n StringBuilder response = new StringBuilder();\n while ((line = rd.readLine()) != null) {\n response.append(line);\n response.append('\\r');\n }\n rd.close();\n return response.toString();\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (connection != null)\n connection.disconnect();\n }\n return null;\n }", "String serverRequest() throws UnsupportedEncodingException {\n String text = \"\";\n String urlData = reqestUrl +\n \"?pid=\" + patientId;\n HttpURLConnection conn = null;\n InputStream stream = null;\n // Send data\n try {\n\n // Defined URL where to send data\n URL url = new URL(urlData);\n\n // Send GET data request\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n conn.connect();\n if (conn.getResponseCode() == 200) {\n\n stream = conn.getInputStream();\n Log.d(\"Get Request\", \"inside try -if\");\n if (stream != null) {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(stream));\n StringBuilder builder = new StringBuilder();\n Log.d(\"click\", \"inside tr4y\");\n String line = null;\n while ((line = bufferedReader.readLine()) != null) {\n\n builder.append(line + \"\\n\");\n Log.d(\"line\", line);\n\n }\n\n text = builder.toString();\n Log.d(\"Response: \",text);\n }\n }\n }\n catch (Exception ex) {\n Log.d(\"ServerRequest Error\", \"error occurred\" + ex);\n\n }\n finally {\n try {\n if (stream != null) {\n stream.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (conn != null) {\n conn.disconnect();\n }\n }\n return text;\n }", "protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCHEME);\n\n List<String> prefectures = getCodes(client, PATH_PREF, \"pref\");\n List<String> categories = getCodes(client, PATH_CTG, \"category_s\");\n\n // This is a workaround for the gnavi API.\n // Gnavi API only allows max 1000 records for output.\n // Therefore, we divide records into smaller pieces\n // by prefectures and categories.\n for (String prefecture: prefectures) {\n for (String category: categories) {\n logger.debug(\"Prefecture: {}\", prefecture);\n logger.debug(\"Category: {}\", category);\n getVenues(client, prefecture, category, 1);\n }\n }\n }", "public void GetData(String uri,String id ,String type){\n RequestPackage p = new RequestPackage();\n p.setUri(uri);\n p.setMethod(\"GET\");\n p.setParam(\"id\",id);\n p.setParam(\"type\",type);\n\n GetTask getTask = new GetTask();\n getTask.execute(p);\n\n\n\n }", "public String fetch(String uri) throws Exception {\n\n // Http Client marries together a request and response.\n HttpClient httpClient = new DefaultHttpClient();\n\n // what URI do we want to receive?\n HttpGet httpGet = new HttpGet(uri);\n\n // handle the response\n ResponseHandler<String> responseHandler = new BasicResponseHandler();\n\n // access the URI and get back the return data.\n String returnData = null;\n\n returnData = httpClient.execute(httpGet, responseHandler);\n\n // return data\n return returnData;\n }", "public void apicall(String str) {\n URL url = null;\n try {\n url = new URL(str);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setRequestProperty(\"Accept\", \"application/json\");\n\n if (conn.getResponseCode() != HTTP_ERROR) {\n throw new RuntimeException(\"Failed: HTTP error code: \" + conn.getResponseCode());\n }\n\n BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream(), \"UTF-8\"));\n data = \"\";\n String buffer;\n while ((buffer = br.readLine()) != null) {\n data += buffer;\n }\n conn.disconnect();\n br.close();\n } catch (MalformedURLException e) {\n System.out.println(\"Malformed URL\");\n } catch (IOException e) {\n System.out.println(\"Cannot open url\");\n }\n }", "@Override\n protected JSONObject doInBackground(String... url) {\n JSONObject data = null;\n\n try {\n // Fetching the data from web service\n data = new NetworkManager().makeHttpGetConnectionWithJsonOutput(url[0]);\n } catch (Exception e) {\n Log.d(\"Background Task\", e.toString());\n }\n return data;\n }", "public void GetCall(String url) throws ClientProtocolException, IOException {\n\t\tCloseableHttpClient httpclient=HttpClients.createDefault();\n\t\tHttpGet httpget=new HttpGet(url);\n\t//lohith\n\t\tCloseableHttpResponse closeablehttpresponse=httpclient.execute(httpget);\n\t\tint responsestatuscode=closeablehttpresponse.getStatusLine().getStatusCode();\n\t\tSystem.out.println(\"responsestatuscode: \"+responsestatuscode);\n\t\t\n\t\tString response=EntityUtils.toString(closeablehttpresponse.getEntity(),\"UTF-8\");\n\t\tSystem.out.println(\"ClientResponse: \"+response);\n\t\tJSONObject jsonobject= new JSONObject(response);\n\t\t\n\t\tSystem.out.println(\"jsonobject: \"+jsonobject);\n\t\t\n\t\t\n\t}", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // if url null, return\n if(url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection= (HttpURLConnection)url.openConnection();\n urlConnection.setReadTimeout(10000/*milliseconds*/);\n urlConnection.setConnectTimeout(15000/*milliseconds*/);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n Log.v(LOG_TAG,\"Network request made\");\n\n // if the request was successful(response code 200)\n //then read the input stream and parse the output\n if(urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n }\n else{\n Log.e(LOG_TAG,\"Error Response code: \" + urlConnection.getResponseCode());\n }\n }\n catch (IOException e) {\n Log.e(LOG_TAG,\"Problem retrieving the earthquake JSON results\",e);\n }\n finally {\n if(urlConnection != null) {\n urlConnection.disconnect();\n }\n if(inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "public void loadData(){\n JsonArrayRequest request = new JsonArrayRequest(\"http://www.efstratiou.info/projects/newsfeed/getList.php\", netListener, errorListener);\n\n //submit request\n ArticlesApp.getInstance().getRequestQueue().add(request);\n\n }", "public static int doGetList(Result r) {\n // Make an HTTP GET passing the name on the URL line\n r.setValue(\"\");\n String response = \"\";\n HttpURLConnection conn;\n int status = 0;\n try {\n \n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n // tell the server what format we want back\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // wait for response\n status = conn.getResponseCode();\n // If things went poorly, don't try to read any response, just return.\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n String output = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream()))); \n while ((output = br.readLine()) != null) {\n response += output; \n } \n conn.disconnect();\n \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } \n // return value from server\n // set the response object\n r.setValue(response);\n // return HTTP status to caller\n return status;\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000);\n urlConnection.setConnectTimeout(15000);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the Guardian JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "public static String getHTTP(String urlToRead) throws Exception {\n // reference: https://stackoverflow.com/questions/34691175/how-to-send-httprequest-and-get-json-response-in-android/34691486\n HttpClient httpclient = new DefaultHttpClient();\n HttpGet httpget = new HttpGet(urlToRead);\n\n HttpResponse response = httpclient.execute(httpget);\n\n if (response.getStatusLine().getStatusCode() == 200) {\n String server_response = EntityUtils.toString(response.getEntity());\n return server_response;\n } else {\n System.out.println(\"no response from server\");\n }\n return \"\";\n }", "public void fetchResults() {\n String requestUrl = \"http://192.168.1.40:8090/trending\";\n StringRequest request = new StringRequest(\n Request.Method.POST,\n requestUrl,\n trendingGetData,\n errorListener){\n\n protected Map<String, String> getParams() throws com.android.volley.AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"memberID\", \"MMM111\");\n return params;\n };\n };\n RequestQueue queue = Volley.newRequestQueue(this);\n queue1 = Volley.newRequestQueue(this);\n queue2 = Volley.newRequestQueue(this);\n queue.add(request);\n }", "@Test\n public void doRequestURL() throws IOException, NoSuchAlgorithmException, KeyManagementException {\n doRequest(\"https://login.cloud.huawei.com/oauth2/v2/token\");\n\n\n //doRequestWithOutHttps(\"https://124.74.46.118:7012/business/service\");\n //doRequestWithOutHttpsPool(\"https://124.74.46.118:7012/business/service\");\n }", "void getRequests();", "@Override\r\n protected String doInBackground(String... params) {\r\n HttpClient httpclient = new DefaultHttpClient();\r\n HttpGet httppost = new HttpGet(params[0]); // params[0] contains url string\r\n try {\r\n HttpResponse response = httpclient.execute(httppost);\r\n jsonResult = inputStreamToString(\r\n response.getEntity().getContent()).toString();\r\n }\r\n\r\n catch (ClientProtocolException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "private String getResultByUrl(String url) {\r\n\r\n\t\tRequestConfig.Builder requestBuilder = RequestConfig.custom();\r\n\t\trequestBuilder = requestBuilder.setConnectTimeout(75000);\r\n\t\trequestBuilder = requestBuilder.setConnectionRequestTimeout(75000);\r\n\t\trequestBuilder.setSocketTimeout(75000);\r\n\r\n\t\tHttpClientBuilder builder = HttpClientBuilder.create();\r\n\t\tbuilder.setDefaultRequestConfig(requestBuilder.build());\r\n\t\tclient = builder.build();\r\n\r\n\t\trequest = new HttpGet(url);\r\n\t\trequest.addHeader(\"Accept\", \"application/json\");\r\n\r\n\t\tHttpResponse response = null;\r\n\t\tString r = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < 7; i++) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Sending request: \" + url);\r\n\t\t\t\t\tresponse = client.execute(request);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} catch (ConnectionPoolTimeoutException e) {\r\n\t\t\t\t\tSystem.out.println(\"Connection timeout. Trying again...\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t\t} catch (InterruptedException ex) {\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Response Code : \"\r\n\t\t\t\t\t+ response.getStatusLine().getStatusCode());\r\n\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(response.getEntity()\r\n\t\t\t\t\t.getContent()));\r\n\r\n\t\t\tStringBuffer result = new StringBuffer();\r\n\t\t\tString line = \"\";\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tresult.append(line);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(result + \"\\n\");\r\n\t\t\ttry {\r\n\t\t\t\tTimeUnit.SECONDS.sleep(1);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tr = result.toString();\r\n\t\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\r\n\r\n\t\t\tJsonObject jsonResult = gson.fromJson(result.toString(),\r\n\t\t\t\t\tJsonObject.class);\r\n\t\t\tif (jsonResult.get(\"backoff\") != null) {\r\n\t\t\t\tint backoff = (jsonResult.get(\"backoff\")).getAsInt();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Received backoff. Waiting for \"\r\n\t\t\t\t\t\t\t+ backoff + \"seconds...\");\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(backoff + 5);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "private void getWeatherData() {\n System.out.println(\"at getWeather\");\n String url = \"https://api.openweathermap.org/data/2.5/onecall/timemachine?lat=\";\n url += databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE);\n url += \"&lon=\" + databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LONGITUDE);\n url += \"&dt=\" + databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.START_TIME).substring(0, 10);\n url += \"&appid=your openweathermap API key\";\n new ClientThread(ClientThread.GET_WEATHER, new String[]{url, Integer.toString(experimentNumber)}, this).start();\n }", "public void sendRequest() {\n\t\tURL obj;\n\t\ttry {\n\t\t\t// Instantiating HttpURLConnection object for making GET request.\n\t\t\tobj = new URL(REQUEST_URL);\n\t\t HttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n\t\t connection.setRequestMethod(REQUEST_METHOD);\n\t\t connection.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t connection.setInstanceFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\tHttpURLConnection.setFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\n\t\t\t// Checking response code for successful request.\n\t\t\t// If responseCode==200, read the response,\n\t\t\t// if responseCode==3xx, i.e., a redirect, then make the request to \n\t\t\t// new redirected link, specified by 'Location' field. \n\t\t\t// NOTE: Only one level of redirection is supported for now. \n\t\t\t// Can be modified to support multiple levels of Redirections.\n\t\t\tint responseCode = connection.getResponseCode();\n\t\t\tif(responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_SEE_OTHER) {\n\t\t\t\tlogger.info(\"Redirect received in responseCode\");\n\t\t\t\tString newUrl = connection.getHeaderField(\"Location\");\n\t\t\t\tconnection = (HttpURLConnection) new URL(newUrl).openConnection();\n\t\t\t}\n\t\t\tresponseCode = connection.getResponseCode();\n\t\t\t\n\t\t\t// process response message if responseCode==200 i.e., success.\n\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) {\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tconnection.getInputStream()));\n\t\t\t\tString inputLine;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t}\n\t\t\t\tin.close();\n\t\t\t\t//Uncomment following line to log response data.\n\t\t\t\t//logger.info(response.toString());\n\t\t\t} else {\n\t\t\t\tlogger.warning(\"Http GET request was unsuccessful!\");\n\t\t\t}\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.severe(\"MalformedURLException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.severe(\"IOException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n }", "public ServiceResponse getRequest(String url) throws IOException {\n HttpClient client = HttpClientBuilder.create().build();\n HttpGet request = new HttpGet(url);\n HttpResponse httpResponse = client.execute(request);\n ServiceResponse response = new ServiceResponse(httpResponse.getStatusLine().getStatusCode());\n response.setReader(new BufferedReader(new InputStreamReader(httpResponse.getEntity().getContent())));\n return response;\n }", "private String sendRequest(String requestUrl) throws Exception {\n\t\t \n\t\tURL url = new URL(requestUrl);\n\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\n\t\tconnection.setRequestMethod(\"GET\");\n\t\tconnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n \n\t\tBufferedReader in = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(connection.getInputStream(), \"UTF-8\"));\n\t\t\n\t\tString responseCode = Integer.toString(connection.getResponseCode());\n\t\tif(responseCode.startsWith(\"2\")){\n\t\t\tString inputLine;\n\t\t\tStringBuffer response = new StringBuffer();\n \n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tresponse.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\t\t\tconnection.disconnect();\n\t\t\treturn response.toString();\n \t} else {\n \t\tSystem.out.println(\"Unable to connect to \"+requestUrl+\n \t\t\". Please check whether the instance is up and also the security group settings\"); \n\t\t\tconnection.disconnect();\n \t\treturn null;\n\t \t} \n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\t// defaultHttpClient\n\t\t\t\t\tLog.e(\"URL_\", url);\n\t\t\t\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\t\t\t\t\tHttpPost httpPost = new HttpPost(url);\n\t\t\t\t\tLog.e(\"URL\", url);\n\t\t\t\t\thttpPost.setEntity(new UrlEncodedFormEntity(params,\n\t\t\t\t\t\t\tHTTP.UTF_8));\n\t\t\t\t\t// httpPost.setEntity(new UrlEncodedFormEntity(params));\n\n\t\t\t\t\t\n\t\t\t\t\tHttpResponse httpResponse = httpClient.execute(httpPost);\n\t\t\t\t\tHttpEntity httpEntity = httpResponse.getEntity();\n\t\t\t\t\tis = httpEntity.getContent();\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tlistener.connectError();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\n\t\t\t\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(is, \"iso-8859-1\"), 8);\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tString line = null;\n\t\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\t\tsb.append(line + \"n\");\n\t\t\t\t\t}\n\t\t\t\t\tis.close();\n\t\t\t\t\tjson = sb.toString();\n\t\t\t\t\t// Logger.e(json);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.e(\"Buffer Error\",\n\t\t\t\t\t\t\t\"Error converting result: \" + e.toString());\n\t\t\t\t\tlistener.connectError();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// try parse the string to a JSON object\n\t\t\t\ttry {\n\t\t\t\t\tLog.e(\"_responce\", json);\n\t\t\t\t\tjObj = new JSONObject(json);\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\n\t\t\t\t\tlistener.connectError();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistener.connectSucessfull(jObj);\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n public void run() {\n\n new Thread() {\n\n @Override\n public void run() {\n HttpGet requestForTest = new HttpGet(\"http://m.google.com\");\n try {\n new DefaultHttpClient().execute(requestForTest); // can last...\n responded = true;\n } catch (Exception e) {}\n }\n\n }.start();\n\n try {\n int waited = 0;\n while(!responded && (waited < timeout)) {\n sleep(100);\n if(!responded ) { \n waited += 100;\n }\n }\n } \n catch(InterruptedException e) {} // do nothing \n finally { \n if (!responded) { handler.sendEmptyMessage(0); } \n else { handler.sendEmptyMessage(1); }\n }\n\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n // if the url is null, return the response early;\n if (url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code \" + urlConnection.getResponseCode());\n }\n\n } catch (IOException e) {\n // TODO: Handle the exception\n Log.e(LOG_TAG, \"Problem retrieving from the url\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "@Override\n public void run() {\n HttpsURLConnection httpConn = null;\n\n // Read text input stream.\n InputStreamReader isReader = null;\n\n // Read text into buffer.\n BufferedReader bufReader = null;\n\n // Save server response text.\n StringBuffer readTextBuf = new StringBuffer();\n\n try {\n // Create a URL object use page url.\n URL url = new URL(reqUrl + \"?\" + reqParams);\n\n // Open http connection to web server.\n httpConn = (HttpsURLConnection) url.openConnection();\n\n // Set http request method to get.\n httpConn.setRequestMethod(\"GET\");\n httpConn.setRequestProperty(\"User-Agent\", \"\");\n httpConn.setRequestProperty(\"Content-Type\", \"application/json\");\n httpConn.setRequestProperty(\"Accept\", \"application/json\");\n\n httpConn.setDoInput(true);\n\n // Set connection timeout and read timeout value.\n httpConn.setConnectTimeout(10000);\n httpConn.setReadTimeout(10000);\n int statusCode = httpConn.getResponseCode();\n\n InputStream is = httpConn.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n\n String inputLine;\n StringBuilder sb = new StringBuilder();\n\n while ((inputLine = br.readLine()) != null) {\n sb.append(inputLine);\n }\n String result = sb.toString();\n DailyWeather dailyWeather = DailyWeather.getObjectFromString(result);\n if (dailyWeather != null) {\n listDaily[index] =dailyWeather;\n }\n\n br.close();\n httpConn.disconnect();\n\n } catch (MalformedURLException ex) {\n Log.e(LOG_TAG, ex.getMessage(), ex);\n } catch (Exception ex) {\n Log.e(LOG_TAG, ex.getMessage(), ex);\n ex.printStackTrace();\n\n } finally {\n try {\n if (getCount.incrementAndGet()==8){\n if (subscribe != null) {\n subscribe.onGetComplete();\n getCount.set(0);\n }\n }\n if (bufReader != null) {\n bufReader.close();\n bufReader = null;\n }\n if (isReader != null) {\n isReader.close();\n isReader = null;\n }\n if (httpConn != null) {\n httpConn.disconnect();\n httpConn = null;\n }\n } catch (IOException ex) {\n }\n\n }\n }", "private String executeRequest(String url) throws Exception {\n\t\t//final String METHODNAME = \"executeRequest\";\n\t\tString responseString = null;\n\t\t\n\t\tHttpURLConnection conn = null;\n\t\ttry{\n\t\t\tif(url != null){\n\t\t\t\tURL jsonURL = new URL(url);\n\t\t\t\tconn = (HttpURLConnection)jsonURL.openConnection();\n\t\t\t\tconn.setConnectTimeout(2000);\n\t\t\t\tconn.setReadTimeout(2000);\n\t\t\t\tconn.setRequestMethod(\"POST\");\n\t\t\t\t\n\t\t\t\tInputStream in = new BufferedInputStream(conn.getInputStream());\n\t\t\t\tresponseString = org.apache.commons.io.IOUtils.toString(in, \"UTF-8\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException io){\n\t\t\tio.printStackTrace();\n\t\t\tlog.severe(\"Failed calling json service IO Error: \" + url + \" - \" + io.getMessage());\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tlog.severe(\"Failed calling json service: \" + url + \" - \" + e.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.disconnect();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn responseString;\n\t}", "protected HttpUtils.HttpResult doInBackground() {\n\t\tHttpUtils.HttpResult result = null;\n if (context != null && !HttpUtils.isOnline(context)) {\n result = new HttpUtils.HttpResult();\n result.setEnvelope(context.getString(R.string.error_internet_not_connected));\n result.setCode(HttpUtils.HttpResult.BAD_REQUEST);\n result.setMessage(context.getString(R.string.error_connecting_message));\n return result;\n }\n\t\tif (RequestType.POST == requestType) {\n\t\t\tresult = HttpUtils.post(url, envelope, headers);\n\t\t} else if (RequestType.GET == requestType) {\n\t\t\tresult = HttpUtils.get(url, headers);\n\t\t}\n\t\treturn result;\n\t}", "protected JSONObject doInBackground(String...url){\n String MYURL = \" http://thevisitapp.com/api/destinations/read?identifiers=10011\";\n\n HttpRequest request = new HttpRequest();\n return request.getJSONFromUrl(MYURL);\n }", "public void getData (final String request, final APIResponseCallable callback) {\n\n Log.d(\"API\", \"Sending get request to URL (\" + SERVICE_URL + request + \")\");\n\n executorService.execute(new Runnable() {\n @Override\n public void run() {\n\n try {\n URL url = new URL(SERVICE_URL + request);\n // Open a connection using HttpURLConnection\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n\n con.setRequestMethod(\"GET\");\n con.setReadTimeout(10000);\n con.setConnectTimeout(10000);\n\n // Send\n InputStream in = con.getInputStream();\n\n con.connect();\n\n BufferedReader br = null;\n if (con.getResponseCode() != HttpURLConnection.HTTP_OK) {\n br = new BufferedReader(new InputStreamReader(con.getErrorStream()));\n\n } else {\n br = new BufferedReader(new InputStreamReader(con.getInputStream()));\n }\n\n JSONObject resp = bufferToJson(br);\n\n callback.setResponse(resp);\n callback.call();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n });\n }", "GetResponse() {\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\tString httpresponse = new String();\r\n\t\t\t// for (int i = 0; i < 10; i++) {\r\n\t\t\thttpresponse = HTTPGetInfo();\r\n\t\t\ttry {\r\n\t\t\t\tJSONparser(httpresponse);\r\n\t\t\t} catch (JSONException e) {\r\n\t\t\t\t// TODO 自动生成的 catch 块\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Override\n protected String doInBackground(Void... params) {\n Connector con = new Connector();\n return con.send(urlAddress, data);\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the posts JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n\n\n return jsonResponse;\n }", "public void doGet( )\n {\n \n }", "public static void main(String[] args) {\n HttpClient client = new HttpClient();\n\n // Create an instance of the method\n GetMethod method = new GetMethod(url);\n\n // Provide a custom retry handler is nessasery\n method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,\n new DefaultHttpClientRetryHandler(3, false));\n\n try {\n // execute the method\n int statusCode = client.execute(method);\n\n if (statusCode != HttpStatus.SC_OK) {\n System.err.println(\"Method failed: \"\n + method.getStatusLine());\n }\n\n // read response body\n byte[] responseBody = method.readResponseBody();\n\n // deal with the response\n System.out.println(new String(responseBody));\n } catch (HttpException e) {\n System.err.println(\"Fatal Protocol Violation: \"\n + e.getMessage());\n e.printStackTrace();\n\n } catch (IOException e) {\n System.err.println(\"Fatal Transport Error: \"\n + e.getMessage());\n e.printStackTrace();\n } finally {\n // release the connection\n method.releaseConnection();\n }\n }", "@Override\n protected Object doInBackground(Object[] objects)\n {\n URL url = null; \n\n try\n {\n url = new URL(requestUrl);\n }\n catch (MalformedURLException e)\n {\n e.printStackTrace();\n }\n\n // Create and open HTTP connection\n HttpURLConnection connection = null;\n try\n {\n connection = (HttpURLConnection) url.openConnection();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n\n try\n {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n StringBuilder stringBuilder = new StringBuilder();\n String line;\n\n while ((line = bufferedReader.readLine()) != null)\n {\n stringBuilder.append(line);\n }\n\n bufferedReader.close();\n\n return stringBuilder.toString();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n connection.disconnect();\n }\n\n return null;\n }", "public static int doGet(String id, Result r) {\n r.setValue(\"\");\n String response = \"\";\n HttpURLConnection conn;\n int status = 0;\n try {\n // pass the name on the URL line\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\" + \"//\"+id);\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n // tell the server what format we want back\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // wait for response\n status = conn.getResponseCode();\n // If things went poorly, don't try to read any response, just return.\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n String output = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output;\n }\n conn.disconnect(); \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // return value from server\n // set the response object\n r.setValue(response);\n // return HTTP status to caller\n return status;\n }", "public Response execute(final NetworkHelper networkHelper)\n\t\t\tthrows IOException {\n\t\tnetworkHelper.connListener.onRequest(this);\n\t\tHttpURLConnection urlConnection;\n\t\tif (proxy != null) urlConnection = networkHelper.openConnection(url,\n\t\t\t\tproxy);\n\t\telse\n\t\t\turlConnection = networkHelper.openConnection(url);\n\t\turlConnection.setRequestMethod(method.name());\n\t\turlConnection.setConnectTimeout(connectTimeout > -1 ? connectTimeout\n\t\t\t\t: networkHelper.defaultConnectTimeout);\n\t\turlConnection.setReadTimeout(readTimeout > -1 ? readTimeout\n\t\t\t\t: networkHelper.defaultReadTimout);\n\n\t\tif (!cookies.isEmpty()) CookieManager\n\t\t\t\t.setCookies(urlConnection, cookies);\n\t\tif (useCookies) networkHelper.cookieManager.setupCookies(urlConnection);\n\n\t\turlConnection.setInstanceFollowRedirects(followRedirects);\n\n\t\tMap<String, String> headers = new HashMap<String, String>(\n\t\t\t\tnetworkHelper.defaultHeaderMap);\n\t\theaders.putAll(headerMap);\n\t\tsetupHeaders(urlConnection, headers);\n\n\t\tswitch (method) {\n\t\tcase POST:\n\t\tcase PUT:\n\t\t\tif (urlConnection.getRequestProperty(\"Content-Type\") == null) {\n\t\t\t\turlConnection.setRequestProperty(\"Content-Type\",\n\t\t\t\t\t\t\"application/x-www-form-urlencoded\");\n\t\t\t}\n\t\t\tif (payload == null) break;\n\t\t\turlConnection.setDoOutput(true);\n\t\t\turlConnection.setFixedLengthStreamingMode(payload.length);\n\t\t\tfinal OutputStream output = urlConnection.getOutputStream();\n\t\t\toutput.write(payload);\n\t\t\toutput.close();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\tInputStream inputStream = null;\n\t\ttry {\n\t\t\tfinal URL url = urlConnection.getURL();\n\t\t\tnetworkHelper.log.info(\"Request {}:{}://{}{}\", method,\n\t\t\t\t\turl.getProtocol(), url.getAuthority(), url.getPath());\n\t\t\turlConnection.connect();\n\t\t\tinputStream = NetworkHelper.getInputStream(urlConnection);\n\t\t\tnetworkHelper.log.info(\"Response {}\",\n\t\t\t\t\turlConnection.getResponseMessage());\n\t\t} catch (final IOException e) {\n\t\t\tfinal int statusCode = urlConnection.getResponseCode();\n\t\t\tif (!ignoreErrorChecks && statusCode >= 400) {\n\t\t\t\tnetworkHelper.log.info(\"Response {}\",\n\t\t\t\t\t\turlConnection.getResponseMessage());\n\t\t\t\tinputStream = NetworkHelper.getErrorStream(urlConnection);\n\t\t\t} else\n\t\t\t\tthrow e;\n\t\t} finally {\n\t\t\tif (useCookies) networkHelper.cookieManager\n\t\t\t\t\t.putCookieList(CookieManager.getCookies(urlConnection));\n\t\t\tnetworkHelper.connListener.onFinish(url, urlConnection);\n\t\t}\n\n\t\treturn getResponse(urlConnection, inputStream);\n\n\t}", "ResponseEntity execute();", "@Override\n\tprotected String doInBackground(Void... params) {\n\t\tHttpParams httpParams = new BasicHttpParams();\n\t\tHttpConnectionParams.setSoTimeout(httpParams, SOCKET_TIMEOUT);\n\t\tHttpConnectionParams.setConnectionTimeout(httpParams, CONNECTION_TIMEOUT);\n\n\t\tAbstractHttpClient client = HttpClientFactory.getInstance();\n\t\tclient.setParams(httpParams);\n\t\tString callUrl = PATH + \"?element=\"+name+\"&cid=\"+category.getId()+\"&qtty=\"+quantity;\n\t\t\n\t\tLog.i(\"Lists\", callUrl);\n\t\tHttpGet request = new HttpGet(callUrl);\n\n\t\ttry {\n\t\t\tHttpResponse response = client.execute(request);\n\n\t\t\tStatusLine status = response.getStatusLine();\n\t\t\tif (status.getStatusCode() != HttpStatus.SC_OK) {\n\t\t\t\texception = new IOException(\"Invalid response from server: \"\n\t\t\t\t\t\t+ status.toString());\n\t\t\t} else {\n\t\t\t\tHttpEntity entity = response.getEntity();\n\t\t\t\tInputStream inputStream = entity.getContent();\n\n\t\t\t\tByteArrayOutputStream content = new ByteArrayOutputStream();\n\n\t\t\t\t// Read response into a buffered stream\n\t\t\t\tint readBytes = 0;\n\t\t\t\tbyte[] sBuffer = new byte[BUFFER_SIZE];\n\t\t\t\twhile ((readBytes = inputStream.read(sBuffer)) != -1) {\n\t\t\t\t\tcontent.write(sBuffer, 0, readBytes);\n\t\t\t\t}\n\n\t\t\t\t// Return result from buffered stream\n\t\t\t\tString dataAsString = new String(content.toByteArray(), Charset.forName(\"ISO-8859-1\"));\n\n\n\t\t\t\tLog.d(\"Json\", dataAsString);\n\t\t\t\treturn dataAsString;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\texception = e;\n\t\t}\n\t\treturn null;\n\t}", "public void fetchDatafromServer(String type) {\n final Home baseHomeActivity = (Home) getActivity();\r\n\r\n JsonArrayRequest jsonArrayRequest =\r\n new JsonArrayRequest(\r\n Request.Method.GET, serverURL + \"/\" + type + \"/\", null, this, this) {\r\n @Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n HashMap<String, String> headers = new HashMap<String, String>();\r\n headers.put(\"Authorization\", \"Token \" + baseHomeActivity.mToken);\r\n return headers;\r\n }\r\n };\r\n baseHomeActivity.mQueue.add(jsonArrayRequest);\r\n }", "Response get(URL target, QueryInput input, List<? extends HttpAuthentication> auth)\n throws IOException, DataRetrievalException;", "public static void getFlightSearchData() {\n\t HttpClient httpclient =HttpClientBuilder.create().build();\r\n//\t String url = \"http://finance.yahoo.com/q/hp?s=005930.KS+Historical+Prices\";\r\n\t String url =\"https://www.rome2rio.com/api/json/GetFlightPricesAsyncProgress?id=http%3A%2F%2Fpartners.api.skyscanner.net%2Fapiservices%2Fpricing%2Fuk1%2Fv1.0%2Feca848208a19428887cb0f9acd45798f_ecilpojl_5390203AB08027B40F6AC23E253711B9%20ICN%20OKA%2CICN%2COKA%2CSkyScanner%2Chttp%3A%2F%2Fwww.skyscanner.com%2F&version=201605050453&\";\r\n//\t String url =\"https://www.rome2rio.com/api/json/GetFlightPricesAsyncStart?origins=ICN&destinations=OKA&outDate=5-12-2016&retDate=5-19-2016&adults=1&children=0&infants=0&cabin=e&currency=KRW&version=201605050453&\";\r\n\t try\r\n\t { \r\n\t \tHttpGet request = new HttpGet(url);\r\n\t\t\tHttpResponse res = httpclient.execute(request);\r\n/*\t \t// Specify values for path parameters (shown as {...}) \r\n\t URIBuilder builder = new URIBuilder(\"http://evaluate.rome2rio.com/api/1.2/json/Search/\");\r\n\t \r\n\t // Specify your developer key \r\n\t builder.setParameter(\"key\", \"Z2CA71LM\"); \r\n\t // Specify values for the following required parameters \r\n\t builder.setParameter(\"oName\", \"ICN\"); \r\n\t builder.setParameter(\"dName\", \"LAX\");\r\n//\t builder.setParameter(\"oPos\", \"New York Kennedy\");\r\n//\t builder.setParameter(\"dPos\", \"40.64441,-73.78275\");\r\n//\t builder.setParameter(\"flags\", \"0x000FFFF0\");\r\n//\t builder.setParameter(\"flags\", \"0x000FFFFE\");\r\n\t builder.setParameter(\"flags\", \"0x000FFFFC\");\r\n\t \r\n//\t URI uri = builder.build(); \r\n\t HttpGet request = new HttpGet(uri); \r\n\t HttpResponse response = httpclient.execute(request); \r\n*/\t \r\n\t\t\tHttpEntity entity = res.getEntity();\r\n\t if (entity != null) { \r\n\t System.out.println(\"EntityUtil:\" + EntityUtils.toString(entity)); \r\n\t }\r\n//\t return EntityUtils.toString(entity);\r\n\t\t\tlogger.info(\"aaa: {}\", entity.toString());\r\n\t }\r\n\t catch(Exception e) \r\n\t { \r\n\t System.out.println(e.getMessage()); \r\n//\t return null;\r\n\t } \r\n\t \r\n\t}", "private HttpResponse httpRequest(URL url, List<Header> headers, String method) throws IOException {\n\n BufferedReader streamReader;\n\n HttpURLConnection connection = setupConnection(url,headers,method);\n connection.setDoOutput(false);\n connection.connect();\n\n final int httpResponseCode = connection.getResponseCode();\n final List<Header> responseHeaders = Header.getHeaders(connection.getHeaderFields());\n\n try {\n streamReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n }\n catch (IOException e) {\n streamReader = new BufferedReader(new InputStreamReader(connection.getErrorStream()));\n }\n\n StringBuilder sb = new StringBuilder();\n String currentLine;\n\n while((currentLine = streamReader.readLine()) != null) {\n sb.append(currentLine).append(\"\\n\");\n }\n\n connection.disconnect();\n\n try {\n Objects.requireNonNull(streamReader).close();\n }\n catch (IOException ignored){ }\n\n return new HttpResponse(responseHeaders,httpResponseCode,sb.toString().trim());\n }", "private void doGetFromWebsite(HttpServletRequest request, HttpServletResponse response) {\n\t\tString PID = request.getParameter(\"id\");\n\t\tString doctor = request.getParameter(\"doctor\");\n\t\tString reservationType = request.getParameter(\"reservationType\");\n\t\t\n\t\tif(reservationType.equals(\"0\"))\n\t\t\tconnector.writeReservationInformation(PID, \"jason\", \"\");\n\t\telse{\n\t\t\tconnector.writeReservationInformation(PID, \"jason\", doctor);\n\t\t}\n\t\tVector vector = connector.queryReservationInformation(PID);\n\t\tWaitInformation info = new WaitInformation();\n\t\t//可能门诊诊间还没有生成排队信息,如果是这样就先默认几个值\n\t\tif(vector == null){\n\t\t\tinfo.setPeopleCount(0);\n\t\t\tinfo.setSucceed(true);\n\t\t\tinfo.setWaitTime(0);\n\t\t}else{\n\t\t\tint peopleCount = (Integer)vector.get(0);\n\t\t\tinfo.setPeopleCount(peopleCount);\n\t\t\tinfo.setSucceed(true);\n\t\t\t//因为门诊诊间没有提供预计等待时间的功能,所以这里我们假设等待时间是病人数*5\n\t\t\tinfo.setWaitTime(peopleCount * 5);\n\t\t}\n\t\t\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"show.jsp\");\n\t\trequest.setAttribute(\"data\", info);\n\t\ttry {\n\t\t\tdispatcher.forward(request, response);\n\t\t} catch (ServletException 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}", "public IOgcResponse executeRequest(Map<String, String> params);", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the earthquake JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // Closing the input stream could throw an IOException, which is why\n // the makeHttpRequest(URL url) method signature specifies than an IOException\n // could be thrown.\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "public static void main(String[] args) {\n\n Request getReq = new Request();\n\n try {\n// getReq.sendReq(\"127.0.0.1\", \"/\", 80);\n getReq.sendReq(\"127.0.0.1\", \"/\", 40289);\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n }", "Object getAll(WebRequest webRequest, HttpServletResponse response, Model model) throws Exception;", "@Override\n public void run() {\n URL url;\n HttpURLConnection ur1Connection = null; //HttpsURLConnection aiso avaitab1e\n try {\n\n //String service = reqUrl; // call rhymebrain\n String service = \"https://rhymebrain.com/talk?\"; // call rhymebrain\n //String parm = \"getRhymes&word=\" + word;\n //String queryString = URLEncoder.encode(parm, \"UTF-8\");\n String queryString = \"getRhymes&word=\" + word + \"&maxResults=\" + String.valueOf(MAX_RESULTS);\n //try to process url and connect to it\n url = new URL( service + \"function=\" + queryString);\n Log.d(\"which URL: \", String.valueOf(url));\n ur1Connection = (HttpURLConnection)url.openConnection();\n ur1Connection.setRequestMethod(\"GET\");\n\n // Set connection timeout and read timeout value.\n ur1Connection.setConnectTimeout(70000);\n ur1Connection.setReadTimeout(70000);\n\n //create an input stream and stream reader from the connection\n InputStream inputStream = ur1Connection.getInputStream();\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n\n //get some data from the stream\n int data = inputStreamReader.read();\n //string for collecting all output\n output = \"\";\n //if the stream is not empty\n while(data != -1) {\n //turn what we read into a char and print it\n char current = (char) data;\n output += current;\n data = inputStreamReader.read();\n\n //Log.d(\"Network\", output);\n }\n Log.d(\"Network\", output);\n parseJSON(output);\n int i =0;\n }catch (Exception e) {\n Log.d( \"Network\", e.toString());\n }finally {\n if (ur1Connection != null) {\n ur1Connection.disconnect();\n ur1Connection = null;\n }\n }\n }", "private static String makeHTTPRequest(URL url) throws IOException {\n\n // Create an empty json string\n String jsonResponse = \"\";\n\n //IF url is null, return early\n if (url == null) {\n return jsonResponse;\n }\n\n // Create an Http url connection, and an input stream, making both null for now\n HttpURLConnection connection = null;\n InputStream inputStream = null;\n\n try {\n\n // Try to open a connection on the url, request that we GET info from the connection,\n // Set read and connect timeouts, and connect\n connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setReadTimeout(10000 /*Milliseconds*/);\n connection.setConnectTimeout(15000 /*Milliseconds*/);\n connection.connect();\n\n // If response code is 200 (aka, working), then get and read from the input stream\n if (connection.getResponseCode() == 200) {\n\n Log.v(LOG_TAG, \"Response code is 200: Aka, everything is working great\");\n inputStream = connection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n\n } else {\n // if response code is not 200, Log error message\n Log.v(LOG_TAG, \"Error Response Code: \" + connection.getResponseCode());\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error making http request: \" + e);\n } finally {\n // If connection and inputStream are NOT null, close and disconnect them\n if (connection != null) {\n connection.disconnect();\n }\n\n if (inputStream != null) {\n // Closing the input stream could throw an IOException, which is why\n // the makeHttpRequest(URL url) method signature specifies that an IOException\n // could be thrown.\n inputStream.close();\n }\n }\n\n return jsonResponse;\n }", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected Void doInBackground(Void... arg0) {\n HttpURLConnection urlConnection = null;\n\n try {\n URL data = new URL(url);\n urlConnection = (HttpURLConnection) data.openConnection();\n\n int responseCode = urlConnection.getResponseCode();\n\n if (responseCode == HttpURLConnection.HTTP_OK) {\n\n readJsonStream(urlConnection.getInputStream());\n }\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n urlConnection.disconnect();\n return null;\n }", "@Override\n\tpublic void run() {\n\t\tRequestBody body = RequestBody.create(this.jsonType, this.contents);\n\t\tRequest request = new Request.Builder()\n\t\t\t.url(this.serverURL)\n\t\t\t.post(body)\n\t\t\t.build();\n\t\t\n\t\ttry {\n\t\t\tResponse response = client.newCall(request).execute();\n\t\t\tString str = response.body().string();\n\t\t\t//logger.log(Level.INFO, \n\t\t\t//\t\tString.format(\"DEBUG postCallInfoToServerTask succeed: %s\", str));\n\t\t} catch (IOException e) {\n\t\t\tNetProphetLogger.logError(\"PostCallInfoTask.run\", e.toString());\n\t\t}\n\t}", "String execute(HttpServletRequest req, HttpServletResponse res);", "public static byte[] loadData(String url) throws Exception {\n URL urlObject = new URL(url);\n HttpURLConnection connection = null;\n BufferedInputStream in = null;\n try {\n connection = (HttpURLConnection) urlObject.openConnection();\n connection.setDoInput(true);\n connection.setRequestMethod(\"GET\");\n connection.setConnectTimeout(5000);\n\n if (connection.getResponseCode()==200){\n in = new BufferedInputStream(connection.getInputStream());\n //Log.i(\"loadDataTask\",new String(streamToByte(in)));\n // json = new String(streamToByte(in));\n //return json;\n\n return streamToByte(in);\n }\n } catch (Exception e) {\n e.printStackTrace();\n throw new Exception();\n }finally {\n if (in!=null){\n in.close();\n }\n if (connection!=null)\n connection.disconnect();\n }\n return null;\n }", "private HttpResponse executeHttpGet(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpGet httprequest = new HttpGet(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse httpresponse = client.execute(httprequest);\r\n\t\tint statusCode = httpresponse.getStatusLine().getStatusCode();\r\n\t\tSystem.out.println(statusCode + \":\" + httpresponse.getStatusLine().getReasonPhrase());\r\n\t\treturn httpresponse;\r\n\t}", "public void run() {\n //Request the HTML\n try {\n HttpClient Client = new DefaultHttpClient();\n //String URL = \"http://10.0.2.2:8888/url\";\n String URL = \"http://\" + ipAddress + \":8888/hello\";\n String responseJsonString = \"\";\n\n // Create Request to server and get response\n HttpGet httpget = new HttpGet(URL);\n ResponseHandler<String> responseHandler = new BasicResponseHandler();\n responseJsonString = Client.execute(httpget, responseHandler);\n\n JSONObject responseJSON = new JSONObject(responseJsonString);\n // Show response on activity\n speakOut(responseJSON.getString(\"speechText\"));\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "@Override\n\t\tprotected String doInBackground(String... url) {\n\t\t\tString output = \"\";\n\t\t\tHttpClient httpclient = new DefaultHttpClient();\n\t\t\tHttpResponse response;\n\t\t\ttry {\n\t\t\t\tresponse = httpclient.execute(new HttpGet(url[0]));\n\t\t\t\tStatusLine statusLine = response.getStatusLine();\n\t\t\t\tif (statusLine.getStatusCode() == HttpStatus.SC_OK) {\n\t\t\t\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\t\t\t\tresponse.getEntity().writeTo(out);\n\t\t\t\t\tout.close();\n\t\t\t\t\toutput = out.toString();\n\t\t\t\t} else {\n\t\t\t\t\t// Close the connection\n\t\t\t\t\tresponse.getEntity().getContent().close();\n\t\t\t\t\tthrow new IOException(statusLine.getReasonPhrase());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(\"GetJsonTask\",\n\t\t\t\t\t\t\"Could not get the data. This is the error message: \"\n\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tjson = output;\n\t\t\treturn output;\n\t\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //Setting up response\n response.setContentType(\"application/json\");\n response.setCharacterEncoding(\"UTF-8\");\n response.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n PrintWriter out = response.getWriter();\n\n //Check if data is cached\n if(isCached) {\n out.print(convertToJSON(newsItems));\n out.flush();\n }\n //Otherwise scrape data\n else {\n //Scrape data from Time.com and build NewsItem list\n scrapeUrl();\n //Sort each NewsItem by its corresponding articles published time\n newsItems.sort(Comparator.comparing(NewsItem::getPublishedDate));\n //Reverse list to have the most recent NewsItem first\n Collections.reverse(newsItems);\n //Set flag for next request to use cached data\n isCached = true;\n out.print(convertToJSON(newsItems));\n out.flush();\n }\n }", "public static String sendGetRequest(String addr,String[] head)\n\t{\n\t\tString response = null;\n\t\n\t\ttry\n\t\t{\n\t\t\tURL url = new URL(addr);\n\t\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\t\t\t//String encoding = new sun.misc.BASE64Encoder().encode(\"username \t assword\".getBytes());\n\t\t\t//conn.setRequestProperty (\"Authorization\", \"Basic \" + encoding);\n\t\t\tif(head!=null)\n {\n\t for(int i=0;i<head.length;i=i+2)\n\t {\n\t \tconnection.setRequestProperty(head[i], head[i+1]);\n\t \t\n\t }\n }\n\t\t\tconnection.setRequestMethod(\"GET\");\n\t\t\n\t\t\tconnection.connect();\n\t\t\tInputStream in = connection.getInputStream();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\t\tconnection.disconnect();\n\t\t\tresponse = reader.readLine();\n\t\t\t//System.out.println(text);\n\t\t\n\t\t\t\n\t\t\t}catch(IOException ex)\n\t\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tSystem.out.println(\"made it here\");\n\t\t}\n\treturn response;\n\t\n\t}", "@Override\r\n\tpublic void onEntry(StateChangeEvent event) {\n\t\tSystem.out.println(\"starting HTTP request\");\r\n\t\tHttpGet request = new HttpGet(URL);\r\n\r\n\t\tHttpAsyncClientManager.getInstance().execute(request, new FutureCallback<HttpResponse>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void cancelled() {\r\n\t\t\t\tSystem.out.println(\"request cancelled\");\r\n\t\t\t\tchangeStateInNewThread(\"fail\", null);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void completed(HttpResponse response) {\r\n\t\t\t\tSystem.out.println(\"request success\");\r\n\t\t\t\tchangeStateInNewThread(\"success\", response);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void failed(Exception e) {\r\n\t\t\t\tSystem.out.println(\"request failed\");\r\n\t\t\t\tchangeStateInNewThread(\"fail\", e);\r\n\t\t\t}\r\n\r\n\t\t\tprivate void changeStateInNewThread(final String action, final Object args) {\r\n\t\t\t\t// change the state in new thread, since we don't want to use\r\n\t\t\t\t// HttpAsynceClient I/O dispatcher thread for too long\r\n\t\t\t\tExecutorManager.getInstance().execute(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tchangeState(action, args);\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}", "private void processRequest() throws Exception {\n\t\tString server_url = \"http://localhost:\" + socket.getPort() + \"/\";\n\t\tSystem.out.println(\"server \" + server_url);\n\t\tURL url = new URL(server_url);\n\t\tSystem.out.println(\"URL \" + url);\n\t\tInputStream in = socket.getInputStream();\n\t\tDataOutputStream op = new DataOutputStream(socket.getOutputStream());\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\t\tString requestLine = br.readLine();\n\t\tSystem.out.println();\n\t\t// information from the connection objects,\n\t\tSystem.out.println(\"------------------------------------------\");\n\t\tSystem.out.println(\"Information from the connection objects\");\n\t\tSystem.out.println(\"------------------------------------------\");\n\t\tSystem.out.println(\"RequestLine \" + requestLine);\n\t\tSystem.out.println(\"Connection received from \" + socket.getInetAddress().getHostName());\n\t\tSystem.out.println(\"Port : \" + socket.getPort());\n\t\tSystem.out.println(\"Protocol : \" + url.getProtocol());\n\t\tSystem.out.println(\"TCP No Delay : \" + socket.getTcpNoDelay());\n\t\tSystem.out.println(\"Timeout : \" + socket.getSoTimeout());\n\t\tSystem.out.println(\"------------------------------------------\");\n\t\tSystem.out.println();\n\t\tString headerLine = null;\n\t\twhile ((headerLine = br.readLine()).length() != 0) {\n\t\t\tSystem.out.println(headerLine);\n\t\t}\n // Creating the StringTokenizer and passing requestline in constructor .\n\t\t//tokens object split the requestline and create the token \n\t\tStringTokenizer tokens = new StringTokenizer(requestLine);\n\n\t\ttokens.nextToken(); // skip over the method, which should be “GET”\n\t\tString fileName = tokens.nextToken();\n\t\t// Prepend a “.” so that file request is within the current directory.\n\t\tfileName = \".\" + fileName;\n\t\tSystem.out.println(\"FileName GET\" + fileName);\n\t\t// Open the requested file.\n\t\tFileInputStream fis = null;\n\t\tboolean fileExists = true;\n\t\ttry {\n\t\t\tfis = new FileInputStream(fileName);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tfileExists = false;\n\t\t}\n\t\t// Construct the response message.\n\t\tString statusLine = null;\n\t\tString contentTypeLine = null;\n\t\tString entityBody = null;\n\t\t//Check file exist in directory or not\n\t\tif (fileExists) {\n\t\t\tstatusLine = \"200 OK \";\n\t\t\tcontentTypeLine = \"Content-Type:\" + contentType(fileName) + CRLF;\n\t\t} else {\n\t\t\tstatusLine = \"HTTP/1.1 404 Not Found:\";\n\t\t\tcontentTypeLine = \"Content-Type: text/html\" + CRLF;\n\t\t\tentityBody = \"<HTML>\" + \"<HEAD> <TITLE> Not Found</TITLE></HEAD>\" + \"<BODY> Not Found</BODY><HTML>\";\n\t\t}\n\t\t// Send the status line.\n\t\top.writeBytes(statusLine);\n\t\top.writeBytes(CRLF);\n\t\t// Send the content type line.\n\t\top.writeBytes(contentTypeLine);\n\n\t\t// Send a blank line to indicate the end of the header lines.\n\t\top.writeBytes(CRLF);\n\t\t// Send the entity body.\n\t\tif (fileExists) {\n\n\t\t\tsendBytes(fis, op);\n\n\t\t\tfis.close();\n\t\t} else {\n\t\t\top.writeBytes(entityBody);\n\t\t}\n//close the open objects\n\t\top.close();\n\t\tbr.close();\n\t\tsocket.close();\n\n\t}" ]
[ "0.6995393", "0.666769", "0.66128325", "0.65245897", "0.64436054", "0.64303863", "0.6373281", "0.63606644", "0.63248247", "0.6299468", "0.62813616", "0.6273981", "0.62692827", "0.623031", "0.6228675", "0.61696714", "0.6159802", "0.6159711", "0.60822344", "0.6074289", "0.6056206", "0.60438114", "0.60215175", "0.60049146", "0.60046595", "0.600112", "0.59827876", "0.5981031", "0.597856", "0.5976524", "0.5973274", "0.5973082", "0.5960656", "0.5957585", "0.59313583", "0.59105265", "0.5906377", "0.5901375", "0.5881369", "0.58748066", "0.5865921", "0.58653027", "0.5861931", "0.58606815", "0.58602273", "0.58527195", "0.5851066", "0.5848118", "0.5825243", "0.58124304", "0.5811504", "0.580945", "0.5808671", "0.58083063", "0.5807737", "0.5807032", "0.5793535", "0.5793481", "0.57884365", "0.5771008", "0.5769389", "0.57613117", "0.5757629", "0.57489663", "0.5748615", "0.573818", "0.5737051", "0.573387", "0.5730478", "0.5714408", "0.5713328", "0.57129115", "0.5712517", "0.57083553", "0.5707224", "0.57056445", "0.570031", "0.5683464", "0.5674726", "0.5674422", "0.5669605", "0.5668978", "0.56674486", "0.56532097", "0.5638942", "0.563259", "0.5627784", "0.5620336", "0.5618341", "0.5617898", "0.561556", "0.5604047", "0.55952173", "0.558996", "0.55896723", "0.55851406", "0.5585085", "0.55850255", "0.55812716", "0.55811024", "0.5580254" ]
0.0
-1
formating date output for filename
public static void readMemory() { SimpleDateFormat dateFormat = new SimpleDateFormat("dd_MM_yyyy_hh_mm"); //getting the running container's id HashMap<String,String> hMap = ContainerUtil.getActiveContainers(); //getting the process IDs for the running conteiners File[] directories = new File("/proc").listFiles(File::isDirectory); for(Map.Entry<String,String> entry : hMap.entrySet()){ //getting start time of mem copy Date startDate = new Date(); //pausing the container to get its memory ContainerUtil.pauseContainer( entry.getKey() ); for(File dir : directories) { if(NumberUtils.isNumber(dir.getName())){ String filename = "/proc/" + dir.getName() + "/cgroup"; //finding the cgroup file for the containerId try(Stream<String> stream = Files.lines(Paths.get(filename))){ if(stream.filter(line -> line.indexOf(entry.getKey()) > 0 ).findFirst().isPresent()){ //change this point to save file to a mapped directory String outFile = "./" + entry.getKey() + "-" + entry.getValue() + "-" + dir.getName() + "-" + dateFormat.format(new Date()) + ".mem"; String fileSource = "/proc/" + dir.getName() + "/numa_maps"; //writing memory to file writeMemToFile(outFile, fileSource); } } catch (IOException e){ System.out.println(e.getMessage()); } } } //unpausing the container after memory collection ContainerUtil.unpauseContainer( entry.getKey() ); //calculating total time for mem copy long seconds = (new Date().getTime() - startDate.getTime()); System.out.println(" copy time: " + seconds); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFileFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\"));\n }", "public String fileFormat() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"D | \" + (super.isDone ? \"1 | \" : \"0 | \") + this.description + \" | \" + df.format(this.date);\n }", "public static String getDateFormatForFileName() {\n final DateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HH-mm-ss\");\n return sdf.format(new Date());\n }", "private String setFileName() {\n Calendar c = Calendar.getInstance();\n\n String LOG = \"\";\n\n LOG += c.get(Calendar.YEAR);\n\n if (c.get(Calendar.MONTH) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.MONTH) + 1;\n\n if (c.get(Calendar.DATE) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.DATE);\n\n if (c.get(Calendar.HOUR_OF_DAY) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.HOUR_OF_DAY);\n\n if (c.get(Calendar.MINUTE) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.MINUTE);\n\n LOG += \".csv\";\n\n return LOG;\n }", "public String format (Date date , String dateFormat) ;", "private String formatDate(final Date date) {\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(date);\r\n\r\n\t\tfinal String dayOfMonth = formatDayOfMonth(calendar);\r\n\t\tfinal String month = formatMonth(calendar);\r\n\t\tfinal String year = String.valueOf(calendar.get(Calendar.YEAR));\r\n\r\n\t\treturn String.format(\"%s/%s/%s\", year, month, dayOfMonth);\r\n\t}", "public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}", "public static void main(String[] args) {\n\t\tLocalDate today=LocalDate.now();\n\t\t\n\t\tDateTimeFormatter dtf=DateTimeFormatter.ofPattern(\"YYYY/MM/DD\");\n\t\tDateTimeFormatter dtf1=DateTimeFormatter.ofPattern(\"YYYY MM DD\");\n\t\t\n\t\tDateTimeFormatter dtfull=DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL);\n\t\tDateTimeFormatter dtm=DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM);\n\t\tDateTimeFormatter dts=DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\n\t\t\n\t\t\n\t\tString afterformat=today.format(dtf);\n\t\tSystem.out.println(afterformat);\n\t\tString afterformat1=today.format(dtf1);\n\t\tSystem.out.println(afterformat1);\n\t\tString fd=today.format(dtfull);\n\t\tSystem.out.println(fd);\n\t\tString md=today.format(dtm);\n\t\tSystem.out.println(md);\n\t\tString sd=today.format(dts);\n\t\tSystem.out.println(sd);\n\t\t\n\t\t\n\n\t}", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "public static void main(String[] args) throws Exception{\n\t\t\t Date currentTime = new Date(95,7,6);\n\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MMM/YYYY\");\n\t\t\t String dateString = formatter.format(currentTime);\n\t\t\t System.out.println(dateString);\n\t\t\t \n\t\t}", "private String getFileName()\r\n {\r\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd__HH_mm\");\r\n \r\n String ret = new String();\r\n ret += preferences.getPreference(UserPreferences.SAVE_LOCATION_PROP);\r\n ret += format.format(new Date());\r\n \r\n String notationStr = notation.getText().trim();\r\n if (!notationStr.isEmpty()) \r\n {\r\n ret += \"__\" + notationStr.replaceAll(\" \\t/\\\\:\", \"_\");\r\n }\r\n \r\n ret += \".csv\";\r\n \r\n return ret;\r\n }", "public static void main(String[] args) {\n String s = FormatFecha.format(FormatFecha.FMT_ISO, new Date());\n System.out.println(\"Fecha: \" + s);\n //\"10/6/2010\" 2010-06-10\n }", "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }", "public String getFileFormattedDateTime() {\n return this.optionalTime.map(x -> getFileFormattedDate() + \" | \" + x.format(DateTimeFormatter.ofPattern(\n \"HHmm\"))).orElse(getFileFormattedDate());\n }", "public static void dateFormat() {\n }", "public static String formatFileNameMonth(String time) {\n Date tempTime = DateUtils.parseStringToDateYYMMDD(time);\n DateFormat format = new SimpleDateFormat(FILENAME_MONTH);\n return format.format(tempTime);\n }", "@Override\n public String toString() {\n String outputDate = this.date.format(outputDateFormat);\n return \"[D]\" + super.toString() + \" (by: \" + outputDate + \")\";\n }", "private static String getDateStr() {\n\t\tDate date = Calendar.getInstance().getTime();\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMddyyy\");\n\t\tString dateStr = dateFormat.format(date);\n\t\treturn dateStr;\n\t}", "String formatDateCondition(Date date);", "private String formatDate(String date)\n\t{\n\t\tif(date == null || date.isEmpty())\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString[] dateSplit = date.split(\"/\");\n\t\t\tif(dateSplit.length != 3)\n\t\t\t{\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn getMonthName(dateSplit[0]) + \" \"+ dateSplit[1]+\", \"+ dateSplit[2];\n\t\t\t}\n\t\t}\n\t}", "public String formatDate (Date date){\r\n\t\tDateFormat df = new SimpleDateFormat(\"EEE, d MMM yyyy HH:mm:ss z\", Locale.ENGLISH);\r\n\t\treturn df.format(date);\r\n\t}", "public String getPrintFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }", "@Override\n public String typeString() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n String formatDateTime = this.date.format(formatter);\n return \"event\" + Task.SEP + super.toSaveInFile(\"/at \" + formatDateTime);\n }", "private static void formatDate (XmlDoc.Element date) throws Throwable {\n\t\tString in = date.value();\n\t\tString out = DateUtil.convertDateString(in, \"dd-MMM-yyyy\", \"yyyy-MM-dd\");\n\t\tdate.setValue(out);\n\t}", "private static void printDataFormat(ArrayList<Person> p) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter path for output file\");\n\t\tString input = scan.next();\n\t\tboolean again = true;\n\t\twhile (again) {\n\t\t\tagain = false;\n\t\t\ttry (PrintWriter out = new PrintWriter(input, \"ASCII\")) {\n\t\t\t\tfor (int i = 0; i < p.size(); i++) {\n\t\t\t\t\tDateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyyMMdd\", Locale.ENGLISH);\n\t\t\t\t\tDateTimeFormatter dtf2 = DateTimeFormatter.ofPattern(\"MMMM dd, yyyy\", Locale.ENGLISH);\n\t\t\t\t\tLocalDate ld = LocalDate.parse(p.get(i).getStartDate(), dtf);\n\t\t\t\t\tString month_name = dtf2.format(ld);\n\n\t\t\t\t\tout.println(i + 1 + \"\\n\" + p.get(i).getFirstName() + \" \" + p.get(i).getLastName() + \", \"\n\t\t\t\t\t\t\t+ month_name + \"\\n\" + p.get(i).getAddress() + \", \" + p.get(i).getAptNum() + \",\\n\"\n\t\t\t\t\t\t\t+ p.get(i).getCity() + \", \" + p.get(i).getState() + \"\\n\" + p.get(i).getCountry() + \", \"\n\t\t\t\t\t\t\t+ p.get(i).getZipCode());\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException | UnsupportedEncodingException e) {\n\t\t\t\tagain = true;\n\t\t\t\tSystem.out.println(\"Could not create file, enter a correct file path\");\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}", "public static String formatDate(Date date) {\n\t\tString newstring = new SimpleDateFormat(\"MM-dd-yyyy\").format(date);\n\t\treturn newstring;\n\t}", "private static String buildFileName(int exportMode, String currentTimestamp)\n {\n String fileNamePrefix;\n\n if(exportMode != -1)\n {\n fileNamePrefix = ExportModeHandler.getFilePrefix(exportMode);\n }\n else\n {\n fileNamePrefix = \"RAW_\";\n }\n\n return fileNamePrefix + Utilities.getDeviceName() + \"_\" + currentTimestamp + \".txt\";\n }", "public static String formatDate(Date d) {\n\t\tint month = d.getMonth() + 1;\n\t\tint dayOfMonth = d.getDate();\n\t\tint year = d.getYear() + 1900;\n\t\tString y = \"\" + year;\n\t\tString m = \"\" + month;\n\t\tString dom = \"\" + dayOfMonth;\n\t\tif (month < 10) {\n\t\t\tm = \"0\" + m;\n\t\t}\n\t\tif (dayOfMonth < 10) {\n\t\t\tdom = \"0\" + dom;\n\t\t}\n\t\treturn m + \"/\" + dom + \"/\" + y.substring(2);\n\t}", "private String dateToString(Date datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tString dat = df.format(datum);\r\n\t\treturn dat;\r\n\t}", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "private String formatDueDate(Date date) {\n\t\t//TODO locale formatting via ResourceLoader\n\t\t\n\t\tif(date == null) {\n\t\t\treturn getString(\"label.studentsummary.noduedate\");\n\t\t}\n\t\t\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yy\");\n \treturn df.format(date);\n\t}", "private String formatDate (Date date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss\", Locale.ENGLISH);\n return sdf.format(date);\n }", "public static String dateOnly() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}", "private String stringifyDate(Date date){\n\t\tDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd\");\t\t\n\t\treturn dateFormatter.format(date);\n\t}", "private String dateToString(Date d){\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(DATE_FORMAT);\r\n\t\treturn fmt.format(d);\r\n\t}", "@Override\n public String toString() {\n return date.format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")) + \" - \" + note;\n }", "public String date() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd_MM_yyyy_HH_mm_ss\");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}", "private String formatDate(Date date){\n SimpleDateFormat format = new SimpleDateFormat(\"dd-MM-yyyy HH:mm\", Locale.getDefault());\n\n return format.format(date);\n }", "private String easyDateFormat(final String format) {\n Date today = new Date();\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n String datenewformat = formatter.format(today);\n return datenewformat;\n }", "public static String getPrintToDirectoryTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"MMdd\");\n return sdf.format(System.currentTimeMillis());\n }", "protected String formatDateToString(Date date) {\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy.MM.dd HH:mm:ss\");\n\t\tString formatted = format.format(date);\n\t\treturn formatted;\n\t}", "private String formatDate(String dateStr) {\n try {\n SimpleDateFormat fmt = new SimpleDateFormat(Properties.DATE_FORMAT_ALL);\n Date date = fmt.parse(dateStr);\n SimpleDateFormat fmtOut = new SimpleDateFormat(Properties.DATE_FORMAT);\n return fmtOut.format(date);\n } catch (ParseException e) {\n System.out.println( Properties.K_WARNING + \" \" + e.getMessage());\n }\n return \"\";\n }", "private synchronized void updateFilename()\n\t{\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDate date = cal.getTime();\n\n\t\tcal.add(Calendar.DATE, 1);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 0);\n\t\tcal.set(Calendar.MINUTE , 0);\n\t\tcal.set(Calendar.SECOND, 0);\n\n\t\tfilename = prefix + dateFormat.format(date);\n\t\tnextRotate = cal.getTimeInMillis();\n\t}", "DateFormat getDisplayDateFormat();", "protected abstract String format();", "public String toString() {\n\treturn String.format(\"%d/%d/%d\", year, month, day);\t\r\n\t}", "public static String getPrintToFileTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmmss\");\n return sdf.format(System.currentTimeMillis());\n }", "public String dateToString() {\n\t\treturn new String(year + \"/\"\n\t\t\t\t+ month + \"/\"\n\t\t\t\t+ day);\n }", "public String getDateString(){\n return Utilities.dateToString(date);\n }", "String printListDate(String date);", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\n return dateFormat.format(dateObject);\n }", "public static String formatDate(Date date) {\n final SimpleDateFormat formatter = new SimpleDateFormat(\"MM-dd-yyyy\");\n return formatter.format(date);\n }", "public String getEntryDateString() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy MMM dd\");\n return sdf.format(entryDate.getTime());\n }", "private String formatDate(Date dateObject) {\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\r\n return dateFormat.format(dateObject);\r\n }", "java.lang.String getDate();", "private static void formatDate(Date i) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tAnswer = formatter.format(i);\n\t}", "public static String toStringFormat_4(Date date) {\r\n\r\n\t\treturn dateToString(date, DATE_FORMAT_4);\r\n\t}", "public static void main(String[] args) {\n\t String str = String.format(\"%tc\", new Date());\r\n\t System.out.printf(str);\r\n\t \r\n//\t // display time and date\r\n//\t System.out.printf(\" Today is : %1$s %2$tB %2$td, %2$tY\", \"Due date : \", new Date());\r\n//\r\n\r\n\t System.out.println( new SimpleDateFormat(\"E yyyy.MM.dd 'at' hh:mm:ss a zzz\").format(new Date()));\r\n\t System.out.println( new SimpleDateFormat(\"EEEE, MMMM d, yyyy\").format(new Date()));\r\n\t}", "public static String formatDateForDetails(Timestamp date) {\n SimpleDateFormat format = new SimpleDateFormat(\"dd MMM yyyy | hh:mm aaa\", Locale.getDefault());\n return format.format(new Date(date.getTime()));\n }", "public static String dateToString(Date date)\r\n/* 19: */ {\r\n/* 20: 23 */ return sdfDate.format(date);\r\n/* 21: */ }", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\t\tDate date = formatter.parse(month + \"/\" + day + \"/\" + year);\n\n\t\t\treturn formatter.format(date);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public String toString() {\r\n\t\treturn String.format(\"%02d/%02d/%02d\", month, day, year);\r\n\r\n\t}", "public static synchronized String formatDate(Date d) {\n return dateFormat.format(d);\n }", "public static String toStringFormat_1(Date date) {\r\n\r\n\t\treturn dateToString(date, DATE_FORMAT_1);\r\n\t}", "@Override\n public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {\n String value = ISO8601Utils.format(date, true);\n toAppendTo.append(value);\n return toAppendTo;\n }", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\", Locale.getDefault());\n return dateFormat.format(dateObject);\n }", "public String formatDate(Date date) {\n\t\tString formattedDate;\n\t\tif (date != null) {\n\t\t\tformattedDate = simpleDateFormat.format(date);\n\t\t\tformattedDate = formattedDate.substring(0,\n\t\t\t\t\tformattedDate.length() - 5);\n\t\t} else {\n\t\t\tformattedDate = Constants.EMPTY_STRING;\n\t\t}\n\t\treturn formattedDate;\n\t}", "private String getFormattedDate(String date) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.received_import_date_format));\n SimpleDateFormat desiredDateFormat = new SimpleDateFormat(getString(R.string.desired_import_date_format));\n Date parsedDate;\n try {\n parsedDate = dateFormat.parse(date);\n return desiredDateFormat.format(parsedDate);\n } catch (ParseException e) {\n // Return an empty string in case of issues parsing the date string received.\n e.printStackTrace();\n return \"\";\n }\n }", "private static String formatDate(long date) {\n Date systemDate = new java.util.Date(date * 1000L);\n // the format of your date\n SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n // give a timezone reference for formatting (see comment at the bottom)\n sdf.setTimeZone(java.util.TimeZone.getTimeZone(\"GMT-4\"));\n String formattedDate = sdf.format(systemDate);\n return formattedDate;\n }", "public String extraInfo(){\n return by.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }", "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "public static String toStringFormat_2(Date date) {\r\n\r\n\t\treturn dateToString(date, DATE_FORMAT_2);\r\n\t}", "public static String printFedoraDateString(Date date) {\r\n return FEDORA_DATE_FORMAT.format(date);\r\n }", "public static void main(String[] args) {\n\n\t\tDate d=new Date();\n\t\tSimpleDateFormat sdf= new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tSimpleDateFormat hms= new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t\tSystem.out.println(sdf.format(d));\n\t\tSystem.out.println(hms.format(d));\n\t\tSystem.out.println(d.toString());\n\t}", "public String convertDateToString(Date date) {\n\t\tString dateTime = SDF.format(date);\n\t\treturn dateTime;\t\n\t}", "public static String formatDate(Date date){\n\t\tCalendar now = Calendar.getInstance(); // Gets the current date and time\n\t\tint currentYear = now.get(Calendar.YEAR);\n\t\tint dateYear = Integer.parseInt(new SimpleDateFormat(\"yyyy\").format(date));\n\n\t\tif (dateYear <= currentYear){\n\t\t\treturn new SimpleDateFormat(\"E MMM dd HH:mm\").format(date);\n\t\t} else {\n\t\t\treturn new SimpleDateFormat(\"E yyyy MMM dd HH:mm\").format(date);\n\t\t}\n\t}", "public static String formatDate(Date date) {\n\t\tDateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM);\n\n\t\tif (dateFormat instanceof SimpleDateFormat) {\n\t\t\tSimpleDateFormat sdf = (SimpleDateFormat) dateFormat;\n\t\t\t// we want short date format but with 4 digit year\n\t\t\tsdf.applyPattern(sdf.toPattern().replaceAll(\"y+\", \"yyyy\").concat(\" z\"));\n\t\t}\n\n\t\treturn dateFormat.format(date);\n\t}", "private String formatDateForVSS(Date d) {\n SimpleDateFormat sdf = new SimpleDateFormat(this.dateFormat + \";hh:mma\");\n \t\tString vssFormattedDate = sdf.format(d);\n \t\treturn vssFormattedDate.substring(0, vssFormattedDate.length() - 1);\n \t}", "private String getDate(int year, int month, int day) {\n return new StringBuilder().append(month).append(\"/\")\n .append(day).append(\"/\").append(year).toString();\n }", "public void Print_date()\n {\n \n System.out.println(\"Date: \" + date);\n }", "public abstract String toStringForFileName();", "protected String getMailFileName(MessageMetaData message) {\n \t\treturn \"\" + message.date.getTime() + '-' + message.unid;\n \t}", "public static String formatDate(String dateValue) {\n Date uploadDateTime = null;\n try {\n uploadDateTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).parse(dateValue);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return new SimpleDateFormat(\"dd/MM/yyyy HH:mm\", Locale.US).format(uploadDateTime);\n }", "public String getFormatedDate(Date date) {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\treturn sdf.format(date);\r\n\t}", "String getDate();", "String getDate();", "public static void main(String[] args)\r\n/* 96: */ {\r\n/* 97:104 */ SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 98:105 */ String qiandaotime = df.format(new Date());\r\n/* 99:106 */ System.out.println(qiandaotime);\r\n/* 100: */ }", "public static void main(String[] args) {\n\t\t LocalDate ldt = LocalDate.of(2016,12,21);\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"yyyy-MMM-dd\");\n DateTimeFormatter format1 = DateTimeFormatter.ofPattern(\"YYYY-mmm-dd\");\n System.out.println(ldt.format(format));\n System.out.println(ldt.format(format1));\n\t}", "public static String formatDate(String date){\n String formatedDate = date;\n if (!date.matches(\"[0-9]{2}-[0-9]{2}-[0-9]{4}\")){\n if (date.matches(\"[0-9]{1,2}/[0-9]{1,2}/([0-9]{2}|[0-9]{4})\"))\n formatedDate = date.replace('/', '-');\n if (date.matches(\"[0-9]{1,2}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\")){\n if (formatedDate.matches(\"[0-9]{1}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = \"0\" + formatedDate;\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{1}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = formatedDate.substring(0, 3) + \"0\" + \n formatedDate.substring(3);\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{2}.[0-9]{2}\")){\n String thisYear = String.valueOf(LocalDate.now().getYear());\n String century = thisYear.substring(0,2);\n /* If the last two digits of the date are larger than the two last digits of \n * the current date, then we can suppose that the year corresponds to the last \n * century.\n */ \n if (Integer.valueOf(formatedDate.substring(6)) > Integer.valueOf(thisYear.substring(2)))\n century = String.valueOf(Integer.valueOf(century) - 1);\n formatedDate = formatedDate.substring(0, 6) + century +\n formatedDate.substring(6); \n }\n }\n }\n return formatedDate;\n }", "private String generateWindowsFriendlyDate(String date) {\n\t\t\n\t\treturn date.replaceAll(\"(\\\\:)+\", \"-\");\n\t\t\n\t}", "void format();", "public String getDate() {\n\t\treturn logInfoSplit[0] + \"_\" + logInfoSplit[1];\n\t}", "public static String dateStr(String input ){\n String mm = input.substring(0,2);\n String dd = input.substring(3,5);\n String yyyy = input.substring(6,10);\n return dd + \" - \" + mm + \" - \" + yyyy;\n }", "public static String formatDate(long date) {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat();\r\n\t\treturn sdf.format(new Date(date));\r\n\t}", "public static String FormatDate(int day, int month, int year) {\r\n String jour = Integer.toString(day);\r\n String mois = Integer.toString(month + 1);\r\n if (jour.length() == 1) {\r\n jour = \"0\" + jour;\r\n }\r\n\r\n if (mois.length() == 1) {\r\n mois = \"0\" + mois;\r\n }\r\n return jour + \"/\" + mois + \"/\" + Integer.toString(year);\r\n }", "public String writeFileUnderGrad(String fileName) {\n Formatter f = new Formatter();//Use Formatter\r\n f.format(\"%s (%d, %s, %s)%n\", super.getStudentName(), super.getStudentNumber(), super.getStudentSex(), super.getStudentDOB());//Format Student Output\r\n //System.out.println(f);\r\n BufferedWriter out = null; //BufferedWriter\r\n PrintWriter out1 = null; //Use PrintWriter\r\n //Try and Catch method to create the txt file, flush and close\r\n try {\r\n\r\n out = new BufferedWriter(new FileWriter(fileName, true));\r\n out1 = new PrintWriter(out);\r\n out1.write(f.toString());\r\n out1.flush();//Flush text file\r\n } catch (IOException e) {\r\n System.out.println(\"Exception \");\r\n } finally {\r\n try {\r\n out.close();\r\n out1.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(UnderGraduate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return \"\";\r\n\r\n }", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "private String formatReleaseDate(String releaseDate) {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date dateObject;\n try {\n dateObject = format.parse(releaseDate);\n }\n catch (ParseException pe) {\n Log.e(LOG_TAG, \"Error while retrieving movie information\");\n return releaseDate;\n }\n format = new SimpleDateFormat(\"LLL dd, yyyy\");\n\n return format.format(dateObject);\n }", "@Method(selector = \"stringFromDate:toDate:\")\n public native String format(NSDate fromDate, NSDate toDate);", "@Override\n\tpublic String formatHeader(LocalDate click) {\n\t\treturn click.getDayOfWeek().toString() + \" \" + click.toString() + '\\n';\n\t}", "public static String formatterDate(Date date){\n\t\tString retour = null;\n\t\tif(date != null){\n\t\t\tretour = dfr.format(date);\n\t\t}\n\t\treturn retour;\n\t}" ]
[ "0.74683654", "0.71597636", "0.700224", "0.6992764", "0.6594942", "0.63959455", "0.6348575", "0.63295615", "0.62742305", "0.62570506", "0.61991185", "0.6182867", "0.61367196", "0.6128069", "0.61113006", "0.60841334", "0.6066956", "0.6061413", "0.6037645", "0.600897", "0.60088", "0.60042125", "0.6000408", "0.5998281", "0.5991641", "0.59845924", "0.5982863", "0.59804493", "0.5979993", "0.59581304", "0.595307", "0.5948765", "0.5937137", "0.59358877", "0.59212166", "0.5908627", "0.59076077", "0.59045774", "0.5896618", "0.5894712", "0.5888731", "0.58746356", "0.58632517", "0.58545244", "0.58416164", "0.58365273", "0.5824518", "0.58103544", "0.5801774", "0.57919466", "0.57791436", "0.57786536", "0.5774943", "0.57727146", "0.5769375", "0.57686335", "0.5766642", "0.5764653", "0.5744213", "0.57427526", "0.5742741", "0.5742298", "0.5727578", "0.57272345", "0.57242036", "0.57230645", "0.57185495", "0.5710184", "0.56999195", "0.5696541", "0.569452", "0.56831676", "0.5677294", "0.5673165", "0.56729794", "0.5663161", "0.5655781", "0.565356", "0.5643713", "0.5636347", "0.56351095", "0.5625184", "0.56159437", "0.56110394", "0.5602887", "0.5602887", "0.5599821", "0.5597891", "0.5597317", "0.5595247", "0.5593285", "0.55925065", "0.5589054", "0.5585615", "0.55834883", "0.5578356", "0.55761355", "0.55756444", "0.5573057", "0.55711526", "0.5568466" ]
0.0
-1
Getting the machine mac address
private static String getMacAddress(){ try { //getting hardware address from inside a virtual machine from NetworkInterface object returns null, so need a gambiarra. //if this issue is ever solved please replace for the appropriate code String command = "ifconfig"; Process p = Runtime.getRuntime().exec(command); BufferedReader inn = new BufferedReader(new InputStreamReader(p.getInputStream())); String line = inn.readLine(); while( line != null ){ if(line.indexOf("eth0") >= 0){ String[] split = line.split(" "); return split[split.length-1]; } line = inn.readLine(); } inn.close(); } catch (Exception e) { System.out.println(e.getMessage()); } return "error"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMac() {\n\t\treturn InfraUtil.getMacAddress();\n\t}", "public java.lang.String getUser_mac();", "public String getEthernetMacAddress(){\n\t try {\n\t return loadFileAsString(\"/sys/class/net/eth0/address\")\n\t .toUpperCase().substring(0, 17);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t}", "public String getMac(){\n WifiManager manager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n WifiInfo info = manager.getConnectionInfo();\n return info.getMacAddress();\n }", "public String getMacAddress()\r\n\t{\r\n\t\treturn macAddress;\r\n\t}", "public String macAddress() {\n return this.macAddress;\n }", "@Option MacAddress getMacAddress();", "public String getMacAddress()\n\t{\n\t\treturn macAddress;\n\t}", "public static\n String getMACAddress()\n {\n String sResult = null;\n try {\n Process pid = Runtime.getRuntime().exec(\"ipconfig /all\");\n BufferedReader in = new BufferedReader(new InputStreamReader(pid.getInputStream()));\n String sLine = null;\n while((sLine = in.readLine()) != null) {\n if(getOccurrences(sLine, '-') == 5) {\n int i = sLine.lastIndexOf('-');\n sResult = sLine.substring(i - 14, i + 3);\n break;\n }\n }\n in.close();\n }\n catch(Exception ex) {\n ex.printStackTrace();\n }\n System.out.println(ResourcesMgr.sLOG_PREFIX + \" MAC Address = \" + sResult);\n return sResult;\n }", "public String getMacAddress()\n {\n return macAddress;\n }", "public String getMacAddress() {\n return macAddress;\n }", "public String getMacAddress() {\n return macAddress;\n }", "String getMacAddress() {\n return String.format(\"%s:%s:%s:%s:%s:%s\", macAddress.substring(0, 2), macAddress.substring(2, 4),\n macAddress.substring(4, 6), macAddress.substring(6, 8), macAddress.substring(8, 10), macAddress.substring(10, 12));\n }", "public MACAddress getMacAddress() \n\t{\n\t\treturn this.hwAddress;\n\t}", "public static String getMacAddress() {\n try {\n List<NetworkInterface> all = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface nif : all) {\n if (!nif.getName().equalsIgnoreCase(\"wlan0\")) continue;\n\n byte[] macBytes = nif.getHardwareAddress();\n if (macBytes == null) {\n return \"\";\n }\n\n StringBuilder res1 = new StringBuilder();\n for (byte b : macBytes) {\n res1.append(String.format(\"%02X:\",b));\n }\n\n if (res1.length() > 0) {\n res1.deleteCharAt(res1.length() - 1);\n }\n return res1.toString();\n }\n } catch (Exception ex) {\n }\n return \"02:00:00:00:00:00\";\n }", "public java.lang.String getMac() {\n return mac;\n }", "public Mac getMac() {\r\n return mac;\r\n }", "public String getMacNo() {\r\n return macNo;\r\n }", "java.lang.String getAgentMac();", "public String readEthMAC() {\r\n\t\treturn mFactoryBurnUtil.readEthMAC();\r\n\t}", "public static String getMac(InetAddress add) throws SocketException,NullPointerException{\n\t\t\n\t\tNetworkInterface network = NetworkInterface.getByInetAddress(add);\n\t\tbyte[] mac = network.getHardwareAddress();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < mac.length; i++) {\n\t\t\tsb.append(String.format(\"%02X%s\", mac[i], (i < mac.length - 1) ? \"-\" : \"\"));\t\t\n\t\t}\n\t\tData.MAC_ADDRESS=sb.toString();\n\t\treturn sb.toString();\n\t\t\n\t}", "public String getMac() {\n return this.Mac;\n }", "public String getWlanMacAddress() {\n WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);\n WifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\n String macAddress = wifiInfo == null ? null : wifiInfo.getMacAddress();\n return !TextUtils.isEmpty(macAddress) ? macAddress : \"Unavailable\";\n }", "private static final long getHostId(){\n long macAddressAsLong = 0;\n try {\n Random random = new Random();\n InetAddress address = InetAddress.getLocalHost();\n NetworkInterface ni = NetworkInterface.getByInetAddress(address);\n if (ni != null) {\n byte[] mac = ni.getHardwareAddress();\n random.nextBytes(mac); // we don't really want to reveal the actual MAC address\n\n //Converts array of unsigned bytes to an long\n if (mac != null) {\n for (int i = 0; i < mac.length; i++) {\n macAddressAsLong <<= 8;\n macAddressAsLong ^= (long)mac[i] & 0xFF;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return macAddressAsLong;\n }", "public static String getLocalMac() {\n\t\tif (!mInitialized) Log.v(\"OpenIp\", \"Initialisation isn't done\");\n\t\treturn localMac;\n\t}", "public static String wlanMacAddress() {\n\t\tString _ret = null;\n\n\t\t// get wifi manager\n\t\tWifiManager _wifiManager = (WifiManager) CTApplication.getContext()\n\t\t\t\t.getSystemService(Context.WIFI_SERVICE);\n\n\t\t// check wifi manager and return waln mac address\n\t\tif (null != _wifiManager) {\n\t\t\t// check the wifi state\n\t\t\tif (!_wifiManager.isWifiEnabled()) {\n\t\t\t\t// open the wlan\n\t\t\t\t_wifiManager.setWifiEnabled(true);\n\n\t\t\t\t// get wlan mac address(has 3-5 seconds delay)\n\t\t\t\t_ret = _wifiManager.getConnectionInfo().getMacAddress();\n\n\t\t\t\t// close the wlan\n\t\t\t\t_wifiManager.setWifiEnabled(false);\n\t\t\t} else {\n\t\t\t\t// get wlan mac address\n\t\t\t\t_ret = _wifiManager.getConnectionInfo().getMacAddress();\n\t\t\t}\n\t\t}\n\n\t\treturn _ret;\n\t}", "com.google.protobuf.ByteString\n getAgentMacBytes();", "public static String getMacCliente(){\n\t\tInetAddress ip;\n\t\tbyte[] mac = null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\t\t\tip = InetAddress.getLocalHost();\n\t\t\tNetworkInterface network = NetworkInterface.getByInetAddress(ip);\n\n\t\t\tmac = network.getHardwareAddress();\n\t\t\tfor (int i = 0; i < mac.length; i++) {\n\t\t\t\tsb.append(String.format(\"%02X%s\", mac[i],(i < mac.length - 1) ? \"-\" : \"\"));\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t} catch (SocketException e) {\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t} catch (NullPointerException e){\n\t\t\t//Log.error(e, \"Utiles :: getMacCliente :: controlado\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "private static String getMacAddress(Context context) {\n // android devices should have a wifi address\n final String wlanAddress = readAddressFromInterface(\"wlan0\");\n\n if (wlanAddress != null) {\n return wlanAddress.replace(\"\\n\", \"\").toUpperCase();\n }\n\n final String ethAddress = readAddressFromInterface(\"eth0\");\n if (ethAddress != null) {\n return ethAddress.replace(\"\\n\", \"\").toUpperCase();\n }\n\n // backup -> read from Wifi!\n if (!Utils.checkPermission(context, android.Manifest.permission.ACCESS_WIFI_STATE)) {\n return \"\";\n } else {\n try {\n final WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n @SuppressWarnings(\"MissingPermission\") final String wifiAddress = wifiManager.getConnectionInfo().getMacAddress();\n\n if (wifiAddress != null) {\n return wifiAddress;\n }\n } catch (Exception e) {\n log.debug(e.getMessage(), e);\n }\n }\n\n return null;\n }", "public static String bluetoothMacAddress() {\n\t\tString _ret = null;\n\n\t\t// get a handle to the default local Bluetooth adapter\n\t\tBluetoothAdapter _localBluetoothAdapter = BluetoothAdapter\n\t\t\t\t.getDefaultAdapter();\n\n\t\t// check default local bluetooth adapter and return bluetooth mac\n\t\t// address\n\t\tif (null != _localBluetoothAdapter) {\n\t\t\t// check the bluetooth state\n\t\t\tif (!_localBluetoothAdapter.isEnabled()) {\n\t\t\t\t// open the bluetooth\n\t\t\t\t_localBluetoothAdapter.enable();\n\n\t\t\t\t// get default local bluetooth mac address(has 1-2 seconds\n\t\t\t\t// delay)\n\t\t\t\t_ret = _localBluetoothAdapter.getAddress();\n\n\t\t\t\t// close the bluetooth\n\t\t\t\t_localBluetoothAdapter.disable();\n\t\t\t} else {\n\t\t\t\t// get default local bluetooth mac address\n\t\t\t\t_ret = _localBluetoothAdapter.getAddress();\n\t\t\t}\n\t\t}\n\n\t\treturn _ret;\n\t}", "public MacAddress getClientMac() {\n return clientMac;\n }", "public static String getDeviceMacAddress(Context context) {\n final String macAddress = getMacAddress(context);\n\n if (macAddress == null) {\n return \"\";\n }\n\n log.debug(\"macAddress: \" + macAddress);\n\n return StringUtils.cleanSpaceCharacterFromString(macAddress.toUpperCase(Locale.UK));\n }", "public static String getNetMac() {\n\t\tif (!mInitialized) Log.v(\"OpenIp\", \"Initialisation isn't done\");\n\t\treturn netMac;\n\t}", "public MAC getMacDest() {\n\t\treturn macDest;\n\t}", "@Override\n public String getMACAddress()\n {\n String id = client.properties().getString(Keys.client_id);\n if (id == null)\n {\n ClientIDGenerator gen = new ClientIDGenerator();\n id = gen.generateId();\n client.properties().setString(Keys.client_id, id);\n }\n return id;\n //return AppUtil.getMACAddress(this);\n }", "public static String m581h(Context context) {\r\n try {\r\n return ((WifiManager) context.getSystemService(\"wifi\")).getConnectionInfo().getMacAddress();\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public String getMacKey() {\r\n return macKey;\r\n }", "public String getStrmac() {\n return strmac;\n }", "public static String macAddress(String interfaceName) {\n\t try {\n\t List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n\t for (NetworkInterface intf : interfaces) {\n\t if (interfaceName != null) {\n\t if (!intf.getName().equalsIgnoreCase(interfaceName)) continue;\n\t }\n\t byte[] mac = intf.getHardwareAddress();\n\t if (mac==null) return \"\";\n\t StringBuilder buf = new StringBuilder();\n\t for (int idx=0; idx<mac.length; idx++)\n\t buf.append(String.format(\"%02X:\", mac[idx])); \n\t if (buf.length()>0) buf.deleteCharAt(buf.length()-1);\n\t return buf.toString();\n\t }\n\t } catch (Exception ex) { } // for now eat exceptions\n\t return \"\";\n\t /*try {\n\t // this is so Linux hack\n\t return loadFileAsString(\"/sys/class/net/\" +interfaceName + \"/address\").toUpperCase().trim();\n\t } catch (IOException ex) {\n\t return null;\n\t }*/\n\t }", "public String getFormattedMACAddress() {\n String defaultReturn = \"00:00:00:00:00:00\";\n\n // Validate the data\n if (macAddress == null) {\n return defaultReturn;\n }\n String mac = macAddress.replace(\"-\", \"\");\n if (mac.length() != 12) {\n return defaultReturn;\n }\n\n List<String> parts = new ArrayList<>();\n for (int i = 0; i < 6; i++) {\n int offset = 2 * i;\n parts.add(mac.substring(offset, offset + 2));\n }\n\n return String.join(\":\", parts);\n }", "public MAC getMacSource() {\n\t\treturn macSource;\n\t}", "public String getMACCHN()\n {\n return this.MACCHN;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:24:54.435 -0400\", hash_original_method = \"69DFE6488E4E1095ED955C498CAF3E20\", hash_generated_method = \"26A15C1C765EE269E3F8338945CC3FE4\")\n \n public static String getMacAddressCommand(){\n \tdouble taintDouble = 0;\n \n \tString retObj = new String(); \n \tretObj.addTaint(taintDouble);\n \treturn retObj;\n }", "public static MacAddress getRouterMacAddress(KubevirtRouter router) {\n if (router.mac() == null) {\n log.warn(\"Failed to get mac address of router {}\", router.name());\n }\n\n return router.mac();\n }", "public String getMacReason() {\r\n return macReason;\r\n }", "public Integer getMacTime() {\r\n return macTime;\r\n }", "public static String getMACAddress(String interfaceName) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n if (interfaceName != null) {\n if (!intf.getName().equalsIgnoreCase(interfaceName))\n continue;\n }\n byte[] mac = intf.getHardwareAddress();\n if (mac == null)\n return \"\";\n StringBuilder buf = new StringBuilder();\n for (int idx = 0; idx < mac.length; idx++)\n buf.append(String.format(\"%02X:\", mac[idx]));\n if (buf.length() > 0)\n buf.deleteCharAt(buf.length() - 1);\n return buf.toString();\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n\n }", "@Deprecated\r\n\tpublic String readMACID(){\r\n\t\treturn \"\";\r\n\t}", "private static String m21383C(Context context) {\n WifiInfo wifiInfo;\n String str = \"02:00:00:00:00:00\";\n if (context == null) {\n return str;\n }\n WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(\"wifi\");\n if (wifiManager == null) {\n return str;\n }\n try {\n wifiInfo = wifiManager.getConnectionInfo();\n } catch (Exception e) {\n C5205o.m21464a((Throwable) e);\n wifiInfo = null;\n }\n if (wifiInfo == null) {\n return null;\n }\n String macAddress = wifiInfo.getMacAddress();\n if (!TextUtils.isEmpty(macAddress)) {\n macAddress = macAddress.toUpperCase(Locale.ENGLISH);\n }\n return macAddress;\n }", "public void testGetMacAddress() throws Exception {\n String address = \"58:a2:b5:7d:49:24\";\n IDevice device = new StubDevice(MOCK_DEVICE_SERIAL) {\n @Override\n public void executeShellCommand(String command, IShellOutputReceiver receiver)\n throws TimeoutException, AdbCommandRejectedException,\n ShellCommandUnresponsiveException, IOException {\n receiver.addOutput(address.getBytes(), 0, address.length());\n }\n };\n mMockIDevice.executeShellCommand(EasyMock.anyObject(), EasyMock.anyObject());\n EasyMock.expectLastCall().andDelegateTo(device).anyTimes();\n EasyMock.replay(mMockIDevice);\n assertEquals(address, mTestDevice.getMacAddress());\n EasyMock.verify(mMockIDevice);\n }", "java.lang.String getMachineId();", "@NonNull\n public static String getMACAddress(String interfaceName) throws SocketException {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n if (interfaceName != null) {\n if (!netInterface.getName().equalsIgnoreCase(interfaceName)) continue;\n }\n byte[] mac = netInterface.getHardwareAddress();\n if (mac == null) return \"\";\n StringBuilder buf = new StringBuilder();\n for (byte aMac : mac) buf.append(String.format(\"%02X:\", aMac));\n if (buf.length() > 0) buf.deleteCharAt(buf.length() - 1);\n return buf.toString();\n }\n\n return \"\";\n }", "public String getMacChannel() {\r\n return macChannel;\r\n }", "public String getOdlOpenflowMacAddress2() throws SnmpStatusException;", "void gotMyMac();", "public String format(MacAddress mac) {\n byte[] b = mac.getInternalBytes();\n Oui oui = _byHashCode.get(Oui.hashCode(mac.getInternalBytes()));\n StringBuilder buf = new StringBuilder();\n\n if (oui == null) {\n buf.append(String.format(\"Unknown-%02x-%02x-%02x\", b[0], b[1], b[2]));\n } else {\n buf.append(oui.getShortName());\n }\n buf.append('-');\n\n for (int i = 3; i < MacAddress.ETH_ALEN; ++i) {\n if (i > 3) buf.append(':');\n buf.append(String.format(\"%02x\", b[i]));\n }\n\n return buf.toString();\n }", "public MacAddress(){\n super(MAC_DIGIT_COUNT);\n }", "public void setMacAddress(String macAddress) {\n this.macAddress = macAddress;\n }", "public String getClientMachine();", "public String getCreateUsermac() {\r\n\t\treturn createUsermac;\r\n\t}", "public void setMac(java.lang.String mac) {\n this.mac = mac;\n }", "@Override\n\tprotected byte[] mac(IsoPackage isoPackage) throws Exception {\n\t\treturn null;\n\t}", "public String getMachineUID()\n {\n return machineUID;\n }", "public String getMacBanchId() {\r\n return macBanchId;\r\n }", "public void testIsMacAddress() {\n assertTrue(mTestDevice.isMacAddress(\"00:00:00:00:00:00\"));\n assertTrue(mTestDevice.isMacAddress(\"00:15:E9:2B:99:3C\"));\n assertTrue(mTestDevice.isMacAddress(\"FF:FF:FF:FF:FF:FF\"));\n assertTrue(mTestDevice.isMacAddress(\"58:a2:b5:7d:49:24\"));\n }", "public String getMAddr() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"getMaddr () \");\n Via via=(Via)sipHeader;\n \n Host host=via.getMaddr();\n if ( host == null) return null;\n else return host.getIpAddress(); \n }", "public Oui getOui(MacAddress mac) {\n Oui result = _byHashCode.get(Oui.hashCode(mac.getInternalBytes()));\n if (result == null && (mac.isLocal() || mac.isMulticast())) {\n byte[] b = mac.getBytes();\n b[0] &= ~(MacAddress.FLAG_LOCAL | MacAddress.FLAG_MCAST);\n result = _byHashCode.get(Oui.hashCode(b));\n }\n return result;\n }", "public String getUpdateUsermac() {\r\n\t\treturn updateUsermac;\r\n\t}", "@Deprecated\r\n public String readWiFiMAC(String wifiModelType) {\r\n return mFactoryBurnUtil.readWiFiMAC(wifiModelType);\r\n }", "public final boolean isMac() {\n\t\treturn isMac;\n\t}", "public static String getDeviceIpAddress() {\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {\n NetworkInterface intf = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {\n InetAddress inetAddress = enumIpAddr.nextElement();\n\n log.debug(\"inetAddress: \" + inetAddress);\n\n if (!inetAddress.isLoopbackAddress()) {\n String ip = Formatter.formatIpAddress(inetAddress.hashCode());\n return ip;\n }\n }\n }\n } catch (SocketException ex) {\n log.error(ex.getMessage(), ex);\n }\n\n return null;\n }", "public void testGetMacAddress_stubDevice() throws Exception {\n String address = \"58:a2:b5:7d:49:24\";\n IDevice device = new StubDevice(MOCK_DEVICE_SERIAL) {\n @Override\n public void executeShellCommand(String command, IShellOutputReceiver receiver)\n throws TimeoutException, AdbCommandRejectedException,\n ShellCommandUnresponsiveException, IOException {\n receiver.addOutput(address.getBytes(), 0, address.length());\n }\n };\n mTestDevice.setIDevice(device);\n assertNull(mTestDevice.getMacAddress());\n }", "public void setMacNo(String macNo) {\r\n this.macNo = macNo;\r\n }", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "private String getMobileIP(){\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();\n en.hasMoreElements();) {\n NetworkInterface networkinterface = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = networkinterface.getInetAddresses(); enumIpAddr.hasMoreElements();) {\n InetAddress inetAddress = enumIpAddr.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n return inetAddress.getHostAddress().toString();\n }\n }\n }\n } catch (Exception ex) {\n Log.e(\"Current IP\", ex.toString());\n }\n return null;\n }", "public void setMac(String Mac) {\n this.Mac = Mac;\n }", "public String getArpTable(String ipAddr) throws IOException {\n Scanner s = new Scanner(Runtime.getRuntime().exec(ARP_CMD +\" \"+ ipAddr).getInputStream()).useDelimiter(\"\\\\A\");\n String sysInput = s.next();\n String mac = \"\";\n Pattern pattern = Pattern.compile(mac_regex);\n Matcher matcher = pattern.matcher(sysInput);\n if (matcher.find()) {\n mac = mac + matcher.group().replaceAll(\"\\\\-\", \":\");\n } \n return mac.strip();\n\t}", "public void setMacAddress(String macAddress)\r\n\t{\r\n\t\tthis.macAddress = macAddress;\r\n\t}", "public String getMacBluetooth()\n/* */ {\n/* 69 */ return this.macBluetooth;\n/* */ }", "public static List<String> getAllHardwareAddress() throws SocketException {\n ArrayList<String> addresses = new ArrayList<>();\n Enumeration<NetworkInterface> ifaces = NetworkInterface.getNetworkInterfaces();\n while (ifaces.hasMoreElements()) {\n NetworkInterface iface = ifaces.nextElement();\n byte[] macaddr = iface.getHardwareAddress();\n if (macaddr == null)\n continue;\n String key = String.format(MACADDR_FORMAT, macaddr[0], macaddr[1], macaddr[2], macaddr[3], macaddr[4], macaddr[5]);\n addresses.add(key);\n }\n return addresses;\n }", "public abstract String getMachineID();", "@Override\n\t\tpublic void macChange() {\n\t\t\t\n\t\t}", "public static List<String> getHardwareAddresses() {\r\n\t\tList<String> result = new Vector<String>();\r\n\t\ttry {\r\n\t\t\tEnumeration<NetworkInterface> nis = NetworkInterface.getNetworkInterfaces();\r\n\t\t\tif (nis != null) {\r\n\t\t\t\twhile (nis.hasMoreElements()) {\r\n\t\t\t\t\tbyte[] mac = nis.nextElement().getHardwareAddress();\r\n\t\t\t\t\tif ((mac != null) && (mac.length == 6)) {\r\n\t\t\t\t\t\tresult.add(getHardwareAddressAsString(mac));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\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 machineId_ = s;\n }\n return s;\n }\n }", "public String getAudioMulticastAddr();", "public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n machineId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getMachineIdBytes();", "DeviceEntity getByMac(String mac);", "private BandInfo infoFromMac(String mac) {\n BandInfo[] bands = pairedBands;//BandClientManager.getInstance().getPairedBands();\n for (BandInfo b :\n bands) {\n if (b.getMacAddress().equals(mac)) {\n return b;\n }\n }\n\n // Failed to find the bandInfo matching the MAC address, create one and store\n Log.e(TAG, \"Failed to find the MAC address \" + mac);\n return null;\n }", "public void setMacAddress(String macAddress)\n\t{\n\t\tthis.macAddress = macAddress;\n\t}", "private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }", "public void setUser_mac(java.lang.String newUser_mac);", "String getAddr();", "public InetAddress getIP()\r\n\r\n {\r\n InetAddress ip=null;\r\n try{\r\n WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\r\n DhcpInfo dhcp = wifi.getDhcpInfo();\r\n int dip=dhcp.ipAddress;\r\n byte[] quads = new byte[4];\r\n for (int k = 0; k < 4; k++)\r\n quads[k] = (byte) (dip >> (k * 8));\r\n ip= InetAddress.getByAddress(quads);\r\n } catch (UnknownHostException e) {\r\n e.printStackTrace();\r\n }\r\n return ip;\r\n }", "private Result fillFromMAC() {\n final Result r = getResult();\n\n final DataArray da = MacHostPropertiesMonitor.getData();\n\n r.addSet(\"CPU_idle\", da.getParam(\"cpu_idle\"));\n r.addSet(\"CPU_int\", 0);\n r.addSet(\"CPU_iowait\", 0);\n r.addSet(\"CPU_nice\", 0);\n r.addSet(\"CPU_softint\", 0);\n r.addSet(\"CPU_sys\", da.getParam(\"cpu_sys\"));\n r.addSet(\"CPU_usr\", da.getParam(\"cpu_usr\"));\n r.addSet(\"Load5\", da.getParam(\"load1\"));\n r.addSet(\"Load10\", da.getParam(\"load5\"));\n r.addSet(\"Load15\", da.getParam(\"load15\"));\n r.addSet(\"Page_in\", da.getParam(\"blocks_in_R\"));\n r.addSet(\"Page_out\", da.getParam(\"blocks_out_R\"));\n r.addSet(\"Swap_in\", da.getParam(\"swap_in_R\"));\n r.addSet(\"Swap_out\", da.getParam(\"swap_out_R\"));\n r.addSet(\"eth0_IN\", da.getParam(\"eth0_in_R\"));\n r.addSet(\"eth0_OUT\", da.getParam(\"eth0_out_R\"));\n\n return r;\n }", "public String getIp() {\n\t\treturn InfraUtil.getIpMachine();\n\t}", "public com.google.protobuf.ByteString\n getMachineIdBytes() {\n java.lang.Object ref = machineId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n machineId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMachineIdBytes() {\n java.lang.Object ref = machineId_;\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 machineId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "void initializeMACs() {\n macs.put(0, zhao_mac);\n macs.put(2, brandon_mac);\n macs.put(3, joe_laptop_mac);\n }", "public void testGetMacAddress_failure() throws Exception {\n IDevice device = new StubDevice(MOCK_DEVICE_SERIAL) {\n @Override\n public void executeShellCommand(String command, IShellOutputReceiver receiver)\n throws TimeoutException, AdbCommandRejectedException,\n ShellCommandUnresponsiveException, IOException {\n throw new IOException();\n }\n };\n mMockIDevice.executeShellCommand(EasyMock.anyObject(), EasyMock.anyObject());\n EasyMock.expectLastCall().andDelegateTo(device).anyTimes();\n EasyMock.replay(mMockIDevice);\n assertNull(mTestDevice.getMacAddress());\n EasyMock.verify(mMockIDevice);\n }" ]
[ "0.83363706", "0.83070487", "0.8297677", "0.8261038", "0.82488775", "0.82207245", "0.8208486", "0.81787956", "0.81571954", "0.8146106", "0.81312853", "0.81312853", "0.80928177", "0.799585", "0.795376", "0.78193885", "0.76253724", "0.76016223", "0.7534568", "0.75257933", "0.7514421", "0.748899", "0.73445344", "0.730319", "0.7282267", "0.726351", "0.71868175", "0.718674", "0.7148545", "0.7140924", "0.714014", "0.7087586", "0.7071492", "0.7031965", "0.70201254", "0.6935497", "0.68921", "0.6877873", "0.6819371", "0.6787186", "0.6750419", "0.6658136", "0.6643639", "0.6579842", "0.652441", "0.64951503", "0.64847094", "0.64658326", "0.64362514", "0.64215434", "0.6341524", "0.63334763", "0.6310942", "0.6297736", "0.6290023", "0.62164426", "0.62070346", "0.6176348", "0.61734134", "0.61541796", "0.61519516", "0.6092139", "0.6085637", "0.6060868", "0.6031397", "0.6012692", "0.5993562", "0.5989846", "0.59603304", "0.59599704", "0.5933269", "0.59318167", "0.59239453", "0.59112", "0.590212", "0.5894124", "0.586342", "0.5824984", "0.5811347", "0.57733524", "0.5768622", "0.5766025", "0.57397044", "0.5732409", "0.57270193", "0.5723923", "0.5697911", "0.5685804", "0.568547", "0.5673729", "0.5649803", "0.5636831", "0.5630553", "0.56272256", "0.56241405", "0.56224245", "0.5620923", "0.5619947", "0.5610264", "0.56030744" ]
0.8166176
8
Writing the memory content to a file
private static void writeMemToFile(String outFile, String fileSource){ FileInputStream instream = null; FileOutputStream outstream = null; try{ File infile =new File(fileSource); File outfile =new File(outFile); MessageDigest digest = MessageDigest.getInstance("SHA-256"); instream = new FileInputStream(infile); outstream = new FileOutputStream(outfile); byte[] buffer = new byte[1024]; int length; while ((length = instream.read(buffer)) > 0){ outstream.write(buffer, 0, length); digest.update(buffer, 0, length); } byte[] hashedBytes = digest.digest(); outstream.write(hashedBytes, 0, hashedBytes.length); //Closing the input/output file streams instream.close(); outstream.close(); }catch(NoSuchAlgorithmException | IOException e){ System.out.println(e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void write(final File file) throws IOException\n\t{\n\t\tif (isInMemory())\n\t\t{\n\t\t\tFileOutputStream fout = new FileOutputStream(file);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfout.write(get());\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tfout.close();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFile outputFile = getStoreLocation();\n\t\t\tChecks.notNull(outputFile,\n\t\t\t\t\"for a non-memory upload the file location must not be empty\");\n\n\t\t\t// Save the length of the file\n\t\t\tsize = outputFile.length();\n\t\t\t/*\n\t\t\t * The uploaded file is being stored on disk in a temporary location so move it to the\n\t\t\t * desired file.\n\t\t\t */\n\t\t\tif (!outputFile.renameTo(file))\n\t\t\t{\n\t\t\t\tBufferedInputStream in = null;\n\t\t\t\tBufferedOutputStream out = null;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tin = new BufferedInputStream(new FileInputStream(outputFile));\n\t\t\t\t\tout = new BufferedOutputStream(new FileOutputStream(file));\n\t\t\t\t\tStreams.copy(in, out);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tIOUtils.closeQuietly(in);\n\t\t\t\t\tIOUtils.closeQuietly(out);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected abstract void writeFile();", "public void writeFile() {\n\t\ttry {\n\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\tFile myFile = new File(dir.toString() + File.separator + FILENAME);\n\t\t\tLog.i(\"MyMovies\", \"SeSus write : \" + myFile.toString());\n\t\t\tmyFile.createNewFile();\n\t\t\tFileOutputStream fOut = new FileOutputStream(myFile);\n\t\t\tOutputStreamWriter myOutWriter = \n\t\t\t\t\tnew OutputStreamWriter(fOut);\n\t\t\tfor (Map.Entry<String, ValueElement> me : hm.entrySet()) {\n\t\t\t\tString refs = (me.getValue().cRefMovies>0? \"MOVIE\" : \"\");\n\t\t\t\trefs += (me.getValue().cRefBooks>0? \"BOOK\" : \"\");\n\t\t\t\tString line = me.getKey() + DELIMITER + me.getValue().zweiteZeile \n\t\t\t\t\t\t //+ DELIMITER\n\t\t\t\t\t\t //+ me.getValue().count\n\t\t\t\t\t \t+ DELIMITER\n\t\t\t\t\t \t+ refs\n\t\t\t\t\t \t + System.getProperty(\"line.separator\");\n\t\t\t\t//Log.i(\"MyMovies\", \"SeSus extracted : \" + line);\n\t\t\t\tmyOutWriter.write(line);\n\t\t\t}\n\t\t\tmyOutWriter.close();\n\t\t\tfOut.close();\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\tLog.i(\"MyMovies\", \"SeSus write Exception : \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void writeToFile(byte[] output) {\r\n try {\r\n file.seek(currOffset);\r\n file.write(output);\r\n currOffset += output.length;\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void writeObject(RandomAccessFile arq) throws IOException{\n byte[] dados = this.getByteArray();\n arq.writeChar(' ');\n arq.writeShort(dados.length);\n arq.write(dados);\n }", "private void writeObject(final ObjectOutputStream out) throws IOException\n\t{\n\t\t// Read the data\n\t\tif (dfos.isInMemory())\n\t\t{\n\t\t\tcachedContent = get();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcachedContent = null;\n\t\t\tdfosFile = dfos.getFile();\n\t\t}\n\n\t\t// write out values\n\t\tout.defaultWriteObject();\n\t}", "private void saveMemory() {\n try {\n File varTmpDir = new File(\"data/\" + brainLocation + \".ser\");\n if (!varTmpDir.exists()) {\n varTmpDir.createNewFile();\n }\n FileOutputStream fileOut = new FileOutputStream(varTmpDir);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(longTermMemory);\n out.close();\n fileOut.close();\n System.out.println(\"SAVED LONG TERM MEMORIES IN \" + brainLocation);\n } catch (IOException i) {\n i.printStackTrace();\n }\n }", "public static void store() {\r\n//\t\tSystem.out.println(\"mar\"+readMAR().getStr());\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Write memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n\t\t\r\n\t\tcontent = readMBR();\r\n\t\tgetBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)] = content.getStr();\r\n\t\tTraceINF.write(\"Write finished.\");\r\n\t}", "protected void writeContent(final String filename, final byte[] content) {\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tthrow new FileException(\"file [\" + file.getAbsolutePath() + \"] already exists\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileOutputStream os = new FileOutputStream(file);\r\n\t\t\tos.write(content);\r\n\t\t\tos.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new FileException(\"could not write file [\" + file.getAbsolutePath() + \"]\", e);\r\n\t\t}\r\n\t}", "public void writeUnsafe(UnsafeMemory um) {\n int mySize = getWriteUnsafeSize();\n um.putInt(mySize);\n //serial\n um.putLong(serialVersionUID);\n\n //class member\n um.putString(fileName);\n\n\n //rocksDbKlueFileName\n um.putString(rocksDbKlueFileName);\n //boolean readOnly\n um.putBoolean(readOnly);\n\n um.putInt(last);\n\n //arrays\n um.put(nameIndex, UnsafeMemory.ARRAYLIST_STRING_TYPE);\n um.put(entries, UnsafeMemory.ARRAYLIST_KID_TYPE);\n um.put(kingdoms,UnsafeMemory.HASHMAP_INTEGER_CHARACTER_TYPE);\n\n\n //No longer stored in memory\n //um.put(sequences,UnsafeMemory.ARRAYLIST_DNABITSTRING_TYPE);\n\n\n\n //ArrayList<Integer> sequenceLength = new ArrayList<Integer>();\n um.put(sequenceLength, UnsafeMemory.ARRAYLIST_INT_TYPE);\n //ArrayList<HashMap<Integer,Character>> exceptionsArr;\n\n int total = 0;\n total += UnsafeMemory.SIZE_OF_INT // byte header\n + UnsafeMemory.SIZE_OF_LONG // SerialUID\n + UnsafeMemory.SIZE_OF_INT; // number of entries\n\n for (int z=0; z < exceptionsArr.size(); z++){\n total += UnsafeMemory.getWriteUnsafeSize(exceptionsArr.get(z), UnsafeMemory.HASHMAP_INTEGER_CHARACTER_TYPE);\n }\n\n um.putInt(total);\n um.putLong(serialVersionUID_ArrayListHashMap_INT_CHAR);\n um.putInt(exceptionsArr.size());\n for (int z=0; z < exceptionsArr.size(); z++){\n um.put(exceptionsArr.get(z), UnsafeMemory.HASHMAP_INTEGER_CHARACTER_TYPE);\n }\n\n }", "void Writer(String data, String FileName, Context context) {\n FileOutputStream outputStream = null;\n try {\n outputStream = context.openFileOutput(FileName,Context.MODE_PRIVATE);\n outputStream.write(data.getBytes());\n\n } catch (Exception e) {\n e.printStackTrace();\n }finally{\n if (outputStream != null){\n try {\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void writeToFile(String filename, Object object) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(filename, MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(object);\n objectOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public abstract void writeToFile( );", "public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }", "public void writeFile(ByteBuffer buf, int len, int pos, long offset,\n\t\t\tboolean propigate) throws java.io.IOException, DataArchivedException {\n\n\t\tif (SDFSLogger.isDebug()) {\n\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\"fc writing \" + df.getMetaFile().getPath() + \" at \"\n\t\t\t\t\t\t\t+ offset + \" \" + buf.capacity() + \" bytes len=\"\n\t\t\t\t\t\t\t+ len + \" pos=\" + pos);\n\t\t\tif (df.getMetaFile().getPath().endsWith(\".vmx\")\n\t\t\t\t\t|| df.getMetaFile().getPath().endsWith(\".vmx~\")) {\n\t\t\t\tbyte[] _zb = new byte[len];\n\t\t\t\tbuf.get(_zb);\n\n\t\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\t\"###### In fc Text of VMX=\"\n\t\t\t\t\t\t\t\t+ df.getMetaFile().getPath() + \"=\"\n\t\t\t\t\t\t\t\t+ new String(_zb, \"UTF-8\"));\n\t\t\t}\n\t\t}\n\t\tLock l = df.getReadLock();\n\t\tl.lock();\n\t\ttry {\n\t\t\tbuf.position(pos);\n\t\t\tthis.writtenTo = true;\n\t\t\tlong _cp = offset;\n\t\t\t// ByteBuffer buf = ByteBuffer.wrap(bbuf, pos, len);\n\t\t\tint bytesLeft = len;\n\t\t\tint write = 0;\n\t\t\twhile (bytesLeft > 0) {\n\t\t\t\t// Check to see if we need a new Write buffer\n\t\t\t\t// WritableCacheBuffer writeBuffer = df.getWriteBuffer(_cp);\n\t\t\t\t// Find out where to write to in the buffer\n\t\t\t\tDedupChunkInterface writeBuffer = null;\n\t\t\t\tlong filePos = df.getChuckPosition(_cp);\n\t\t\t\tint startPos = (int) (_cp - filePos);\n\t\t\t\tif (startPos < 0)\n\t\t\t\t\tSDFSLogger.getLog().fatal(\"Error \" + _cp + \" \" + filePos);\n\t\t\t\t// Find out how many total bytes there are left to write in\n\t\t\t\t// this\n\t\t\t\t// loop\n\n\t\t\t\tint _len = Main.CHUNK_LENGTH - startPos;\n\t\t\t\tif (bytesLeft < _len)\n\t\t\t\t\t_len = bytesLeft;\n\t\t\t\t/*\n\t\t\t\t * if (_len == Main.CHUNK_LENGTH) newBuf = true;\n\t\t\t\t */\n\n\t\t\t\tbyte[] b = new byte[_len];\n\t\t\t\ttry {\n\t\t\t\t\tbuf.get(b);\n\t\t\t\t} catch (java.nio.BufferUnderflowException e) {\n\t\t\t\t\tbuf.get(b, 0, buf.capacity() - buf.position());\n\t\t\t\t\tSDFSLogger.getLog().error(\n\t\t\t\t\t\t\t\"buffer underflow getting \"\n\t\t\t\t\t\t\t\t\t+ (buf.capacity() - buf.position())\n\t\t\t\t\t\t\t\t\t+ \" instead of \" + _len);\n\t\t\t\t}\n\t\t\t\twhile (writeBuffer == null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriteBuffer = df.getWriteBuffer(filePos);\n\t\t\t\t\t\t\twriteBuffer.write(b, startPos);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (_len != Main.CHUNK_LENGTH && propigate\n\t\t\t\t\t\t\t\t&& df.getMetaFile().getDev() != null) {\n\t\t\t\t\t\t\teventBus.post(new BlockDeviceSmallWriteEvent(df\n\t\t\t\t\t\t\t\t\t.getMetaFile().getDev(),\n\t\t\t\t\t\t\t\t\tByteBuffer.wrap(b), filePos + startPos,\n\t\t\t\t\t\t\t\t\t_len));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (Main.volume.isClustered())\n\t\t\t\t\t\t\twriteBuffer.flush();\n\t\t\t\t\t} catch (BufferClosedException e) {\n\t\t\t\t\t\tif (SDFSLogger.isDebug())\n\t\t\t\t\t\t\tSDFSLogger.getLog().debug(\"trying to write again\");\n\t\t\t\t\t\twriteBuffer = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_cp = _cp + _len;\n\t\t\t\tbytesLeft = bytesLeft - _len;\n\t\t\t\twrite = write + _len;\n\t\t\t\tthis.currentPosition = _cp;\n\t\t\t\tif (_cp > df.getMetaFile().length()) {\n\t\t\t\t\tdf.getMetaFile().setLength(_cp, false);\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch(DataArchivedException e) {\n\t\t\tif(Main.checkArchiveOnRead) {\n\t\t\t\tSDFSLogger.getLog().warn(\"Archived data found in \"+ df.getMetaFile().getPath()+ \" at \" + pos + \". Recovering data from archive. This may take up to 4 hours\");\n\t\t\t\tthis.recoverArchives();\n\t\t\t\tthis.writeFile(buf, len, pos, offset, propigate);\n\t\t\t}\n\t\t\telse throw e;\n\t\t}catch (FileClosedException e) {\n\t\t\tSDFSLogger.getLog()\n\t\t\t\t\t.warn(df.getMetaFile().getPath()\n\t\t\t\t\t\t\t+ \" is closed but still writing\");\n\t\t\tthis.closeLock.lock();\n\t\t\ttry {\n\t\t\t\tdf.registerChannel(this);\n\t\t\t\tthis.closed = false;\n\t\t\t\tthis.writeFile(buf, len, pos, offset, propigate);\n\t\t\t} finally {\n\t\t\t\tthis.closeLock.unlock();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSDFSLogger.getLog().fatal(\n\t\t\t\t\t\"error while writing to \" + this.df.getMetaFile().getPath()\n\t\t\t\t\t\t\t+ \" \" + e.toString(), e);\n\t\t\tMain.volume.addWriteError();\n\t\t\tthrow new IOException(\"error while writing to \"\n\t\t\t\t\t+ this.df.getMetaFile().getPath() + \" \" + e.toString());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tdf.getMetaFile().setLastModified(System.currentTimeMillis());\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tl.unlock();\n\t\t}\n\t}", "public static void write(String fileName, String content) {\r\n BufferedWriter bufferedWriter = null;\r\n try {\r\n\r\n //Will use FileWriter, BufferedWriter, and PrintWriter in this method.\r\n FileWriter fileWriter = null;\r\n try {\r\n fileWriter = new FileWriter(fileName, true);\r\n } catch (Exception e) {\r\n System.out.println(\"Error creating fileWriter in FileUtility.write(...)\");\r\n }\r\n\r\n bufferedWriter = new BufferedWriter(fileWriter);\r\n PrintWriter pw = new PrintWriter(bufferedWriter, true);\r\n pw.print(content);\r\n\r\n// bufferedWriter.write(content);\r\n// bufferedWriter.flush();\r\n } finally {\r\n try {\r\n bufferedWriter.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"could not close buffered writer\");\r\n }\r\n }\r\n }", "public interface IMemoriaFile {\r\n \r\n public void append(byte[] data);\r\n \r\n /**\r\n * Releases the write-lock\r\n */\r\n public void close();\r\n \r\n /**\r\n * Returns a stream starting at position 0.\r\n * \r\n * Attention: The stream must be closed!\r\n * \r\n * @return Stream for reading the whole content of the file.\r\n */\r\n public InputStream getInputStream();\r\n \r\n /**\r\n * Returns a stream starting at the given <tt>position</tt>.\r\n * \r\n * Attention: The stream must be closed!\r\n * \r\n * @param position\r\n * @return Stream for reading the whole content of the file.\r\n */\r\n public InputStream getInputStream(long position);\r\n \r\n public long getSize();\r\n\r\n public boolean isEmpty();\r\n\r\n \r\n public void sync();\r\n\r\n /**\r\n * The given offset plus the size of the given byte-array must not exceed the file-site.\r\n * @param data\r\n * @param offset\r\n */\r\n public void write(byte[] data, long offset);\r\n}", "public void printDataToFile(){\n\ttry {\n\t File file = new File(\"media/gameOutput.txt\");\n \n\t // if file doesnt exists, then create it\n\t if (!file.exists()) {\n\t\tfile.createNewFile();\n\t }\n \n\t FileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t BufferedWriter bw = new BufferedWriter(fw);\n\t bw.write(printString);\n\t bw.close();\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n }", "public static void WriteStreamAppendByRandomAccessFile(String fileName, String content) throws IOException {\n try {\n RandomAccessFile randomFile = new RandomAccessFile(fileName, \"rw\");\n long fileLength = randomFile.length();\n // Write point to the end of file.\n randomFile.seek(fileLength);\n randomFile.writeBytes(content);\n randomFile.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public abstract void saveToFile(PrintWriter out);", "public static void WriteStreamAppendByFileOutputStream(String fileName, String content) throws IOException {\n BufferedWriter out = null;\n try {\n out = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(fileName, true)));\n out.write(content);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "private void writeFile(TimerEntity entity) {\n final File file = fileName(entity.getTimedObjectId(), entity.getId());\n\n FileOutputStream fileOutputStream = null;\n try {\n fileOutputStream = new FileOutputStream(file, false);\n final Marshaller marshaller = factory.createMarshaller(configuration);\n marshaller.start(new OutputStreamByteOutput(fileOutputStream));\n marshaller.writeObject(entity);\n marshaller.finish();\n fileOutputStream.flush();\n fileOutputStream.getFD().sync();\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (fileOutputStream != null) {\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n logger.error(\"IOException closing file \", e);\n }\n }\n }\n }", "@Override\n public OutputStream writeFileInternal(String _fileName) throws IOException\n { // Writes a file to the internal device storage. Takes a filename as a parameter and throws an IOException if failed.\n return context.openFileOutput(_fileName, Context.MODE_PRIVATE);\n }", "public static void main(String[] args) throws Exception {\n FileOutputStream fos=new FileOutputStream(\"e:/data/contents.txt\");\r\n //step-2 (write data)\r\n String s=\"Something We want To Write To A File\";\r\n byte b[]=s.getBytes();\r\n //fos.write(b);\r\n fos.write(b, 3, 10);\r\n //step-3 (close file)\r\n fos.close();\r\n System.out.println(\"DATA STORED\");\r\n }", "@Override\n public void writeDataToTxtFile() {\n\n }", "public void save(){\n try{\n Date date = new Date();\n \n PrintWriter writer = new PrintWriter(\"data.MBM\", \"UTF-8\");\n \n writer.println(\"version:\"+MBMDriver.version);\n writer.println(\"numworlds:\" + worlds.size());\n writer.println(\"lastclosed:\" + date.toString());\n writer.println(\"outDir:\"+outputDir.toPath());\n \n for(int i = 0; i < worlds.size(); i++){\n \n writer.println(\"MBMWORLD:\"+worlds.get(i).getWorldFile().getName()+\":\"+worlds.get(i).getName()+\":\"+worlds.get(i).getWorldFile().toPath()+\":\"+worlds.get(i).getLastBackupDate());\n }\n \n writer.close();\n }catch(FileNotFoundException e){\n System.out.println(\"ERROR: Failed to Find File\");\n }catch(UnsupportedEncodingException e){\n System.out.println(\"ERROR: Unsupported Encoding Exception\");\n }\n }", "public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void write2File(String fileName) throws IOException{\n BufferedWriter output = null;\n try {\n File file = new File(fileName);\n output = new BufferedWriter(new FileWriter(file));\n for(BufferIOIntercept ob : bufferIOList){\n \n output.write(ob.op + \",\" + ob.strategy + \",\" + ob.numberBte + \",\" + ob.blkSize + \",\" + ob.time + \"\\n\");\n }\n } catch ( IOException e ) {\n e.printStackTrace();\n } finally {\n if ( output != null ) output.close();\n }\n }", "public void writePage(Page page) throws IOException {\n // some code goes here\n // not necessary for proj1\n try {\n PageId pid= page.getId();\n HeapPageId hpid= (HeapPageId)pid;\n\n RandomAccessFile rAf=new RandomAccessFile(f,\"rw\");\n int offset = pid.pageNumber()*BufferPool.PAGE_SIZE;\n byte[] b=new byte[BufferPool.PAGE_SIZE];\n b=page.getPageData();\n rAf.seek(offset);\n rAf.write(b, 0, BufferPool.PAGE_SIZE);\n rAf.close(); \n page.markDirty(false,null); \n }catch (IOException e){\n e.printStackTrace();\n }\n\n }", "private static void storingTheObjectToDisk1(InputStream objectContent, String key) {\n FileOutputStream fos = null;\n BufferedOutputStream bos = null;\n byte[] buff = new byte[50*1024];\n int count;\n try {\n bos = new BufferedOutputStream(new FileOutputStream(\"/home/ubuntu/\" + key));\n while( (count = objectContent.read(buff)) != -1)\n {\n bos.write(buff, 0, count);\n }\n bos.close();\n objectContent.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void writeToFile(){\n Calendar c = Calendar.getInstance();\n String dateMedTaken = DateFormat.getDateInstance(DateFormat.FULL).format(c);\n FileOutputStream fos = null;\n\n try {\n fos = openFileOutput(FILE_NAME, MODE_APPEND);\n fos.write(dateMedTaken.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(fos != null){\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "@Override\n\tpublic void write(Object obj, File file) throws IJunitException {\n\t\t\n\t}", "private void writeInMemoryData() throws IOException {\n out.write(totalBitsInChunk);\n\n /* write chunk of bytes itself */\n out.write(chunk, 0, chunkIndex < chunk.length ? chunkIndex + 1 : chunkIndex);\n out.flush();\n\n zeroChunk();\n }", "private void writeToFile(Contacts _data, String _filename) throws IOException {\n\n File mydir = this.getDir(\"mydir\", Context.MODE_PRIVATE); //Creating an internal dir;\n File fileWithinMyDir = new File(mydir, _filename); //Getting a file within the dir.\n FileOutputStream out = new FileOutputStream(fileWithinMyDir); //Use the stream as usual to write into the file.\n ObjectOutputStream oos = new ObjectOutputStream(out);\n\n if (mContacts == null){\n mContacts = new Contacts();\n }\n mContacts.setData(_data);\n oos.writeObject(mContacts);\n oos.close();\n\n }", "void write();", "private void writeContent(String content) throws IOException {\n FileChannel ch = lockFile.getChannel();\n\n byte[] bytes = content.getBytes();\n\n ByteBuffer buf = ByteBuffer.allocate(bytes.length);\n buf.put(bytes);\n\n buf.flip();\n\n ch.write(buf, 1);\n\n ch.force(false);\n }", "private void saveTextToFile(String content, File file) {\n try {\n PrintWriter writer;\n writer = new PrintWriter(file);\n writer.println(content);\n writer.close();\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "void writeToFile(){\n try{\n OutputStream o = new FileOutputStream(distanceFile);\n for(int start = 1; start < 200; start++)\n for(int to = 1; to < 200; to++)\n for(int taxi = 0; taxi < 12; taxi++)\n for(int bus = 0; bus < 9; bus++)\n o.write(distance[start][to][taxi][bus]);\n o.close();\n o = new FileOutputStream(validMoveFile);\n for(int node = 1; node < 200; node++)\n for(int taxi = 0; taxi < 3; taxi++)\n for(int bus = 0; bus < 3; bus++)\n for(int underground = 0; underground < 3; underground++)\n for(int doublet = 0; doublet < 2; doublet++)\n for(int secret = 0; secret < 3; secret++)\n for(int b = 0; b < 4; b++)\n o.write((byte) (validMoves[node][taxi][bus][underground][doublet][secret] >> ((3 - b) * 8)));\n o.close();\n }\n catch (Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }", "@Override\r\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(mFile.toString());\r\n\t\tdest.writeDouble(mLatitude);\r\n\t\tdest.writeDouble(mLongitude);\r\n\t}", "public void writePage(Page page) throws IOException {\n // some code goes here\n // not necessary for proj1\n try {\n PageId pid = page.getId();\n HeapPageId hpid = (HeapPageId) pid;\n\n RandomAccessFile accessor = new RandomAccessFile(f, \"rw\");\n int offset = pid.pageNumber() * BufferPool.PAGE_SIZE;\n byte[] data = new byte[BufferPool.PAGE_SIZE];\n data = page.getPageData();\n\n accessor.seek(offset);\n accessor.write(data, 0, BufferPool.PAGE_SIZE);\n accessor.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writeFile(String content){\n\t\tFile file = new File(filePath);\n\t\t\n\t\tBufferedWriter bw = null;\n\t\t\n\t\ttry{\n\t\t\tif (!file.exists())\n\t\t\t\tfile.createNewFile();\n\t\t\t\n\t\t\tbw = new BufferedWriter(new FileWriter(file));\n\t\t\tbw.write(content);\n\t\t}\n\t\tcatch (Exception oops){\n\t\t\tSystem.err.print(\"There was an error writing the file \"+oops.getStackTrace());\n\t\t}\n\t\tfinally{\n\t\t\ttry{\n\t\t\t\tbw.close();\n\t\t\t}\t\n\t\t\tcatch(IOException oops){\n\t\t\t\tSystem.err.print(\"There was an error closing the write buffer \"+oops.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "public void SerialWriteFile() {\r\n\r\n PrintWriter pwrite = null;\r\n File fileObject = new File(getName());\r\n QuizPlayer q = new QuizPlayer(getName(), getNickname(), getTotalScore());\r\n\r\n try {\r\n ObjectOutputStream outputStream =\r\n new ObjectOutputStream(new FileOutputStream(fileObject));\r\n\r\n outputStream.writeObject(q); //Writes the object to the serialized file.\r\n outputStream.close();\r\n\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Problem with file output.\");\r\n }\r\n\r\n }", "public static void randomAccessWrite() {\n try {\n RandomAccessFile f = new RandomAccessFile(FILES_TEST_PATH, \"rw\");\n f.writeInt(10);\n f.writeChars(\"test line\");\n f.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public static void writeChachedFile(Context ctx, String filename, String text){\n \t\t// write data to file\n \t\tFileOutputStream fos;\n \t\ttry {\n \t\t\tfilename = filePrefix + filename;\n \t\t\tfos = ctx.openFileOutput(filename, Context.MODE_PRIVATE);\n \t\t\tfos.write(text.getBytes());\t\t\t\n \t\t} catch (FileNotFoundException e) {\n \t\t} catch (IOException e) {}\n \t}", "public void write_adm_file()\n \t{\n \t\ttry \n \t\t{\n \t\t\tFile f1 = new File(\"adm1.txt\");\n \t\t\tFileOutputStream fileOut = new FileOutputStream(f1); \n \t\t\tAppendingObjectOutputStream objectOut = new AppendingObjectOutputStream(new ObjectOutputStream(fileOut));//used to append in the output stream\n Node<Admin> pos=adm_list.getFirst();\n while(pos!=null)\n {\n \tobjectOut.writeObject(pos.getData());//traversing the whole linked list data and writing into the stream\n \tpos=pos.getNext();\n }\n objectOut.flush();//flushing the stream\n objectOut.close();//closing streams\n fileOut.close();\n \t\t} \n \t\tcatch (IOException ex) \n \t\t{\n \n \t\t}\n }", "protected abstract void writeToExternal(byte[] b, int off, int len) throws IOException;", "void generateContent(OutputStream output) throws Exception;", "private void saveToFileData() {//Context context) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(fileNameData, Context.MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(Data.userData);\n objectOutputStream.close();\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void writeToFile(String fileName,String contents) throws IOException{\r\n\t\tFileWriter fw = new FileWriter(fileName,true);\r\n\t\tPrintWriter pw = new PrintWriter(fw);\r\n\t\tpw.write(contents+\"\\r\\n\");\r\n\t\tpw.close();\r\n\t}", "private void serializeObject(String filename, Object content)\n throws IOException\n {\n synchronized(filename)\n {\n FileOutputStream fileOut = new FileOutputStream(filename);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(content);\n out.close();\n fileOut.close();\n }\n }", "public void dump_datamemory(String filename)\n {\n Utils.dump(data_memory, filename, DATA_MEMORY_SIZE);\n }", "public void Write_data() {\n // add-write text into file\n try {\n FileOutputStream fileout=openFileOutput(\"savedata11.txt\", MODE_PRIVATE);\n OutputStreamWriter outputWriter=new OutputStreamWriter(fileout);\n outputWriter.write(Integer.toString(_cnt));\n outputWriter.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private File writeToFile(Context context, final byte[] data, final String fileName,\n String fileExtension)\n throws IOException {\n final File file = File.createTempFile(fileName, fileExtension, context.getCacheDir());\n try {\n if (!file.exists()) {\n file.createNewFile();\n }\n final FileOutputStream fos = new FileOutputStream(file);\n fos.write(data);\n fos.close();\n } catch (final Exception throwable) {\n Timber.e(throwable, \"Failed to create file\");\n }\n return file;\n }", "private void writeToFile() throws IOException {\n\t\tFileWriter write = new FileWriter(path);\n\t\tPrintWriter print_line = new PrintWriter(write);\n\t\t\n\t\tEnumeration<String> fd_key_Enum = fileData.keys();\n\t\tEnumeration<String> fd_value_Enum = fileData.elements();\n\t\twhile (fd_key_Enum.hasMoreElements() && fd_value_Enum.hasMoreElements()) {\n\t\t\tprint_line.printf(\"%s\" + \"%n\", fd_key_Enum.nextElement() + \":\" + fd_value_Enum.nextElement());\n\t\t}\n\t\t\n\t\tprint_line.close();\n\t\twrite.close();\n\t}", "private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "public void writeToFile(File file) {\n\n\t}", "private void outputToFile() {\n\t\tPath filePath = Paths.get(outputFile);\n\n\t\ttry (BufferedWriter writer = Files.newBufferedWriter(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tRowIterator iterator = currentGen.iterateRows();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tElemIterator elem = iterator.next();\n\t\t\t\twhile (elem.hasNext()) {\n\t\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\t\twriter.write(mElem.rowIndex() + \",\" + mElem.columnIndex());\n\t\t\t\t\twriter.newLine();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to write to the provided file\");\n\t\t}\n\n\t}", "private void writeToFile(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName,true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writer(List<String> toStore) throws IOException{\n //creates writer and clears file\n PrintWriter writer = new PrintWriter(\"output.txt\", \"UTF-8\");\n //for each loop to store all the values in the file into the file named output.txt\n for(String s : toStore)\n //stores the strings for outputting\n writer.println(s);\n //closes the writer and outputs to the file\n writer.close();\n }", "@Override\r\npublic boolean writeEntries(CacheObject obj) {\n\t\r\n\ttry {\r\n\t\t\r\n\t\tthis.writer.append(\"[\"+obj.toString()+\"]\\r\\n\");\r\n\t\tthis.writer.flush();\r\n\t} catch (IOException e) {\r\n\t\tSystem.out.println(\"Error Occured while writing into File :\"+ e.getMessage());\r\n\t\te.printStackTrace();\r\n\t\t\r\n\t} \r\n\t\r\n\treturn false;\r\n}", "public static void writeTo(String filename, CashContainer container){\r\n\t\tPrintWriter pw=null;\r\n\t\ttry{\r\n\t\t\tpw=new PrintWriter(new FileOutputStream(new File(filename),false));\r\n\t\t\tpw.write(container+\"\\n\");\t\t\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tpw.close();\r\n\t\t}\r\n\t}", "public void write(final File out) throws IOException;", "protected void write(OutputStream os) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(this.filepath);\n\t\tBufferedInputStream bis = new BufferedInputStream(fis);\n\t\tbyte[] s = new byte[1024];\n\t\tint i = 0;\n\t\twhile ((i = bis.read(s)) > 0) {\n\t\t\tos.write(s, 0, i);\n\t\t}\n\t\tif (os != null) {\n\t\t\tos.flush();\n\t\t\tos.close();\n\t\t}\n\t\tif (bis != null)\n\t\t\tbis.close();\n\t\tif (fis != null)\n\t\t\tfis.close();\n\t}", "public static void writeNumberToFile() {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n outputStream.write(String.valueOf(53).getBytes());\n } catch (FileNotFoundException e) {\n // handle FileNotFoundException\n } catch (IOException e) {\n // handle IOException\n } finally {\n System.out.println(\"Finally block\");\n }\n }", "public void write(int fileId, ByteBuffer contents) throws IOException {\n Assert.isPositive(fileId, \"File Id must be positive\");\n Assert.isTrue(fileId <= 0xFFFF, \"File Id is 2 bytes at most\");\n Assert.isTrue(contents.remaining() <= 0xFFFFFF, \"Files must be < 16 megabytes\");\n\n // Store in the index where the file starts, and how big it is\n long currentBlock = (data.size() + TOTAL_BLOCK_LEN - 1) / TOTAL_BLOCK_LEN;\n Assert.isTrue(currentBlock + (contents.remaining() + TOTAL_BLOCK_LEN - 1) / TOTAL_BLOCK_LEN < 0xFFFFFF, \"Cache size would reach 16 million blocks (8.125gb)\");\n\n ByteBuffer entry = ByteBuffer.allocate(INDEX_BLOCK_LEN);\n writeTriByte(entry, contents.remaining());\n writeTriByte(entry, (int) currentBlock);\n\n entry.flip();\n index.write(entry, fileId * INDEX_BLOCK_LEN);\n\n // Begin writing the payload\n short chunkNumber = 0;\n ByteBuffer chunk = ByteBuffer.allocate(TOTAL_BLOCK_LEN);\n\n while(contents.hasRemaining()) {\n long nextBlock = currentBlock + 1;\n\n chunk.putShort((short) fileId);\n chunk.putShort(chunkNumber);\n writeTriByte(chunk, (int) nextBlock);\n chunk.put(indexId);\n\n // We write as much of the contents to the chunk buffer as possible\n int limit = contents.limit();\n contents.limit(Math.min(limit, contents.position() + chunk.remaining()));\n chunk.put(contents);\n contents.limit(limit);\n\n chunk.flip();\n data.write(chunk, currentBlock * TOTAL_BLOCK_LEN);\n\n // Reset the chunk buffer to position 0\n chunk.flip();\n\n chunkNumber++;\n currentBlock = nextBlock;\n }\n\n lastModified = System.currentTimeMillis();\n }", "private static void writeToBuffer(int index, RandomAccessFile fos) {\n\n try {\n\n // x is the current integer value to be written.\n int x;\n // loc is the current location in the buffer to be written.\n int loc = 0;\n\n // iterates through each value in the sorted integer array.\n for (int k = 0; k < index; k++) {\n // gets the current integer.\n x = ints[k];\n\n // checks if the buffer is full.\n if (loc == BUF_SIZE) {\n // if the buffer is full, write its contents out to the file.\n fos.write(buf);\n // the buffer has been emptied, so set its current location back to the start.\n loc = 0;\n }\n\n // convert the current integer value to be written to a byte array.\n buf[loc] = (byte) (x >> 24);\n buf[loc + 1] = (byte) (x >> 16);\n buf[loc + 2] = (byte) (x >> 8);\n buf[loc + 3] = (byte) (x);\n\n // increment the location in the buffer now that a value has been written in.\n loc += BYTES_TO_INTS;\n }\n\n if (loc > 0) {\n // if there are any values left over in the buffer, write them out to the file.\n fos.write(buf, 0, loc);\n\n }\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "public void writeToFile(RandomAccessFile fio) {\n try {\n fio.writeInt(number);\n fio.writeUTF(name);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }", "private void saveCharacters(Context context){\n File f = new File(filePath);\r\n FileOutputStream fos = null;\r\n ObjectOutputStream out = null;\r\n try{\r\n fos = new FileOutputStream(f);\r\n out = new ObjectOutputStream(fos);\r\n out.writeObject(characters);\r\n out.close();\r\n }\r\n catch(Exception e){Toast.makeText(MainActivity.this,\r\n \"SAVEERROR\", Toast.LENGTH_LONG).show();\r\n Log.d(\"SAVEERROR\",e.toString());}\r\n }", "public void writeFileToPrivateStorage(int fromFile, String toFile) {\n InputStream is = getApplicationContext().getResources().openRawResource(fromFile);\n int bytes_read;\n byte[] buffer = new byte[4096];\n try {\n FileOutputStream fos = getApplicationContext().openFileOutput(toFile, Context.MODE_PRIVATE);\n\n while ((bytes_read = is.read(buffer)) != -1)\n fos.write(buffer, 0, bytes_read); // write\n\n fos.close();\n is.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void serializeToFile(String fileName, BigInteger mod, BigInteger exp) throws IOException {\r\n ObjectOutputStream ObjOut = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(fileName)));\r\n\r\n try {\r\n ObjOut.writeObject(mod);\r\n ObjOut.writeObject(exp);\r\n System.out.println(\"Key File Created: \" + fileName);\r\n } catch (Exception e) {\r\n throw new IOException(\" Error while writing the key object\", e);\r\n } finally {\r\n ObjOut.close();\r\n }\r\n }", "public void write(byte[] buffer);", "public static void write(String content, String fileName) throws IOException {\n FileWriter fileWriter = new FileWriter(FileCreator.create(fileName));\n fileWriter.write(content);\n fileWriter.flush();\n fileWriter.close();\n }", "public void dump(PhoneBill bill) throws IOException{\n String customer = bill.getCustomer();\n File file = new File(\"/Users/srubey/PortlandStateJavaSummer2020/phonebill/src/main/resources/edu/pdx/cs410J/scrubey/\"\n + Project2.getFileName());\n FileWriter writer = null;\n\n try{\n //**if file not yet created\n writer = new FileWriter(file);\n\n writer.write(\"Customer name: \" + bill.getCustomer() + \"\\n\\n\");\n writer.write(\"Caller# Callee#\\t\\t Start Date\\tStart Time\\tEnd Date\\tEnd Time\\n\");\n\n //iterate through each phone call, extracting and adding data to file\n for(int i = 0; i < bill.getPhoneCalls().size(); ++i) {\n String caller = bill.getPhoneCalls().get(i).callerNumber;\n String callee = bill.getPhoneCalls().get(i).calleeNumber;\n String sd = bill.getPhoneCalls().get(i).startDate;\n String st = bill.getPhoneCalls().get(i).startTime;\n String ed = bill.getPhoneCalls().get(i).endDate;\n String et = bill.getPhoneCalls().get(i).endTime;\n\n writer.write(caller + \" \" + callee + \" \" + sd);\n\n //formatting\n if(sd.length() < 10)\n writer.write(\"\\t\");\n\n writer.write(\"\\t\" + st + \"\\t\\t\" + ed + \"\\t\" + et + \"\\n\");\n }\n\n file.createNewFile();\n }catch(IOException e){\n System.out.print(\"\\nText File error\");\n }finally{\n writer.close();\n }\n }", "@Override\n public void write() {\n\n }", "public void save(OutputStream os) throws IOException;", "public static void FileWrite(String path, String content) {\n\t\tFile file = new File(path);\n\t\ttry {\n\t\t\tFileOutputStream fop = new FileOutputStream(file);\n\t\t\t// if file doesn't exists, then create it\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\t// get the content in bytes\n\t\t\tbyte[] contentInBytes = content.getBytes();\n\t\t\tfop.write(contentInBytes);\n\t\t\tfop.flush();\n\t\t\tfop.close();\n\t\t\tSystem.out.println(\"Content :\\\"\" + content\n\t\t\t\t\t+ \"\\\" is written in File: \" + path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void write(File output) throws IOException {\n }", "private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);//goes stream based on filename\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos)); //create buffer writer\n Gson gson = new Gson();\n gson.toJson(countbookList, out);//convert java object to json string & save in output\n out.flush();\n fos.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "@Override\r\n public void write(byte[] buffer) throws IOException {\r\n inWrite1 = true;\r\n try {\r\n super.write(buffer);\r\n if (!inWrite3) {\r\n /*if (!Helper.NEW_IO_HANDLING \r\n && null != IoNotifier.fileNotifier) {\r\n IoNotifier.fileNotifier.notifyWrite(recId, buffer.length);\r\n } else {*/\r\n if (null != RecorderFrontend.instance) {\r\n RecorderFrontend.instance.writeIo(recId, \r\n null, buffer.length, StreamType.FILE);\r\n }\r\n //}\r\n }\r\n inWrite1 = false;\r\n } catch (IOException e) {\r\n inWrite1 = false;\r\n throw e;\r\n }\r\n }", "static void writeFile(){\n try{\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n Files.write(contactsListPath, contactList);\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n //refreshes list of Contact objs\n fileToContactObjs();\n }", "public boolean writeDataFile();", "private void writeToFile(String pathName,Object logs) {\r\n try {\r\n File save = new File(pathName);\r\n FileOutputStream fileOutputStream = new FileOutputStream(save);\r\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\r\n objectOutputStream.writeObject(logs);\r\n // System.out.println(\"write successful for\"+pathName);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void recordOrder(){\n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){//throws exception\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Coffee);//prints in file contents of Coffee\n output.close();//closes file\n }", "public void writeContentToFile(String writeInformation)\n {\n try\n {\n PrintWriter printWriter = new PrintWriter(filename);\n try\n {\n printWriter.println(writeInformation);\n } finally\n {\n printWriter.close();\n }\n } catch (Exception e)\n {\n System.out.println(\"cannot write to file called \" + filename);\n }\n }", "public void recordOrder(){ \n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Tea);//writes into the file contents of String Tea\n output.close();//closes file\n }", "public void writeToFile() {\n try {\n // stworz plik\n File file = new File(\"../Alice.ids\");\n // stworz bufor zapisu do pliku\n FileWriter fileWriter = new FileWriter(file);\n for(int i = 0; i < identificationNumbers.length; i++) {\n for(int j = 0; j < identificationNumbers[i].length; j++)\n fileWriter.write(Integer.toString(identificationNumbers[i][j]));\n\t\t\t fileWriter.write(\"\\n\");\n }\n\t\t\tfileWriter.flush();\n\t\t\tfileWriter.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public void writeBinary(RandomAccessFile stream) {\r\n\t\t\r\n\t\t// Create paddable stringBuffers\r\n\t\tStringBuffer dateSB = new StringBuffer(trmt_date);\r\n\t\tStringBuffer stratumSB = new StringBuffer(stratum);\r\n\t\tStringBuffer raceOtherSB = new StringBuffer(race_other);\r\n\t\tStringBuffer diagOtherSB = new StringBuffer(diag_other);\r\n\t\tStringBuffer narr1SB = new StringBuffer(narr1);\r\n\t\tStringBuffer narr2SB = new StringBuffer(narr2);\r\n\t\t\r\n\t\t// Write to the Binary file\r\n\t\ttry {\r\n\t\t\tstream.writeInt(cpscCase);\r\n\t\t\tdateSB.setLength(dateLength);\r\n\t\t\tstream.writeBytes(dateSB.toString());\r\n\t\t\tstream.writeInt(psu);\r\n\t\t\tstream.writeDouble(weight);\r\n\t\t\tstratumSB.setLength(stratumLength);\r\n\t\t\tstream.writeBytes(stratumSB.toString());\r\n\t\t\tstream.writeInt(age);\r\n\t\t\tstream.writeInt(sex);\r\n\t\t\tstream.writeInt(race);\r\n\t\t\traceOtherSB.setLength(raceOtherLength);\r\n\t\t\tstream.writeBytes(raceOtherSB.toString());\r\n\t\t\tstream.writeInt(diag);\r\n\t\t\tdiagOtherSB.setLength(diagOtherLength);\r\n\t\t\tstream.writeBytes(diagOtherSB.toString());\r\n\t\t\tstream.writeInt(body_part);\r\n\t\t\tstream.writeInt(disposition);\r\n\t\t\tstream.writeInt(location);\r\n\t\t\tstream.writeInt(fmv);\r\n\t\t\tstream.writeInt(prod1);\r\n\t\t\tstream.writeInt(prod2);\r\n\t\t\tnarr1SB.setLength(narr1Length);\r\n\t\t\tstream.writeBytes(narr1SB.toString());\r\n\t\t\tnarr2SB.setLength(narr2Length);\r\n\t\t\tstream.writeBytes(narr2SB.toString());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void writeToFile(String filename, String content){\n\t\tFileWriter file;\n\t\ttry {\n\t\t\tfile = new FileWriter(filename,true);\n\t\t\tBufferedWriter writer = new BufferedWriter(file);\n\n\t\t\twriter.append(content);\n\t\t\twriter.newLine();\n\t\t\twriter.close();\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}", "private void guardarArchivoMemoriaInterna(String objeto,String fileName,int modoGuardado) throws FileSaverException{\n String msg = contexto.getResources().getString(R.string.fileSaverErrorEscrituraLocal);\n FileOutputStream mOutput;\n if(objeto!=null) {\n try {\n Log.v(TAG,\"Guardando el archivo \"+fileName+\" en memoriaInterna\");\n mOutput = contexto.openFileOutput(fileName, modoGuardado);\n mOutput.write(objeto.toString().getBytes());\n mOutput.flush();\n mOutput.close();\n msg = contexto.getResources().getString(R.string.fileSaverAlmacenExitoso);\n Log.v(TAG,msg);\n }\n catch(FileNotFoundException e){\n throw new FileSaverException(msg);\n }\n catch(IOException e){\n throw new FileSaverException(msg);\n }\n }\n else{\n throw new FileSaverException(msg);\n }\n }", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writePage(Page page) throws IOException {\n \tHeapPage heapPage = (HeapPage)page;\n \tbyte[] byteArray = heapPage.getPageData();\n \t\n \tint pageNumber = heapPage.getId().pageno();\n \tint offSet = (pageNumber)*BufferPool.PAGE_SIZE;\n \t\n \tRandomAccessFile oStream = null;\n \t\n \toStream = new RandomAccessFile(file,\"rw\");\n \toStream.skipBytes(offSet);\n \toStream.write(byteArray);\n }", "public void store (String fileName) throws IOException {\n\t\tBufferedWriter out = new BufferedWriter\n\t\t\t(new OutputStreamWriter\n\t\t\t (new FileOutputStream(fileName), JetTest.encoding));\n\t\tannotator.writeTagTable (out);\n\t\tout.write (\"endtags\");\n\t\tout.newLine ();\n\t\tmene.store (out);\n\t}", "public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }", "public boolean WriteToFile(String content,Context context) {\r\n String fileName = \"BuddyStorageBeta.txt\";\r\n FileOutputStream outputStream = null;\r\n try {\r\n outputStream = context.openFileOutput(fileName, Context.MODE_APPEND);\r\n outputStream.write(content.getBytes());\r\n outputStream.close();\r\n return true;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n }", "public static void writeStreamAppendByFileWriter(String fileName, String content) throws IOException {\n try {\n FileWriter writer = new FileWriter(fileName, true);\n writer.write(content);\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void saveToFile(Map<String, T> data) throws IOException{\n\t\tOutputStream file = new FileOutputStream(filePath);\n OutputStream buffer = new BufferedOutputStream(file);\n ObjectOutput output = new ObjectOutputStream(buffer);\n\n // serialize the Map\n output.writeObject(data);\n output.close();\n\t}" ]
[ "0.6332722", "0.6244972", "0.61871356", "0.61831886", "0.6136282", "0.6068799", "0.60601777", "0.604679", "0.5989045", "0.5979494", "0.5969148", "0.5966145", "0.59653753", "0.5962671", "0.58848214", "0.5884263", "0.5833735", "0.58270854", "0.5803389", "0.57767504", "0.5771799", "0.5757373", "0.57248265", "0.5697146", "0.5683195", "0.5683062", "0.5662105", "0.5661151", "0.56596285", "0.56558913", "0.56457585", "0.5636494", "0.56363285", "0.5624734", "0.5610525", "0.5597966", "0.5597675", "0.5595548", "0.5592979", "0.5586147", "0.55717355", "0.5571388", "0.5559245", "0.5557357", "0.5555967", "0.5555166", "0.55533344", "0.55399084", "0.5535461", "0.5509917", "0.5504904", "0.550321", "0.54988176", "0.54930806", "0.5492277", "0.54842633", "0.5482884", "0.54759395", "0.5472571", "0.5468902", "0.5466159", "0.5464732", "0.5463554", "0.546261", "0.54597884", "0.5452537", "0.54482925", "0.5442867", "0.5442559", "0.5436428", "0.540777", "0.5403274", "0.54009056", "0.5396162", "0.5393176", "0.538978", "0.5383467", "0.53828764", "0.53828305", "0.5380143", "0.53797954", "0.5377458", "0.53771794", "0.53743875", "0.5372988", "0.53724575", "0.5369086", "0.53678477", "0.5367544", "0.53660643", "0.53529364", "0.5351417", "0.5339954", "0.5337393", "0.5337277", "0.53360635", "0.53305644", "0.5328236", "0.5322067", "0.53080714" ]
0.55401164
47
save data from form to database
@PostMapping("/user-list") public String userlist(@ModelAttribute User user, ModelMap model){ model.addAttribute("USERS", userService.save(user)); model.addAttribute("addStatus", true); return "redirect:/admin/user-list"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getText());\n client.setDni(dniTextField.getText());\n client.setAddress(addressTextField.getText());\n client.setTelephone(telephoneTextField.getText());\n\n // Guarda la información\n DBManager.getInstance().saveData(client);\n }", "public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }", "private void saveData() {\n try {\n Student student = new Student(firstName.getText(), lastName.getText(),\n form.getText(), stream.getText(), birth.getText(),\n gender.getText(), Integer.parseInt(admission.getText()),\n Integer.parseInt(age.getText()));\n\n\n if (action.equalsIgnoreCase(\"new\") && !assist.checkIfNull(student)) {\n\n dao.insertNew(student);\n JOptionPane.showMessageDialog(null, \"Student saved !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n\n } else if (action.equalsIgnoreCase(\"update\") && !assist.checkIfNull(student)) {\n dao.updateStudent(student, getSelected());\n JOptionPane.showMessageDialog(null, \"Student Updated !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n prepareTable();\n prepareHistory();\n buttonSave.setVisible(false);\n admission.setEditable(true);\n }catch (Exception e)\n {}\n }", "private void saveForm() {\n\n if (reportWithCurrentDateExists()) {\n // Can't save this case\n return;\n }\n\n boolean isNewReport = (mRowId == null);\n\n // Get field values from the form elements\n\n // Date\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n String date = df.format(mCalendar.getTime());\n\n // Value\n Double value;\n try {\n value = Double.valueOf(mValueText.getText().toString());\n } catch (NumberFormatException e) {\n value = 0.0;\n }\n\n // Create/update report\n boolean isSaved;\n if (isNewReport) {\n mRowId = mDbHelper.getReportPeer().createReport(mTaskId, date, value);\n isSaved = (mRowId != 0);\n } else {\n isSaved = mDbHelper.getReportPeer().updateReport(mRowId, date, value);\n }\n\n // Show toast notification\n if (isSaved) {\n int toastMessageId = isNewReport ?\n R.string.message_report_created :\n R.string.message_report_updated;\n Toast toast = Toast.makeText(getApplicationContext(), toastMessageId, Toast.LENGTH_SHORT);\n toast.show();\n }\n }", "private void saveData() {\r\n\t\tif(mFirstname.getText().toString().trim().length() > 0 &&\r\n\t\t\t\tmLastname.getText().toString().trim().length() > 0 &&\r\n\t\t\t\tmEmail.getText().toString().trim().length() > 0) {\r\n\t\t\tmPrefs.setFirstname(mFirstname.getText().toString().trim());\r\n\t\t\tmPrefs.setLastname(mLastname.getText().toString().trim());\r\n\t\t\tmPrefs.setEmail(mEmail.getText().toString().trim());\r\n\t\t\tif(mMaleBtn.isChecked())\r\n\t\t\t\tmPrefs.setGender(0);\r\n\t\t\telse if(mFemaleBtn.isChecked())\r\n\t\t\t\tmPrefs.setGender(1);\r\n\t\t\tif(!mCalendarSelected.after(mCalendarCurrent)) \r\n\t\t\t\tmPrefs.setDateOfBirth(mCalendarSelected.get(Calendar.YEAR), \r\n\t\t\t\t\t\tmCalendarSelected.get(Calendar.MONTH), \r\n\t\t\t\t\t\tmCalendarSelected.get(Calendar.DAY_OF_MONTH));\r\n\t\t\tToast.makeText(getActivity(), R.string.msg_changes_saved, Toast.LENGTH_LONG).show();\r\n\t\t} else \r\n\t\t\tToast.makeText(getActivity(), R.string.msg_registration_empty_field, Toast.LENGTH_LONG).show();\r\n\t}", "void save(DeliveryOrderForm deliveryOrderForm);", "public void saveForm(ActionEvent event) throws SQLException, ParseException {\n actionItemClass obj = new actionItemClass();\n obj.saveForm(this);\n }", "private void save() {\n if (String.valueOf(tgl_pengobatanField.getText()).equals(null)\n || String.valueOf(waktu_pengobatanField.getText()).equals(null) ) {\n Toast.makeText(getApplicationContext(),\n \"Ada Yang Belum Terisi\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.insert(nama_pasien2,\n nama_dokter2,\n tgl_pengobatanField.getText().toString().trim(),\n waktu_pengobatanField.getText().toString(),\n keluhan_pasienField.getText().toString().trim(),\n hasil_diagnosaField.getText().toString().trim(),\n biayaField.getText().toString().trim());\n blank();\n finish();\n }\n }", "protected void saveValues() {\n dataModel.persist();\n }", "public void saveFormData() {\r\n if(!saveRequired) return;\r\n if(cvHierarchyData != null && cvHierarchyData.size()>0) {\r\n SponsorHierarchyBean sponsorHierarchyBean;\r\n for(int index=0; index<cvHierarchyData.size(); index++) {\r\n try {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvHierarchyData.get(index);\r\n if(sponsorHierarchyBean.getAcType() != null) {\r\n if(sponsorHierarchyBean.getAcType() == TypeConstants.UPDATE_RECORD) {\r\n queryEngine.update(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.INSERT_RECORD) {\r\n queryEngine.insert(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.DELETE_RECORD) {\r\n queryEngine.delete(queryKey,sponsorHierarchyBean);\r\n }\r\n }\r\n }catch(CoeusException coeusException){\r\n coeusException.printStackTrace();\r\n }\r\n }\r\n }\r\n saveRequired = false;\r\n }", "private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.this, StartActivity.class);\n\t\tEditActivity.this.startActivity(myIntent);\n\t\tfinish();\n\t}", "private void save() {\n Toast.makeText(ContactActivity.this, getString(R.string.save_contact_toast), Toast.LENGTH_SHORT).show();\n\n String nameString = name.getText().toString();\n String titleString = title.getText().toString();\n String emailString = email.getText().toString();\n String phoneString = phone.getText().toString();\n String twitterString = twitter.getText().toString();\n \n if (c != null) {\n datasource.editContact(c, nameString, titleString, emailString, phoneString, twitterString);\n }\n else {\n \tc = datasource.createContact(nameString, titleString, emailString, phoneString, twitterString);\n }\n }", "public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }", "private void saveToDb() {\r\n ContentValues values = new ContentValues();\r\n values.put(DbAdapter.KEY_DATE, mTime);\r\n if (mPayeeText != null && mPayeeText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_PAYEE, mPayeeText.getText().toString());\r\n if (mAmountText != null && mAmountText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_AMOUNT, mAmountText.getText().toString());\r\n if (mCategoryText != null && mCategoryText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_CATEGORY, mCategoryText.getText().toString());\r\n if (mMemoText != null && mMemoText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_MEMO, mMemoText.getText().toString());\r\n if (mTagText != null && mTagText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_TAG, mTagText.getText().toString());\r\n\r\n \tif (Utils.validate(values)) {\r\n \t\tmDbHelper.open();\r\n \t\tif (mRowId == null) {\r\n \t\t\tlong id = mDbHelper.create(values);\r\n \t\t\tif (id > 0) {\r\n \t\t\t\tmRowId = id;\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tmDbHelper.update(mRowId, values);\r\n \t\t}\r\n \t\tmDbHelper.close();\r\n \t}\r\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 }", "public void save();", "public void save();", "public void save();", "public void save();", "private void save(ActionEvent e){\r\n // Make sure all required fields are filled out before saving\r\n if (formIsValid()){\r\n // Check if client currently exists. If so, modify. Otherwise create new entry.\r\n if (existingClient){\r\n // Modify the existing currentClient holder -- Change the variable to global currentClient cache holder\r\n currClient.setName(NAME_FIELD.getText());\r\n currClient.setAddress1(ADDRESS_1_FIELD.getText());\r\n currClient.setAddress2(ADDRESS_2_FIELD.getText());\r\n currClient.setCity(CITY_FIELD.getText());\r\n currClient.setZip(ZIP_FIELD.getText());\r\n currClient.setCountry(COUNTRY_FIELD.getText());\r\n currClient.setPhone(PHONE_FIELD.getText());\r\n // Update client in database\r\n Client.modifyClient(currClient, currClient.getClientID());\r\n }\r\n // Create new client entry\r\n else { \r\n Client c = new Client (NAME_FIELD.getText(),ADDRESS_1_FIELD.getText(),\r\n ADDRESS_2_FIELD.getText(),CITY_FIELD.getText(),\r\n ZIP_FIELD.getText(),COUNTRY_FIELD.getText(),PHONE_FIELD.getText());\r\n Client.addNewClient(c);\r\n }\r\n\r\n existingClient = false; // reset existing client flag\r\n clearFields(); // remove data from fields\r\n // Return to Appt Mgmt Screen if we came from there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n }\r\n // If forms are not complete throw an alert\r\n else {\r\n AlertBox.display(\"Invalid Submission\", \"Form is missing required information or has invalid input.\"\r\n + \" The following information is required:\\n\"\r\n + \"Name\\nAddress 1\\nCity, State, Country, Zipcode\\nPhoneNumber\"\r\n + \"\\nPlease complete form with valid input and submit again.\");\r\n }\r\n }", "protected void Save() {\n\t\tString WareName = txtWareName.getText().trim();\n\t\tint WareCap = Integer.parseInt(txtWareCap.getText().trim());\n\t\tString WareAddress = txtWareAddress.getText().trim();\n\t\tint WareUser = Integer.parseInt(txtWareUser.getText().trim());\n\t\tWareUserDto wud = new WareUserDto();\n\t\t\n\t\twud.setWareID(this.wud.getWareID());\n\t\twud.setWareName(WareName);\n\t\twud.setWareCap(WareCap);\n\t\twud.setWareAddress(WareAddress);\n\t\twud.setWareUser(WareUser);\n\t\t\n\t\tif(service.updateWareUserService(wud)){\n\t\t\tList<WareUserDto> list = service.getWareHouseAllInfo();\n\t\t\t//bwj.setTabDate(list);\n\t\t\tbtnWareJDialog.setTabDate(list);\n\t\t\tthis.dispose();\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(this, \"修改失败\", \"错误\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t}", "public void saveFormData() throws edu.mit.coeus.exception.CoeusException {\r\n instRateClassTypesController.saveFormData();\r\n instituteRatesController.saveFormData(); \r\n }", "public void saveOnClick(View view) {\n final EditText nameET = (EditText) findViewById(R.id.name_et);\n final EditText titleET = (EditText) findViewById(R.id.title_et);\n final EditText emailET = (EditText) findViewById(R.id.email_et);\n final EditText addressET = (EditText) findViewById(R.id.address_et);\n user.setName(nameET.getText().toString());\n user.setTitle(titleET.getText().toString());\n user.setEmailAddress(emailET.getText().toString());\n user.setHomeAddress(addressET.getText().toString());\n\n RegistrationData.editUserData(db, user);\n finish();\n }", "public void save()throws Exception{\n if(!pname1.getText().isEmpty() && !qty1.getText().isEmpty() && !prc1.getText().isEmpty() && !rsp1.getText().isEmpty() ){\r\n s_notif1.setId(\"hide\");\r\n ArrayList<Product> ar = new ArrayList<>();\r\n com.mysql.jdbc.Connection conn = db.getConnection();\r\n Statement stm = conn.createStatement();\r\n int rs = stm.executeUpdate(\"UPDATE products SET \"\r\n + \"name='\"+pname1.getText()+\"', \"\r\n + \"qty='\"+qty1.getText()+\"', \"\r\n + \"price='\"+prc1.getText()+\"',\"\r\n + \"re_stock_point='\"+rsp1.getText()+\"' WHERE ID ='\"+S_ID+\"';\");\r\n if(rs > 0){\r\n s_notif1.setId(\"show\");\r\n }\r\n }\r\n loadData();\r\n }", "public void saveData(){\n\n if(addFieldstoLift()) {\n Intent intent = new Intent(SetsPage.this, LiftsPage.class);\n intent.putExtra(\"lift\", lift);\n setResult(Activity.RESULT_OK, intent);\n finish();\n }else{\n AlertDialog.Builder builder = new AlertDialog.Builder(SetsPage.this);\n builder.setCancelable(true);\n builder.setTitle(\"Invalid Entry\");\n builder.setMessage(\"Entry is invalid. If you continue your changes will not be saved\");\n builder.setPositiveButton(\"Continue\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n }", "private void save() {\r\n if (String.valueOf(txt_name.getText()).equals(\"\") || String.valueOf(txt_bagian.getText()).equals(\"\")|| String.valueOf(txt_address.getText()).equals(\"\")|| String.valueOf(txt_telp.getText()).equals(\"\")) {\r\n Toast.makeText(getApplicationContext(),\r\n \"Anda belum memasukan Nama atau ALamat ...\", Toast.LENGTH_SHORT).show();\r\n } else {\r\n SQLite.insert(txt_name.getText().toString().trim(),txt_bagian.getText().toString().trim(), txt_address.getText().toString().trim(), txt_telp.getText().toString().trim());\r\n Toast.makeText(getApplicationContext(),\"Berhasil Menambahkan Data\",Toast.LENGTH_SHORT).show();\r\n blank();\r\n finish();\r\n }\r\n }", "public void saveToDatabase(View view) {\n // new implementation\n EditText recipeName = findViewById(R.id.input_Name);\n EditText recipeDirections = findViewById(R.id.input_Directions);\n EditText recipeNotes = findViewById(R.id.input_Notes);\n\n\n if (!(recipeName.getText().toString().equals(\"\"))) {\n newRecipe.setName(recipeName.getText().toString());\n newRecipe.setDirections(recipeDirections.getText().toString());\n newRecipe.setNotes(recipeNotes.getText().toString());\n\n dbHandler.addRecipe(newRecipe);\n\n finish();\n }\n else {\n Toast.makeText(this, \"You must enter a name for your recipe!\", Toast.LENGTH_SHORT).show();\n }\n }", "private void saveData(){\n\t\tdataBase=mHelper.getWritableDatabase();\n\t\tContentValues values=new ContentValues();\n\t\t\n\t\tvalues.put(DbHelper.KEY_NNAME,nname);\n\t\t//values.put(DbHelper.KEY_LNAME,lname );\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tif(isUpdate)\n\t\t{ \n\t\t\t//update database with new data \n\t\t\tdataBase.update(DbHelper.TABLE_NOTE, values, DbHelper.KEY_ID+\"=\"+id, null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//insert data into database\n\t\t\tdataBase.insert(DbHelper.TABLE_NOTE, null, values);\n\t\t}\n\t\t//close database\n\t\tdataBase.close();\n\t\tfinish();\n\t\t\n\t\t\n\t}", "public void save(View view){\n\t\tIntent saveIntent = new Intent(this, SaveActivity.class);\n\t\t//First Name\n\t\tEditText firstName = (EditText) findViewById(R.id.first_name_edit);\n \tString sFirstName = firstName.getText().toString();\n \t\n \t//Last Name\n \tEditText lastName = (EditText) findViewById(R.id.last_name_edit);\n \tString sLastName = lastName.getText().toString();\n \t\n \t//Address\n \tEditText address = (EditText) findViewById(R.id.address_edit);\n \tString sAddress = address.getText().toString();\n \t\n \t//Credit Details\n \tEditText creditDetails = (EditText) findViewById(R.id.credit_details_edit);\n \tString sCreditDetails = creditDetails.getText().toString();\n \t\n \t//Attach Strings to Intent\n \tsaveIntent.putExtra(FIRST_NAME, sFirstName);\n \tsaveIntent.putExtra(LAST_NAME, sLastName);\n \tsaveIntent.putExtra(ADDRESS, sAddress);\n \tsaveIntent.putExtra(CREDIT_DETAILS, sCreditDetails);\n \t\n \t//Start Activity\n \tstartActivity(saveIntent);\n\t}", "private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveActionPerformed\n boolean flag = this.cutiController.save(txtCutiID.getText(), (txtTglAwal.getText()), (txtTglAkhir.getText()),\n txtKet.getText(), cmbCutiKhususID.getSelectedIndex());\n String message = \"Failed to save data...\";\n if (flag){\n message = \"Success to save data...\";\n }\n JOptionPane.showMessageDialog(this, message, \"Allert / Notification\", \n JOptionPane.INFORMATION_MESSAGE);\n \n bindingTable();\n reset();\n }", "protected void saveDatos() {\r\n\r\n myNombre = (TextView) findViewById(R.id.spinNombre);\r\n myPrecio = (TextView) findViewById(R.id.spinPrecio);\r\n myMarca = (TextView) findViewById(R.id.spinMarca);\r\n myId_juego = (TextView) findViewById(R.id.spinID);\r\n\r\n String id = myId_juego.getText().toString();\r\n String precio = myPrecio.getText().toString();\r\n String marca = myMarca.getText().toString();\r\n String nombre = myNombre.getText().toString();\r\n\r\n try {\r\n MainActivity.myDbHelper.open();\r\n MainActivity.myDbHelper.insertJuegos(nombre, precio, marca, id);\r\n MainActivity.myDbHelper.close();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n int cid=Integer.parseInt(request.getParameter(\"cid\"));\n String stime=request.getParameter(\"stime\"); \n String etime=request.getParameter(\"etime\");\n int tid=Integer.parseInt(request.getParameter(\"tid\"));\n String date=request.getParameter(\"date\");\n if(request.getParameter(\"action\").equalsIgnoreCase(\"save\")){\n GroupModel gm=new GroupModel();\n gm.setCid(cid);\n gm.setStime(stime);\n gm.setEtime(etime);\n gm.setTid(tid);\n gm.setDate(date);\n System.out.println(\"cid\"+cid);\n System.out.println(\"stime\"+stime);\n System.out.println(\"tis\"+tid);\n GroupDao.insert(gm);\n\n \n }\n \n }", "void save();", "void save();", "void save();", "private void onClickSaveButton() {\n // Validate and save form\n if (mDynamicForm.validate()) {\n triggerSubmitForm(mDynamicForm.getForm().getAction(), mDynamicForm.save());\n }\n }", "public void save() {\n if (AppUtil.isEmpty(txtName.getText().toString())) {\n AppUtil.alertMessage(mainActivity,\"Please enter valid recipe name.\");\n txtName.requestFocus();\n } else if (AppUtil.isEmpty(txtDesc.getText().toString())) {\n AppUtil.alertMessage(mainActivity, \"Please enter recipe description.\");\n txtDesc.requestFocus();\n } else if (AppUtil.isEmpty(txtIng.getText().toString())) {\n AppUtil.alertMessage(mainActivity, \"Please enter ingredient/s.\");\n txtIng.requestFocus();\n } else if (AppUtil.isEmpty(txtSteps.getText().toString())) {\n AppUtil.alertMessage(mainActivity, \"Please enter preparation steps.\");\n txtSteps.requestFocus();\n } else {\n try {\n if (MainActivity.checkNetwork(mainActivity)) {\n SaveAsyncTask task = new SaveAsyncTask();\n task.execute();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "private void saveUserDetails()\r\n\t{\r\n\t\t/*\r\n\t\t * Retrieve content from form\r\n\t\t */\r\n\t\tContentValues reg = new ContentValues();\r\n\r\n\t\treg.put(UserdataDBAdapter.C_NAME, txtName.getText().toString());\r\n\r\n\t\treg.put(UserdataDBAdapter.C_USER_EMAIL, txtUserEmail.getText()\r\n\t\t\t\t.toString());\r\n\r\n\t\treg.put(UserdataDBAdapter.C_RECIPIENT_EMAIL, lblAddressee.getText()\r\n\t\t\t\t.toString());\r\n\r\n\t\tif (rdbKilo.isChecked())\r\n\t\t{\r\n\t\t\treg.put(UserdataDBAdapter.C_USES_METRIC, 1);\t// , true\r\n\t\t}\r\n\t\telse\r\n\t\t\tif (rdbPound.isChecked())\r\n\t\t\t{\r\n\t\t\t\treg.put(UserdataDBAdapter.C_USES_METRIC, 0);\t// , false\r\n\t\t\t}\r\n\r\n\t\t/*\r\n\t\t * Save content into database source:\r\n\t\t * http://stackoverflow.com/questions/\r\n\t\t * 9212574/calling-activity-methods-from-fragment\r\n\t\t */\r\n\t\ttry\r\n\t\t{\r\n\t\t\tActivity parent = getActivity();\r\n\r\n\t\t\tif (parent instanceof LauncherActivity)\r\n\t\t\t{\r\n\t\t\t\tif (arguments == null)\r\n\t\t\t\t{\r\n\t\t\t\t\t((LauncherActivity) parent).getUserdataDBAdapter().insert(\r\n\t\t\t\t\t\t\treg);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treg.put(UserdataDBAdapter.C_ID, arguments.getInt(\"userId\"));\r\n\r\n\t\t\t\t\t((LauncherActivity) parent).getUserdataDBAdapter().update(\r\n\t\t\t\t\t\t\treg);\r\n\r\n\t\t\t\t\t((LauncherActivity) parent).queryForUserDetails();\r\n\t\t\t\t}\r\n\t\t\t\tToast.makeText(parent, \"User details successfully stored\",\r\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e)\r\n\t\t{\r\n\t\t\tLog.i(this.getClass().toString(), e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\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}", "private void saveData() {\n }", "public void saveData(){\n String name = editTextName.getText().toString();\n if(!name.isEmpty()){\n DataManager.getInstance().addName(name);\n }\n\n finish();\n }", "public void guardar() {\n String msj = \"\";\n int idpagoanulado = daoPagoCuotaAnulado.nuevoID();\n Date SYSDATE = new Date();\n java.sql.Timestamp fechaPagoCuotaAnuladoSQL = new java.sql.Timestamp(SYSDATE.getTime());\n String observacion = txtObservacion.getText();\n int idmotivo = Integer.parseInt(txtCodigoMotivo.getText());\n int idusuario = appLogin.IDUSUARIO;\n int idpago =Integer.parseInt(txtNumeroPago.getText());\n Date fechapago = daoCotizacion.parseFecha(txtFechaPago.getText());\n java.sql.Date fechapagoSQL = new java.sql.Date(fechapago.getTime());\n double mPago = montoPago;\n String numerocomprobante = txtComprobante.getText();\n String numerorecibo = txtRecibo.getText();\n //VALIDACIONES\n if (idmotivo == 0) {\n msj += \"CODIGO DEL MOTIVO DE ANULACION ESTA VACIO.\\n\";\n }\n if (idpago == 0) {\n msj += \"NO HA SELECCIONADO NINGUN PAGO PARA LA ANULACIÓN.\\n\";\n }\n if (msj.isEmpty()) {\n cpca.setIdpagoanulado(idpagoanulado);\n cpca.setFechahoranulado(fechaPagoCuotaAnuladoSQL);\n cpca.setObservacion(observacion);\n cpca.setIdmotivo(idmotivo);\n cpca.setIdusuario(idusuario);\n cpca.setIdpago(idpago);\n cpca.setFechapago(fechapagoSQL);\n cpca.setMonto(mPago);\n cpca.setNumerocomprobante(numerocomprobante);\n cpca.setNumerorecibo(numerorecibo);\n daoPagoCuotaAnulado.agregar(cpca);\n } else {\n JOptionPane.showMessageDialog(null, msj, \"ERRORES\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public boolean save(Data model);", "public void save() {\t\n\t\n\t\n\t}", "public void SaveInfo() {\n if (NameSurname_enter.getText() != null && validateString(NameSurname_enter.getText())) {\n patient.setName(NameSurname_enter.getText());\n } else {\n JOptionPane.showMessageDialog(null, \"Please, enter a valid name and surname. It should only contain characters and spaces. \", \"Warning\", JOptionPane.INFORMATION_MESSAGE);\n }\n if (Age_enter.getText() != null && validateInt(Age_enter.getText())) {\n patient.setAge(Integer.parseInt(Age_enter.getText()));\n } else {\n JOptionPane.showMessageDialog(null, \"Please, enter a valid age. It should be a number. \", \"Warning\", JOptionPane.INFORMATION_MESSAGE);\n }\n if (Sex_box.getSelectedItem().equals(\"Male\")) {\n patient.setSex(\"MALE\");\n } else {\n patient.setSex(\"FEMALE\");\n }\n\n }", "void storeFormState();", "@FXML\n public void save(ActionEvent event) throws SQLException {\n current.parseRole(roleTextBox.getText());\n \n current.setName(comboFkp.getValue());\n current.setTitle(comboFkm.getValue());\n \n if(inserting) {\n System.out.println(\"Inserting \" + current.getTitle() + \" \" + current.getName());\n // Precisa inserir dois booleanos no final, um para ator e um para diretor\n dh.insertPersonMidia(current.getTitle(), current.getName(), current.getActor(), current.getDirector());\n }\n\n closeWindow();\n }", "private void saveUserDetails() {\n UserModel userModel = new UserModel();\n userModel.setUserName(editUserName.getText().toString());\n userModel.setPassword(editPassword.getText().toString());\n\n /* if (db.insertUserDetils(userModel)) {\n //Toast.makeText(LoginActivity.this, \"Successfully save\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Data not Saved\", Toast.LENGTH_SHORT).show();\n }*/\n }", "@Override\r\n public void save(BuyTicketModel value) {\n String sql = \"insert into buyticket values(?,?,?,?,?,?,?,?,?,?,?,?) \";\r\n \r\n try {\r\n PreparedStatement pstm = database.getCon().prepareStatement(sql);\r\n pstm.setString(1, value.getSlno());\r\n pstm.setString(2, value.getCustomername());\r\n pstm.setString(10,value.getContact());\r\n pstm.setString(3, value.getDestination());\r\n pstm.setString(4, value.getTime());\r\n pstm.setString(5, value.getFare());\r\n pstm.setString(6, value.getComment());\r\n pstm.setString(7, value.getDate());\r\n pstm.setString(8, value.getPayment());\r\n pstm.setString(9, value.getSeat());\r\n pstm.setString(11, value.getType());\r\n pstm.setString(12, value.getBusname());\r\n \r\n \r\n pstm.executeUpdate();\r\n pstm.close();\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(BuyTicketImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n }", "private void jButtonSaveStageplaatsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSaveStageplaatsActionPerformed\n\n storeDisplayedStageplaats();\n \n this.dbFacade.persist((this.geselecteerdeStageplaats));\n refreshDataCache();\n refreshListbox();\n }", "public void saveAndClose(ActionEvent ae) {\n\n\t\tif (fieldEmail.getText().isEmpty() || fieldPassword.getText().isEmpty() || fieldName.getText().isEmpty()\n\t\t\t\t|| fieldSurname.getText().isEmpty() || fieldAddress.getText().isEmpty() || fieldCAP.getText().isEmpty()\n\t\t\t\t|| fieldCity.getText().isEmpty() || fieldNumber.getText().isEmpty()) {\n\t\t\tlblError.setText(\"ATTENZIONE: è necessario compilare tutti i campi!\");\n\t\t\tlblError.setVisible(true);\n\n\t\t}\n\n\t\t/*\n\t\t * Controllo errori TODO, eventualmente display errore TODO, salvataggio TODO\n\t\t */\n\t\telse {\n\n\t\t\t//Salvataggio dati\n\t\t\tGlobals.currentUser.setEmail(fieldEmail.getText());\n\t\t\tGlobals.currentUser.setPassword(fieldPassword.getText());\n\t\t\tGlobals.currentUser.getAnagrafica().setName(fieldName.getText());\n\t\t\tGlobals.currentUser.getAnagrafica().setFamilyName(fieldSurname.getText());\n\t\t\tGlobals.currentUser.getAnagrafica().setAddress(fieldAddress.getText());\n\t\t\tGlobals.currentUser.getAnagrafica().setAddress(fieldAddress.getText());\n\t\t\tGlobals.currentUser.getAnagrafica().setCity(fieldCity.getText());\n\t\t\tGlobals.currentUser.getAnagrafica().setCAP(fieldCAP.getText());\n\t\t\tGlobals.currentUser.getAnagrafica().setMobileNumber(fieldNumber.getText());\n\t\t\t\n\t\t\tSystem.out.println(\"[✓] Nuovo nome salvato in memoria (ram)\");\n\n\t\t\tJsonSaver.saveUser();\n\t\t\tJsonSaver.saveWorker();\n\t\t\tcloseUI(ae);\n\n\t\t}\n\n\t}", "@FXML\r\n private void handleSaveBtn(ActionEvent event) {\r\n\r\n LocalDate date_of_birth = dob.getValue(); //get date of birth value from calender and convert it to local date\r\n LocalDate reg_date = registrationDate.getValue(); //get registration date from calendar and convert it to local date\r\n Connection connection = DBConnection.Connect();//creates and instance of the DBConnection class and invokes the Connect Method\r\n String sql;\r\n PreparedStatement pst;\r\n //Beginning of if-else block\r\n if (userTypeComboBox.getValue().equals(\"Admin\")) {\r\n sql = \"INSERT INTO admin (admin_name, admin_gender, admin_DOB, admin_reg_date, admin_phn, profile_pic, admin_login, admin_password)\"\r\n + \" VALUES (?, ?, ?, ?, ?, ?, ?, ?)\";\r\n try {\r\n fis = new FileInputStream(f);\r\n pst = connection.prepareStatement(sql);\r\n pst.setString(1, userNameTextField.getText().toUpperCase());\r\n pst.setString(2, radioLabel.getText().toUpperCase());\r\n pst.setString(3, date_of_birth.toString());\r\n pst.setString(4, reg_date.toString());\r\n pst.setString(5, phoneNumberTextField.getText());\r\n pst.setBinaryStream(6, (InputStream) fis, (int) f.length());\r\n pst.setString(7, loginNameTextField.getText());\r\n pst.setString(8, password1Field.getText());\r\n\r\n int i = pst.executeUpdate();\r\n if (i != 0) {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setContentText(\"NEW ADMIN RECORD ADDED TO DATABASE\");\r\n alert.showAndWait();\r\n }\r\n\r\n } catch (FileNotFoundException ex) {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setContentText(\"FILE UPLOAD ERROR\");\r\n alert.showAndWait();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManageUsersController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n } else if (userTypeComboBox.getValue().equals(\"Doctor\")) {\r\n\r\n sql = \"INSERT INTO doctor(\"\r\n + \"doctor_name,\"\r\n + \" doctor_address,\"\r\n + \"doctor_phone_number,\"\r\n + \"doctor_gender,\"\r\n + \"doctor_pic,\"\r\n + \"doctor_DOB, \"\r\n + \"specialty, \"\r\n + \"doctor_reg_date, \"\r\n + \"doctor_login, \"\r\n + \"doctor_password)\"\r\n + \"VALUES( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n try {\r\n fis = new FileInputStream(f);\r\n PreparedStatement statement = connection.prepareStatement(sql);\r\n statement.setString(1, userNameTextField.getText().toUpperCase());\r\n statement.setString(2, addressTextField.getText());\r\n statement.setString(3, phoneNumberTextField.getText());\r\n statement.setString(4, radioLabel.getText().toUpperCase());\r\n statement.setBinaryStream(5, (InputStream) fis, (int) f.length());\r\n statement.setString(6, date_of_birth.toString());\r\n statement.setString(7, specialtyCmbBox.getValue());\r\n statement.setString(8, reg_date.toString());\r\n statement.setString(9, loginNameTextField.getText());\r\n statement.setString(10, password1Field.getText());\r\n int i = statement.executeUpdate();\r\n if (i != 0) {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setContentText(\"NEW DOCTOR RECORDED SUCCESSFULLY ADDED TO DATABASE\");\r\n alert.showAndWait();\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManageUsersController.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"COULDN'T PASS FILE TO INPUT STREAM\");\r\n }\r\n\r\n } else if (userTypeComboBox.getValue().equals(\"Receptionist\")) {\r\n sql = \"INSERT INTO receptionist (receptionist_name, receptionist_gender, receptionist_address, receptionist_phn, receptionist_reg_date, receptionist_DOB, profile_pic, receptionist_login, receptionist_password)\"\r\n + \" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n try {\r\n fis = new FileInputStream(f);\r\n pst = connection.prepareStatement(sql);\r\n pst.setString(1, userNameTextField.getText().toUpperCase());\r\n pst.setString(2, radioLabel.getText().toUpperCase());\r\n pst.setString(3, addressTextField.getText());\r\n pst.setString(4, phoneNumberTextField.getText());\r\n pst.setString(5, reg_date.toString());\r\n pst.setString(6, date_of_birth.toString());\r\n pst.setBinaryStream(7, (InputStream) fis, (int) f.length());\r\n pst.setString(8, loginNameTextField.getText());\r\n pst.setString(9, password1Field.getText());\r\n\r\n int i = pst.executeUpdate();\r\n if (i != 0) {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setContentText(\"NEW RECEPTIONIST RECORD SUCCESSFULLY ADDED TO DATABASE\");\r\n alert.showAndWait();\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManageUsersController.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(ManageUsersController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n } else if (userTypeComboBox.getValue().equals(\"Pharmacist\")) {\r\n sql = \"INSERT INTO pharmacist(pharmacist_name, pharnacist_gender, pharmacist_address, pharnacist_phn, \"\r\n + \"pharnacist_DOB, pharmacist_reg_date, profile_pic, pharnacist_login, pharmacist_password)\"\r\n + \"VALUES (?,?,?,?,?,?,?,?,?)\";\r\n\r\n try {\r\n fis = new FileInputStream(f);\r\n pst = connection.prepareStatement(sql);\r\n\r\n pst = connection.prepareStatement(sql);\r\n pst.setString(1, userNameTextField.getText().toUpperCase());\r\n pst.setString(2, radioLabel.getText().toUpperCase());\r\n pst.setString(3, addressTextField.getText());\r\n pst.setString(4, phoneNumberTextField.getText());\r\n pst.setString(5, date_of_birth.toString());\r\n pst.setString(6, reg_date.toString());\r\n pst.setBinaryStream(7, (InputStream) fis, (int) f.length());\r\n pst.setString(8, loginNameTextField.getText());\r\n pst.setString(9, password1Field.getText());\r\n\r\n int i = pst.executeUpdate();\r\n if (i != 0) {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setContentText(\"NEW PHARMACIST RECORD SUCCESSFULLY ADDED TO DATABASE\");\r\n alert.showAndWait();\r\n }\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(ManageUsersController.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManageUsersController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n } else if (userTypeComboBox.getValue().equals(\"Biologist\")) { //insert into biologist table depending on the value of the userType comboBox\r\n sql = \"INSERT INTO biologist (biologist_name, biologist_gender, biologist_address, \"\r\n + \"biologist_DOB, biologist_reg_date, biologist_phn, profile_pic, biologist_login, biologist_password) \"\r\n + \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n try {\r\n fis = new FileInputStream(f);\r\n pst = connection.prepareStatement(sql);\r\n\r\n pst = connection.prepareStatement(sql);\r\n pst.setString(1, userNameTextField.getText().toUpperCase());\r\n pst.setString(2, radioLabel.getText().toUpperCase());\r\n pst.setString(3, addressTextField.getText());\r\n pst.setString(4, date_of_birth.toString());\r\n pst.setString(5, reg_date.toString());\r\n pst.setString(6, phoneNumberTextField.getText());\r\n pst.setBinaryStream(7, (InputStream) fis, (int) f.length());\r\n pst.setString(8, loginNameTextField.getText());\r\n pst.setString(9, password1Field.getText());\r\n\r\n int i = pst.executeUpdate();\r\n if (i != 0) {\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setContentText(\"NEW BIOLOGIST RECORD SUCCESSFULLY ADDED TO DATABASE\");\r\n alert.showAndWait();\r\n }\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(ManageUsersController.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManageUsersController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n } else {\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.setContentText(\"INVALID USER TYPE\\nCONSULT SYSTEM MANNUAL\");\r\n alert.showAndWait();\r\n }\r\n\r\n }", "@Action(value=\"save\",results={@Result(name=\"save\",location=\"/zjwqueryMange.jsp\")})\n\tpublic String save()\n\t{\n\t\tkehuDAO.save(kehu);\n\t\t//保存 kehu\n\t\tkehuList = (ArrayList) kehuDAO.findAll();\n\t\treturn \"save\";\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "public static Result save() {\n List<Manufacturer> manufacturers = Manufacturer.find.all();\n if(request().method() == \"POST\")\n {\n // Read form data\n Form<Product> form = Form.form(Product.class).bindFromRequest();\n\n // Validate the name\n if(form.field(\"name\").valueOr(\"\").isEmpty()){\n Logger.info(form.field(\"name\").valueOr(\"\"));\n form.reject(\"name\", \"Product name cannot be empty!!\");\n }\n // Validate the description\n if(form.field(\"description\").valueOr(\"\").isEmpty()){\n Logger.info(form.field(\"description\").valueOr(\"\"));\n form.reject(\"description\", \"Product description cannot be empty!!\");\n }\n // If errors, return the form\n if(form.hasErrors()){\n Logger.info(\"Why am I here!!!\");\n flash(\"danger\", \"Product form submission has error!!!\");\n return badRequest(views.html.product.form.render(form, manufacturers));\n }\n else{\n Manufacturer manufacturer = Manufacturer.findById(Integer.parseInt(form.field(\"manufacturer_id\").value()));\n Product p = form.get();\n p.manufacturer = manufacturer;\n if(p.id == 0)\n p.save();\n else\n p.update();\n flash(\"success\", \"Product created/updated successfully!!!\");\n return redirect(routes.ProductController.list());\n }\n }\n else{\n flash(\"danger\", \"Invalid product edit request!!!\");\n return redirect(routes.ProductController.list());\n }\n }", "int insert(AbiFormsForm record);", "private void saveProduct() {\n //Delegating to the Presenter to trigger focus loss on listener registered Views,\n //in order to persist their data\n mPresenter.triggerFocusLost();\n\n //Retrieving the data from the views and the adapter\n String productName = mEditTextProductName.getText().toString().trim();\n String productSku = mEditTextProductSku.getText().toString().trim();\n String productDescription = mEditTextProductDescription.getText().toString().trim();\n ArrayList<ProductAttribute> productAttributes = mProductAttributesAdapter.getProductAttributes();\n mCategoryOtherText = mEditTextProductCategoryOther.getText().toString().trim();\n\n //Delegating to the Presenter to initiate the Save process\n mPresenter.onSave(productName,\n productSku,\n productDescription,\n mCategoryLastSelected,\n mCategoryOtherText,\n productAttributes\n );\n }", "public void save() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.save(this);\r\n\t}", "public void saveEmpleado(){\n \n //validor los campos antes de generar algún cambio\n if(!camposValidos()) {\n mFrmMantenerEmpleado.messageBoxAlert(Constant.APP_NAME, \"los campos no deben estar vacíos\");\n return;\n }\n \n //empleado nuevo\n boolean isUpdate=true;\n if(mEmpleado==null){ \n isUpdate=false; \n mEmpleado= new Empleado(); \n }\n \n \n mEmpleado.setFullNamePer(mFrmMantenerEmpleado.txtName.getText());//persona\n mEmpleado.setRucDNI(mFrmMantenerEmpleado.txtDniRuc.getText());//persona \n mEmpleado.setEdad((int)mFrmMantenerEmpleado.spnEdad.getValue());//persona\n mEmpleado.setTelefono(mFrmMantenerEmpleado.txtPhone.getText());//persona\n mEmpleado.setCorreo(mFrmMantenerEmpleado.txtEmail.getText());//persona\n mEmpleado.setDireccion(mFrmMantenerEmpleado.txtAddress.getText());//persona\n mEmpleado.setTipoEmpleado(mTipoEmpleadoList.get(mFrmMantenerEmpleado.cmbEmployeeType.getSelectedIndex()));//empleado\n mEmpleado.setSueldo((float)mFrmMantenerEmpleado.spnPayment.getValue());//empleado\n mEmpleado.setHorarioLaboralEmp(mFrmMantenerEmpleado.txtHorarioLaboral.getText());//empleado\n mEmpleado.setEstadoEmp(mFrmMantenerEmpleado.txtEstate.getText());//empleado\n \n \n \n //guardar o actualizar\n mEmpleado.save();\n \n this.mFrmMantenerEmpleado.messageBox(Constant.APP_NAME, (isUpdate?\"Se ha actualizado el empleado\":\"Se ha agregado un nuevo empleado al sistema\") );\n clear();\n }", "private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}", "@Override\n\tpublic void saveStudent(StudentForm student) {\n\t\t\n\t}", "public void save() {\n }", "public String save() throws SQLException {\r\n\t\taktieDao = new AktieDAO();\r\n\t\tAktie aktie = new Aktie();\r\n\t\tMeldungFormBean m = new MeldungFormBean();\r\n\t\taktie.setName(name);\r\n\t\taktie.setKuerzel(kuerzel);\r\n\t\taktie.setNominalwert(nominalpreis);\r\n\t\taktie.setDividende(dividende);\r\n\t\taktie = aktieDao.insertAktie(aktie);\r\n\r\n\t\tVerkaufDAO verkaufDao = new VerkaufDAO();\r\n\t\t// insert in DB\r\n\t\tverkaufDao.insertAuftragAdmin(nominalpreis, aktie.getId());\r\n\t\t// Meldung\r\n\t\tm.setAktuelleMeldung(m.getMeldung1() + name);\r\n\t\tm.putMeldungToSession(m);\r\n\t\treturn \"/private/admin/Admin?faces-redirect=true\";\r\n\r\n\t}", "private void postDataToSQLite() {\n if (!inputValidation.isInputEditTextFilled(nomeLogin, regNome, getString(R.string.error_message_name))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled(emailLogin, regEmail, getString(R.string.error_message_email))) {\n return;\n }\n if (!inputValidation.isInputEditTextEmail(emailLogin, regEmail, getString(R.string.error_message_email))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled(senhaLogin, regSenha, getString(R.string.error_message_password))) {\n return;\n }\n if (!inputValidation.senhaForca(senhaLogin, regSenha, getString(R.string.error_força_senha))){\n return;\n }\n if (!inputValidation.isInputEditTextFilled(senhaLoginConfirmar, regSenhaConfirmar, getString(R.string.error_message_password))) {\n return;\n }\n if (!inputValidation.isInputEditTextMatches(senhaLogin, senhaLoginConfirmar, regSenhaConfirmar, getString(R.string.error_password_match))) {\n return;\n }\n if (!databaseHelper.checkUser(emailLogin.getText().toString().trim())) {\n user.setNome(nomeLogin.getText().toString().trim());\n user.setEmail(emailLogin.getText().toString().trim());\n user.setSenha(senhaLogin.getText().toString().trim());\n databaseHelper.addUser(user);\n // Snack Bar to show success message that record saved successfully\n Snackbar.make(nestedScrollView, getString(R.string.success_message), Snackbar.LENGTH_SHORT).show();\n emptyInputEditText();\n } else {\n // Snack Bar to show error message that record already exists\n Snackbar.make(nestedScrollView, getString(R.string.error_email_exists), Snackbar.LENGTH_LONG).show();\n }\n }", "private void savedeatils() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tgetFromDate = MainActivity.fromdate;\n\t\tgetToDate = MainActivity.todate;\n\t\tgetAddr = etGetAddr.getText().toString();\n\t\tgetPin = sGetPostal.getText().toString();\n\t\teGetTelNo = eGetPhone.getText().toString();\n\t\teGetFaxNO = eGetFax.getText().toString();\n\t\tetGetWeb = etGetWebSite.getText().toString();\n\t\teGetEmail = eGetEmailid.getText().toString();\t\n\t\tetPan = etPanNo.getText().toString();\n\t\tetMVATno = etMVATnum.getText().toString();\n\t\tetServiceTaxno = etServiceTaxnum.getText().toString();\n\t\tetRegNo = etRegNum.getText().toString();\n\t\tRegDate = btnRegDate.getText().toString();\n\t\tetFcraNo = etFcraNum.getText().toString();\n\t\tFcraDate = btnFcraDate.getText().toString();\n\t\t\n\t\torgparams = new Object[]{orgcode,getAddr,selectedCounrty,selectedStateName,selectedCityName,getPin, \n\t\t\t\t\t\teGetTelNo,eGetFaxNO,eGetEmail,etGetWeb,etMVATno,etServiceTaxno,etRegNo,RegDate,etFcraNo,FcraDate ,\n\t\t\t\t\t\tetPan};\n\t\t\t\t\n\t\tsave_edit = (String)org.updateOrg(orgparams, client_id);\n\t\t\n\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t\t\tbuilder.setMessage(\"Organisation \"+getOrgName+\" with details saved successfully\")\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(\"Ok\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\tif(editDetailsflag==false){\n\t\t\t\t\t//To pass on the activity to the next page\n\t\t\t\t\tIntent intent = new Intent(context, menu.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tAlertDialog alert = builder.create();\n\t\t\t\talert.show();\n\t\t}", "private void saveData() {\n\n SharedPreferences sharedPreferences=getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n\n editor.putString(\"name\",name.getText().toString());\n editor.putString(\"regnum\",regnum.getText().toString());\n editor.putInt(\"count\", count);\n editor.apply();\n\n }", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }", "public boolean save();", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "public void guardar4(View view){\n bdboletas admin= new bdboletas(this, \"Boleta de Transito\", null, 1);\n SQLiteDatabase BaseDeDatos= admin.getWritableDatabase();\n\n placa= etplaca.getText ().toString ();\n modelo= etmodelo.getText ().toString ();\n marca= etmarca.getText ().toString ();\n color= etmodelo.getText ().toString ();\n\n año_string= etaño.getText ().toString ();\n\n int año_int=Integer.parseInt (año_string);\n\n serial= etserial.getText ().toString ();\n\n String seleccion=spinner_vehiculo.getSelectedItem ().toString ();\n\n if (!placa.isEmpty () && !modelo.isEmpty () && !marca.isEmpty ()\n && !color.isEmpty () && !año_string.isEmpty () && !serial.isEmpty ()\n && !seleccion.isEmpty ()){\n\n ContentValues registro= new ContentValues ();\n\n registro.put (\"placa\",placa);\n registro.put (\"marca\",marca);\n registro.put (\"modelo\",modelo);\n registro.put (\"tipo_vehiculo\",seleccion);\n registro.put (\"color\",color);\n registro.put (\"año\",año_int);\n registro.put (\"s_carroceria\",serial);\n\n BaseDeDatos.insert(\"boletas\",null , registro);\n\n BaseDeDatos.close();\n\n Toast.makeText(this,\"registo exitoso\",Toast.LENGTH_SHORT).show();\n // metodo boton siguiente\n Intent siguiente = new Intent (this, Remolque.class);\n startActivity (siguiente);\n }else{\n Toast.makeText(this,\"debe llenar todos los campos para poder continuar\",Toast.LENGTH_SHORT).show();\n }\n }", "private void save1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_save1ActionPerformed\n\n //Save Button action\n //eid int\n //level int\n //rank int\n String lname = LectName.getText();\n String eid = EmpID.getText();\n String fac = faculty.getSelectedItem().toString();\n String dep = department.getSelectedItem().toString();\n String cent = center.getSelectedItem().toString();\n String build = building.getSelectedItem().toString();\n String lev = level.getSelectedItem().toString();\n String rnk = Rank.getText();\n\n try {\n\n String s = \"INSERT INTO lecturer (eid, lectur_name, faculty, department, center, building, lec_level, lec_rank) values ('\" + eid + \"', '\" + lname + \"', '\" + fac + \"', '\" + dep + \"', '\" + cent + \"', '\" + build + \"', '\" + lev + \"', '\" + rnk + \"')\";\n pst = con.prepareStatement(s);\n pst.execute();\n\n //load tabledetails after adding a new one\n lectureDetails();\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e);\n System.out.print(e);\n }\n\n }", "public void save() {\r\n\t\tString checkQuery = \"SELECT * FROM users WHERE id = \" + this.id;\r\n\t\tStatement stm;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tconnection = DBConnection.getConnection();\r\n\t\t\tstm = connection.createStatement();\r\n\t\t\trs = stm.executeQuery(checkQuery);\r\n\t\t\t// istnieje już ten obiekt - update\r\n\t\t\tif (rs.first()) {\r\n\t\t\t\tString query = \"UPDATE users SET name = \" + toStringOrNULL(name)\r\n\t\t\t\t\t\t+ \", password = \" + toStringOrNULL(password)\r\n\t\t\t\t\t\t+ \", is_admin = \" + isAdmin \r\n\t\t\t\t\t\t+ \", removed_at = \" + toStringOrNULL(removedAt) \r\n\t\t\t\t\t\t+ \" WHERE id = \" + getId();\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t\t// jeszcze go nie ma - zapis nowego\r\n\t\t\telse {\r\n\t\t\t\tString query = \"INSERT INTO users (name, password, removed_at, is_admin) VALUES (\"\r\n\t\t\t\t\t\t+ toStringOrNULL(name) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(password) + \", \"\r\n\t\t\t\t\t\t+ toStringOrNULL(removedAt) + \", \"\r\n\t\t\t\t\t\t+ isAdmin + \")\";\r\n\t\t\t\texecuteNonReturningQuery(query);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void saveDBValues() {\r\n this.pl_DB.setParam(\"Hostname\", this.rhostfield.getText());\r\n this.pl_DB.setParam(\"Port\", this.rportfield.getText());\r\n this.pl_DB.setParam(\"Username\", this.ruserfield.getText());\r\n\r\n String pw = \"\";\r\n for (int i = 0; i < this.rpasswdfield.getPassword().length; i++) {\r\n pw += this.rpasswdfield.getPassword()[i];\r\n }\r\n this.pl_DB.setParam(\"Password\", pw);\r\n this.pl_DB.setParam(\"Database\", this.rdatabasefield.getText());\r\n this.pl_DB.setParam(\"nodeTableName\", this.rtablename1efield.getText());\r\n this.pl_DB.setParam(\"nodeColIDName\", this.colnodeIdfield.getText());\r\n this.pl_DB.setParam(\"nodeColLabelName\", this.colnodeLabelfield.getText());\r\n this.pl_DB.setParam(\"edgeTableName\", this.rtablename2efield.getText());\r\n this.pl_DB.setParam(\"edgeCol1Name\", this.coledge1field.getText());\r\n this.pl_DB.setParam(\"edgeCol2Name\", this.coledge2field.getText());\r\n this.pl_DB.setParam(\"edgeColWeightName\", this.colweightfield.getText());\r\n this.pl_DB.setParam(\"resultTableName\", this.otablenamefield.getText());\r\n\r\n this.is_alg_started = false;\r\n this.is_already_read_from_DB = false;\r\n this.is_already_renumbered = false;\r\n }", "public void save(){\n\t\tlowresModelManager.save();\n\t}", "@Override\n\tpublic void save(Account userForm) {\n\t\taccount.save(userForm);\n\n\t}", "@RequestMapping(value=\"/save\", method = RequestMethod.POST)\r\n\tpublic void save(@RequestBody Pessoa pessoa) {\r\n\t\tpessoaDao.save(pessoa);\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n ConnectDatabase.connectDatabase(); //Open the connection\n\n\n /*\n * Begin preparing statements\n */\n\n /* Prepare the name fields */\n try{\n String nameInsertString = \"INSERT INTO names (firstName, middleName, lastName) value(?, ?, ?)\";\n PreparedStatement nameStmt = conn.prepareStatement(nameInsertString);\n //stmt.executeUpdate(\"INSERT INTO names (firstName, middleName, lastName) value(\" + nameEntry + \")\");\n\n nameStmt.setNString(1, firstNameField.getText());\n nameStmt.setNString(2, middleNameField.getText());\n nameStmt.setNString(3, lastNameField.getText());\n\n nameStmt.executeUpdate();\n\n }catch(SQLException se){\n se.printStackTrace();\n }\n\n /* Prepare the address fields */\n try{\n String addressInsertString = \"INSERT INTO direct_deposit (address, city, state, zip_code) value(?, ?, ?, ?)\";\n PreparedStatement addrStmt = conn.prepareStatement(addressInsertString);\n\n addrStmt.setNString(1, addressField.getText());\n addrStmt.setNString(2, cityField.getText());\n addrStmt.setNString(3, stateField.getText());\n addrStmt.setNString(4, zipCodeField.getText());\n\n addrStmt.executeUpdate();\n }catch (SQLException se){\n se.printStackTrace();\n }\n\n /* Check which radio button is pressed (checkings or savings) and update that field */\n if(checkAcctButton.isSelected()){ //User has selected the checking account\n try{\n String checkInsertString = \"INSERT INTO account_num (checking, bank_rout) value(?, ?)\";\n PreparedStatement acctStmt = conn.prepareStatement(checkInsertString);\n\n acctStmt.setNString(1, checkAcctField.getText());\n acctStmt.setNString(2, routNumField.getText());\n\n acctStmt.executeUpdate();\n }catch (SQLException se){\n se.printStackTrace();\n }\n }else{ //User has selected the savings account\n try{\n String saveInsertString = \"INSERT INTO account_num (savings, bank_rout) value(?, ?)\";\n PreparedStatement acctStmt = conn.prepareStatement(saveInsertString);\n\n acctStmt.setNString(1, saveAcctField.getText());\n acctStmt.setNString(2, routNumField.getText());\n\n acctStmt.executeUpdate();\n }catch (SQLException se){\n se.printStackTrace();\n }\n }\n\n dataSentField.setText(\"Data sent\");\n\n\n }", "private void saveStudent() {\n // Check that every required field has been filled in with valid parameters\n if (!checkUserInputValidity()) {\n return;\n }\n\n // Insert the new student info into the database\n if (isEditStudent) {\n updateStudentOnFirebaseDatabase();\n } else {\n // Make a unique id for the student\n String studentId = UUID.randomUUID().toString();\n saveNewStudentToFirebaseDatabase(studentId);\n }\n }", "public void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"SHARED_PREFS\",MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"email_pref\",email.getText().toString());\n editor.putString(\"password_pref\",uPassword.getText().toString());\n editor.apply();\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString action = request.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action.equals(\"Save\")){\r\n\t\t\tmodel.setAddress(request.getParameter(\"address\"));\r\n\t model.setPort( Integer.parseInt(request.getParameter(\"port\")));\r\n\t model.setAddressIp(request.getParameter(\"addressIp\"));\r\n\t save();\r\n\t\t}\r\n\t\trequest.setAttribute(\"model\", model);\r\n\t\trequest.getRequestDispatcher(\"param.jsp\").forward(request, response);\r\n\t}", "void saveProduct(Product product);", "public static void insertForm(Form form) {\n\t\t\n\t\ttry {\n\t\t\tConnection connection = getConnection();\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = connection.prepareStatement(\"INSERT INTO form (form_version, form_name, field_id, field_value) \"\n\t\t\t\t\t\t+ \"VALUES ('\"+form.getTheVersion()+\"','\"+form.getTheName()+\"', '\"+form.getTheFieldId()+\"', '\"+form.getTheFieldValue()+\"')\");\n\t\t\t\t\n\t\t\t\tstatement.executeUpdate();\n\n statement.close();\n connection.close();\n\t\t\t\t\n\t\t\t}catch(SQLException ex) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch (Exception e) {\n e.printStackTrace();\n }\n\t\t\n\t}", "public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_parto his_parto = new His_parto();\r\n\t\t\t\this_parto.setCodigo_empresa(empresa.getCodigo_empresa());\r\n\t\t\t\this_parto.setCodigo_sucursal(sucursal.getCodigo_sucursal());\r\n\t\t\t\this_parto.setCodigo_historia(tbxCodigo_historia.getValue());\r\n\t\t\t\this_parto.setIdentificacion(tbxIdentificacion.getValue());\r\n\t\t\t\this_parto.setFecha_inicial(new Timestamp(dtbxFecha_inicial\r\n\t\t\t\t\t\t.getValue().getTime()));\r\n\t\t\t\this_parto.setConyugue(tbxConyugue.getValue());\r\n\t\t\t\this_parto.setId_conyugue(tbxId_conyugue.getValue());\r\n\t\t\t\this_parto.setEdad_conyugue(tbxEdad_conyugue.getValue());\r\n\t\t\t\this_parto.setEscolaridad_conyugue(tbxEscolaridad_conyugue\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setMotivo(tbxMotivo.getValue());\r\n\t\t\t\this_parto.setEnfermedad_actual(tbxEnfermedad_actual.getValue());\r\n\t\t\t\this_parto.setAntecedentes_familiares(tbxAntecedentes_familiares\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setPreeclampsia(rdbPreeclampsia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setHipertension(rdbHipertension.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setEclampsia(rdbEclampsia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setH1(rdbH1.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setH2(rdbH2.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setPostimadurez(rdbPostimadurez.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setRot_pre(rdbRot_pre.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setPolihidramnios(rdbPolihidramnios.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setRcui(rdbRcui.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setPelvis(rdbPelvis.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setFeto_macrosonico(rdbFeto_macrosonico\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setIsoinmunizacion(rdbIsoinmunizacion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setAo(rdbAo.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setCirc_cordon(rdbCirc_cordon.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setPostparto(rdbPostparto.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setDiabetes(rdbDiabetes.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setCardiopatia(rdbCardiopatia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setAnemias(rdbAnemias.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEnf_autoinmunes(rdbEnf_autoinmunes\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setEnf_renales(rdbEnf_renales.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setInf_urinaria(rdbInf_urinaria.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setEpilepsia(rdbEpilepsia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto\r\n\t\t\t\t\t\t.setTbc(rdbTbc.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setMiomas(rdbMiomas.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setHb(rdbHb.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setFumadora(rdbFumadora.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setInf_puerperal(rdbInf_puerperal.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setInfertilidad(rdbInfertilidad.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setMenarquia(tbxMenarquia.getValue());\r\n\t\t\t\this_parto.setCiclos(tbxCiclos.getValue());\r\n\t\t\t\this_parto.setVida_marital(tbxVida_marital.getValue());\r\n\t\t\t\this_parto.setVida_obstetrica(tbxVida_obstetrica.getValue());\r\n\t\t\t\this_parto.setNo_gestaciones(lbxNo_gestaciones.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setParto(lbxParto.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setAborto(lbxAborto.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setCesarias(lbxCesarias.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setFecha_um(new Timestamp(dtbxFecha_um.getValue()\r\n\t\t\t\t\t\t.getTime()));\r\n\t\t\t\this_parto.setUm(tbxUm.getValue());\r\n\t\t\t\this_parto.setFep(tbxFep.getValue());\r\n\t\t\t\this_parto.setGemerales(lbxGemerales.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setMalformados(lbxMalformados.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setNacidos_vivos(lbxNacidos_vivos.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setNacidos_muertos(lbxNacidos_muertos\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setPreterminos(lbxPreterminos.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setMedico(chbMedico.isChecked());\r\n\t\t\t\this_parto.setEnfermera(chbEnfermera.isChecked());\r\n\t\t\t\this_parto.setAuxiliar(chbAuxiliar.isChecked());\r\n\t\t\t\this_parto.setPartera(chbPartera.isChecked());\r\n\t\t\t\this_parto.setOtros(chbOtros.isChecked());\r\n\t\t\t\this_parto.setControlado(rdbControlado.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setLugar_consulta(rdbLugar_consulta.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setNo_consultas(lbxNo_consultas.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setEspecialistas(chbEspecialistas.isChecked());\r\n\t\t\t\this_parto.setGeneral(chbGeneral.isChecked());\r\n\t\t\t\this_parto.setPartera_consulta(chbPartera_consulta.isChecked());\r\n\t\t\t\this_parto.setSangrado_vaginal(rdbSangrado_vaginal\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setCefalias(rdbCefalias.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEdema(rdbEdema.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEpigastralgia(rdbEpigastralgia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setVomitos(rdbVomitos.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setTinutus(rdbTinutus.getSelectedItem().getValue()\r\n\t\t\t\t\t\t.toString());\r\n\t\t\t\this_parto.setEscotomas(rdbEscotomas.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setInfeccion_urinaria(rdbInfeccion_urinaria\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setInfeccion_vaginal(rdbInfeccion_vaginal\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setOtros_embarazo(tbxOtros_embarazo.getValue());\r\n\t\t\t\this_parto.setCardiaca(tbxCardiaca.getValue());\r\n\t\t\t\this_parto.setRespiratoria(tbxRespiratoria.getValue());\r\n\t\t\t\this_parto.setPeso(tbxPeso.getValue());\r\n\t\t\t\this_parto.setTalla(tbxTalla.getValue());\r\n\t\t\t\this_parto.setTempo(tbxTempo.getValue());\r\n\t\t\t\this_parto.setPresion(tbxPresion.getValue());\r\n\t\t\t\this_parto.setPresion2(tbxPresion2.getValue());\r\n\t\t\t\this_parto.setInd_masa(tbxInd_masa.getValue());\r\n\t\t\t\this_parto.setSus_masa(tbxSus_masa.getValue());\r\n\t\t\t\this_parto.setCabeza_cuello(tbxCabeza_cuello.getValue());\r\n\t\t\t\this_parto.setCardiovascular(tbxCardiovascular.getValue());\r\n\t\t\t\this_parto.setMamas(tbxMamas.getValue());\r\n\t\t\t\this_parto.setPulmones(tbxPulmones.getValue());\r\n\t\t\t\this_parto.setAbdomen(tbxAbdomen.getValue());\r\n\t\t\t\this_parto.setUterina(tbxUterina.getValue());\r\n\t\t\t\this_parto.setSituacion(tbxSituacion.getValue());\r\n\t\t\t\this_parto.setPresentacion(tbxPresentacion.getValue());\r\n\t\t\t\this_parto.setV_presentacion(tbxV_presentacion.getValue());\r\n\t\t\t\this_parto.setPosicion(tbxPosicion.getValue());\r\n\t\t\t\this_parto.setV_posicion(tbxV_posicion.getValue());\r\n\t\t\t\this_parto.setC_uterina(tbxC_uterina.getValue());\r\n\t\t\t\this_parto.setTono(tbxTono.getValue());\r\n\t\t\t\this_parto.setFcf(tbxFcf.getValue());\r\n\t\t\t\this_parto.setGenitales(tbxGenitales.getValue());\r\n\t\t\t\this_parto.setDilatacion(tbxDilatacion.getValue());\r\n\t\t\t\this_parto.setBorramiento(tbxBorramiento.getValue());\r\n\t\t\t\this_parto.setEstacion(tbxEstacion.getValue());\r\n\t\t\t\this_parto.setMembranas(tbxMembranas.getValue());\r\n\t\t\t\this_parto.setExtremidades(tbxExtremidades.getValue());\r\n\t\t\t\this_parto.setSnc(tbxSnc.getValue());\r\n\t\t\t\this_parto.setObservacion(tbxObservacion.getValue());\r\n\t\t\t\this_parto.setCodigo_consulta_pyp(lbxCodigo_consulta_pyp\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setFinalidad_cons(lbxFinalidad_cons.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_parto.setCausas_externas(lbxCausas_externas\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setTipo_disnostico(lbxTipo_disnostico\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_parto.setTipo_principal(tbxTipo_principal.getValue());\r\n\t\t\t\this_parto.setTipo_relacionado_1(tbxTipo_relacionado_1\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setTipo_relacionado_2(tbxTipo_relacionado_2\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setTipo_relacionado_3(tbxTipo_relacionado_3\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_parto.setTratamiento(tbxTratamiento.getValue());\r\n\r\n\t\t\t\tdatos.put(\"codigo_historia\", his_parto);\r\n\t\t\t\tdatos.put(\"accion\", tbxAccion.getText());\r\n\r\n\t\t\t\this_parto = getServiceLocator().getHis_partoService().guardar(\r\n\t\t\t\t\t\tdatos);\r\n\r\n\t\t\t\tif (tbxAccion.getText().equalsIgnoreCase(\"registrar\")) {\r\n\t\t\t\t\taccionForm(true, \"modificar\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tMessagebox.show(\"Los datos se guardaron satisfactoriamente\",\r\n\t\t\t\t\t\t\"Informacion ..\", Messagebox.OK,\r\n\t\t\t\t\t\tMessagebox.INFORMATION);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\r\n\t}", "void save(Teacher teacher);", "public void salvaCliente() {\n \n \n \n \n String nome = view.getjTextNome().getText(); //Tive que criar getter e setter pra poder acessar os campos da view\n String telefone = view.getjTextTelefone().getText();\n String cpf = view.getjTextCpf().getText();\n String endereco = view.getjTextEndereco().getText();\n\n \n Cliente client = new Cliente( nome, telefone, cpf, endereco);\n \n \n \n try {\n Connection conexao = new Conexao().getConnection();\n ClienteDAO clientedao = new ClienteDAO(conexao);\n clientedao.insert(client);\n \n JOptionPane.showMessageDialog(null, \"Cliente Cadastrado!\");\n \n } catch (SQLException ex) {\n //Logger.getLogger(CadCliente.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Erro ao cadastrar!\"+ex);\n }\n }", "void save(Exam exam);", "private void saveStudent(){\n StudentGroupThrift group = mainWindow.getStudentClient().getStudentGroupByName\n (this.group.getSelectedItem().toString());\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n String birthDate = format.format(jDateChooser.getDate());\n StudentThrift studentThrift = new StudentThrift(\n id,\n getTextID(FIRST_NAME),\n getTextID(LAST_NAME),\n getTextID(MIDDLE_NAME),\n birthDate,\n getTextID(ADDRESS),\n group\n );\n mainWindow.getStudentClient().saveStudent(studentThrift);\n closeDialog();\n }", "private void saveEvent(){\n String event_name = eventName.getText().toString();\r\n String coach = coach_string;\r\n String time = class_time_string;\r\n int nfcID= 4;\r\n\r\n Map<String, Object> data = new HashMap<>();\r\n\r\n data.put(\"event_name\", event_name);\r\n data.put(\"coach\", coach);\r\n data.put(\"class_time\", time);\r\n data.put(\"nfcID\", nfcID);\r\n\r\n Database.writeClassDb(data, time ,date);\r\n startActivity(new Intent(addCalenderEvent.this, CalendarActivity.class));\r\n finish();\r\n }", "public static Result submit() {\n Pallet pallet = palletForm.bindFromRequest().get();\n SetOfArticle sOA = setOfArticleForm.bindFromRequest().get();\n pallet.setTimeEntrance(new Date());\n sOA.setPallet(pallet);\n Ebean.beginTransaction();\n try {\n pallet.getTag1().save();\n pallet.getTag2().save();\n pallet.save();\n sOA.save();\n Ebean.commitTransaction();\n } catch (PersistenceException e) {\n flash(\"danger\", \"Pallet couldn't be created.\");\n return badRequest(newForm.render(palletForm, setOfArticleForm));\n } finally {\n Ebean.endTransaction();\n }\n flash(\"success\", \"Pallet with IDs: \" + pallet.getTag1().getId()+ \", \" + pallet.getTag2().getId() +\n \" and \" + sOA.getAmount() + \" pieces of \" +\n Article.find.byId(sOA.getArticle().getId()).getName() + \" added to database!\");\n return redirect(controllers.routes.PalletView.list());\n }", "Article saveArticleFromForm(ArticleForm form) throws ServiceException;", "private void submitForm(){\n String toast_message;\n\n int time = getValueOfField(R.id.at_editTextNumberSigned_timeValue);\n int easyNumber = getValueOfField(R.id.at_editTextNumberSigned_levelEasyValue);\n int mediumNumber = getValueOfField(R.id.at_editTextNumberSigned_levelMiddleValue);\n int highNumber = getValueOfField(R.id.at_editTextNumberSigned_levelHighValue);\n int hardcoreNumber = getValueOfField(R.id.at_editTextNumberSigned_levelExpertValue);\n\n // if time is between 0 and 1440 min\n if (time > 0){\n if(time < 24*60){\n // if numbers are positives\n if (easyNumber >= 0 && mediumNumber >= 0 && highNumber >= 0 && hardcoreNumber >= 0){\n\n // save data\n int id = this.controller.getLastIdTraining() + 1;\n\n ArrayList<Level> listLevel = new ArrayList<>();\n listLevel.add(new Level(\"EASY\", easyNumber));\n listLevel.add(new Level(\"MEDIUM\", mediumNumber));\n listLevel.add(new Level(\"HIGHT\", highNumber));\n listLevel.add(new Level(\"HARDCORE\", hardcoreNumber));\n\n Training training = new Training(id, inputCalendar.getTime(), time, listLevel);\n\n this.controller.AddTraining(training);\n\n // init values of Form\n initForm(null);\n\n // redirection to stats page\n Navigation.findNavController(getActivity(),\n R.id.nav_host_fragment).navigate(R.id.navigation_list_training);\n\n toast_message = \"L'entrainement a bien été ajouté !\";\n }else toast_message = \"Erreur:\\nToutes les valeurs de voies ne sont pas positive !\";\n }else toast_message = \"La durée ne doit pas exceder 1440 min.\";\n }else toast_message = \"La durée doit être supérieur à 0 min.\\n\";\n\n // Send alert\n Toast.makeText(getContext(), toast_message, Toast.LENGTH_LONG).show();\n }", "public void saveTextBoxs(){\n dni[indice] = Long.parseLong(txtDni.getText());\n nombre[indice] = txtNombre.getText();\n apellido[indice] = txtApellido.getText();\n direccion[indice] = txtDireccion.getText();\n telefono[indice] = txtTelefono.getText();\n fNacimiento[indice] = txtFechaNacimiento.getText();\n loadTextBoxs();\n }", "private void save(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tBook book = new Book();\r\n\t\tbook.setId(bookService.list().size()+1);\r\n\t\tbook.setBookname(request.getParameter(\"bookname\"));\r\n\t\tbook.setAuthor(request.getParameter(\"author\"));\r\n\t\tbook.setPrice(Float.parseFloat(request.getParameter(\"price\")));\r\n\t\tbookService.save(book);\r\n\t\t//out.println(\"<script>window.location.href='index.html'</script>\");\r\n\t\tresponse.sendRedirect(\"index.html\");\r\n\t}", "@RequestMapping(value = \"/save\", method = RequestMethod.POST) \n public RedirectView getData(@RequestParam(required = true) String isbn, String judul, String penulis, String penerbit, \n String tahun_terbit, String jenis_cover, String jml_hal, String bahasa, String deskripsi, String gambar, int harga, \n int stok, Long category){\n this.bukuService.insert(new Buku(isbn, judul, penulis, penerbit, tahun_terbit, jenis_cover, jml_hal, bahasa, \n deskripsi, gambar, harga, stok, new Category(category)));\n return new RedirectView(\"/admin/buku/list\", true); \n }", "public void saveProduct(Product product);", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n Date dataLoc = null;\r\n Date dataDev = null;\r\n try{\r\n dataLoc = new SimpleDateFormat(\"yyyy-MM-dd\").parse(request.getParameter(\"datalocacao\"));\r\n dataDev = new SimpleDateFormat(\"yyyy-MM-dd\").parse(request.getParameter(\"datadevolucao\"));\r\n } catch (ParseException ex) {\r\n Logger.getLogger(ControllerLocacao.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n boolean result = this.insert(\r\n Integer.parseInt(request.getParameter(\"idcliente\")),\r\n Integer.parseInt(request.getParameter(\"idbicicleta\")),\r\n Float.parseFloat(request.getParameter(\"horariolocacao\")),\r\n dataLoc,\r\n Float.parseFloat(request.getParameter(\"horariodevolucao\")),\r\n dataDev,\r\n Float.parseFloat(request.getParameter(\"valor\"))\r\n \r\n );\r\n \r\n String forward = \"/createLocacao.jsp\";\r\n\r\n RequestDispatcher view = request.getRequestDispatcher(forward);\r\n view.forward(request, response);\r\n \r\n }", "private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }" ]
[ "0.72668713", "0.7049719", "0.6951753", "0.694547", "0.6809767", "0.66906524", "0.6655468", "0.66210467", "0.6601149", "0.6597306", "0.654791", "0.6475826", "0.6457577", "0.6448988", "0.6442002", "0.6427745", "0.6427745", "0.6427745", "0.6427745", "0.6426461", "0.6381824", "0.6322713", "0.6309879", "0.62658185", "0.6237654", "0.6233383", "0.62092084", "0.6167175", "0.6167044", "0.6159747", "0.6151015", "0.613207", "0.61127174", "0.61127174", "0.61127174", "0.61027074", "0.606525", "0.6059096", "0.60519546", "0.6044997", "0.60268295", "0.6026659", "0.6008829", "0.6003306", "0.5988952", "0.5974306", "0.5969067", "0.5943895", "0.594279", "0.5940109", "0.59321284", "0.59245676", "0.5923708", "0.5913805", "0.59129584", "0.5907431", "0.58962876", "0.58941144", "0.58901316", "0.5884698", "0.58763003", "0.5870551", "0.5870211", "0.58619887", "0.5843971", "0.58382875", "0.5836829", "0.5830797", "0.58267397", "0.5801615", "0.5796215", "0.57897246", "0.57685137", "0.5768144", "0.5767331", "0.57610023", "0.5755745", "0.57525325", "0.5742184", "0.5736358", "0.5732682", "0.5732235", "0.57294255", "0.5724755", "0.5721144", "0.57141453", "0.5712187", "0.57096255", "0.5708128", "0.57062167", "0.5702634", "0.57012975", "0.56947684", "0.5686951", "0.56869256", "0.56782013", "0.5673043", "0.56722", "0.5668869", "0.5665763", "0.5665234" ]
0.0
-1
Return the number of cycles
public static int getNbCycle() { return nbCycle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCycles();", "static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}", "public int getCycle() {\n return cycle;\n }", "public final long getCycles() {\r\n return this.cycles;\r\n }", "public int getNCycles() {\n return ncycles;\n }", "public int getNumMotorCycles() {\r\n\t\treturn numMotorCycles;\r\n\t}", "public long getCycleInterval() {\r\n return cycleInterval;\r\n }", "public double getStepsCycle() {\n\t\treturn stepsSleep + stepsCS;\n\t}", "public int findCycleLength(ListNode head) {\n ListNode slow = head;\n ListNode fast = head;\n\n ListNode intersection = head;\n while(fast.next != null && fast.next.next != null) {\n slow = slow.next;\n fast = fast.next.next;\n\n if(slow == fast) {\n intersection = slow;\n break;\n }\n }\n\n int cycleLength = 1;\n ListNode current = intersection.next;\n while(current != intersection) {\n cycleLength++;\n current = current.next;\n }\n\n return cycleLength;\n }", "public int calculateCycles(Player player, Node node, Pickaxe pickaxe) {\n\t\tfinal int mining = player.getSkills().getLevel(Skills.MINING);\n\t\tfinal int difficulty = node.getRequiredLevel();\n\t\tfinal int modifier = pickaxe.getRequiredLevel();\n\t\tfinal int random = new Random().nextInt(3);\n\t\tdouble cycleCount = 1;\n\t\tcycleCount = Math.ceil((difficulty * 60 - mining * 20) / modifier\n\t\t\t\t* 0.25 - random * 4);\n\t\tif (cycleCount < 1) {\n\t\t\tcycleCount = 1;\n\t\t}\n\t\t// player.getActionSender().sendMessage(\"You must wait \" + cycleCount +\n\t\t// \" cycles to mine this ore.\");\n\t\treturn (int) cycleCount;\n\t}", "static UINT32 update_cycle_counting(void)\n\t{\n\t\tUINT32 count = (activecpu_gettotalcycles64() - mips3.count_zero_time) / 2;\n\t\tUINT32 compare = mips3.cpr[0][COP0_Compare];\n\t\tUINT32 cyclesleft = compare - count;\n\t\tdouble newtime;\n\t\n\t//printf(\"Update: count=%08X compare=%08X delta=%08X SR=%08X time=%f\\n\", count, compare, cyclesleft, (UINT32)SR, TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu()));\n\t\n\t\t/* modify the timer to go off */\n\t\tnewtime = TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu());\n\t\tif (SR & 0x8000)\n\t\t\ttimer_adjust(mips3.compare_int_timer, newtime, cpu_getactivecpu(), 0);\n\t\telse\n\t\t\ttimer_adjust(mips3.compare_int_timer, TIME_NEVER, cpu_getactivecpu(), 0);\n\t\treturn count;\n\t}", "public int getNumTimes();", "Integer getMaxSuccessiveDeltaCycles();", "int getSequenceStepsCount();", "@SuppressWarnings(\"unchecked\")\r\n private static void cycleTests() throws CALExecutorException {\r\n \r\n final ImmutableDirectedGraph<Integer> noCycles = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 2), Pair.make(2, 3), Pair.make(1, 3)),\r\n executionContext);\r\n \r\n final ImmutableDirectedGraph<Integer> lengthOneCycle = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 1)),\r\n executionContext);\r\n \r\n final ImmutableDirectedGraph<Integer> lengthTwoCycle = ImmutableDirectedGraph\r\n .makeGraph(\r\n Collections.<Integer>emptyList(),\r\n Arrays.asList(Pair.make(1, 2), Pair.make(2, 1)),\r\n executionContext);\r\n \r\n System.out.println(\"noCycle.findCycle(): \" + noCycles.findCycle());\r\n System.out.println(\"oneCycle.findCycle(): \" + lengthOneCycle.findCycle());\r\n System.out.println(\"twoCycle.findCycle(): \" + lengthTwoCycle.findCycle());\r\n }", "Constant getCyclePeriodConstant();", "public static Long cycleCounting(MySparseMatrix adjMatrix) {\n return adjMatrix.traceCubed();\n }", "int getRepeatCount();", "public Iterable<Integer> cycle(){\n return cycle;\n }", "GlobalVariable getCycleCounterVariable();", "public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}", "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}", "public void setCycles(final long cycles) {\r\n this.cycles = cycles;\r\n }", "int getIterations();", "@Override\n public void cycle(long cycle) {\n\n boolean previousState = state();\n\n manageDIV();\n\n incTIMAIfChange(previousState);\n }", "Integer getTotalStepCount();", "static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}", "public final void addCycles(final int cycles) {\r\n this.cycles += cycles;\r\n }", "public long getEvaluationCycle() {\n return evaluationCycle;\n }", "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 getConsecutivePasses() {\n return _consecutivePasses;\n }", "public long getNumberOfPatternOccurrences() {\n if(!hasFinished()) {\n throw new IllegalArgumentException(\"the recompression is not jet ready.\");\n }\n\n S terminal = slp.get(getPattern().getLeft(), 1);\n return getPatternOccurrence(terminal).get(getText());\n }", "int hasCycle(Node head) {\n\t// If list is null\n\tif(head == null) {\n\t\t// No cycle\n\t\treturn 0;\n\t}\n\n\tSet<Node> visitedNodes = new HashSet<Node>();\n\t\n\tNode current = head;\n\n\t// Loop through the list\n\twhile(current != null) {\n\t\t// If we have seen this node befor\n\t\tif(visitedNodes.contains(current)) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t// Add it to the set\n\t\tvisitedNodes.add(current);\n\n\t\t// Update current\n\t\tcurrent = current.next;\n\t}\n\n\t// If we get here, there are no cycles\n\treturn 0;\n}", "public long getLoopTime();", "public int getLoopCount() {\n\t\treturn numLoops;\n\t}", "public int discCount() {\n\t\tint countBLACK = discBlackCount();\n\t\tint countWHITE = discWhiteCount();\n\n\t\treturn countBLACK + countWHITE;\n\t\t\n\t}", "public int countInversion(){\n\t\tsetInversiones(0);\n\t\tnumeros = countStep(numeros, 0, numeros.size()-1);\n\t\treturn getInversiones();\n\t}", "public int getNumberOfPaths(){ \r\n HashMap<FlowGraphNode, Integer> number = new HashMap<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n HashMap<FlowGraphNode, Integer> label = new HashMap<>();\r\n \r\n label.put(start,1);\r\n queue.add(start);\r\n do{\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n int count = number.getOrDefault(child, child.inDeg()) -1;\r\n if(count == 0){\r\n queue.add(child);\r\n number.remove(child);\r\n //label\r\n int sum = 0;\r\n for(FlowGraphNode anc : child.from){\r\n sum += label.get(anc);\r\n }\r\n label.put(child,sum);\r\n }else{\r\n number.put(child, count);\r\n }\r\n }\r\n }while(!queue.isEmpty());\r\n \r\n if(!number.isEmpty()){\r\n //there has to be a loop in the graph\r\n return -1;\r\n }\r\n \r\n return label.get(end);\r\n }", "public int countInversion(){\r\n\t\tsetInversiones(0);\r\n\t\tnumeros = countStep(numeros, 0, numeros.size()-1);\r\n\t\treturn getInversiones();\r\n\t}", "long getSpinCount();", "private long getChampNodeCount(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(NODE_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}", "public int length(){\r\n int counter = 0;\r\n ListNode c = head;\r\n while(c != null){\r\n c = c.getLink();\r\n counter++;\r\n }\r\n return counter;\r\n }", "private static FunctionCycle findCycleWithBrentsInternal(IntUnaryOperator func, int x0) {\n\n int power = 1;\n int lam = 1;\n\n int t = x0;\n int h = func.applyAsInt(x0);\n\n // 'lam' will be equal to cycle length at the end of iteration\n while (t != h) {\n if (power == lam) {\n t = h;\n power *= 2;\n lam = 0;\n }\n\n h = func.applyAsInt(h);\n ++lam;\n }\n\n final int cycleLength = lam;\n\n t = x0;\n h = x0;\n\n // find star point for cycle\n for (int i = 0; i < lam; ++i) {\n h = func.applyAsInt(h);\n }\n\n while (t != h) {\n t = func.applyAsInt(t);\n h = func.applyAsInt(h);\n }\n\n return new FunctionCycle(t, cycleLength);\n }", "public void incrementLoopCount() {\n this.loopCount++;\n }", "public int getLoopCount() {\n return this.loopCount;\n }", "int getFramesCount();", "int sizeOfSpeedsArray();", "public short getNum_solver_iterations() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 18);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 10);\n\t\t}\n\t}", "public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }", "public static int get_seq(ConvergeCar convergeCar){\n\t\tint seq_num=(int)(288-(end_utc-convergeCar.utc)/period);\n\t\t//judge points at 00:00\n\t\tif(seq_num == 0 && convergeCar.utc == start_utc){\n\t\t\tseq_num += 1;\n\t\t}\n\t\t//points from the day before\n\t\twhile(seq_num <= 0){\n\t\t\tseq_num += 288;\n\t\t}\n\t\t//sometimes there are some points from next day\n\t\tif(seq_num > 288){\n\t\t\tseq_num = 288;\n\t\t}\n\t\treturn seq_num;\n\t}", "@Override\n public int count() {\n return this.bench.size();\n }", "int getWayCount();", "public int getNumTrials() \n {\n return cumulativeTrials; \n }", "public int counter()\n {\n if(count<=825){\n return count++;\n }\n else{ \n count = 0;\n return count;\n }\n }", "public void setCycleInterval(long value) {\r\n this.cycleInterval = value;\r\n }", "int countComponents() throws Exception;", "public final int getIterations()\n {\n return iterations;\n }", "public int getLength()\n\t{\n\t\tDNode tem=first;\n\t\tint length=0;\n\t\twhile(tem.nextDNode!=null)\n\t\t{\n\t\t\tlength=length+1;\n\t\t\ttem=tem.nextDNode;\n\t\t}\n\t\tif(first!=null)\n\t\t\tlength=length+1;\n\t\treturn length;\n\t}", "private int number_circle() {\r\n int total = 0;\r\n Node node = find_inputNode();\r\n for (Edge e : g.get()) {\r\n if (e.getStart() == node) {\r\n total++;\r\n }\r\n }\r\n return total;\r\n }", "private Boolean checkCycle() {\n Node slow = this;\n Node fast = this;\n while (fast.nextNode != null && fast.nextNode.nextNode != null) {\n fast = fast.nextNode.nextNode;\n slow = slow.nextNode;\n if (fast == slow) {\n System.out.println(\"contains cycle\");\n return true;\n }\n }\n System.out.println(\"non-cycle\");\n return false;\n }", "public long getNumInstructions();", "int getRecurrenceDuration();", "int getNumberFrames();", "private void reactMain_region_digitalwatch_Time_counting_Counting() {\n\t\tif (timeEvents[0]) {\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 0);\n\n\t\t\ttimer.setTimer(this, 0, 1 * 1000, false);\n\n\t\t\tsCILogicUnit.operationCallback.increaseTimeByOne();\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_digitalwatch_Time_counting_Counting;\n\t\t}\n\t}", "public int getConsecutivoCdp() { return this.consecutivoCdp; }", "static int timer (long maxTime, int loopSteps) {\r\n\t\tlong TStart = System.currentTimeMillis(); //starting time\r\n\t\tlong TEnd = TStart + maxTime; \r\n\t\tint t=0;\r\n\t\twhile (System.currentTimeMillis() <= TEnd) { //\r\n\t\t\tt++; //loop counter \r\n\t\t\tif (t % loopSteps == 0) { \r\n\t\t\t\tSystem.out.println(\"Number of loops: \"+t);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of loops: \"+t); \r\n\t\treturn t;\r\n\t}", "public int getIterations() {\n return iterations;\n }", "public int step() {\n // Step CPU\n int cycleInc = cpu.step();\n cycles += cycleInc;\n\n timer.update(cycleInc, ram);\n\n // Update LCD\n // hack so that LCD never will have to care about speedSwitch (ugly or beautiful?).\n lcd.updateLCD(cycleInc);\n if ( videoReciever != null && lcd.newScreenAvailable() ) {\n \tvideoReciever.transmitVideo(lcd.getPixels());\n }\n return cycleInc;\n }", "static void countChanLe(int [] x) {\n\t\tint countC = 0;\n\t\tint countL = 0;\n\t\t\n\t\tfor(int i = 0 ; i < x.length ; i++) {\n\t\t\tif(x[i] % 2 == 0) {\n\t\t\t\tcountC++;\n\t\t\t}\telse {\n\t\t\t\tcountL++;\n\t\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"Mang co so so chan la: %d, Co so so le la %d\\n \",countC,countL);\n\t}", "protected double Hops() {\r\n\t\tint hops = 0;\r\n\t\tIterator<Flow> f = this.flows.iterator();\r\n\t\twhile (f.hasNext()) {\r\n\t\t\thops += f.next().getLinks().size();\r\n\t\t}\r\n\t\treturn hops;\r\n\t}", "int updateCount(double dist);", "public int getIterations() {\n return iterations;\n }", "public int getIterations() {\n return iterations;\n }", "int getProgressCount();", "int getProgressCount();", "int getProgressCount();", "public static void checkCycleSample() {\n Node ll1_5 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n\n Node ll1_2 = new Node(1, new Node(2, null));\n Node ll3_4 = new Node(3, new Node(4, null));\n Node ll5_6 = new Node(5, new Node(6, null));\n ll1_2.nextNode.nextNode = ll3_4;\n ll3_4.nextNode.nextNode = ll5_6;\n ll5_6.nextNode.nextNode = ll1_2;\n\n ll1_2.checkCycle();\n ll1_5.checkCycle();\n }", "int countConsecutive(long num) \r\n {\n int count = 0; \r\n for (int L = 1; L * (L + 1) < 2* num; L++) \r\n { \r\n \tfloat a = (float) ((1.0 * num-(L * (L + 1)) / 2) / (L + 1));\r\n if (a-(int)a == 0.0) \r\n count++; \r\n } \r\n return count; \r\n }", "int getTickLength();", "int reps() {\n\tint b[] = new int[64];\n\tint c = 0; /*\n\t* count of squares that are different from the current\n\t* position\n\t*/\n\tint r = 0; /* number of repetitions */\n\n\t/* is a repetition impossible? */\n\tif (fifty <= 3)\n\treturn 0;\n\n\t/* loop through the reversible moves */\n\tfor (int i = hply - 1; i >= hply - fifty - 1; --i) {\n\tif (++b[histDat[i].m.getFrom()] == 0)\n\t--c;\n\telse\n\t++c;\n\tif (--b[histDat[i].m.getTo()] == 0)\n\t--c;\n\telse\n\t++c;\n\tif (c == 0)\n\t++r;\n\t}\n\n\treturn r;\n\t}", "public int countNodes() {\n\t\t\n\t\tif(isEmpty()==false){\n\t\t\tint count =1;\n\t\t\tDoubleNode temp=head;\n\t\t\twhile(temp.getNext()!=null){\n\t\t\t\tcount++;\n\t\t\t\ttemp=temp.getNext();\n\t\t}\n\t\treturn count;\n\t\t}\n\t\telse{\n\t\t\treturn 0;\n\t\t}\n\t}", "static\tListNode listCycle(ListNode a){\n if(a==null || a.next==null || a.next.next==null){\r\n return null;\r\n }\r\n boolean cycleExists = false;\r\n ListNode fast = a.next.next;\r\n ListNode slow = a;\r\n while(slow.next!=null && fast.next !=null && fast.next.next!=null){\r\n if(fast==slow){\r\n //return cycleSize;\r\n //cycleExists = true;\r\n //break;\r\n return fast;\r\n }else{\r\n \r\n fast = fast.next.next;\r\n slow = slow.next;\r\n }\r\n\r\n }\r\n \r\n return null;\r\n\t}", "Cycle getOptimalCycle(Graph<L, T> graph);", "public int recCount(TriLinkNode curNode)\r\n {\r\n int answer= 0;\r\n if(curNode.i1==true&&curNode.d1==false)\r\n {\r\n answer+=1;\r\n }\r\n if(curNode.i2==true&&curNode.d2==false)\r\n {\r\n answer+=1;\r\n }\r\n if(curNode.left!=null)\r\n {\r\n answer+=recCount(curNode.left);\r\n }\r\n if(curNode.down!=null)\r\n {\r\n answer+=recCount(curNode.down);\r\n }\r\n if(curNode.right!=null)\r\n {\r\n answer+=recCount(curNode.right);\r\n }\r\n return answer;\r\n }", "static int countConsecutive(int N) {\n int count = 0;\n for (int L = 1; L * (L + 1) < 2 * N; L++) {\n float a = (float) ((1.0 * N - (L * (L + 1)) / 2) / (L + 1));\n if (a - (int) a == 0.0)\n count++;\n }\n return count;\n }", "public int getNetworkTransmissionInterval(){\n return (networkIntervalSteps + 1) * 10;\n }", "public int getLoopCount() {\n\t\treturn loopCount;\n\t}", "public int sizeOfTurnSpeedArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TURNSPEED$6);\r\n }\r\n }", "@Override\r\n\tpublic int getNumberOfSymmetricLinks()\r\n\t{\r\n\t\tCollection<Entity> vertices = directedGraph.getVertices();\r\n\t\tint symLinksSum = 0;\r\n\r\n\t\t// this can be done still more efficiently if i put the nodes in a list\r\n\t\t// and remove from the\r\n\t\t// list current node as well as its children after each loop\r\n\t\t// int progress = 0;\r\n\t\t// int max = vertices.size();\r\n\r\n\t\tfor (Entity source : vertices) {\r\n\t\t\t// ApiUtilities.printProgressInfo(progress, max, 100,\r\n\t\t\t// ApiUtilities.ProgressInfoMode.TEXT, \"Counting symmetric links\");\r\n\t\t\tfor (Entity target : getChildren(source)) {\r\n\t\t\t\t// progress++;\r\n\r\n\t\t\t\tif (isSymmetricLink(source, target)) {\r\n\t\t\t\t\tsymLinksSum++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn symLinksSum / 2;\r\n\t}", "private int determineNumberOfIterations()\r\n\t{\r\n\t\tint number = 0;\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_E.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_A.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\treturn number * 2; // *2 is to account for the reversed branch iterations\r\n\t}", "public int getDimes()\n {\n\treturn dimes;\n }", "public final int getIterations() {\n \t\treturn iterations;\n \t}", "public static int totalClicks() {\n return counterClicks;\n }", "private static int countPathsRecursion(int steps) {\n\n if (steps < 0)\n return 0;\n else if (steps == 0)\n return 1;\n\n return countPathsRecursion(steps - 1) + countPathsRecursion(steps - 2) + countPathsRecursion(steps - 3);\n\n\n }", "Constant getCycleOffsetConstant();", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "public int getEdgeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n int counter = 0;\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n counter += node.outDeg();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return counter;\r\n }", "public int calcRewardCycle(long currentHeight) {\n return Integer.parseInt(String.valueOf(currentHeight - this.createHeight)) / this.awardingCycle;\n }", "public double collisionLength(){\n //count to keep track of how many words there are the chain\n int count = 0;\n for (int i = 0;i< tableSize;i++){\n if (hashTable[i] != null){\n LLNodeHash ptr = hashTable[i];\n //increments if there is an element\n if (ptr != null){\n count++;\n }\n //while loop to traverse the linked list\n while (ptr.getNext() != null){\n //increments for every word\n count++;\n ptr = ptr.getNext();\n }\n }\n }\n return ((double) count / (double) usedIndex);\n }", "int wkhtmltoimage_phase_count(PointerByReference converter);" ]
[ "0.82749504", "0.7697544", "0.72886926", "0.7271639", "0.7182385", "0.6663136", "0.66549784", "0.6593118", "0.6554703", "0.6319054", "0.62993336", "0.62931204", "0.6291563", "0.616084", "0.61391115", "0.60797524", "0.5977649", "0.5943747", "0.5914054", "0.58993286", "0.58820105", "0.5878633", "0.5850798", "0.58232087", "0.58208954", "0.5811917", "0.57570964", "0.5731161", "0.5693762", "0.5654037", "0.5646935", "0.5634344", "0.56266284", "0.5621598", "0.56167567", "0.5610227", "0.56004655", "0.5586405", "0.55712056", "0.5551384", "0.5549882", "0.55377954", "0.5534065", "0.5529713", "0.5526945", "0.5524381", "0.54903233", "0.54848945", "0.54719794", "0.5466506", "0.5459134", "0.5456467", "0.545007", "0.54473513", "0.54387504", "0.54387444", "0.5438192", "0.5436991", "0.5428969", "0.54169804", "0.541274", "0.54093754", "0.5407231", "0.5398551", "0.5398527", "0.5397058", "0.53968817", "0.539541", "0.5393119", "0.53899616", "0.53784615", "0.53642803", "0.53642803", "0.5361798", "0.5361798", "0.5361798", "0.5344657", "0.5344589", "0.53438187", "0.53437907", "0.53429145", "0.534266", "0.533856", "0.5337171", "0.5334574", "0.5334533", "0.5331333", "0.5329954", "0.53295064", "0.53214127", "0.5319244", "0.53192204", "0.531763", "0.531689", "0.53164357", "0.53148925", "0.5313118", "0.5311867", "0.5310257", "0.5308648" ]
0.7833647
1
/ Complexity Analysis: Time complexity: O(N) Space complexity: O(1)
public static List<Integer> findNumbers(int[] nums) { if (nums == null || nums.length == 0) { return null; } List<Integer> duplicateNumbers = new ArrayList<>(); int i = 0; while (i < nums.length) { if (nums[i] != nums[nums[i] - 1]) { int temp = nums[nums[i] - 1]; nums[nums[i] - 1] = nums[i]; nums[i] = temp; } else { if (i != nums[i] - 1) { duplicateNumbers.add(nums[i]); } i++; } } return duplicateNumbers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "public static int example2(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j += 2) // note the increment of 2 // O(1)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Once Again, we have a (for) loop and it runs (n) times and this\r\n\t\t * for loop dominates the runtime.So this is linear time and the answer is O(n).\r\n\t\t * \r\n\t\t */\r\n\t}", "public int[] squareUp(int n) {\r\n int[]arreglo=new int[(n*n)]; // O(1)\r\n if(n==0){ // O(1)\r\n return arreglo; // O(1)\r\n }\r\n for(int i=n-1;i<arreglo.length;i=i+n){ // O(n)\r\n for (int j=i;j>=i-(i/n);j--){ // O(1)\r\n arreglo[j]=1+(i-j); // O(1)\r\n }\r\n }\r\n return arreglo; // O(1)\r\n}", "public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}", "public static int example4(int[] arr) { // O(1)\r\n\t\tint n = arr.length, prefix = 0, total = 0; // O(1), O(1), (1)\r\n\t\tfor (int j = 0; j < n; j++) { // loop from 0 to n-1 // O(n)\r\n\t\t\tprefix += arr[j];\r\n\t\t\ttotal += prefix;\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: The method contains a (for) loop and it runs (n) times.This loop\r\n\t\t * dominates the runtime.We always aim for the worse-case and maximum time. The\r\n\t\t * answer is it is linear time of O(n) notation.\r\n\t\t * \r\n\t\t */\r\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "public static void main(String args[] ) throws Exception {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] seqArray = new int[n];\n for (int i = 0; i < n; i++) {\n seqArray[i] = scanner.nextInt();\n }\n // getSeqValue(seqArray); //this method is an accepted one on Hackerrank but time complexity is not order n; i.e. !O(n);\n getLinearOrderY(seqArray); // trying to get O(n) time complexity;\n }", "public static int example1(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\t}", "public int[] fix34(int[] nums) {\r\n\tint i=0; // O(1)\r\n while(i<nums.length && nums[i]!=3) // O(n)\r\n i++; // n+1\r\n int j=i; // O(1)\r\n while(j+1<nums.length && nums[j+1]!=4) // O(n)\r\n j++; // n+1\r\n while(i<nums.length){ // O(n)\r\n if(nums[i]==3){ // O(1)\r\n int temp=nums[i+1]; // O(1)\r\n nums[i+1]=nums[j+1]; //O(1)\r\n nums[j+1]=temp; // O(1)\r\n while(j+1<nums.length && nums[j+1] != 4) //O(n)\r\n j++; // n+1\r\n }\r\n i++; // n+1\r\n }\r\n return nums; //O(1)\r\n}", "public static void main(String[] args) {\n\t\tint a[]= {15,3,7,1,9,2};\n\t\tsubarraysum(a,11);//Time complexity O(n^2) space O(1)\n\n\t\tsubarraysum_reducecomplexity(a,11,a.length); //Time complexity O(n) space O(1)\n\n\t}", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "public static int[] exe1(int[] arr){ // Solution O(n) in time and constant in Memory\n int nzeros=0;\n\n for (int i=0; i<arr.length; i++) {\n arr[i-nzeros] = arr[i];\n if (arr[i] == 0) {\n nzeros++;\n }\n }\n for (int i=arr.length-1; i>arr.length-nzeros-1; i--) {\n arr[i] = 0;\n }\n\n return arr;\n }", "public int findDuplicate(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n\n int slow = nums[0];\n int fast = nums[nums[0]];\n\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n\n fast = 0;\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n}", "public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> result = new ArrayList<>(nums.length);\n\n // Prepare\n Arrays.sort(nums);\n// int firstPositiveIndex = 0;\n// int negativeLength = 0;\n// List<Integer> numsFiltered = new ArrayList<>();\n// for (int i = 0; i < nums.length; i++) {\n// if (i == 0 || i == 1 || nums[i] == 0 || (nums[i] != nums[i-2])) {\n// numsFiltered.add(nums[i]);\n// if ((nums[i] >= 0) && (firstPositiveIndex == 0)) {\n// firstPositiveIndex = numsFiltered.size() - 1;\n// }\n// if ((nums[i] <= 0)) {\n// negativeLength = numsFiltered.size();\n// }\n// }\n// }\n// nums = numsFiltered.stream().mapToInt(i->i).toArray();\n\n // Func\n\n for(int i=0; (i < nums.length) && (nums[i] <= 0); i++) {\n if (i != 0 && nums[i] == nums[i-1]) {\n continue;\n }\n for(int j=i+1; j<nums.length; j++) {\n if (j != i+1 && nums[j] == nums[j-1]) {\n continue;\n }\n for(int k=nums.length-1; (k>j) && nums[k] >= 0; k--) {\n if (k != nums.length-1 && nums[k] == nums[k+1]) {\n continue;\n }\n int sum = nums[i]+nums[j]+nums[k];\n if (sum > 0) {\n continue;\n } else if (sum < 0) {\n break;\n }\n\n List<Integer> ok = new ArrayList<>();\n ok.add(nums[i]);\n ok.add(nums[j]);\n ok.add(nums[k]);\n result.add(ok);\n break;\n }\n }\n }\n\n// System.out.println(\"Finish time = \" + (System.nanoTime() - start) / 1_000_000);\n// System.out.println(\"result size = \" + result.size());\n\n return result;\n }", "int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }", "private static void get4ElementsSumCountFastest(String inputLine, int target) {\n String[] arr = inputLine.split(\" \");\n if (arr.length < 3) {\n System.out.println(0);\n return;\n }\n\n Map<Integer, Set<String>> pairSumMap = new HashMap<>();\n List<Integer> list = new ArrayList<>(arr.length);\n for (String s : arr) {\n list.add(Integer.parseInt(s.trim()));\n }\n\n int sum = 0, diff = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n sum = list.get(i) + list.get(j);\n if (sum < target) {\n pairSumMap.putIfAbsent(sum, new HashSet<>());\n pairSumMap.get(sum).add(i + \"-\" + j);\n }\n }\n }\n\n for (Map.Entry<Integer, Set<String>> mk : pairSumMap.entrySet()) {\n diff = target - mk.getKey();\n if (pairSumMap.containsKey(diff)) {\n Set<String> indexesList = mk.getValue();\n for (String index : indexesList) {\n int indexOrgX = Integer.parseInt(index.split(\"-\")[0]);\n int indexOrgY = Integer.parseInt(index.split(\"-\")[1]);\n for (String newIdx : pairSumMap.get(diff)) {\n int indexNewX = Integer.parseInt(newIdx.split(\"-\")[0]);\n int indexNewY = Integer.parseInt(newIdx.split(\"-\")[1]);\n if (indexOrgX != indexNewX && indexOrgX != indexNewY && indexOrgY != indexNewX && indexOrgY != indexNewY) {\n System.out.println(1);\n return;\n }\n }\n }\n }\n }\n System.out.println(0);\n }", "static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}", "public static int f3(int N) {\n \n // O(1)\n if (N == 0) return 1;\n else{ \n \n int x = 0;\n // O(N)\n for(int i = 0; i < N; i++)\n x += f3(N-1);\n return x;\n }\n }", "static long nPolyNTime(int[] n) {\n int temp = n.length;\n long sum = 0;\n if(n == null || n.length == 0) return -1;\n for(int i = 0; i < n.length; ++i) {\n while(temp --> 0) {\n for(int j = 0; j < n.length; ++j) {\n sum += n[i] + n[j];\n }\n }\n }\n return sum;\n }", "static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}", "void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }", "public static int solveEfficient(int n) {\n if (n == 0 || n == 1)\n return 1;\n\n int n1 = 1;\n int n2 = 1;\n int sum = 0;\n\n for (int i = 2; i <= n; i++) {\n sum = n1 + n2;\n n1 = n2;\n n2 = sum;\n }\n return sum;\n }", "@Override public short getComplexity() {\n return 0;\n }", "private static int betterSolution(int n) {\n return n*n*n;\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int T = sc.nextInt();\n for(int i = 0 ; i < T; i++) {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n PriorityQueue<Integer> queue = new PriorityQueue<Integer>();\n int[][] m = new int[n][n];\n //n^2 * log(n)\n for(int row = 0; row < n; row++) {\n for(int col = 0; col < n; col++) {\n if(row == 0 && col == 0 && n != 1) {\n continue;\n }else if(row == 0) {\n m[row][col] = m[row][col - 1] + a;\n }else if(col == 0) {\n m[row][col] = m[row-1][col] + b;\n }else {\n m[row][col] = m[row-1][col-1] + a + b;\n }\n\n if(row + col == (n -1)) {\n pool.add(m[row][col]); //log(n)\n }\n }\n }\n //O(n*log(n))\n for (Integer item:pool) {\n queue.add(item); //O(logn)\n }\n while(!queue.isEmpty()) {\n System.out.print(queue.poll() + \" \"); //O(1)\n }\n System.out.println();\n queue.clear();\n pool.clear();\n }\n }", "public static void cntArray(int A[], int N) \n { \n // initialize result with 0 \n int result = 0; \n \n for (int i = 0; i < N; i++) { \n \n // all size 1 sub-array \n // is part of our result \n result++; \n \n // element at current index \n int current_value = A[i]; \n \n for (int j = i + 1; j < N; j++) { \n \n // Check if A[j] = A[i] \n // increase result by 1 \n if (A[j] == current_value) { \n result++; \n } \n } \n } \n \n // print the result \n System.out.println(result); \n }", "private void faster() {\n BigInteger[] denoms = new BigInteger[1000];\n BigInteger[] nums = new BigInteger[1000];\n\n nums[0] = BigInteger.valueOf(3);\n denoms[0] = BigInteger.valueOf(2);\n\n for (int i = 1; i < 1000; i++) {\n denoms[i] = nums[i - 1].add(denoms[i - 1]);\n nums[i] = denoms[i].add(denoms[i - 1]);\n }\n\n int count = 0;\n for (int i = 1; i < 1000; i++) {\n if (nums[i].toString().length() > denoms[i].toString().length()) {\n count++;\n }\n }\n this.answer = count;\n }", "static long arrayManipulation(int n, int[][] queries) {\r\n long result = 0, sum = 0;\r\n long[] arr = new long[n];\r\n for(int i = 0; i < queries.length; i++){\r\n int firstIndex = queries[i][0] - 1;\r\n int lastIndex = queries[i][1] - 1;\r\n long numberToAdd = queries[i][2];\r\n arr[firstIndex] += numberToAdd;\r\n if (lastIndex+1 < n)\r\n arr[lastIndex+1] -= numberToAdd;\r\n }\r\n\r\n for(long l : arr){\r\n sum += l;\r\n if(sum > result)\r\n result = sum;\r\n }\r\n\r\n return result;\r\n }", "public boolean linearIn(int[] outer, int[] inner) {\r\n int comp=0; // O(1)\r\n int count=0; // O(1)\r\n if(inner.length==0) // O(1)\r\n return true; // O(1)\r\n for(int i=0; i<outer.length; i++) { // O(n)\r\n if(outer[i]==inner[count]) { // O(1)\r\n comp++; // O(1)\r\n count++; // O(1)\r\n } else if(outer[i]>inner[count]) // O(1)\r\n return false; // O(1)\r\n if (comp==inner.length) // O(1)\r\n return true; // O(1)\r\n }\r\n return false; // O(1)\r\n}", "public static void main(String[] args) {\n\t\tArrays.fill(arr, 1);\n\t\tlong startTime = System.nanoTime();\n\t\t// Traverse till square root of MAX\n\t\t// Using logic similar to sieve of eratosthenes to\n\t\t// populate factor sum array\n\t\tint limit = (int)Math.sqrt(MAX);\n\t\tfor (int i = 2; i <= limit; ++i) {\n\t\t\tint j = i+i;\n\t\t\tint count = 2;\n\t\t\twhile (j <= MAX){\n\t\t\t\t// As we already add count (j/i) to the factor sum when adding i,\n\t\t\t\t// we don't add when i is equal to or greater than count\n\t\t\t\tif (i < count) {\n\t\t\t\t\t// Adding i and count (j/i) to the factor sum of j\n\t\t\t\t\tarr[j] += i;\n\t\t\t\t\tarr[j] += count;\n\t\t\t\t}\n\t\t\t\tj += i;\n\t\t\t\tcount++;\n\t\t\t} \n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tSystem.out.println(\"The following are amicable numbers\");\n\t\tfor (int i = 2; i <= MAX; ++i) {\n\t\t\tint num = arr[i];\n\t\t\tif (num <= MAX && num > i) {\n\t\t\t\tif (arr[num] == i) {\n\t\t\t\t\tSystem.out.println(count+\": \"+i+\" and \"+num);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong endTime = System.nanoTime();\n\t\tdouble duration = timeInSec(endTime,startTime) ;\n\t\tSystem.out.println(\"Run time \" + duration + \" : secs\");\t\t\n\t}", "private static int f(int n, int complete, int other, int[] arr) {\n if(n<=0)\n return 0;\n int res=0;\n ArrayList<Integer>list=new ArrayList<Integer>();\n for(int a:arr)\n if(a>0)\n list.add(a);\n int brr[]=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n while(brr.length!=0){\n int index=0;\n for(int i=1;i<brr.length;i++)\n if(brr[index]<brr[i])\n index=i;\n for(int i=0;i<brr.length;i++){\n if(index==i)\n brr[i]-=complete;\n else\n brr[i]-=other;\n }\n list=new ArrayList<Integer>();\n for(int a:brr)\n if(a>0)\n list.add(a);\n brr=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n res++;\n }\n return res;\n }", "public static void a2v2(int[] A)\n {\n Map<Integer, List<Integer>> hashMap = new HashMap<>();\n\n insert(hashMap, 0, -1);\n\n int sum = 0;\n\n for (int i = 0; i < A.length; i++)\n {\n sum += A[i];\n\n if (hashMap.containsKey(sum))\n {\n List<Integer> list = hashMap.get(sum);\n\n // find all subarrays with the same sum\n for (Integer value: list)\n {\n System.out.println(\"Subarray [\" + (value + 1) + \"…\" +\n i + \"]\");\n }\n }\n\n // insert (sum so far, current index) pair into the hashmap\n insert(hashMap, sum, i);\n }\n }", "public static int degreeOfArray(List<Integer> arr) { arr.length = n\n // num of Keys = k\n // O(n + k)\n // max value count = m\n //\n PriorityQueue<Node> pq = new PriorityQueue<>((i, j)-> j.count - i.count);\n Map<Integer, NodePosition> posMap = new HashMap<>();\n Map<Integer, Node> countMap = new HashMap<>();\n // [1, 2, 3, 4, 5, 6]\n for (int i = 0; i < arr.size(); i++) {\n int cur = arr.get(i);\n\n if (!countMap.containsKey(cur)) {\n countMap.put(cur, new Node(cur, 1));\n } else {\n Node curNode = countMap.get(cur);\n curNode.count++;\n countMap.put(cur, curNode);\n }\n\n if (!posMap.containsKey(cur)) {\n posMap.put(cur, new NodePosition(i, i));\n } else {\n NodePosition curNodePos = posMap.get(cur);\n curNodePos.endIndex = i;\n posMap.put(cur, curNodePos);\n }\n }\n //Iterator<Map.Entry<Integer, Node> it = new Iterator<>(countMap);\n for (Map.Entry<Integer, Node> e : countMap.entrySet()) {\n pq.add(e.getValue());\n }\n\n // [1, 2, 1, 3 ,2]\n // 1 , 2 , 3\n Node curNode = pq.remove();\n int maxCount = curNode.count;\n\n int minRange = posMap.get(curNode.num).endIndex - posMap.get(curNode.num).startIndex;\n\n while (!pq.isEmpty() && maxCount == pq.peek().count) {\n curNode = pq.remove();\n NodePosition nPos = posMap.get(curNode.num);\n minRange = Math.min(minRange, nPos.endIndex - nPos.startIndex);\n }\n\n return minRange + 1;\n }", "public static int ulam(int n) {\n\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n\n int i = 3;\n while (list.size() < n) {\n\n int count = 0;\n for (int j = 0; j < list.size() - 1; j++) {\n\n for (int k = j + 1; k < list.size(); k++) {\n if (list.get(j) + list.get(k) == i)\n count++;\n if (count > 1)\n break;\n }\n if (count > 1)\n break;\n }\n if (count == 1)\n list.add(i);\n i++;\n }\n return list.get(n - 1);\n }", "public static ArrayList<ArrayList<Integer>> fourSum(ArrayList<Integer> a, int k) {\n Collections.sort(a);\n System.out.println(a);\n LinkedHashMap<Integer, List<List<Integer>>> m = new LinkedHashMap<Integer, List<List<Integer>>>();\n for (int i = 0; i <= a.size() - 3; i++) {\n for (int j = i + 1; j <= a.size() - 2; j++) {\n if (m.get(a.get(i) + a.get(j)) == null) {\n ArrayList<List<Integer>> v = new ArrayList<List<Integer>>();\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n } else {\n List<List<Integer>> v = m.get(a.get(i) + a.get(j));\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n }\n\n }\n }\n LinkedHashSet<ArrayList<Integer>> res = new LinkedHashSet<ArrayList<Integer>>();\n for (int i = 2; i <= a.size() - 1; i++) {\n for (int j = i + 1; j < a.size(); j++) {\n List<List<Integer>> v = m.get(k - (a.get(i) + a.get(j)));\n if (v != null && v.size() >= 1) {\n for (List<Integer> l : v) {\n\n if (l.get(0) < l.get(1) && l.get(1) < i && l.get(1) < j) {\n //System.out.println(l.get(0) + \" \" + l.get(1) + \" \" + i + \" \" + j);\n ArrayList<Integer> out = new ArrayList<Integer>();\n out.add(a.get(l.get(0)));\n out.add(a.get(l.get(1)));\n out.add(a.get(i));\n out.add(a.get(j));\n Collections.sort(out);\n //System.out.println(out);\n res.add(out);\n }\n }\n }\n }\n }\n return new ArrayList<ArrayList<Integer>>(res);\n }", "static int[] OnepassSol1(int[]a, int n){\r\n Map<Integer, Integer> map = new HashMap<>();\r\n for (int i = 0; i < a.length; i++) {\r\n int complement = n - a[i];\r\n if (map.containsKey(complement)) {\r\n return new int[] { map.get(complement), i };\r\n }\r\n map.put(a[i], i);\r\n }\r\n int[] ans = {-1,-1};\r\n return ans;\r\n }", "public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }", "public static void targetSumPair(int[] arr, int target){\n //write your code here\n Arrays.sort(arr); // O(nlogn)\n int i=0, j=arr.length-1;\n while(i < j) {\n if(arr[i]+arr[j] < target) {\n i++;\n }\n else if(arr[i] + arr[j] > target)\n j--;\n else {\n System.out.println(arr[i] + \", \" + arr[j]);\n i++; j--;\n }\n }\n }", "private void discretization(int[] nums) {\n\t\tint[] sorted = nums.clone();\n\t\tArrays.sort(sorted);\n\t\tfor (int i = 0; i < nums.length; i++) {\n\t\t\tnums[i] = Arrays.binarySearch(sorted, nums[i]);\n\t\t}\n\t}", "static int countSubarrWithEqualZeroAndOne(int arr[], int n)\n {\n int count=0;\n int currentSum=0;\n HashMap<Integer,Integer> mp=new HashMap<>();\n for(int i=0;i<arr.length;i++)\n {\n if(arr[i]==0)\n arr[i]=-1;\n currentSum+=arr[i];\n \n if(currentSum==0)\n count++;\n if(mp.containsKey(currentSum))\n count+=mp.get(currentSum);\n if(!mp.containsKey(currentSum))\n mp.put(currentSum,1);\n else\n mp.put(currentSum,mp.get(currentSum)+1);\n \n \n }\n return count;\n }", "static int getMissingByAvoidingOverflow(int a[], int n)\n\t {\n\t int total = 2;\n\t for (int i = 3; i <= (n + 1); i++)\n\t {\n\t total =total+ i -a[i - 2];\n\t //total =total- a[i - 2];\n\t }\n\t return total;\n\t }", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "@Override\r\n public long problem1(int size) {\r\n StringBuilder sb = new StringBuilder();\r\n long start = System.currentTimeMillis();\r\n for (int i=0; i<size; i++) {\r\n sb.append(i);\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }", "static int[] find2(int a[]){\r\n int sum = a[0];\r\n int pro = a[0];\r\n for(int i=1;i<a.length;i++){\r\n sum += a[i];\r\n pro += a[i]*a[i];\r\n }\r\n int s = (n*(n+1))/2 - sum;\r\n int p = (n*(n+1)*(2*n+1))/6 - pro;\r\n return solveSP(s, p);\r\n }", "private int gameV(int i, int j, int x) {\n int count = 2;\n for (int ii = 0; ii < i; ii++) {\n for (int jj = ii + 1; jj < n; jj++) {\n if (ii != x && jj != x) count++;\n }\n }\n for (int jj = i + 1; jj < j; jj++) {\n if (jj != x) count++;\n }\n return count;\n }", "static int uniqueNumbers(int arr[], int n)\n {\n // Sorting the given array\n Arrays.sort(arr);\n\n // This array will store the frequency\n // of each number in the array\n // after performing the given operation\n int freq[] = new int[n + 2];\n\n // Initialising the array with all zeroes\n for(int i = 0; i < n + 2; i++)\n freq[i] = 0;\n\n // Loop to apply operation on\n // each element of the array\n for (int x = 0; x < n; x++) {\n\n // Incrementing the value at index x\n // if the value arr[x] - 1 is\n // not present in the array\n if (freq[arr[x] - 1] == 0) {\n freq[arr[x] - 1]++;\n }\n\n // If arr[x] itself is not present, then it\n // is left as it is\n else if (freq[arr[x]] == 0) {\n freq[arr[x]]++;\n }\n\n // If both arr[x] - 1 and arr[x] are present\n // then the value is incremented by 1\n else {\n freq[arr[x] + 1]++;\n }\n }\n\n // Variable to store the number of unique values\n int unique = 0;\n\n // Finding the unique values\n for (int x = 0; x <= n + 1; x++) {\n if (freq[x] != 0) {\n unique++;\n }\n }\n\n // Returning the number of unique values\n return unique;\n }", "private static void sortAccording(int A1[], int A2[], int m, int n)\n {\n // The temp array is used to store a copy \n // of A1[] and visited[] is used to mark the \n // visited elements in temp[].\n int temp[] = new int[m], visited[] = new int[m];\n for (int i = 0; i < m; i++)\n {\n temp[i] = A1[i];\n visited[i] = 0;\n }\n \n // Sort elements in temp\n Arrays.sort(temp);\n \n // for index of output which is sorted A1[]\n int ind = 0; \n \n // Consider all elements of A2[], find them\n // in temp[] and copy to A1[] in order.\n for (int i = 0; i < n; i++){\n\n // Find index of the first occurrence\n // of A2[i] in temp\n int f = first(temp, 0, m-1, A2[i], m);\n \n // If not present, no need to proceed\n if (f == -1) \n continue;\n \n // Copy all occurrences of A2[i] to A1[]\n for (int j = f; (j < m && temp[j] == A2[i]); j++){\n \n A1[ind++] = temp[j];\n visited[j] = 1;\n }\n }\n \n // Now copy all items of temp[] which are \n // not present in A2[]\n for (int i = 0; i < m; i++)\n if (visited[i] == 0)\n A1[ind++] = temp[i];\n }", "private static int solution2(String s) {\r\n int n = s.length();\r\n int ans = 0;\r\n for (int i = 0; i < n; i++)\r\n for (int j = i + 1; j <= n; j++)\r\n if (allUnique(s, i, j)) ans = Math.max(ans, j - i);\r\n return ans;\r\n }", "int count() {\n\t\tArrayList<Integer> checked = new ArrayList<Integer>();\r\n\t\tint count = 0;\r\n\t\tfor (int x = 0; x < idNode.length; x++) {// Order of N2\r\n\t\t\tint rootX = getRoot(x);\r\n\t\t\tif (!checked.contains(rootX)) {// Order of N Access of Array\r\n\r\n\t\t\t\tSystem.out.println(\"root x is \" + rootX);\r\n\t\t\t\tcount++;\r\n\t\t\t\tchecked.add(rootX);// N Access of Array\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "private static void findMissingAndDuplicateNumberFrom1toN(int[] input) {\n\t\tint len = input.length;\n\t\tint i = 0;\n\n\t\twhile (i < len) {\n\t\t\t//if its already in correct place\n\t\t\tif (input[i] == i + 1) {\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t} else if (input[i] == input[input[i] - 1]) { //if the elment to be swapped with are same\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tint temp = input[i];\n\t\t\t\tinput[i] = input[input[i] - 1];\n\t\t\t\tinput[temp - 1] = temp;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (input[i] != i + 1) {\n\t\t\t\tSystem.out.println(\"Missing number : \" + (i + 1));\n\t\t\t\tSystem.out.println(\"Duplicate number : \" + input[i]);\n\t\t\t}\n\t\t}\n\n\t}", "public static int solution(int[] arr) {\n int n = arr.length;\n for (int i = 0; i < n; i++) {\n while (arr[i] != i + 1 && arr[i] < n && arr[i] > 0) {\n int temp = arr[i];\n if (temp == arr[temp - 1])\n break;\n arr[i] = arr[temp - 1];\n arr[temp - 1] = temp;\n }\n }\n for (int i = 0; i < n; i++)\n if (arr[i] != i + 1)\n return i + 1;\n return n + 1;\n }", "public static void main(String[] args) throws NumberFormatException, IOException {\n\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tint T = Integer.parseInt(br.readLine());\r\n\t\tStringTokenizer st;\r\n\t\tfor (int test_case = 1; test_case <= T; test_case++) {\r\n\t\t\tst = new StringTokenizer(br.readLine());\r\n\t\t\tN = Integer.parseInt(st.nextToken());\r\n\t\t\tK = Integer.parseInt(st.nextToken());\r\n\t\t\tst = new StringTokenizer(br.readLine());\r\n\t\t\tlist = new ArrayList[N + 1];\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tlist[i] = new ArrayList<Integer>();\r\n\t\t\t}\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tint k = Integer.parseInt(st.nextToken());\r\n\t\t\t\tlist[k].add(i);\r\n\t\t\t}\r\n//\t\t\tfor (int i = 1; i <= N; i++) {\r\n//\t\t\t\tfor (int j = 0; j < list[i].size(); j++)\r\n//\t\t\t\t\tSystem.out.print(i + \", \" + list[i].get(j) + \" \");\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n\r\n\t\t\tQueue<Integer> q;\r\n//\t\t\tfor(int i = 1; i<=N;i++) {\r\n//\t\t\t\tif(list[i].size()==0) {\r\n//\t\t\t\t\tq.add(i);\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\tint visited[];\r\n\t\t\tint answer = 0;\r\n\t\t\tfor (int i = 1; i <= N; i++) {// 각 굴에 대해서 인원 센다\r\n\t\t\t\tq = new LinkedList<Integer>();\r\n\t\t\t\tvisited = new int[N + 1];\r\n\t\t\t\tint count = K;\r\n//\t\t\t\tfor (int j = 1; j < K; j++) {// 지날 수 있는 굴의 최대갯수 K\r\n\t\t\t\tif (list[i].size() < 1) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tint idx;\r\n\t\t\t\tfor (int u = 0; u < list[i].size(); u++) {\r\n\t\t\t\t\tidx = list[i].get(u);\r\n\t\t\t\t\tq.add(idx);\r\n\t\t\t\t}\r\n\t\t\t\twhile (count > 0 && !q.isEmpty()) {\r\n\t\t\t\t\tidx = q.poll();\r\n\r\n\t\t\t\t\tfor (int m = 0; m < list[idx].size(); m++) {\r\n\r\n\t\t\t\t\t\tint dd = list[idx].get(m);\r\n\t\t\t\t\t\tif (visited[dd] == 0 && dd != i) {\r\n\t\t\t\t\t\t\tvisited[dd] = 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tq.add(list[idx].get(m));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount--;\r\n\r\n\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tfor (int e = 1; e <= N; e++) {\r\n\t\t\t\t\tif (visited[e] == 1)\r\n\t\t\t\t\t\tanswer++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"#\" + test_case + \" \" + answer);\r\n\r\n\t\t}\r\n\r\n\t}", "static void UseArrayList(ArrayList<Integer> myList2){\r\n\t\tLong start = System.currentTimeMillis();\r\n\t\tfor (int n=0; n<myList2.size();n++)\r\n\t\t{\r\n\t\t\tfor (int m=n+1; m<myList2.size();m++){\r\n\t\t\t\tif( myList2.get(n)== myList2.get(m) ) {System.out.println(\"Duplicate found \"+myList2.get(n));}\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong End = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Total time taken for executing this code is: \" + (End-start));\r\n\t}", "public void sum(int n) {\n int sum = 0;\n for (int j = 0; j < n; j++) // 2n+2\n sum += j;\n for (int k = 0; k < n; k++) // 2n+2\n sum += k;\n for (int l = 0; l < n; l++) //2n+2\n sum += l;\n }", "public int solution(int K, int[] A) {\n HashMap<Integer,ArrayList<Integer>> map = new HashMap<Integer,ArrayList<Integer>>();\n \n int dup=0,nonDup=0;\n for (int i=0;i< A.length;i++){\n if(2*A[i]==K){\n if(!map.containsKey(A[i])){\n dup++;\n map.put(A[i],new ArrayList<Integer>());\n }\n continue;\n }\n \n if(!map.containsKey(A[i])){\n \tmap.put(A[i],new ArrayList<Integer>());\n }\n map.get(A[i]).add(i);\n nonDup+=map.get(K-A[i]).size();\n }\n return nonDup*2+dup;\n }", "static int cntDisPairs(int arr[], int N, int K) {\n\t\t// Stores count of distinct pairs\n\t\t// whose sum equal to K\n\t\tint cntPairs = 0;\n\n\t\t// Sort the array\n\t\tArrays.sort(arr);\n\n\t\t// Stores index of\n\t\t// the left pointer\n\t\tint i = 0;\n\n\t\t// Stores index of\n\t\t// the right pointer\n\t\tint j = N - 1;\n\n\t\t// Calculate count of distinct\n\t\t// pairs whose sum equal to K\n\t\twhile (i < j) {\n\n\t\t\t// If sum of current pair\n\t\t\t// is equal to K\n\t\t\tif (arr[i] + arr[j] == K) {\n\n\t\t\t\t// Remove consecutive duplicate\n\t\t\t\t// array elements\n\t\t\t\twhile (i < j && arr[i] == arr[i + 1]) {\n\n\t\t\t\t\t// Update i\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\t// Remove consecutive duplicate\n\t\t\t\t// array elements\n\t\t\t\twhile (i < j && arr[j] == arr[j - 1]) {\n\n\t\t\t\t\t// Update j\n\t\t\t\t\tj--;\n\t\t\t\t}\n\n\t\t\t\t// Update cntPairs\n\t\t\t\tcntPairs += 1;\n\n\t\t\t\t// Update i\n\t\t\t\ti++;\n\n\t\t\t\t// Update j\n\t\t\t\tj--;\n\t\t\t}\n\n\t\t\t// if sum of current pair\n\t\t\t// less than K\n\t\t\telse if (arr[i] + arr[j] < K) {\n\n\t\t\t\t// Update i\n\t\t\t\ti++;\n\t\t\t} else {\n\n\t\t\t\t// Update j\n\t\t\t\tj--;\n\t\t\t}\n\t\t}\n\t\treturn cntPairs;\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint arr[] = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\tint sum = sc.nextInt();\n\t\tHashMap<Integer,Integer> map = new HashMap<>();\n \t\tArrays.sort(arr);\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint reqSum = sum-temp;\n\t\t\tarr[i]=0;\n\t\t\tint l=0;\n\t\t\tint r = n-1;\n\t\t\twhile(l<r) {\n\t\t\t\t//System.out.println(\"l \" + l + \" r \" + r + \" i = \"+ i);\n\t\t\t\tif(arr[l] + arr[r]==reqSum && arr[l]!=0 && arr[r]!=0 ) {\n\t\t\t\t\tint arr2[] = new int[3];\n\t\t\t\t\tarr2[0] = temp;\n\t\t\t\t\tarr2[1] = arr[l];\n\t\t\t\t\tarr2[2] = arr[r];\n\t\t\t\t\tif(map.containsKey(arr2[0]) || map.containsKey(arr2[1]) || map.containsKey(arr2[2])) {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tArrays.sort(arr2);\n\t\t\t\t\t\tSystem.out.println(arr2[0] + \" \" + arr2[1] + \" \" + arr2[2]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tl++;\n\t\t\t\t}else if(arr[l] + arr[r] < reqSum) {\n\t\t\t\t\tl++;\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tr--;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tarr[i] = temp;\t\n\t\t\tmap.put(arr[i], 1);\n\t\t}\n\t}", "public int findFirstUniqueNumber (List<Integer> numberList) {\n\n ////// Solution 1:\n LinkedHashMap<Integer, Integer> occurMap = new LinkedHashMap<>();\n\n for (int number: numberList) { // O(n)\n if (occurMap.containsKey(number) && occurMap.get(number) != 0) {\n occurMap.replace(number, occurMap.get(number), 0);\n }\n occurMap.putIfAbsent(number, 1);\n }\n\n for (Map.Entry<Integer, Integer> entry: occurMap.entrySet()) {\n if (entry.getValue() == 1) {\n return entry.getKey();\n }\n }\n\n ////// Solution 2: O(n * n)\n// for (int n: numberList) {\n// if (numberList.indexOf(n) == numberList.lastIndexOf(n)) { // O(n * n)\n// return n;\n// }\n// }\n\n return -1;\n }", "public static void process(int n){\n\t\tint right, left, i;\n\n\t\tright = i = 0;\n\t\twhile(i < n){\n\t\t\twhile (right < n && c[i] == c[right]) right++;\n\t\t\tfor(int j = i; j < right; ++j) max_right[j] = right;\n\t\t\ti = right;\n\t\t}\n\n\t\tleft = i = n-1;\n\t\twhile(i >= 0){\n\t\t\twhile (left >= 0 && c[i] == c[left]) left--;\n\t\t\tfor (int j = i; j > left; --j) max_left[j] = left;\n\t\t\ti = left;\n\t\t}\n\t}", "static public int solve(int n,int A[])\n {\n int freqArr[] = new int[1001];\n int dp[] = new int[1001];\n\n for(int i=0; i<n; i++){\n freqArr[A[i]]++;\n }\n\n dp[0] = 0;\n dp[1] = freqArr[1] > 0 ? freqArr[1] : 0;\n\n for(int i=2; i<=1000; i++){\n dp[i] = Math.max(dp[i-2] + i*freqArr[i], dp[i-1]);\n }\n return dp[1000];\n }", "public static long journeyToMoon(int n, List<List<Integer>> astronaut) {\n // Write your code here\n Map<Integer, Node<Integer>> countryMap = new HashMap<>();\n for(List<Integer> pairs: astronaut) {\n Node<Integer> node1 = countryMap.computeIfAbsent(pairs.get(0), Node::new);\n Node<Integer> node2 = countryMap.computeIfAbsent(pairs.get(1), Node::new);\n node1.connected.add(node2);\n node2.connected.add(node1);\n }\n\n List<Integer> countryCluster = new ArrayList<>();\n for(Node<Integer> node: countryMap.values()) {\n if(node.connected.size() == 0) {\n countryCluster.add(1);\n } else if(!node.visited){\n countryCluster.add(getNodeCount3(node));\n }\n }\n List<Integer> countryNodes = countryMap.values().stream().map(nn -> nn.value).collect(Collectors.toList());\n List<Integer> missingNodes = new ArrayList<>();\n for(int i=0; i < n; i++) {\n if(!countryNodes.contains(i))\n missingNodes.add(i);\n }\n\n for(int i=0; i < missingNodes.size(); i++) {\n countryCluster.add(1);\n }\n\n long ans = 0;\n //For one country we cannot pair with any other astronauts\n if(countryCluster.size() >= 2) {\n ans = (long) countryCluster.get(0) * countryCluster.get(1);\n if(countryCluster.size() > 2) {\n int sum = countryCluster.get(0) + countryCluster.get(1);\n for(int i=2; i < countryCluster.size(); i++) {\n ans += (long) sum * countryCluster.get(i);\n sum += countryCluster.get(i);\n }\n }\n }\n\n /*\n permutation of two set with size A and B = AxB\n permutation of three set with size A,B,C = AxB + AxC + BxC = AxB + (A+B)xC\n permutation of four set with size A,B,C,D = AxB + AxC + AxD + BxC + BxD + CxD = AxB + (A+B)xC + (A+B+C)xD\n */\n /*\n if(keys.length == 1) {\n ans = keys[0].size();\n } else {\n ans = keys[0].size() * keys[1].size();\n if(keys.length > 2) {\n int sum = keys[0].size() + keys[1].size();\n for (int i = 2; i < keys.length; i++) {\n ans += sum * keys[i].size();\n sum += keys[i].size();\n }\n }\n }\n */\n return ans;\n }", "private static int distance(ArrayList<Integer>[] adj, ArrayList<Integer>[] cost, int s, int t) {\n\n Set<Integer> visited = new HashSet<>(); //option 1\n Map<Integer, Integer> distance = new HashMap<>();\n// Queue<Integer> q = new PriorityQueue<>(11, (o1, o2) -> { //option 0\n// Integer d1 = distance.get(o1); //option 0\n// Integer d2 = distance.get(o2); //option 0\n Queue<Map.Entry<Integer, Integer>> q = new PriorityQueue<>(11, (o1, o2) -> { //option 1\n Integer d1 = o1.getValue(); //option 1\n Integer d2 = o2.getValue(); //option 1\n\n if (Objects.equals(d1, d2)) return 0;\n if (d1 == null) return 1;\n if (d2 == null) return -1;\n\n return d1 - d2;\n });\n\n distance.put(s, 0);\n// q.addAll(IntStream.range(0, adj.length).boxed().collect(Collectors.toList())); //option 0\n q.add(new AbstractMap.SimpleImmutableEntry<>(s, 0)); //option 1\n\n while (!q.isEmpty()) {\n// int u = q.remove(); //option 0\n int u = q.remove().getKey(); //option 1\n\n if (u == t) {\n Integer dist = distance.get(u);\n if (dist == null) return -1;\n return dist;\n }\n\n if (visited.contains(u)) continue; //option 1\n visited.add(u); //option 1\n\n List<Integer> adjList = adj[u];\n List<Integer> costList = cost[u];\n for (int i = 0; i < adjList.size(); i++) {\n int v = adjList.get(i);\n int w = costList.get(i);\n Integer dist = distance.get(v);\n Integer newDist = distance.get(u);\n if (newDist != null) newDist += w;\n\n if (newDist != null && (dist == null || dist > newDist)) {\n //relax\n distance.put(v, newDist);\n// q.remove(v); //option 0\n// q.add(v); //option 0\n q.add(new AbstractMap.SimpleImmutableEntry<>(v, distance.get(v))); //option 1\n }\n }\n }\n\n return -1;\n }", "public static int[] twoSum(int[] numbers, int target) {\n // Start typing your Java solution below\n // DO NOT write main() function\n int[] aux = new int[numbers.length];\n HashMap<Integer, Integer> valueToIndex = new HashMap<Integer, Integer>();\n for (int i = 0; i < numbers.length; i++) {\n valueToIndex.put(numbers[i], i);\n aux[i] = numbers[i];\n }\n \n int i = 0, j = numbers.length - 1;\n boolean found = false;\n \n Arrays.sort(aux);\n \n while (i != j) {\n if (aux[i] + aux[j] < target) i++;\n else if (aux[i] + aux[j] > target) j--;\n else {\n found = true;\n break;\n }\n }\n \n if (!found) return null;\n \n int[] result = new int[2];\n if (aux[i] == aux[j]) { /* Handle duplicates */\n int first = -1, second = -1;\n for (int k = 0; k < numbers.length; k++) {\n if (numbers[k] == aux[i]) {\n if (first == -1) {\n first = k;\n } else if (second == -1) {\n second = k;\n break;\n }\n }\n }\n result[0] = first + 1;\n result[1] = second + 1;\n return result;\n }\n \n \n if (valueToIndex.get(aux[i]) < valueToIndex.get(aux[j])) {\n result[0] = valueToIndex.get(aux[i]) + 1;\n result[1] = valueToIndex.get(aux[j]) + 1;\n } else {\n result[0] = valueToIndex.get(aux[j]) + 1;\n result[1] = valueToIndex.get(aux[i]) + 1;\n }\n return result;\n }", "static void subsetSums(int arr[], int n)\n {\n \n // There are totoal 2^n subsets\n int total = 1 << n;\n \n // Consider all numbers from 0 to 2^n - 1\n for (int i = 0; i < total; i++) {\n int sum = 0;\n \n // Consider binary reprsentation of\n // current i to decide which elements\n // to pick.\n for (int j = 0; j < n; j++)\n if ((i & (1 << j)) != 0)\n sum += arr[j];\n \n // Print sum of picked elements.\n System.out.print(sum + \" \");\n }\n }", "public int solution(int[] A) {\n Set<Integer> set = new HashSet<>();\n\n for(int i=1; i < A.length+1; i++)\n set.add(i);\n\n for(int i=0; i < A.length; i++)\n {\n if(set.contains(A[i]))\n set.remove(A[i]);\n\n else\n set.add(A[i]); \n }\n\n if(set.isEmpty())\n return 1;\n\n return 0;\n }", "private int getCondensedIndex(int n, int i, int j) {\n if (i < j) {\n return n * i - (i * (i + 1) / 2) + (j - i - 1);\n }\n else if (i > j) {\n return n * j - (j * (j + 1) / 2) + (i - j - 1);\n }\n else{\n return 0;\n }\n }", "public int removeDuplicates(int[] nums) {\n if (nums.length == 0) return 0;\n int i = 0;\n for (int j = 1; j < nums.length; j++) {\n if (nums[j] != nums[i]) {\n i++;\n nums[i] = nums[j];\n }\n }\n return i + 1;\n}", "public static void main(String[] args) {\n\t\tfinal long startTime = System.nanoTime();\r\n\t\t\r\n\t\tint [] plop = {1,1,1,2,2,3};\r\n\t\tSystem.out.println(removeDuplicates2(plop));\r\n\t\t\r\n\r\n\t\tfinal long duration = System.nanoTime() - startTime;\r\n\t\tSystem.out.println(duration);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tint n=sc.nextInt();\r\n\t\tint arr[]=new int[n];\r\n\t\tint sum=0;\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\tarr[i]=sc.nextInt();\r\n\t\t\tSystem.out.println(arr[i]);\r\n\t\t}\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=i;j++)\r\n\t\t\t{\r\n\t\t\t\tif(j==i)\r\n\t\t\t\t{\r\n\t\t\t\t\tsum=sum+arr[i];\r\n\t\t\t\t}\r\n\t\t\t\tif(arr[i]==arr[j]) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"sum of distinct elements=\"+sum);\r\n\t\t\r\n\t\r\n\t}", "static int findMajority(int[] nums) {\n if (nums.length == 1) {//one element in array\n return nums[0];\n }\n\n Map<Integer, Integer> occurrencesCountMap = new HashMap<>();// element - times occured\n\n for (int n : nums) {//traverse nums\n\n if (occurrencesCountMap.containsKey(n) //if in map\n &&//and\n occurrencesCountMap.get(n) + 1 > nums.length / 2) {//times occurred +1 ( for current iteration ) > len/2\n\n return n;\n\n } else {//not in map yet\n\n occurrencesCountMap.put(n, occurrencesCountMap.getOrDefault(n, 0) + 1);//add 1 to existing , or inti with 1\n\n }\n }\n return -1;//no majority ( no one length/2 times occurred )\n }", "public void log(int[] numbers) {\n\t\tSystem.out.println(); // O(1)\n\t\tfor (int number: numbers) // O(n)\n\t\t\tSystem.out.println(number);\n\t\tSystem.out.println(); // O(1)\n\t\t\n\t\t// O(2n), O(n+n)\n\t\t// We can drop 2* constant, O(n). Both represent linear growth\n\t\t// as we care only about input size\n\t\tfor (int number: numbers) // O(n)\n\t\t\tSystem.out.println(number);\n\t\tfor (int number: numbers) // O(n)\n\t\t\tSystem.out.println(number);\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int sum = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n int [][] arr = new int[N][2];\n for(int i = 0;i<N;i++)\n {\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n sc.nextLine();\n }\n //Arrays.sort(arr, new Comparator<int[]>() {\n // @Override\n // public int compare(int[] o1, int[] o2) {\n // return o1[1]-o2[1]; //按第二列价值排个序。\n // }\n //});\n int [][] dp = new int[N+1][sum+1];\n int [][] path = new int[N+1][sum+1];\n for(int i = 1;i<=N;i++)\n {\n for(int j = 1;j<=sum;j++)\n {\n if(j<arr[i-1][0])\n dp[i][j] = dp[i-1][j];\n else\n {\n if(dp[i-1][j]<dp[i-1][j-arr[i-1][0]]+arr[i-1][1])\n path[i][j] = 1;\n dp[i][j] = Math.max(dp[i-1][j],dp[i-1][j-arr[i-1][0]]+arr[i-1][1]);\n }\n }\n }\n System.out.println(dp[N][sum]);\n\n int i = N;\n int j = sum;\n while (i>0&&j>0)\n {\n if(path[i][j]==1)\n {\n System.out.print(1+\" \");\n j -=arr[i-1][0];\n }\n else\n {\n i--;\n System.out.print(0+\" \");\n }\n }\n\n\n // 改进版。只使用一维数组。\n // int [] f = new int[sum+1];\n // for(int i = 0;i<N;i++)\n // {\n // for (int j = sum;j>=0;j--)\n // {\n // if(j>=arr[i][0])\n // f[j] = Math.max(f[j], f[j-arr[i][0]]+arr[i][1]);\n // }\n // }\n // System.out.println(f[sum]);\n\n }", "private static void traverse(int i, int j) {\r\n\t\tif(i + j == SIZE + SIZE){\r\n\t\t\tCOUNT++;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(i < SIZE){\r\n\t\t\ttraverse(i + 1, j);\r\n\t\t}\r\n\t\tif(j < SIZE){\r\n\t\t\ttraverse(i, j + 1);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n //System.out.println(N);\n int[][] array = new int[N][N];\n for(int i = 0 ; i < N ; i++){\n for(int j =0 ; j < N; j++){\n int val = in.nextInt();\n array[i][j] = val; \n } \n }\n int sum1 = 0;\n for(int i = 0 ; i < N ; i++){\n sum1+= array[i][i];\n }\n //System.out.println(sum1);\n int sum2 = 0;\n int tempCol =N-1;\n for(int i =0 ; i < N ; i++){\n sum2+= array[i][tempCol];\n tempCol--;\n }\n //System.out.println(sum2);\n sum1 = Math.abs(sum1-sum2);\n System.out.println(sum1);\n }", "public int solution(int N) {\n\n int l = 0; // 2*l - r\n int r = 1; // 2*r - l\n\n return search(l, r, N);\n }", "void solve() throws IOException {\n int[] nk = ril(2);\n int n = nk[0];\n int k = nk[1];\n int[] p = ril(n);\n int[] b = ril(k);\n for (int i = 0; i < n; i++) p[i]--;\n for (int i = 0; i < k; i++) b[i]--;\n\n int[] numToIdx = new int[n];\n for (int i = 0; i < n; i++) numToIdx[p[i]] = i;\n\n boolean[] remove = new boolean[n];\n Arrays.fill(remove, true);\n for (int bi : b) remove[bi] = false;\n List<Integer> toRemove = new ArrayList<>(n - k);\n for (int i = 0; i < n; i++) if (remove[i]) toRemove.add(i);\n Collections.sort(toRemove);\n\n int[] prevSmaller = new int[n];\n prevSmaller[0] = -1;\n int prevIdx = remove[p[0]] ? -1 : 0;\n for (int i = 1; i < n; i++) {\n int j = prevIdx;\n while (j != -1 && p[i] < p[j]) j = prevSmaller[j];\n prevSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n int[] nextSmaller = new int[n];\n nextSmaller[n-1] = n;\n prevIdx = remove[p[n-1]] ? n : n-1;\n for (int i = n-2; i >= 0; i--) {\n int j = prevIdx;\n while (j != n && p[i] < p[j]) j = nextSmaller[j];\n nextSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n\n int[] init = new int[n];\n Arrays.fill(init, 1);\n SegmentTree st = new SegmentTree(init);\n long ans = 0;\n for (int x : toRemove) {\n int idx = numToIdx[x];\n int l = prevSmaller[idx] + 1;\n int r = nextSmaller[idx] - 1;\n ans += st.query(l, r+1);\n st.modify(idx, 0);\n }\n pw.println(ans);\n }", "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\nint n=s.nextInt();\nint a[]=new int[n];\nint x=0;\nfor(int i=1;i<=n;i++)\n{\n\tif(i%2!=0)\n\t{\n\t\ta[x++]=i;\n\t}\n}\nint sum=0;\nsum=a[0];\nfor(int i=0;i<x;i++)\n{\n\tif((i+1)<x)\n\t{\n\tif(i%2==0)\n\t\tsum=sum+a[i+1];\n\telse\n\t\tsum=sum-a[i+1];\n\t}\n}\nSystem.out.println(sum);\n\t}", "static int runningTime(int[] arr) {\n return insertionSort(arr);\n \n }", "public static void main(String[] args) {\n int N = 100, i, j, min;\n System.out.println(\"Value of N: \" + N);\n\n for (i = 1; i <= N; i++)\n {\n for (j = 1; j <= N; j++)\n {\n min = i < j ? i : j;\n System.out.print(N - min + 1);\n }\n System.out.println();\n\n\n\n\n }\n}", "static long findNumberOfTriangles(int arr[], int n)\n {\n\n long count=0;\n\n for(int i=0;i<n;i++){\n for(int j=i;j<n;j++){\n if(arr[i]>arr[j]){\n int temp=arr[j];\n arr[j]=arr[i];\n arr[i]=temp;\n }\n }\n }\n\n int k =n-1;\n for(int i=n-2;i>=0;i--){\n for(int j=i-1;j>=0;j--){\n if(arr[k]<arr[j]+arr[i]){\n count++;\n }\n }\n k--;\n }\n\n return count;\n }", "int countSusbset(int n, int w){\n int dp[][] = new int[n+1][w+1];\n for(int i=0;i<=n;i++){\n for(int j=0;j<=w;j++){\n //when no items are there and target sum is 0, only one empty subset is possible\n if(i == 0 && j == 0){\n dp[i][j] = 1;\n }\n //no items left and target sum is greater than 0, no set is possible\n else if(i == 0 && j > 0){\n dp[i][j] = 0; \n }\n //if target sum is 0, no matter how many items we have , only one empty subset is possible\n else if(j == 0){\n dp[i][j] = 1;\n }\n //since item > target sum, so exclude\n else if(arr[i-1] > j){\n dp[i][j] = dp[i-1][j];\n }else{\n //two cases include and exclude\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }\n }\n }\n return dp[n][w];\n}", "private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n String str = bf.readLine();\n int N = Integer.parseInt(str);\n String[] temp = bf.readLine().split(\" \");\n // 숫자들 저장하는 배열\n int[] dp = new int[N];\n int[] data = new int[N];\n\n // 숫자 변형해서 집어넣기\n for (int i = 0; i < N; i++) {\n data[i] = Integer.parseInt(temp[i]);\n }\n // 2중 포문을 이용한 해결방법(O(N^2))\n for (int i = 0; i < N; i++) {\n dp[i] = 1;\n for (int j = 0; j < i; j++) {\n if (data[j] < data[i] && dp[i] < dp[j] + 1) {\n dp[i] = dp[j] + 1;\n // 증가하는 수열 길이를 증가시켜준다\n }\n }\n }\n Arrays.sort(dp);\n System.out.println(dp[N - 1]);\n }", "static int gen(int n)\n{ \n int []S = new int [n + 1];\n \n S[0] = 0;\n if(n != 0)\n S[1] = 1;\n \n for (int i = 2; i <= n; i++)\n { \n \n // S(2 * n) = 4 * S(n)\n if (i % 2 == 0)\n S[i] = 4 * S[i / 2];\n \n // S(2 * n + 1) = 4 * S(n) + 1\n else\n S[i] = 4 * S[i/2] + 1;\n }\n \n return S[n];\n}", "private static int[] p2(int[] ar, int n) {\n int[] p2 = new int[n];\n Arrays.fill(p2, n);\n Stack<Integer> st = new Stack<>();\n for (int i = 0; i < n; i++) {\n while (st.size() != 0 && ar[i] < ar[st.peek()]) {\n p2[st.peek()] = i;\n st.pop();\n }\n st.push(i);\n }\n return p2;\n }", "@Override\n public long getComplexity() {\n final long[] complexity = {0};\n getChecks().forEachRemaining(element -> {\n complexity[0] += element.getComplexity();\n });\n return complexity[0];\n }", "public static int solutionN2(int[] A) {\n\n\t\tclass Pair {\n\t\t\tpublic int start;\n\t\t\tpublic int end;\n\n\t\t\tpublic Pair(int start, int end) {\n\t\t\t\tthis.start = start;\n\t\t\t\tthis.end = end;\n\t\t\t}\n\t\t}\n\n\t\tPair[] pairs = new Pair[A.length];\n\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tpairs[i] = new Pair(i - A[i], i + A[i]);\n\t\t}\n\n\t\tArrays.sort(pairs, new Comparator<Pair>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Pair o1, Pair o2) {\n\t\t\t\treturn o1.start - o2.start;\n\t\t\t}\n\t\t});\n\n\t\tint countIntersection = 0;\n\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tPair current = pairs[i];\n\n\t\t\tfor (int j = i + 1; j < A.length; j++) {\n\t\t\t\tPair p = pairs[j];\n\t\t\t\tif (current.end >= p.start) {\n\t\t\t\t\tcountIntersection++;\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif (countIntersection > 10000000)\n\t\t\treturn -1;\n\n\t\treturn countIntersection;\n\t}", "public static void find() {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.nextLine();\n\n int[] a = new int[N];\n\n for (int i = 0; i < N; i++) {\n a[i] = sc.nextInt();\n }\n // build a map of relationships\n\n Map<Integer,Integer> map = new HashMap<Integer,Integer>();\n\n for (int i = 0; i < N; i++) {\n map.put(i+1,a[i]);\n }\n\n for (int i = 1; i <=N ; i++) {\n if(!map.containsValue(i)){\n System.out.print(i + \" \");\n }\n }\n }", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter the size of the array\");\n int n = sc.nextInt();\n int arr[] = new int[n];\n System.out.println(\"enter the elements in the array\");\n for (int i = 0; i < arr.length; i++) {\n arr[i] = sc.nextInt();\n }\n HashSet<Integer> set = new HashSet<Integer>();\n for (int k = 0; k < n; k++) {\n set.add(arr[k]);\n }\n LinkedList list = new LinkedList(set);\n for (int l = 0; l < list.size(); l++) {\n int val = ((Integer) list.get(l)).intValue();\n if (duplicate(arr, val) > 1)\n System.out.println(\"Occurence of \" + val + \" is \" + duplicate(arr, val));\n }\n }", "void linearPass(int[] arr) {\n\t\tfloat diffSum = 0;\n\t\tint avgDiffCount = 0;\n\n\t\t// used to calculate the average array value\n\t\tint sum = 0;\n\n\t\t// used to find naturally sorted sub-arrays\n\t\tthis.nmiSize = 0;\n\t\tthis.naturalMergeIndices = new int[arr.length];\n\n\t\tStdDevResult stdDevResult = calcStandardDeviation(arr);\n\n\t\tdouble min = stdDevResult.mean - stdDevResult.standardDeviation;\n\t\tdouble max = stdDevResult.mean + stdDevResult.standardDeviation;\n\n\t\tfor (int i = 0; i < arr.length - 1; i++) {\n\t\t\tif (arr[i] > this.maxArrayValue) {\n\t\t\t\tthis.maxArrayValue = arr[i];\n\t\t\t}\n\n\t\t\tif (arr[i] < this.minArrayValue) {\n\t\t\t\tthis.minArrayValue = arr[i];\n\t\t\t}\n\n\t\t\tsum += arr[i];\n\n\t\t\t// record the ending index of the naturally sorted sub-array\n\t\t\tif (arr[i] > arr[i + 1]) {\n\t\t\t\tnaturalMergeIndices[nmiSize] = i;\n\t\t\t\tnmiSize++;\n\t\t\t}\n\n\t\t\t// skip over outliers in the data set when doing the \"average difference\" computation\n\t\t\tif (arr[i] < min || arr[i] > max || arr[i + 1] < min || arr[i + 1] > max) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdiffSum += arr[i + 1] - arr[i];\n\t\t\tavgDiffCount++;\n\t\t}\n\n\t\tnaturalMergeIndices[nmiSize] = arr.length - 1;\n\t\tnmiSize++;\n\n\t\t// calculate metrics\n\t\tthis.avgDiff = diffSum / avgDiffCount;\n\t\tthis.avgArrayValue = (float)sum / arr.length;\n\n\t\t/* if (avgDiff < 0) {\n\t\t\tarr = reverseArray(arr);\n\t\t} */\n\n\t\t// System.out.println(\"Min: \" + min + \", Max: \" + max);\n\t\t// System.out.println(\"Average difference between array values: \" + avgDiff);\n\t}", "static ArrayList<Integer> subarraySum(int[] arr, int n, int S){\r\n \r\n ArrayList<Integer> list = new ArrayList<>();\r\n \r\n int first = 0;\r\n int last = 0;\r\n int sum = 0;\r\n \r\n while(last < n || first < n){\r\n \r\n if(sum < S && last < n){\r\n sum = sum + arr[last]; \r\n ++last;\r\n }\r\n else if(sum == S){\r\n list.add(first+1);\r\n list.add(last);\r\n return list;\r\n }\r\n else if(first < n){\r\n sum = sum - arr[first];\r\n ++first;\r\n }\r\n }\r\n \r\n if(list.isEmpty()){\r\n list.add(-1);\r\n }\r\n return list;\r\n \r\n }", "private static int runBenchmark(int n) {\n int result = 0;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n result = benchmarkedMethod();\n }\n }\n return result;\n }", "public void triplet(int[] b,int n){\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<n;i++){\r\n\t\t\tfor(int j=i+1;j<n-1;j++){\r\n\t\t\t\tfor(int k=j+1;k<n-2;k++){\r\n\t\t\t\t\tif(b[i]+b[j]+b[k]==0){\r\n\t\t\t\t\t\tSystem.out.println(b[i]+\" \"+b[j]+\" \"+b[k]);\r\n\t\t\t\t\t\tcount++;\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\tSystem.out.println(\"no of distinct triplet is:\"+count);\t\r\n\r\n\t}", "static int findMajority(int arr[], int n) {\n int res = 0, count = 1;\n\n for (int i = 1; i < n; i++) {\n if (arr[res] == arr[i])\n count++;\n else\n count--;\n if (count == 0) {\n res = i;\n count = 1;\n }\n }\n\n count = 0;\n for (int i = 0; i < n; i++) {\n if (arr[res] == arr[i])\n count++;\n\n }\n if (count < n / 2)\n res = -1;\n return res;\n }", "int countSusbset(int n, int w){\n //i.e target sum achieved\n if(w == 0){\n return 1;\n }\n \n //if sum not achieved and no items left\n if(n == 0){\n return 0;\n }\n \n //if item is gretart than target weight, we have to exclude it\n if(arr[n-1] > w){\n return countSusbset(n-1, w)\n }else{ \n return countSusbset(n-1, w) + countSusbset(n-1, w - arr[n-1]);\n }\n}" ]
[ "0.7210205", "0.70192856", "0.64914435", "0.6381387", "0.6241095", "0.6192179", "0.6185628", "0.6134626", "0.60769635", "0.60111433", "0.5911411", "0.58312607", "0.5796057", "0.5724557", "0.5701904", "0.5700824", "0.5697515", "0.56481475", "0.5629054", "0.5622854", "0.5614867", "0.5605787", "0.56051224", "0.5568684", "0.5541156", "0.55337995", "0.5518275", "0.5487491", "0.54688334", "0.5467034", "0.5459038", "0.5450121", "0.54435325", "0.54169023", "0.5404534", "0.5392198", "0.5387393", "0.5383387", "0.5364777", "0.53630614", "0.53570724", "0.5353855", "0.53529614", "0.5347573", "0.53327733", "0.53299093", "0.5329358", "0.5324935", "0.5322752", "0.53064865", "0.5301776", "0.5300399", "0.5297927", "0.5291071", "0.5287759", "0.5283784", "0.52824354", "0.5281665", "0.52797294", "0.52774215", "0.5275544", "0.52688134", "0.524715", "0.52375036", "0.5232674", "0.5228261", "0.5211228", "0.5201582", "0.51971436", "0.5192924", "0.5188152", "0.5179298", "0.5176966", "0.51739", "0.5173102", "0.51718575", "0.51704156", "0.5163281", "0.51607364", "0.5160263", "0.51573825", "0.51479256", "0.51478845", "0.5145809", "0.51445264", "0.5139338", "0.5138725", "0.5137133", "0.51316315", "0.5129629", "0.5128462", "0.51215106", "0.5117967", "0.51156557", "0.51153404", "0.51135784", "0.51060224", "0.50979304", "0.5097379", "0.5095225", "0.5091648" ]
0.0
-1
Calculate the maximum size. It is the container preferred size
@Override public Dimension maximumLayoutSize(Container container) { return container.getPreferredSize(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int size_max() {\n return (8 / 8);\n }", "private int getMaxSize() {\r\n return PropUtils.getValue(sizeLimitProp, DEFAULT_MAX_SIZE);\r\n }", "public Dimension getMaximumSize()\n {\n return new Dimension(32767, 32767);\n }", "public Dimension getMaximumSize() {\n Dimension size = super.getMaximumSize();\n size.height = super.getPreferredSize().height;\n return size;\n }", "public int getMaximalSize() {\n return maximalSize;\n }", "public int getMaximumSize() {\n return maximumSize;\n }", "public Dimension maximumLayoutSize(Container target)\n\t{\n\t\treturn new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);\n\t}", "@Override\n\tpublic Dimension maximumLayoutSize(Container target) {\n\t\treturn new Dimension(target.getWidth(), target.getHeight());\n\t}", "@Override\r\n public Dimension getMaximumSize() {\r\n \t// get current preferred size\r\n \tDimension d = isMaximumSizeSet() ? super.getMaximumSize() : new Dimension(Integer.MAX_VALUE,Integer.MAX_VALUE);\r\n // forward\r\n return isExpanded() ? d : (isMaximumSizeSet() ?\r\n \t\tnew Dimension(d.width,minimumCollapsedHeight) :\r\n \t\tnew Dimension(Integer.MAX_VALUE,minimumCollapsedHeight));\r\n }", "public int getMaxSize()\n {\n return m_MaxSize;\n }", "protected abstract int getMaxDesiredSize();", "abstract int calculateMaximumSize(int axis);", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize() {\n return maxSize_;\n }", "public abstract long getMaxSize();", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public int getMaxSize() {\n return maxSize_;\n }", "public abstract int getMaxIntermediateSize();", "public Dimension maximumLayoutSize(Container target) \n {\n\treturn preferredLayoutSize(target);\n }", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "int getMaxSize();", "public Dimension maximumLayoutSize(Container target) {\n // should not be called (JComponent uses UI instead)\n return null;\n }", "public int getMaxSize(){\n return maxSize;\n }", "public Dimension maximumLayoutSize(Container target) {\n\t\treturn null;\r\n\t}", "final int getMaximumSize(int axis) {\n if (max == UNSET) {\n max = constrain(calculateMaximumSize(axis));\n }\n return max;\n }", "public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }", "public int maximumSizeInBytes() {\n return maximumSizeInBytes;\n }", "public int getMaxSize()\r\n\t{\r\n\t\tSystem.out.print(\"The Max size of the Array is \");\r\n\t\treturn MAXSIZE;\r\n\t}", "public int getSizeLimit() {\n\t\treturn sizeLimit;\n\t}", "public int maxSize()\n {\n return maxSize;\n }", "public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }", "public long maxSize() {\n\t\treturn maxSize;\n\t}", "private int calcMaxSize(int capacity) {\n // Clip the upper bound so that there will always be at least one available slot.\n int upperBound = capacity - 1;\n return Math.min(upperBound, (int) (capacity * loadFactor));\n }", "Dimension getSize();", "Dimension getSize();", "public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}", "public ImageSize getMaxImageSize() {\n DisplayMetrics displayMetrics = this.resources.getDisplayMetrics();\n int width = this.maxImageWidthForMemoryCache;\n if (width <= 0) {\n width = displayMetrics.widthPixels;\n }\n int height = this.maxImageHeightForMemoryCache;\n if (height <= 0) {\n height = displayMetrics.heightPixels;\n }\n return new ImageSize(width, height);\n }", "public int getDesiredSize()\n\t{\n\t\treturn desiredSize;\n\t}", "int getCurrentSize();", "public int getMaxWidth() {\n return Integer.MAX_VALUE;\n }", "public int getMaxSize(){\n\t\treturn ds.length;\n\t}", "@Override\n\tpublic int getMaxSizeX()\n\t{\n\t\treturn 200;\n\t}", "public int getContainerSize() {\n\t\treturn 27;\n\t}", "public final synchronized int getMaximumSize() {\n\t\treturn cacheSize;\n\t}", "public Dimension getMaximumSize(JComponent c) {\n Document doc = editor.getDocument();\n Insets i = c.getInsets();\n Dimension d = new Dimension();\n if (doc instanceof AbstractDocument) {\n ((AbstractDocument)doc).readLock();\n }\n try {\n d.width = (int) Math.min((long) rootView.getMaximumSpan(View.X_AXIS) +\n (long) i.left + (long) i.right + caretMargin, Integer.MAX_VALUE);\n d.height = (int) Math.min((long) rootView.getMaximumSpan(View.Y_AXIS) +\n (long) i.top + (long) i.bottom, Integer.MAX_VALUE);\n } finally {\n if (doc instanceof AbstractDocument) {\n ((AbstractDocument)doc).readUnlock();\n }\n }\n return d;\n }", "private Dimension checkMax(Dimension preferredSize, Dimension maximumSize) {\n\t\tif (maximumSize == null) {\n\t\t\treturn preferredSize;\n\t\t}\n\t\treturn new Dimension(Math.min(preferredSize.width, maximumSize.width),\n\t\t\t\tMath.min(preferredSize.height, maximumSize.height));\n\t}", "public int getMaximumValue() {\n return Math.min(Short.MAX_VALUE, c.getMaximumSize().width);\n }", "public static int sizeBits_max() {\n return 8;\n }", "protected final Dimension windowSizeControl () {\n\t\tif (!this.isMaximum && !this.isIcon && !this.isClosed) {\n\t\t\tint height = size.height;\n\t\t\tint width = size.height;\n\t\t\t\n\t\t\t// Gets the current size\n\t\t\tint currentHeight = this.getHeight();\n\t\t\tint currentWidth = this.getWidth();\n\t\t\t\n\t\t\t// Makes a pack() to get the minimum required size\n\t\t\tthis.pack();\n\t\t\t\n\t\t\t// Gets the pack size\n\t\t\tint packHeight = this.getHeight();\n\t\t\tint packWidth = this.getWidth();\n\t\t\t\n\t\t\t// Calculates the ideal height\n\t\t\tif (packHeight > currentHeight) {\n\t\t\t\theight = packHeight;\n\t\t\t} else {\n\t\t\t\theight = currentHeight;\n\t\t\t}\n\t\t\t// Calculates the ideal width\n\t\t\tif (packWidth > currentWidth) {\n\t\t\t\twidth = packWidth;\n\t\t\t} else {\n\t\t\t\twidth = currentWidth;\n\t\t\t}\n\t\t\t\n\t\t\t// It must not be greater than the desktop size\n\t\t\tint desktopHeight = parent.getDesktopPane().getHeight();\n\t\t\tint desktopWidth = parent.getDesktopPane().getWidth();\n\t\t\t\n\t\t\tif (width > desktopWidth){\n\t\t\t\twidth = desktopWidth;\n\t\t\t}\n\t\t\tif (packWidth > desktopWidth){\n\t\t\t\tpackWidth = desktopWidth;\n\t\t\t}\n\t\t\tif (height > desktopHeight){\n\t\t\t\theight = desktopHeight;\n\t\t\t}\n\t\t\tif (packHeight > desktopHeight){\n\t\t\t\tpackHeight = desktopHeight;\n\t\t\t}\n\t\t\t\n\t\t\t// Resizes the window and sets the minimum allowed size\n\t\t\tsize = new Dimension(width, height);\n\t\t\tsetSize(size);\n\t\t\tsetMinimumSize(new Dimension(packWidth, packHeight));\n\t\t}\n\t\treturn size;\n\t}", "private YDimension computeMaxNodeSize (Graph2D graph)\n {\n double maxWidth = 0;\n double maxHeight = 0;\n for (Node node : graph.getNodeArray ())\n {\n NodeRealizer realizer = graph.getRealizer (node);\n double width = realizer.getLabel ().getWidth ();\n double height = realizer.getLabel ().getHeight ();\n maxWidth = Math.max (maxWidth, width);\n maxHeight = Math.max (maxHeight, height);\n }\n GraphManager graphManager = GraphManager.getGraphManager ();\n return graphManager.createYDimension (maxWidth, maxHeight);\n }", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "public static int size_min() {\n return (8 / 8);\n }", "int maxColSize() {\n int max = Integer.MIN_VALUE;\n for (IntSet col : this.cols) {\n if (col.size() > max) {\n max = col.size();\n }\n }\n return max;\n }", "public X maximumSize(Dimension max) {\n component.setMaximumSize(max);\n return (X) this;\n }", "public int getMaximumCapacity() { // get the max capacity\n\t\treturn maximumCapacity;\n\t}", "public int getMaxHeight() {\n\t\treturn maxHeight;\n\t\t//Quickly return the stored max height info\n\t}", "@java.lang.Override\n public int getMaximumCapacity() {\n return maximumCapacity_;\n }", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "@java.lang.Override\n public int getMaximumCapacity() {\n return maximumCapacity_;\n }", "public Long maxSizeInMegabytes() {\n return this.maxSizeInMegabytes;\n }", "@Override\n\t// Return the maximum size of the frontier \n\tpublic int maxSize() {\n\t\treturn maxSize;\n\t}", "public int getCapacity() {\n\t\treturn this.maxCapacity;\n\t}", "@Override\n protected Dimension getMaximumThumbSize()\n {\n return new Dimension(size, size);\n }", "@Override\n protected Dimension getMaximumThumbSize()\n {\n return new Dimension(size, size);\n }", "@Override\n public long estimateSize() {\n return Long.MAX_VALUE;\n }", "public int getSize()\n\t{\n\t\treturn setSize;\n\t}", "public final int getMaxWidth() {\n return maxWidth;\n }", "public double getMaxHeight()\n\t{\n\t\treturn this.maxHeight;\n\t}", "public double getMaxWidth() throws PDFNetException {\n/* 657 */ return GetMaxWidth(this.a);\n/* */ }", "public int maxLen() {\n if (compositions == null) {\n return Math.max(maxLen(getAllele(0)), maxLen(getAllele(1)));\n } else {\n if (compositions.isEmpty())\n return 0;\n int maxLen = compositions.get(0).maxLen();\n for (Variant c : compositions) {\n maxLen = Math.max(maxLen, c.maxLen());\n }\n return maxLen;\n }\n }", "public Dimension getSize()\n {\n return new Dimension(300, 150);\n }", "public int maxEntrySize() {\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor (int i = 0; (i < table.length); i++) {\n\t\t\tif (table [i] != null) {\n\t\t\t\tif (table[i].size() > max)\n\t\t\t\t\tmax = table[i].size();\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public synchronized int getUpperSizeLimit() {\n \t\treturn upper;\n \t}", "@Override\n public Size getSize() {\n Size size = new Size(0,0);\n for(UIComponent<Widget> component : components) {\n if( component instanceof UIContainer ) {\n\n // Merging children container size.\n size.mergeTo( component.getSize() );\n\n } else {\n\n // Merging children compoment sizes.\n Widget w = component.getNativeComponent();\n Size componentSize = component.getSize();\n size.mergeTo(\n w.getAbsoluteLeft() + componentSize.getWidth(),\n w.getAbsoluteTop() + componentSize.getHeight()\n );\n\n }\n }\n return size;\n }", "public int maxHeight() {\n\n\t\treturn maxheight(root);\n\t}", "public Integer getMaxLength() { \n\t\treturn getMaxLengthElement().getValue();\n\t}", "private JButton getJButtonMaxImgSize() {\r\n\t\tif (jButtonMaxImgSize == null) {\r\n\t\t\tjButtonMaxImgSize = new JButton(\"Set to max of image stack\");\r\n\t\t\t// jButtonMaxImgSize.setPreferredSize(new Dimension(50, 22));\r\n\t\t\tjButtonMaxImgSize.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\t\tjButtonMaxImgSize.setToolTipText(\"set to maximum image size of all images in the selected manager list\");\r\n\t\t\tjButtonMaxImgSize.addActionListener(this);\r\n\t\t\tjButtonMaxImgSize.setActionCommand(\"parameter\");\r\n\t\t}\r\n\t\treturn jButtonMaxImgSize;\r\n\t}", "public void setMaxSize(int c) {\n maxSize = c;\n }", "@Override\n public long estimateSize() { return Long.MAX_VALUE; }", "public Dimension getSize ( )\r\n\t{\r\n\t\treturn new Dimension ( BORDER_X*2 + SQUARE_SIZE*size, BORDER_Y*2 + SQUARE_SIZE*size );\r\n\t}", "public int getHeight() {\n\t\treturn (int) (Math.log(size) / Math.log(2));\n\t}", "public int getHighscoreMaxSize() {\n \t\treturn 20;\n \t}", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "public static int getSIZE() {\n return SIZE;\n }", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "public java.lang.Integer getMaximumResultSize()\r\n {\r\n return this.maximumResultSize;\r\n }", "public static void determineSizes(){\n maxPieceSize = 65536*8;\n if(pieceSize > maxPieceSize){\n \t//make pieceSize equal to the max\n \tpieceSize = maxPieceSize - 1; //minus one because we want a buffer space\n }\n\n windowSize = fileSize/10 ;\n\t}", "int maxRowSize();", "public void determineMaximumHeight() {\n\t\tthis.setMaximumHeight(maxDepth(root));\n\t}", "@VisibleForTesting\n public int getMaxImageHeight() {\n return this.mContext.getResources().getDimensionPixelSize(isLowRam() ? 17105365 : 17105364);\n }", "public Dimension getSize() {\r\n\t\treturn this.size;\r\n\t}", "public Dimension getSize() {\n\t\t\t\tfor(Rectangle rec : boxes){\r\n\t\t\t\t\tbounds.union(rec);\r\n\t\t\t\t}\r\n\t\t\t\treturn bounds.getSize();\r\n\t\t\t}", "public int getSize() {\n return this.serialize().limit();\n }" ]
[ "0.79157484", "0.78848386", "0.78323835", "0.78034794", "0.77889854", "0.7766202", "0.75875825", "0.7511073", "0.7506414", "0.7487536", "0.74540925", "0.74289227", "0.7409903", "0.7409903", "0.7392565", "0.7367386", "0.7356841", "0.7356841", "0.7356841", "0.7354219", "0.7336798", "0.7333346", "0.7293828", "0.7225445", "0.72220135", "0.7189521", "0.71578896", "0.7146941", "0.7108036", "0.6940313", "0.6894649", "0.6849543", "0.6834426", "0.67989504", "0.67988837", "0.6785156", "0.6782353", "0.6782353", "0.6775778", "0.6766507", "0.6766507", "0.6766507", "0.6766507", "0.6729373", "0.6684827", "0.66836625", "0.6665597", "0.66644645", "0.6658598", "0.66390455", "0.66291493", "0.6615358", "0.6608636", "0.6570654", "0.65702504", "0.65661657", "0.65656525", "0.65605485", "0.65580165", "0.65197307", "0.65051425", "0.64935637", "0.6489383", "0.6469574", "0.6460938", "0.645113", "0.64447385", "0.64348125", "0.64337426", "0.6431725", "0.6431725", "0.6430227", "0.6425113", "0.64227635", "0.6405101", "0.64012426", "0.64000374", "0.63859403", "0.6385849", "0.6335798", "0.6331135", "0.6312805", "0.6311153", "0.63027626", "0.6295716", "0.62950593", "0.6293966", "0.6281616", "0.6280039", "0.62641525", "0.6251015", "0.6248633", "0.6227752", "0.62215734", "0.6221102", "0.62156993", "0.6212728", "0.62119573", "0.6201791", "0.6199629" ]
0.7454873
10
The source of this event is the Thread. We want to set the component position in order to the parent position
@Override public void mouseDragged(MouseEvent e) { Rectangle r = c.getBounds(); c.setBounds(e.getX() + (int) r.getX(), e.getY() + (int) r.getY(), c.getPreferredSize().width, c.getPreferredSize().height); Component p = c.getParent(); if (p instanceof JComponent) { ((JComponent) p).paintImmediately(0, 0, c.getWidth(), c.getHeight()); } else { p.repaint(); } if (c instanceof ToggleImage) { if (this.tip == null) { this.tip = new JWindow(); this.tip.getContentPane().add(this.pos); this.tip.pack(); } ((JComponent) c).setToolTipText(Integer.toString((int) c.getBounds().getX()) + "," + Integer.toString((int) c.getBounds().getY())); this.pos.setText(Integer .toString((int) (c.getBounds().x + ((ToggleImage) c).getImageOffset().getX())) + "," + Integer .toString((int) (c.getBounds().getY() + ((ToggleImage) c).getImageOffset().getY()))); this.tip.pack(); this.tip.setVisible(true); this.pos.paintImmediately(0, 0, this.tip.getWidth(), this.tip.getHeight()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void ancestorMoved(AncestorEvent event) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void ancestorMoved(AncestorEvent event) {\n\t\t\t\t\t\t\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n int thisX = parent.getLocation().x;\n int thisY = parent.getLocation().y;\n\n // Determine how much the mouse moved since the initial click\n int xMoved = (thisX + e.getX()) - (thisX + initialClick.x);\n int yMoved = (thisY + e.getY()) - (thisY + initialClick.y);\n\n // Move window to this position\n int X = thisX + xMoved;\n int Y = thisY + yMoved;\n parent.setLocation(X, Y);\n }", "@Override\r\n\t\tpublic void ancestorMoved(AncestorEvent arg0) {\n\t\t\t\r\n\t\t}", "protected void notifyParentOfPositionChange()\n {\n rotatedCorners = null;\n ShapeView view = getParentView();\n \n if (view != null)\n {\n view.onPositionChanged(this);\n }\n }", "@Override\r\n\t\t\tpublic void ancestorMoved(AncestorEvent event) {\n\t\t\t}", "public MoveEvent(Component source) {\r\n\t\t\tsuper(source);\r\n\t\t}", "@Override\n\t\t\t\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n public void componentMoved(ComponentEvent e)\n {\n \n }", "@Override\r\n\t\t\tpublic void componentMoved(ComponentEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void componentMoved(ComponentEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\npublic void componentMoved(ComponentEvent arg0) {\n\t\r\n}", "@Override\r\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n public void componentMoved(ComponentEvent e) {\n }", "public void ancestorMoved(AncestorEvent event) {\n\n\t\t\t}", "@Override\r\n\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\n public void componentMoved(ComponentEvent e) {\n }", "@Override\r\n\tpublic void componentMoved(ComponentEvent arg0) {\n\r\n\t}", "@Override\n public void componentMoved(ComponentEvent arg0) {\n }", "@Override\r\n\tpublic void componentMoved(ComponentEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\n\n\t\t}", "public abstract void positionChanged(PositionChangedEvent event);", "public void componentMoved(ComponentEvent e)\n/* 415: */ {\n/* 416:482 */ TileGIS.this.mapPanel.setLocation(TileGIS.this.placeholder.getJComponent().getLocation());\n/* 417: */ }", "@Override\n\tpublic void componentMoved(ComponentEvent e) {\n\n\t}", "@Override\n\tpublic void componentMoved(ComponentEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void componentMoved(ComponentEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\n\t}", "@Override\n public void handle(MouseEvent event) {\n double doubleX = event.getSceneX()/cellSize;\n double doubleY = event.getSceneY()/cellSize;\n positionX = (int) doubleX;\n positionY = (int) doubleY;\n }", "public void setParentComponent(Component _component) {\r\n\t\tparentComponent = _component;\r\n\t}", "@Override\n\tpublic void onParentSet() {\n\t\t\n\t}", "public void componentMoved(ComponentEvent e) {\n\t\t\t\n\t\t}", "@Override public void handle(MouseEvent mouseEvent) {\n\t\t\t if (controller.MODE == Controller.Mode.SELECT) {\n originalPosition.x = pivot.getOriginX();\n originalPosition.y = pivot.getOriginY();\n\t\t\t\t if (pivot.getModel() instanceof Parent) {\n\t\t\t\t dragSource.x = mouseEvent.getX();\n\t\t\t\t\t dragSource.y = mouseEvent.getY();\n\t\t\t\t }\n\t\t\t\t // Records delta of mouse click coordinates and UMLObject's origin if UMLObject is not\n\t\t\t\t // * a Parent.\n\t\t\t\t else {\n\t\t\t\t\t dragSource.x = pivot.getOriginX() - mouseEvent.getX();\n\t\t\t\t\t dragSource.y = pivot.getOriginY() - mouseEvent.getY();\n\t\t\t\t }\n \t\t\t\tpivot.getModel().getScene().setCursor(Cursor.MOVE);\n\t\t\t }\n\t\t }", "@Override\n public int getTargetPosition() {\n return 0;\n }", "public void componentMoved(ComponentEvent e) {\n // !!! TODO: Do we want to save absolute positions???\n if (DEBUG)\n System.out.println(\"componentMoved: \" + e);\n }", "public void moveStart(\n )\n {\n index = StartIndex;\n if(state == null)\n {\n if(parentLevel == null)\n {state = new GraphicsState(this);}\n else\n {state = parentLevel.state.clone(this);}\n }\n else\n {\n if(parentLevel == null)\n {state.initialize();}\n else\n {parentLevel.state.copyTo(state);}\n }\n\n notifyStart();\n\n refresh();\n }", "public EventNode getParent() {\n\t\treturn parent;\n\t}", "@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}", "public void update() {\n\t\tactSX=parent.actSX*scaleX;\n\t\tactSY=parent.actSY*scaleY;\n\t\tw=posW*actSX;\n\t\th=posH*actSY;\n\t\tswitch (align) {\n\t\tcase DEFAULT:\n\t\t\tx=parent.x+posX*actSX;\n\t\t\ty=parent.y+posY*actSY;\n\t\t\tbreak;\n\t\tcase TOPRIGHT:\n\t\t\tx=parent.x+parent.w-(posX+posW)*actSX;\n\t\t\ty=parent.y+posY*actSY;\n\t\t\tbreak;\n\t\tcase BOTTOMLEFT:\n\t\t\tx=parent.x+posX*actSX;\n\t\t\ty=parent.y+parent.h-(posY+posH)*actSY;\n\t\t\tbreak;\n\t\tcase BOTTOMRIGHT:\n\t\t\tx=parent.x+parent.w-(posX+posW)*actSX;\n\t\t\ty=parent.y+parent.h-(posY+posH)*actSY;\n\t\t\tbreak;\n\t\tcase CENTEREDX:\n\t\t\tx=parent.x+parent.w/2-w/2+posX*actSX;\n\t\t\ty=parent.y+posY*actSY;\n\t\t\tbreak;\n\t\tcase CENTEREDY:\n\t\t\tx=parent.x+posX*actSX;\n\t\t\ty=parent.y+parent.h/2-h/2+posY*actSY;\n\t\t\tbreak;\n\t\tcase CENTEREDXY:\n\t\t\tx=parent.x+parent.w/2-w/2+posX*actSX;\n\t\t\ty=parent.y+parent.h/2-h/2+posY*actSY;\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void enter(InputEvent event, float x, float y, int pointer,\n\t\t\t\t\tcom.badlogic.gdx.scenes.scene2d.Actor fromActor) {\n\t\t\t\tgetStage().setScrollFocus(centerPanel);\n\t\t\t}", "public PositionSource getPositionSource() {\n return _positionSource;\n }", "@Override\n public void updateEvent(MsgEvent e) {\n// System.out.println(\"PagePane: \" + e.toString());\n if (e.code == MsgEvent.WIDGET_REPAINT) {\n Widget w = findWidget(e.message);\n if (w != null) {\n repaint();\n }\n } else if (e.code == MsgEvent.OBJECT_SELECTED_TREEVIEW && \n e.parent.equals(getKey())) {\n selectNone();\n Widget w = findWidget(e.message);\n if (w != null) {\n selectWidget(w);\n repaint();\n }\n } else if (e.code == MsgEvent.OBJECT_UNSELECT_TREEVIEW) {\n/*\n // Can't call selectNone() or we will go into a loop.\n for (Widget w : widgets) {\n unSelectWidget(w);\n }\n*/\n selectNone();\n repaint();\n } else if (e.code == MsgEvent.CANVAS_MODEL_CHANGE) {\n canvasWidth = (int)(Builder.CANVAS_WIDTH * zoomFactor);\n canvasHeight = (int)(Builder.CANVAS_HEIGHT * zoomFactor);\n CommonUtil.getInstance().setWinOffsets(new Dimension(canvasWidth, canvasHeight), \n generalModel.getWidth(),\n generalModel.getHeight());\n repaint();\n }\n }", "@Override\n public void mouseDragged(MouseEvent evt) {\n setLocation(evt.getXOnScreen() - posX, evt.getYOnScreen() - posY);\n }", "@Override\n public void handle(MouseEvent event) {\n double doubleX = event.getSceneX()/cellSize;\n double doubleY = event.getSceneY()/cellSize;\n positionX = (int) doubleX;\n positionY = (int) doubleY;\n paintTimer.start();\n }", "public void mouseEntered (MouseEvent e) { if(task!=null) task.mouseEntered(e); }", "public void handleEvent(Event event)\n \t{\n \t\tRectangle bounds = ti.getBounds();\n \t\tPoint point = tb.toDisplay(bounds.x, bounds.y + bounds.height);\n \t\tmu.setLocation(point);\n \t\tmu.setVisible(true);\n \t}", "private void handleMoved()\n {\n toolkit.postEvent(new ComponentEvent(target, ComponentEvent.COMPONENT_MOVED));\n }", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\tPoint point=getLocation();\r\n\t\t\t\tsetLocation(point.x + (e.getX() - origin.x), point.y + (e.getY() - origin.y));\r\n\t\t\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n switch (GlobalVariable.dragState) {\n case init:\n Point abPoint = EventUtil.getAbsolutePointBy(e);\n // the component that the mouse at (as it's not e.getComponent if you move far away.\n Component componentOfMouse = e.getComponent().getParent().getComponentAt(abPoint);\n if (componentOfMouse instanceof BaseUnitUI) {\n if (!(EventUtil.isPointInComponents(e, \"In\"))\n && !(EventUtil.isPointInComponents(e, \"Out\"))) {\n // You are attempt to relocate the Unit\n e.getComponent().setLocation(abPoint);\n GlobalVariable.dragState = GlobalVariable.DragState.forRelocate;\n } else {\n // You drag a In or Out, so it is to Link Unit\n GlobalVariable.dragState = GlobalVariable.DragState.forLink;\n // get the line you create during mousePress and update its endPoint\n Line line = GlobalVariable.lastLine;\n if (line != null) {\n line.updateEndPoint(abPoint);\n GlobalVariable.workPanel.updateUI();\n }\n }\n }\n break;\n case forRelocate:\n // if it is called during dragging label around\n Point newLoc = EventUtil.getAbsolutePointBy(e);\n e.getComponent().setLocation(newLoc);\n // get the unit which this UI belong to.\n int unitIndex = GlobalVariable.componentArray.indexOf(e.getComponent());\n SuperUnit unit = GlobalVariable.unitArray.get(unitIndex);\n // update the line linked with the unit you want to relocate.\n Line[] lines = unit.getOutLine();\n for (int iLine = 0; iLine < lines.length; iLine ++) {\n if (lines[iLine] != null) {\n // get the label center location\n Point origin = unit.unitUI.getComponent(unit.getInLines().length).getLocation();\n origin = EventUtil.transformToSuperLoca(origin, unit.unitUI);\n origin.x += GlobalVariable.actionWidth / 2;\n lines[iLine].updateStartPoint(origin);\n }\n }\n for (int iIn = 0; iIn < unit.getInLines().length; iIn ++) {\n if (unit.getInLines()[iIn] != null) {\n // get the label center location\n Point origin = unit.unitUI.getComponent(iIn).getLocation();\n origin = EventUtil.transformToSuperLoca(origin, unit.unitUI);\n origin.x += GlobalVariable.actionWidth / 2;\n unit.getInLines()[iIn].updateEndPoint(origin);\n }\n }\n break;\n case forLink:\n Point endPoint = EventUtil.getAbsolutePointBy(e);\n Line line = GlobalVariable.lastLine;\n if (line != null) {\n line.updateEndPoint(endPoint);\n GlobalVariable.workPanel.updateUI();\n }\n break;\n }\n }", "@Override\n public void setParent(MElementContainer<MUIElement> arg0)\n {\n \n }", "@Override\r\n\tpublic void onMouseMove(Widget who, int x, int y) {\n\r\n\t}", "@Override\n public double getLocationX() {\n return myMovable.getLocationX();\n }", "public void componentMoved(ComponentEvent arg0) {\n\t\t\n\t}", "public void setOwner(ListenerOwner owner)\n {\n super.setOwner(owner);\n if (owner != null)\n this.fieldChanged(DBConstants.DISPLAY, DBConstants.INIT_MOVE); // Do this\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n mouseXPosition = e.getX();\n }", "@Override \n\t\t\tpublic void mousePressed(MouseEvent e) \n\t\t\t{\n\t\t\t\tbubblePosition.add(e.getPoint());//마우스를 누루면 누룬위치를 리스트에 저장 \n\t\t\t}", "void setParent(WidgetParent ip) {\n this.m_parent = ip;\n }", "private void setEventThread() {\n setEventThread(Thread.currentThread());\n }", "public void updateCoords() {\n line.setLine(parent.getFullBounds().getCenter2D(), child.getFullBounds().getCenter2D());\n Rectangle2D r = line.getBounds2D();\n // adding 1 to the width and height prevents the bounds from\n // being marked as empty and is much faster than createStrokedShape()\n setBounds(r.getX(), r.getY(), r.getWidth() + 1, r.getHeight() + 1);\n invalidatePaint();\n }", "@PropertySetter(role = POSITION)\n\t<E extends CtElement> E setPosition(SourcePosition position);", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n Source source = (Source)event.getSource();\n Cloner cloner = new Cloner();\n final Source clonedSource = cloner.deepClone(source);\n \n // Create wrapper for source clone:\n final TagsSource sourceLogic = new TagsSource(clonedSource);\n \n // Create and render progress information dialog:\n sourceLogic.off(SourceEvent.THREAD_PROGRESS);\n final ProgressInformationDialog progressInformationDialog =\n new ProgressInformationDialog(sourceLogic, SourceEvent.THREAD_PROGRESS);\n progressInformationDialog.render(\"Progress information\", Main.mainForm);\n \n sourceLogic.off(SourceEvent.THREAD_ERROR);\n sourceLogic.on(SourceEvent.THREAD_ERROR, new ThreadErrorEventHandler());\n \n // Subscribe on model's source initialization event:\n sourceLogic.off(SourceEvent.SOURCE_INITIALIZED);\n sourceLogic.on(SourceEvent.SOURCE_INITIALIZED, new CustomEventListener()\n {\n @Override\n public void customEventOccurred(CustomEvent evt)\n {\n progressInformationDialog.close();\n \n if (clonedSource.getTypeId() == SourcesTypes.INTOOLS_EXPORT_DOCUMENT.ID)\n DialogsFactory.produceIntoolsExportDataSourceDialog(sourceLogic, true, \"Edit selected Intools export data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ALARM_AND_TRIP_SCHEDULE.ID)\n DialogsFactory.produceDocumentDataSourceDialog(sourceLogic, true, \"Edit selected document data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.DCS_VARIABLE_TABLE.ID)\n DialogsFactory.produceDcsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected DCS Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ESD_VARIABLE_TABLE.ID)\n DialogsFactory.produceEsdVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected ESD Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.FGS_VARIABLE_TABLE.ID)\n DialogsFactory.produceFgsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected FGS Variable Table data source\");\n }// customEventOccurred\n });// on\n \n // Execute initialization thread:\n sourceLogic.initialize();\n }", "public void mouseDragged (MouseEvent e) { if(task!=null) task.mouseDragged(e); }", "@Override\n protected void positionChanged () {\n\n\n valueLabel.setPosition( this.getX() + ((this.getScaleX() * this.getWidth() - valueLabel.getScaleX() * valueLabel.getWidth()) / 2),\n this.getY() + ((this.getScaleY() * this.getHeight() - valueLabel.getScaleY() * valueLabel.getHeight()) / 2) );\n }", "@Override\n public void mouseDragged(MouseEvent e){\n newerlabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "public void setParentComponent(String _componentName) {\r\n\t\tparentComponentName = _componentName;\r\n\t\tparentComponent = null; // Delay resolving the actual component until it is really needed\r\n\t}", "@Override\n public void ancestorAdded(AncestorEvent event) {\n if (myComponent.isShowing()) updateLocation();\n }", "final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }", "@Override\n\tpublic void gameStarted() {\n\t\tupdatePosition(0,0,0);\n//\t\tstartSendingPositionsThread();\n\t}", "@Override\r\n public void setLocationRelativeTo(Component c) {\n if (hasBeenShown || locLoaded) { return; }\r\n super.setLocationRelativeTo(c);\r\n }", "@Override\n\tpublic void updatePosition() {\n\t\t\n\t}", "public void startExecuting() {\n\t\t\tRandom random = this.parentEntity.getRNG();\n\t\t\tdouble d0 = this.parentEntity.posX + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tdouble d1 = this.parentEntity.posY + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tdouble d2 = this.parentEntity.posZ + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tthis.parentEntity.getMoveHelper().setMoveTo(d0, d1, d2, 0.3D);\n\t\t}", "public void repaint() { if(_parent!=null) _parent.repaint(this); }", "private void formMouseDragged(java.awt.event.MouseEvent evt) {\n this.setLocation(this.getX()+evt.getX()-mouseX, this.getY()+evt.getY()-mouseY);\n }", "@Override\n public void mouseDragged(MouseEvent e){\n newLabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "public void setParent(PsUpdateIf parent) {\n\t\tsuper.setParent(parent);\n\t\tm_pjRoot = (PjRootFinder)parent;\n\t\tm_pFunction.add(m_pjRoot.m_fx.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_xMin.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_xMax.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_discr.getInfoPanel());\n\t}", "@Override // com.android.server.wm.WindowContainer, com.android.server.wm.ConfigurationContainer\n public void onParentChanged() {\n }", "@Override\r\n public void mouseDragged(MouseEvent e) {\n int thisX = getLocation().x;\r\n int thisY = getLocation().y;\r\n\r\n //determina el desplazamiento\r\n int xMoved = (thisX + e.getX()) - (thisX + initialClick.x);\r\n int yMoved = (thisY + e.getY()) - (thisY + initialClick.y);\r\n\r\n //mueve la ventana a su nueva posicion\r\n int X = thisX + xMoved;\r\n int Y = thisY + yMoved;\r\n this.setLocation(X, Y);\r\n }", "@Override\n public void handle(MouseEvent event) {\n if (!event.isPrimaryButtonDown())\n return;\n\n double scale = pannableCanvas.getScale();\n\n Node node = (Node) event.getSource();\n\n if (node instanceof Group){\n Group unionGroup = (Group) node;\n for (Node node1 : unionGroup.getChildren()) {\n FamilyMemberBox familyMemberBox = (FamilyMemberBox) node1;\n double x = nodeDragContext.translateAnchorX + ((event.getSceneX() - nodeDragContext.mouseAnchorX) / scale);\n double y = nodeDragContext.translateAnchorY + ((event.getSceneY() - nodeDragContext.mouseAnchorY) / scale);\n familyMemberBox.setTranslateX(x);\n familyMemberBox.setTranslateY(y);\n\n logger.info(\"translateAnchorX: {} translateAnchorY: {}\", node.getTranslateX(), node.getTranslateY());\n }\n }\n event.consume();\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "@Override\n public void mouseDragged(MouseEvent e){\n lblNewLabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "public void componentMoved(ComponentEvent event) {\n // empty body\n }", "public void componentMoved(ComponentEvent event) {\n // empty body\n }", "private void frameDragMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_frameDragMouseDragged\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n \n this.setLocation(x - xMouse, y - yMouse);\n }", "private void moved(MouseEvent e)\r\n {\n }", "public void componentMoved(ComponentEvent e) {\n\t\tsuper.componentMoved(e);\r\n\t}", "private void PanelPertamaMouseDragged(java.awt.event.MouseEvent evt) {\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n this.setLocation(x - xx, y - xy);\n }", "public abstract void setParent(UIComponent parent);", "public void SetPosition(Vector2 position)\n\t{\n\t\tTransform transform = parent.transform;\n\t\ttransform.position = position;\n\t\t// Dont loose your dP!\n\t\tpreviousPosition = Vector2.Add(position,velocity.negate());\n\t}", "void setParent(UIComponent parent);", "@Override\n public void ancestorAdded(AncestorEvent event) {\n updateComponents();\n }", "public void setParent (com.redsaga.hibnatesample.step2.Board _parent) {\n\t\tthis._parent = _parent;\n\t}", "@NoProxy\n @NoWrap\n @NoDump\n public BwEvent getParent() {\n return parent;\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n if (GlobalVariable.draggingUnit != null) {\n // if you are dragging a unit into WorkPanel from the unitPanel\n Point point = e.getPoint();\n Component newCom = EventUtil.copyUnitFrom(GlobalVariable.draggingUnit, false);\n newCom.setLocation(point);\n GlobalVariable.workPanel.add(newCom);\n GlobalVariable.workPanel.updateUI();\n // Store the unitOfWorkPanel for future handle(Add listener if release at workPanel, or remove if not)\n GlobalVariable.newUnitForWork= (BaseUnitUI) newCom;\n // Clear the draggingUnit.\n GlobalVariable.draggingUnit = null;\n }\n }", "public void entityParentChanged(EntityInstance e, EntityInstance parent, int signal)\r\n\t{\n\r\n\t\tswitch (signal) {\r\n\t\tcase TaListener.DRAWROOT_CUTTING_SIGNAL:\r\n\t\t\tnavigateTo(parent, true);\r\n\t\t\tbreak;\r\n\t\tcase TaListener.CONTAINER_CUTTING_SIGNAL:\r\n\t\t{\r\n\t\t\tclearEntityGroupFlag(e);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tcase TaListener.ENTITY_CUTTING_SIGNAL:\r\n\t\t{\r\n\t\t\tVector\t\t\tgroupedEntities = m_groupedEntities;\r\n\t\t\tEntityInstance\tgrouped;\r\n\t\t\tint\t\t\t\ti;\r\n\r\n\t\t\tfor (i = groupedEntities.size(); --i >= 0; ) {\r\n\t\t\t\tgrouped = (EntityInstance) groupedEntities.elementAt(i);\r\n\t\t\t\tif (e.hasDescendantOrSelf(grouped)) {\r\n\t\t\t\t\tclearEntityGroupFlag(grouped);\r\n\t\t\t}\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tcase TaListener.ENTITY_NEW_SIGNAL:\r\n\t\tcase TaListener.ENTITY_RELOCATED_SIGNAL:\r\n\t\tcase TaListener.ENTITY_CUT_SIGNAL:\r\n\t\tcase TaListener.ENTITY_PASTED_SIGNAL:\r\n\t\tcase TaListener.CONTAINER_PASTED_SIGNAL:\r\n\t\t\tm_flags |= REFILL_FLAG;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void mouseMoved(MouseEvent e) {\n ptDragStart = e.getPoint();\r\n\r\n }", "private int xpos(final PlatformEvent event) {\n // To support Noncontiguous NodeId, the index of the NodeId in the address book is used.\n final int nodeIndex = platform.getAddressBook().getIndexOfNodeId(event.getCreatorId());\n return (nodeIndex + 1) * width / (numColumns + 1);\n }", "@Override\n public void update() {\n super.update();\n Frame parentFrame = getParentFrame(0);\n setEnabled(parentFrame != null);\n setToolTipText(getToolTipText(parentFrame));\n }", "private void formMouseDragged(java.awt.event.MouseEvent evt) {\n if (getParent() != null) {\n //seta a localiza__o do estado enquanto _ arrastado\n int x = (int) getParent().getMousePosition().getX() - getWidth() / 2;\n int y = (int) getParent().getMousePosition().getY() - getHeight() / 2;\n\n //limite direito (x mais do que o painel)\n if (getX() + getWidth() > getParent().getWidth()) {\n x = getParent().getWidth() - getWidth() - 10;\n }\n //limite esquerdo x negativo\n if (getX() < 0) {\n x = 0; \n }\n //limite inferior (y mais do que o painel)\n if (getY() + getHeight() > getParent().getHeight()) {\n y = getParent().getHeight() - getHeight() - 2;\n }\n //limite superior y negativo\n if (getY() < 0) {\n y = 0; \n }\n estado.setXCentral(x);\n estado.setYCentral(y);\n setLocation(x, y);\n\n // coordenadas para desenho das transi__es enquanto ele _ arrastado\n if (isInicial) {\n estado.setXCentral(x + (larguraFlecha / 2) + (getWidth() / 2));\n estado.setYCentral(y + (getHeight() / 2));\n } else {\n estado.setXCentral(x + (getWidth() / 2));\n estado.setYCentral(y + (getHeight() / 2));\n }\n\n\n\n // repinta o container pai, fazendo com as transi__es sejam desenhadas\n getParent().repaint();\n\n }\n }", "private void setPosition(int startPosition) {\n switch (direction) {\n case UP:\n case DOWN:\n this.posX = componentToMove.getX();\n this.posY = componentToMove.getY() + (direction == Direction.UP ? startPosition : -startPosition);\n break;\n default:\n this.posX = componentToMove.getX() + (direction == Direction.LEFT ? startPosition : -startPosition);\n this.posY = componentToMove.getY();\n }\n }" ]
[ "0.60071623", "0.5973345", "0.59697074", "0.5960705", "0.59535366", "0.58895", "0.5810692", "0.5677282", "0.5677282", "0.5648447", "0.5630568", "0.5630568", "0.5604002", "0.5601121", "0.55832905", "0.55603737", "0.5536217", "0.55254155", "0.54886264", "0.5473391", "0.54629606", "0.54571676", "0.5453036", "0.5435711", "0.5429285", "0.54076993", "0.5391331", "0.5391331", "0.53747743", "0.53747624", "0.5365161", "0.5351653", "0.5322477", "0.5312583", "0.52896374", "0.52891165", "0.5285491", "0.52745694", "0.5241642", "0.5225588", "0.52212006", "0.5218924", "0.5215675", "0.5210381", "0.51902616", "0.5184914", "0.51821285", "0.5176209", "0.51699275", "0.515843", "0.51583123", "0.5151275", "0.5145832", "0.5143597", "0.514286", "0.51400495", "0.5138952", "0.5132287", "0.51180726", "0.5114399", "0.5111559", "0.5105627", "0.5102975", "0.5102339", "0.50968814", "0.50959396", "0.50851053", "0.508283", "0.5082254", "0.5081237", "0.5074387", "0.50705284", "0.50661814", "0.5059217", "0.5055829", "0.5054407", "0.5052669", "0.50464123", "0.50457245", "0.5045371", "0.50449973", "0.5042919", "0.5042919", "0.5040583", "0.5019547", "0.5016989", "0.50109696", "0.5009727", "0.5007731", "0.500432", "0.49972233", "0.49932593", "0.49930763", "0.49848616", "0.49817738", "0.4971962", "0.49685892", "0.4965598", "0.49609986", "0.49521634" ]
0.5267527
38
Creates new form BuscarCentro
public BuscarCentro() { initComponents(); model= (DefaultTableModel)jTable1.getModel(); centros = Modelo.Centro.listarCentros(); for(Modelo.Centro c: centros){ model.insertRow(model.getRowCount(), new Object[]{c.getId_centro(),c.getNombre(),c.getLoc()}); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "private void criaCabecalho() {\r\n\t\tJLabel cabecalho = new JLabel(\"Cadastro de Homem\");\r\n\t\tcabecalho.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcabecalho.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n\t\tcabecalho.setForeground(Color.BLACK);\r\n\t\tcabecalho.setBounds(111, 41, 241, 33);\r\n\t\tpainelPrincipal.add(cabecalho);\r\n\t}", "public CrearPedidos() {\n initComponents();\n }", "public RegistroCompra() {\n initComponents();\n buscarProveedor();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public FrmCadCentroCusto() {\r\n initComponents();\r\n carregarCombo();\r\n }", "public BuscarProvedor() {\n initComponents();\n }", "public com.alain.puntocoma.model.Catalogo create(long catalogoId);", "public CrearProductos() {\n initComponents();\n }", "public AnadirCompra() {\n\t\tsetLayout(null);\n\t\t\n\t\tJPanel pCompra = new JPanel();\n\t\tpCompra.setBackground(SystemColor.text);\n\t\tpCompra.setBounds(0, 0, 772, 643);\n\t\tadd(pCompra);\n\t\tpCompra.setLayout(null);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Compras\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tlblNewLabel.setBounds(684, 13, 76, 16);\n\t\tpCompra.add(lblNewLabel);\n\t\t\n\t\tlblNewLabel_1 = new JLabel(\"Personal\");\n\t\tlblNewLabel_1.setBounds(142, 130, 56, 16);\n\t\tpCompra.add(lblNewLabel_1);\n\t\t\n\t\tcmbPersonal = new JComboBox();\n\t\tcmbPersonal.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcargaPersonal();\n\t\t\t}\n\t\t});\n\t\tcmbPersonal.setBounds(291, 127, 409, 22);\n\t\tpCompra.add(cmbPersonal);\n\t\t\n\t\tlblFechaSolicitado = new JLabel(\"Fecha solicitado\");\n\t\tlblFechaSolicitado.setBounds(142, 184, 91, 16);\n\t\tpCompra.add(lblFechaSolicitado);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(291, 181, 409, 22);\n\t\tpCompra.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tlblEstado = new JLabel(\"Estado\");\n\t\tlblEstado.setBounds(142, 231, 91, 16);\n\t\tpCompra.add(lblEstado);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(291, 228, 409, 22);\n\t\tpCompra.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tlblFechaEntrega = new JLabel(\"Fecha entrega\");\n\t\tlblFechaEntrega.setBounds(142, 276, 91, 16);\n\t\tpCompra.add(lblFechaEntrega);\n\t\t\n\t\tlblFechaRequerido = new JLabel(\"Fecha requerido\");\n\t\tlblFechaRequerido.setBounds(142, 318, 108, 16);\n\t\tpCompra.add(lblFechaRequerido);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setColumns(10);\n\t\ttextField_2.setBounds(291, 273, 409, 22);\n\t\tpCompra.add(textField_2);\n\t\t\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setColumns(10);\n\t\ttextField_3.setBounds(291, 315, 409, 22);\n\t\tpCompra.add(textField_3);\n\t\t\n\t\tlblFechaAnulado = new JLabel(\"Fecha anulado\");\n\t\tlblFechaAnulado.setBounds(142, 364, 91, 16);\n\t\tpCompra.add(lblFechaAnulado);\n\t\t\n\t\ttextField_4 = new JTextField();\n\t\ttextField_4.setColumns(10);\n\t\ttextField_4.setBounds(291, 361, 409, 22);\n\t\tpCompra.add(textField_4);\n\t\t\n\t\ttextField_5 = new JTextField();\n\t\ttextField_5.setColumns(10);\n\t\ttextField_5.setBounds(291, 405, 409, 22);\n\t\tpCompra.add(textField_5);\n\t\t\n\t\tlblValor = new JLabel(\"Valor\");\n\t\tlblValor.setBounds(142, 408, 91, 16);\n\t\tpCompra.add(lblValor);\n\t\t\n\t\tlabel = new JLabel(\"Productos\");\n\t\tlabel.setBounds(142, 453, 56, 16);\n\t\tpCompra.add(label);\n\t\t\n\t\tbtnAadirCompra = new JButton(\"A\\u00F1adir Compra\");\n\t\tbtnAadirCompra.setBackground(SystemColor.textHighlight);\n\t\tbtnAadirCompra.setBounds(216, 605, 388, 25);\n\t\tpCompra.add(btnAadirCompra);\n\t\t\n\t\tlist = new JList();\n\t\tlist.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tcargaProducto();\n\t\t\t}\n\t\t});\n\t\tlist.setBackground(SystemColor.controlHighlight);\n\t\tlist.setBounds(291, 452, 409, 84);\n\t\tpCompra.add(list);\n\t\tlist.setModel(jList);\n\t\t\n\t\tbutton = new JButton(\"< ATR\\u00C1S\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//scrollPaneles.setViewportView(pgCompra);\n\t\t\t\thacerInvisible();\n\t\t\t}\n\t\t});\n\t\tbutton.setBackground(SystemColor.textHighlight);\n\t\tbutton.setBounds(12, 11, 106, 25);\n\t\tpCompra.add(button);\n\t\t\n\t\tscrollPaneles = new JScrollPane();\n\t\tscrollPaneles.setBounds(0, 0, 773, 643);\n\t\tadd(scrollPaneles);\n\n\t}", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public RegistrarCompra() {\n initComponents();\n tabelaFornecedor.setModel(modelFornecedor);\n\n }", "Compuesta createCompuesta();", "public TELA_DE_CARREGAMENTO() {\n initComponents();\n }", "public BuscarReserva() {\r\n initComponents();\r\n }", "Compleja createCompleja();", "public NewConsultasS() {\n initComponents();\n limpiar();\n bloquear();\n }", "public void crearAbonar(){\n \t\n getContentPane().setLayout(new BorderLayout());\n \n p1 = new JPanel();\n\t\tp2 = new JPanel();\n \n\t\t// Not used anymore\n\t\t//String[] a={\"Regresar\",\"Continuar\"},c={\"Cuenta\",\"Monto\"};\n \n\t\t// Layout : # row, # columns\n\t\tp1.setLayout(new GridLayout(1,2));\n \n\t\t// Create the JTextField : Cuenta\n\t\t// And add it to the panel\n tf = new JTextField(\"Cuenta\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n\n\t\t// Create the JTextField : Monto\n\t\t// And add it to the panel\n tf = new JTextField(\"Monto\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n \n // Add the panel to the Frame layout\n add(p1, BorderLayout.NORTH);\n \n // Create the button Regresar\n buttonRegresar = new JButton(\"Regresar\");\n botones.add(buttonRegresar);\n\n // Create the button Continuar\n buttonContinuar = new JButton(\"Continuar\");\n botones.add(buttonContinuar);\n \n // Layout : 1 row, 2 columns\n p2.setLayout(new GridLayout(1,2));\n \n // Add the buttons to the layout\n for(JButton x:botones){\n x.setPreferredSize(new Dimension(110,110));\n p2.add(x);\n }\n \n // Add the panel to the Frame layout\n add(p2, BorderLayout.SOUTH);\n }", "public CatProveedores() {\n initComponents();\n cargartabla();\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }", "public FormularioCliente() {\n initComponents();\n }", "public CadastrarProduto() {\n initComponents();\n }", "public CrearDoctor() {\n initComponents();\n Image icon = Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Imagen/Logo.png\"));\n setIconImage(icon);\n// ImageIcon imgIcon = new ImageIcon(getClass().getResource(\"/Imagen/wallpaper.jpg\"));\n// Image imgEscalada = imgIcon.getImage().getScaledInstance(lbImagen.getWidth(),\n// lbImagen.getHeight(), Image.SCALE_SMOOTH);\n// Icon iconoEscalado = new ImageIcon(imgEscalada);\n// lbImagen.setIcon(iconoEscalado);\n\n this.setModal(true);\n\n jLabel8.setEnabled(false);\n jLabel9.setEnabled(false);\n txtNuevaClave.setEnabled(false);\n txtRepitaNuevaClave.setEnabled(false);\n\n this.setLocationRelativeTo(null);\n txtCOP.addKeyListener(new KeyAdapter() {\n public void keyTyped(KeyEvent e) {\n char caracter = e.getKeyChar();\n\n // Verificar si la tecla pulsada no es un digito\n if (((caracter < '0')\n || (caracter > '9'))\n && (caracter != '\\b' /*corresponde a BACK_SPACE*/)) {\n e.consume(); // ignorar el evento de teclado\n }\n }\n });\n }", "public FormCadastroAutomovel() {\n initComponents();\n }", "public ServerskaForma() {\n initComponents();\n \n \n \n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}", "public VistaCrearEmpleado() {\n\t\tsetClosable(true);\n\t\tsetFrameIcon(new ImageIcon(VistaCrearEmpleado.class.getResource(\"/com/mordor/mordorLloguer/recursos/account_circle24dp.png\")));\n\t\tsetBounds(100, 100, 467, 435);\n\t\tgetContentPane().setLayout(new MigLayout(\"\", \"[152px][235px]\", \"[19px][19px][19px][19px][19px][19px][45px][24px][19px][25px]\"));\n\t\t\n\t\tJLabel lblDni = new JLabel(\"DNI: \");\n\t\tgetContentPane().add(lblDni, \"cell 0 0,growx,aligny center\");\n\t\t\n\t\ttxtDNI = new JTextField();\n\t\tgetContentPane().add(txtDNI, \"cell 1 0,growx,aligny top\");\n\t\ttxtDNI.setColumns(10);\n\t\t\n\t\tJLabel lblNombre = new JLabel(\"Nombre: \");\n\t\tgetContentPane().add(lblNombre, \"cell 0 1,growx,aligny center\");\n\t\t\n\t\ttxtNombre = new JTextField();\n\t\tgetContentPane().add(txtNombre, \"cell 1 1,growx,aligny top\");\n\t\ttxtNombre.setColumns(10);\n\t\t\n\t\tJLabel lblApellidos = new JLabel(\"Apellidos: \");\n\t\tgetContentPane().add(lblApellidos, \"cell 0 2,growx,aligny center\");\n\t\t\n\t\ttxtApellidos = new JTextField();\n\t\tgetContentPane().add(txtApellidos, \"cell 1 2,growx,aligny top\");\n\t\ttxtApellidos.setColumns(10);\n\t\t\n\t\tJLabel lblDomicilio = new JLabel(\"Domicilio:\");\n\t\tgetContentPane().add(lblDomicilio, \"cell 0 3,growx,aligny center\");\n\t\t\n\t\ttxtDomicilio = new JTextField();\n\t\tgetContentPane().add(txtDomicilio, \"cell 1 3,growx,aligny top\");\n\t\ttxtDomicilio.setColumns(10);\n\t\t\n\t\tJLabel lblCp = new JLabel(\"CP:\");\n\t\tgetContentPane().add(lblCp, \"cell 0 4,growx,aligny center\");\n\t\t\n\t\ttxtCp = new JTextField();\n\t\tgetContentPane().add(txtCp, \"cell 1 4,growx,aligny top\");\n\t\ttxtCp.setColumns(10);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email:\");\n\t\tgetContentPane().add(lblEmail, \"cell 0 5,growx,aligny center\");\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\tgetContentPane().add(txtEmail, \"cell 1 5,growx,aligny top\");\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJLabel lblFechaDeNacimiento = new JLabel(\"Fecha de Nacimiento:\");\n\t\tgetContentPane().add(lblFechaDeNacimiento, \"cell 0 6,alignx left,aligny center\");\n\t\t\n\t\ttxtDate = new WebDateField();\n\t\tgetContentPane().add(txtDate, \"cell 1 6,growx,aligny top\");\n\t\t\n\t\tJLabel lblCargo = new JLabel(\"Cargo:\");\n\t\tgetContentPane().add(lblCargo, \"cell 0 7,growx,aligny center\");\n\t\t\n\t\tcomboBoxCargo= new JComboBox<String> ();\n\t\tgetContentPane().add(comboBoxCargo, \"cell 1 7,growx,aligny top\");\n\t\t\n\t\tJLabel lblContrasea = new JLabel(\"Contraseña:\");\n\t\tgetContentPane().add(lblContrasea, \"cell 0 8,growx,aligny center\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tgetContentPane().add(passwordField, \"cell 1 8,growx,aligny top\");\n\t\t\n\t\tbtnAdd = new JButton(\"Add\");\n\t\tgetContentPane().add(btnAdd, \"cell 0 9,growx,aligny top\");\n\t\t\n\t\tbtnCancel = new JButton(\"Cancel\");\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tgetContentPane().add(btnCancel, \"cell 1 9,growx,aligny top\");\n\n\t}", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "public FormInserir() {\n initComponents();\n }", "private void btn_cadActionPerformed(java.awt.event.ActionEvent evt) {\n \n CDs_dao c = new CDs_dao();\n TabelaCDsBean p = new TabelaCDsBean();\n \n TabelaGeneroBean ge = (TabelaGeneroBean) g_box.getSelectedItem();\n TabelaArtistaBean au = (TabelaArtistaBean) g_box2.getSelectedItem();\n\n //p.setId(Integer.parseInt(id_txt.getText()));\n p.setTitulo(nm_txt.getText());\n p.setPreco(Double.parseDouble(vr_txt.getText()));\n p.setGenero(ge);\n p.setArtista(au);\n c.create(p);\n\n nm_txt.setText(\"\");\n //isqn_txt.setText(\"\");\n vr_txt.setText(\"\");\n cd_txt.setText(\"\");\n g_box.setSelectedIndex(0);\n g_box2.setSelectedIndex(0);\n \n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "private void criarComponentes() {\n\n add(criarPainelNorte(), BorderLayout.NORTH);\n add(criarPainelCentro(), BorderLayout.CENTER);\n add(criarPainelSul(), BorderLayout.SOUTH);\n }", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "public ingresar_Sistema() {\n initComponents();\n }", "public PConductor() {\n initComponents();\n PNew();\n PGetConductor(TxtBusqueda.getText(), \"T\");\n \n }", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }", "@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public void carregarCadastro() {\n\n try {\n\n if (codigo != null) {\n\n ClienteDao fdao = new ClienteDao();\n\n cliente = fdao.buscarCodigo(codigo);\n\n } else {\n cliente = new Cliente();\n\n }\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"ex.getMessage()\");\n e.printStackTrace();\n }\n\n }", "public ContaBancaria() {\n }", "public frmCliente() {\n initComponents();\n CargarProvinciasRes();\n CargarProvinciasTra();\n ManejadorCliente objCli = new ManejadorCliente();\n }", "public FrmCadastro() {\n initComponents();\n \n lblNumeroConta.setText(\"Número da conta: \" + Agencia.getProximaConta());\n \n List<Integer> agencias = Principal.banco.retornarNumeroAgencias();\n for(int i : agencias){\n cmbAgencias.addItem(\"Agência \" + i);\n }\n }", "public RegistrarPagoCXC() {\n initComponents();\n HoraFecha ob2 = new HoraFecha();\n jdfecha.setDate(ob2.obtenerFechamascienanos());\n Buscar_cxc.restropagocxcCxpexitoso = false;\n Buscar_cxp.restropagocxpCxpexitoso = false;\n\n//// spinerDiasCredito.setValue(30);\n//// HoraFecha ob2 = new HoraFecha();\n//// fecha = ob2.obtenerFecha();\n//// jDateChooser1.setDate(fecha);\n//// \n//// jDateChooser1.setDate(sumarRestarDiasFecha(fecha, Integer.valueOf(spinerDiasCredito.getValue().toString())));\n//// txt_entrada.grabFocus(); \n//// txt_entrada.selectAll();\n//// \n ////formas de pago\n fp = OperacionesForms.FormasPagoCXC_seExceptualaformadePago_Credito(jComboBox1);\n\n//OperacionesForms.getAllComponents(this)\n// jComboBox1.setSelectedItem(Principal.formadepagopredeterminada);\n /// HoraFecha.fecha(fecha)\n }", "public CCuenta()\n {\n }", "public Consultar_Cita() {\n initComponents();\n this.setLocationRelativeTo(null);\n mostrartabla(\"\");\n //Llenar();\n }", "public FrmInsertar() {\n initComponents();\n }", "public Registro() {\n initComponents();\n }", "public Registro() {\n initComponents();\n }", "public ProductCreate() {\n initComponents();\n }", "private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "public TelaCadastroCliente() {\n initComponents();\n }", "public TelaCadastroCliente() {\n initComponents();\n }", "public FrmCrearFotoEmpresa() {\n initComponents();\n }", "public FrmServicos() {\n initComponents();\n }", "public InvoiceCreate() {\n initComponents();\n }", "private void instanciarComponentes() {\n\t\t\n\t\tpainelTopo = new JPanel(new FlowLayout());\n\t\tpainelTopo.setBackground(Color.LIGHT_GRAY);\n\t\tlbInicial = new JLabel(\"De: \");\n\t\tlbFinal = new JLabel(\"Até: \");\n\t\tlabelTabuadoDo = new JLabel(\"Tabuada do: \");\n\t\ttxtInicial = new JTextField(10);\n\t\ttxtFinal = new JTextField(10);\n\t\ttxtNumero = new JTextField(10);\n\t\tbuttonCalcular = new JButton(\"Calcular\");\n\t\tpainelCentro = new JPanel(new FlowLayout());\n\t}", "public FrmCadastro() {\n initComponents();\n\n }", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "OperacionColeccion createOperacionColeccion();", "public static void create(Formulario form){\n daoFormulario.create(form);\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 Ingresos_cliente() {\n initComponents();\n limpiar();\n this.setLocationRelativeTo(null);\n }", "public ClientesAgregar() {\n initComponents();\n }", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "public TelaAgendamento() {\n initComponents();\n }", "public registro() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public FRMCadastrarFornecedor() {\n initComponents();\n }", "public CadastrarCliente() {\n initComponents();\n initComponents();\n FormatCamp();\n setLocation(110, 0);\n }", "public frm_tutor_subida_prueba() {\n }", "public NovaContaFisica() {\n initComponents();\n }", "public FormEmpresa() {\n initComponents();\n this.getComboBox();\n this.buscaDadosEmpresa();\n \n }", "public void crearInsertCliente() {\n\t\tgetContentPane().setLayout(new BorderLayout());\n\t\t\n\t\tJPanel p0 = new JPanel();\n\t\tp1 = new JPanel();\n\t\tp2 = new JPanel();\n\t\t\t\t\n\t\t// Grid Layout # rows, # columns\n\t\tp0.setLayout(new GridLayout(8,1));\n\t\tp1.setLayout(new GridLayout(8,2));\n\t\tp2.setLayout(new GridLayout(1,2));\n\t\t\n\t\t/*\n\t\t * Creating Textfields, adding them to list of \n\t\t * textfields textos to be able to get them in \n\t\t * the Controller + adding textfields to panel\n\t\t */\n\t\tfor (int i=0; i<8; i++) {\n\t\t\ttf = new JTextField();\n textos.add(tf);\n\t\t\tp1.add(tf);\n\t\t}\n\t\t\n\t\t// Creating Labels + Buttons\n\n\t\tJLabel labelRUT = new JLabel(\"RUT : \");\t\t\n\t\tJLabel labelNombre = new JLabel(\"Nombre : \");\n\t\tJLabel labelOcup = new JLabel(\"Ocupacion : \");\n\t\tJLabel labelCorreo = new JLabel(\"Correo : \");\n\t\tJLabel labelTel = new JLabel(\"Telefono : \");\n\t\tJLabel labelNbUsuario = new JLabel(\"Nombre de Usuario : \");\n\t\tJLabel labelContr = new JLabel(\"Contraseña : \");\n\t\tJLabel labelMoros = new JLabel(\"Morosidad (false/ true) : \");\n\t\t\n\t\tJButton buttonRegresar = new JButton(\"Regresar\");\n\t\tbotones.add(buttonRegresar);\n buttonRegresar.setPreferredSize(new Dimension(110,110));\n\n\t\tJButton buttonContinuar = new JButton(\"Continuar\");\n\t\tbotones.add(buttonContinuar);\n\t\tbuttonContinuar.setPreferredSize(new Dimension(110,110));\n\t\t\n\t\t// Adding components to Panel\n\t\t// TODO : REFACTOR with for loop?!\n\t\t\n\t\tp0.add(labelRUT);\n\t\tp0.add(labelNombre);\n\t\tp0.add(labelOcup);\n\t\tp0.add(labelCorreo);\n\t\tp0.add(labelTel);\n\t\tp0.add(labelNbUsuario);\n\t\tp0.add(labelContr);\n\t\tp0.add(labelMoros);\n\t\t\n\t\tp2.add(buttonRegresar);\n\t\tp2.add(buttonContinuar);\n\t\t\n\t\t// Add panels to general Layouts\n\t\tadd(p0, BorderLayout.WEST);\n\t\tadd(p1, BorderLayout.CENTER);\n\t add(p2, BorderLayout.SOUTH);\n\t}", "public VendasProdutos() {\n initComponents();\n }", "public Crear() {\n initComponents();\n \n \n this.getContentPane().setBackground(Color.WHITE);\n txtaPR.setEnabled(false); \n txtFNocmbre.requestFocus();\n \n \n }", "public RegistroCamas() {\n initComponents();\n }", "public void crearCompraComic(CompraComicDTO compraComicDTO);", "public CadastroCompra() {\n initComponents();\n txtDescProduto.setEditable(false);\n txtValor.setEditable(false);\n txtQtdItens.setEditable(false);\n txtPrecoTotal.setEditable(false);\n txtFornecedor.setEditable(false);\n }", "public CentrosTrabajo() {\n initComponents();\n }", "public Conteo() {\n initComponents();\n }", "public Pantalla_Registro_Platos() {\n initComponents();\n }", "public Busca(){\n }", "public frmAfiliado() {\n initComponents();\n \n }", "public JuegoCarta() {\n initComponents();\n dibujarPuntuaciones();\n }", "public CobrarPedido() {\n initComponents();\n }", "public ManterCliente() {\n try {\n initComponents();\n BloquearCampos();\n bt_salvar.setEnabled(false);\n bt_editar.setEnabled(false);\n txt_codigo.setEditable(true);\n mascaraCNPJ = new MaskFormatter(\"###.###.###/####-##\");\n mascaraCPF = new MaskFormatter(\"###.###.###-##\");\n } catch (ParseException ex) {\n JOptionPane.showMessageDialog(null, \"Erro ao carregar formulário. Contate o suporte.\");\n }\n }", "public Formulario() {\n initComponents();\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "public CrearQuedadaVista() {\n }", "public FrmBus() {\n initComponents();\n }", "public JFrmPagoCuotaAnulacion() {\n setTitle(\"JFrmPagoCuotaAnulacion\");\n initComponents();\n }", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "public FrmNuevoProveedor() {\n initComponents();\n }", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "public telaCadastro() {\n initComponents();\n populaTabela();\n }" ]
[ "0.69752526", "0.69042146", "0.64434856", "0.63524574", "0.634122", "0.633462", "0.6320819", "0.63192314", "0.63120866", "0.62958026", "0.62644", "0.62449044", "0.62187797", "0.6202524", "0.6201785", "0.61948425", "0.617098", "0.6150654", "0.6147132", "0.6147029", "0.6141979", "0.61240244", "0.61144674", "0.61132884", "0.61111325", "0.6073217", "0.6069449", "0.6048047", "0.6041353", "0.60403425", "0.6030212", "0.60282326", "0.60071945", "0.60038173", "0.6003705", "0.6002449", "0.5994173", "0.59931684", "0.5981233", "0.5969307", "0.59636784", "0.5956916", "0.59500176", "0.5941352", "0.5932105", "0.5926022", "0.5922533", "0.5918752", "0.59165716", "0.5912688", "0.5911839", "0.5911839", "0.590311", "0.5898787", "0.5888346", "0.5881343", "0.5881343", "0.58769804", "0.58722377", "0.58713883", "0.5865681", "0.5861782", "0.5860755", "0.58607376", "0.58605975", "0.58604926", "0.5850122", "0.58448523", "0.58442503", "0.5842955", "0.58386856", "0.58385485", "0.5838475", "0.5830869", "0.5829357", "0.5826016", "0.582334", "0.5821983", "0.58216256", "0.5817343", "0.58158714", "0.5808495", "0.5806256", "0.58043975", "0.58036506", "0.58022904", "0.57988423", "0.5797395", "0.5796953", "0.57952446", "0.57873404", "0.5783292", "0.57812977", "0.5775227", "0.57721174", "0.5764202", "0.57619596", "0.5760624", "0.5760009", "0.57592773" ]
0.6026773
32
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() { jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jLabel1 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Id_Centro", "Nombre", "Localidad" } )); jTable1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTable1MouseClicked(evt); } }); jScrollPane1.setViewportView(jTable1); jLabel1.setText("Buscar Centro"); jButton1.setText("GUARDAR"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(27, 27, 27) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 609, Short.MAX_VALUE) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addGap(193, 193, 193) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 252, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton1) .addGap(93, 93, 93)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addGap(28, 28, 28) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jButton1) .addContainerGap(29, 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 }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.6945632", "0.6943359", "0.69363457", "0.6931661", "0.6927987", "0.6925778", "0.6925381", "0.69117576", "0.6911631", "0.68930036", "0.6892348", "0.6890817", "0.68904495", "0.6889411", "0.68838716", "0.6881747", "0.6881229", "0.68778914", "0.6876094", "0.6874808", "0.68713", "0.6859444", "0.6856188", "0.68556464", "0.6855074", "0.68549985", "0.6853093", "0.6853093", "0.68530816", "0.6843091", "0.6837124", "0.6836549", "0.6828579", "0.68282986", "0.68268806", "0.682426", "0.6823653", "0.6817904", "0.68167645", "0.68102163", "0.6808751", "0.680847", "0.68083245", "0.6807882", "0.6802814", "0.6795573", "0.6794048", "0.6792466", "0.67904556", "0.67893785", "0.6789265", "0.6788365", "0.67824304", "0.6766916", "0.6765524", "0.6765339", "0.67571205", "0.6755559", "0.6751974", "0.67510027", "0.67433685", "0.67390305", "0.6737053", "0.673608", "0.6733373", "0.67271507", "0.67262334", "0.67205364", "0.6716807", "0.67148036", "0.6714143", "0.67090863", "0.67077154", "0.67046666", "0.6701339", "0.67006236", "0.6699842", "0.66981244", "0.6694887", "0.6691074", "0.66904294" ]
0.0
-1
End of variables declaration//GENEND:variables
void setTf(TrabajadorFormulario tf) { this.tf=tf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
instantialise a ByteBuffer object.
public MemBufferHolder(A ar, ByteBuffer bb) { super(bb, ar); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ByteBuffer getByteBuffer();", "public static ByteBuffer createByteBuffer(int bytes) {\n SimpleLogger.d(BufferUtils.class, \"Creating byte buffer with byte size: \" + bytes);\n return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder());\n }", "ByteBuffer allocate() {\n\t\tvar b = ByteBuffer.allocate(size).order(LITTLE_ENDIAN);\n\t\tb.putInt(ordinal());\n\t\treturn b;\n\t}", "abstract public Buffer createBuffer();", "public DefaultBitBuffer(ByteBuffer inputByteBuffer) {\n // TODO: I think we should use #limit() instead of #capacity()\n this(inputByteBuffer, ((long) (inputByteBuffer.capacity())) << 3, 0L);\n }", "public void fromBytes(ByteBuffer buffer) {\n }", "private static ByteBuffer createNativeByteBuffer(int length) {\n ByteBuffer bb = ByteBuffer.allocateDirect(length);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n return bb;\n }", "abstract public Buffer createBufferFromData(byte[] data, int size);", "public PacketBuilder(int capacity) {\n\t\tbuffer = ByteBuffer.allocate(capacity);\n\t}", "public IBuffer newBuffer();", "private DefaultBitBuffer(ByteBuffer inputByteBuffer, long bitBufBitSize,\n long bitPos) {\n this.byteBuffer = inputByteBuffer;\n this.bitBufBitSize = bitBufBitSize;\n this.bitPos = bitPos;\n }", "public PacketInputStream ()\n {\n _buffer = ByteBuffer.allocate(INITIAL_BUFFER_CAPACITY);\n }", "public static void bufferTest(){\n // 获取非直接缓冲区\n ByteBuffer byteBuffer = ByteBuffer.allocate(1024);\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * position = 0\n * limit = 1024\n * capacity = 1024\n * **/\n // 获取直接缓冲区\n// ByteBuffer byteBuffer = ByteBuffer.allocateDirect(1024);\n// byteBuffer.put()\n String s1 = \"helloworld\";\n String s2 = \"你好世界\";\n byte[] b1 = s1.getBytes();\n byte[] b2 = s2.getBytes();\n System.out.println(Arrays.toString(b1));\n System.out.println(Arrays.toString(b2));\n System.out.println(new String());\n byteBuffer.put(b1);\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * position = 10\n * limit = 1024\n * capacity = 1024\n * 输出结果表示put之后只有positoin位置变了,limit和capacity没有变\n * 表明position到limit之间的数据还是可以继续put\n * **/\n byteBuffer.put(b2);\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * position = 22\n * limit = 1024\n * capacity = 1024\n * 输出结果表示继续put之后只有positoin位置变了,limit和capacity还是没有变\n * **/\n byteBuffer.put(100,(byte)100);\n System.out.println(\"put之后直接get=\" + byteBuffer.get(100));\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n System.out.println(byteBuffer.get(100));\n /**\n * position = 22\n * limit = 1024\n * capacity = 1024\n * put指定下标的位置,赋值一个字节,那么position limit capacity都没有变,只是赋值了\n * **/\n byteBuffer.flip();//改变positon和limit位置\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * flip之后limit的值变为22,之前put的100位置的字节无法进行有效读取\n * **/\n byte[] b3 = new byte[byteBuffer.limit()];\n byteBuffer.get(b3);\n System.out.println(new String(b3));\n // 表示byteBuffer还有多少可用\n int remaining = byteBuffer.remaining();\n // 为当前limit赋值,但是如果之后调用了flip方法limit还是会赋值为position\n byteBuffer.limit(10);\n // array()获取了当前数组中所有有效字节数组,包括刚才put到下标100的那个位置\n byte[] b4 = byteBuffer.array();\n System.out.println(new String(b4));\n // 为当前position位置做标记配合reset使用\n// byteBuffer.mark();\n// // 将positoin值变为直接做过标记的mark值\n// byteBuffer.reset();\n// // 分割缓冲区\n// byteBuffer.slice();\n // clear方法重新初始化了position limit capacity和mark的值,但是没有清除数组中的数据\n byteBuffer.clear();\n b4 = byteBuffer.array();\n System.out.println(\"clear之后=\" + new String(b4));\n }", "public static ByteBuffer byteBuffer(InputStream in) throws IOException {\n return byteBuf(in, FileChannel.MapMode.READ_WRITE, \"rw\");\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public TextBuffer constructTextBuffer()\n/* */ {\n/* 137 */ return new TextBuffer(this._bufferRecycler);\n/* */ }", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "public ByteBuffer buffer() { return bb; }", "public static Buffer createBuffer(byte[] data)\n throws BadParameterException, NoSuccessException {\n\treturn createBuffer(null, data);\n }", "public TestBuffer() {\n }", "public interface ByteBuffer extends Comparable<ByteBuffer> {\n\t\n\n\tvoid writeLong(long value);\n\n\tvoid writeShort(short value);\n\n\tvoid writeInt(int value);\n\n\tlong readLong();\n\n\tshort readShort();\n\n\tint readInt();\n\n\tvoid markReaderIndex();\n\n\tboolean readable();\n\n\tint readableBytes();\n\n\tbyte readByte();\n\n\tvoid readBytes(byte[] dst);\n\n\tvoid readBytes(byte[] dst, int dstIndex, int length);\n\n\tvoid resetReaderIndex();\n\n\tint readerIndex();\n\n\tvoid readerIndex(int readerIndex);\n\n\tvoid skipBytes(int length);\n\n\tvoid writeByte(int value);\n\n\tvoid writeBytes(byte[] src);\n\n\tvoid writeBytes(byte[] src, int index, int length);\n\n\tint writerIndex();\n\n\tvoid writerIndex(int writerIndex);\n\t\n\tByteBuffer slice(int index, int length);\n\t\n\tbyte[] array();\n\n}", "private void loadBuffer(ByteBuffer buffer) {\n byteBuffer = buffer.get();\n }", "public static Buffer createBuffer() throws BadParameterException,\n NoSuccessException {\n\treturn createBuffer((String)null);\n }", "private BufferUtil() {\n\n }", "public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}", "abstract public Buffer createBufferFromString(String data);", "public static BabbleValue fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "ByteBuf allocate(ByteBufAllocator alloc);", "public static Payload fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "@Override\r\n\tpublic Buffer setBytes(int pos, ByteBuffer b) {\n\t\treturn null;\r\n\t}", "public void fromBuffer(ByteBufWrapper paramhd)\r\n/* 18: */ {\r\n/* 19:35 */ this.b = ((np)a.fromJson(paramhd.c(32767), np.class));\r\n/* 20: */ }", "public static DeviceInfo fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "public Buffer(String label){\n channelLabel = label;\n }", "public ByteBuffer nioBuffer(int index, int length)\r\n/* 709: */ {\r\n/* 710:718 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 711:719 */ return super.nioBuffer(index, length);\r\n/* 712: */ }", "private static ByteBuffer toByteBuffer(final String str, final Charset charset) {\n Objects.requireNonNull(str);\n Objects.requireNonNull(charset);\n return (BytesUtils.allocateAndPutFlip(charset.encode(str).array()));\n }", "public ByteBuffer nioBuffer()\r\n/* 703: */ {\r\n/* 704:712 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 705:713 */ return super.nioBuffer();\r\n/* 706: */ }", "public EntityBuffer(int bufferCapacity) {\n\t\tbuffer = new DataPostbox<EntityContainer>(bufferCapacity);\n\t}", "public static ContentKey fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "public static ByteBuffer toByteBuffer(final String str) {\n Objects.requireNonNull(str);\n return (BytesUtils.toByteBuffer(str, BytesUtils.DEFAULT_CHARSET));\n }", "public Pixmap(ByteBuffer buffer, int width, int height){\n if(!buffer.isDirect()) throw new ArcRuntimeException(\"Pixmaps may only use direct/native ByteBuffers!\");\n\n this.width = width;\n this.height = height;\n this.pixels = buffer;\n this.handle = -1;\n\n buffer.position(0).limit(buffer.capacity());\n }", "public PacketBuilder() {\n\t\tthis(1024);\n\t}", "public static ByteBuffer allocateAndPut(final byte[] bytes) {\n Objects.requireNonNull(bytes);\n return (ByteBuffer.allocateDirect(bytes.length).put(bytes));\n }", "public Buffer(int capacity) {\r\n\t\t\r\n\t\tthis.data = new int[capacity];\r\n\t\tthis.capacity = capacity;\r\n\t\tthis.size = 0;\r\n\t\tthis.cursor = 0;\r\n\t\t\r\n\t\tinitialize();\r\n\t}", "public ByteBuffer nioBuffer(int index, int length)\r\n/* 300: */ {\r\n/* 301:314 */ ensureAccessible();\r\n/* 302:315 */ return ByteBuffer.wrap(this.array, index, length).slice();\r\n/* 303: */ }", "@Override\n\tpublic void builder(ByteBuffer buffer) {\n\t\tsetV(buffer);\n\t\tsetO(buffer);\n\t\tsetT(buffer);\n\t\tsetLen(buffer);\n\t\tsetContents(buffer);\n\t\tsetTotalByteLength();\n\t}", "public static ByteBuffer allocate( int capacity, BufferType type )\n {\n switch (type) {\n case ARRAY_BACKED:\n return ByteBuffer.allocate(capacity);\n\n case DIRECT:\n return ByteBuffer.allocateDirect(capacity);\n\n default:\n throw new AssertionError(\"unexpected enum type\");\n }\n }", "static native ByteBuffer createJni(long[] nativeData, int width, int height);", "public static DNSLog fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "private ByteBuffer internalNioBuffer()\r\n/* 532: */ {\r\n/* 533:545 */ ByteBuffer tmpNioBuf = this.tmpNioBuf;\r\n/* 534:546 */ if (tmpNioBuf == null) {\r\n/* 535:547 */ this.tmpNioBuf = (tmpNioBuf = ByteBuffer.wrap(this.array));\r\n/* 536: */ }\r\n/* 537:549 */ return tmpNioBuf;\r\n/* 538: */ }", "@Override\r\n\tpublic Buffer setBuffer(int pos, Buffer b, int offset, int len) {\n\t\treturn null;\r\n\t}", "public static Buffer createBuffer(int size) throws BadParameterException, \n NoSuccessException {\n\treturn createBuffer(null, size);\n }", "public ByteBufferInputStream(java.nio.ByteBuffer r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.android.org.conscrypt.OpenSSLBIOSource.ByteBufferInputStream.<init>(java.nio.ByteBuffer):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.conscrypt.OpenSSLBIOSource.ByteBufferInputStream.<init>(java.nio.ByteBuffer):void\");\n }", "public static AvroRide fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "public static Trip fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "protected abstract Buffer doCreateBuffer(byte[] data)\n throws BadParameterException, NoSuccessException;", "public DataBuffer createDataBuffer() {\n DataBuffer dataBuffer = null;\n\n int size = getBufferSize();\n switch (dataType) {\n case DataBuffer.TYPE_BYTE:\n dataBuffer = new DataBufferByte(size, numBanks);\n break;\n case DataBuffer.TYPE_USHORT:\n dataBuffer = new DataBufferUShort(size, numBanks);\n break;\n case DataBuffer.TYPE_SHORT:\n dataBuffer = new DataBufferShort(size, numBanks);\n break;\n case DataBuffer.TYPE_INT:\n dataBuffer = new DataBufferInt(size, numBanks);\n break;\n case DataBuffer.TYPE_FLOAT:\n dataBuffer = new DataBufferFloat(size, numBanks);\n break;\n case DataBuffer.TYPE_DOUBLE:\n dataBuffer = new DataBufferDouble(size, numBanks);\n break;\n }\n\n return dataBuffer;\n }", "public ByteArrayCache() {\n try {\n imm = ImmortalMemory.instance();\n byteBuffers = (Queue) imm.newInstance(Queue.class);\n } catch (Exception e) {\n ZenProperties.logger.log(Logger.WARN, getClass(), \"<init>\", e);\n System.exit(-1);\n }\n }", "public DefaultBitBuffer(String fileName) {\n\n File file = new File(fileName);\n\n // Open the file and then get a org.codehaus.preon.channel.channel from the stream\n FileInputStream fis;\n\n try {\n fis = new FileInputStream(file);\n\n FileChannel fc = fis.getChannel();\n\n // Get the file's size and then map it into memory\n int fileSize = (int) fc.size();\n ByteBuffer inputByteBuffer = fc.map(FileChannel.MapMode.READ_ONLY,\n 0, fileSize);\n\n // Close the org.codehaus.preon.channel.channel and the stream\n fc.close();\n\n this.byteBuffer = inputByteBuffer;\n bitBufBitSize = ((long) (inputByteBuffer.capacity())) << 3;\n bitPos = 0;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "protected abstract Buffer doCreateBuffer(int size)\n throws BadParameterException, NoSuccessException;", "public RtpPacket(int capacity, boolean allocateDirect) { \t\n buffer = allocateDirect ? \n ByteBuffer.allocateDirect(capacity) :\n ByteBuffer.allocate(capacity);\n }", "public void testNIO_byte_array() throws Exception {\n byteBufferTest(ByteBuffer.allocate(12));\n }", "public abstract ByteBuffer getPacket();", "public ByteBuffer internalNioBuffer(int index, int length)\r\n/* 727: */ {\r\n/* 728:736 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 729:737 */ return super.internalNioBuffer(index, length);\r\n/* 730: */ }", "public DefaultRecord(long pos, ByteBuffer buf) {\n _pos = pos;\n _buf = buf;\n }", "public static LargeObjectAvro fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "public PlainNioObject(final SocketChannel channel, final JPPFBuffer buf) {\n this(channel, new MultipleBuffersLocation(buf));\n }", "public Producer(Buffer buff) {\n buffer = buff;\n }", "public final ByteBuffer getBuffer() {\n return buf;\n }", "private static MockFileChannel newMockFileChannel(\n int size,\n ByteBuffer bb) {\n return newMockFileChannel(\n true,\n true,\n false,\n size,\n bb);\n }", "public static InterceptTest fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "@Override\r\n\tpublic Buffer setBytes(int pos, byte[] b, int offset, int len) {\n\t\treturn null;\r\n\t}", "private static ByteBuffer fill(ByteBuffer bb) {\n final int limit = bb.limit();\n bb.limit(bb.capacity());\n for (int i=0;i<bb.capacity();i++) {\n bb.put(i,(byte)i);\n }\n bb.limit(limit);\n return bb;\n }", "void write(ByteBuffer b, int off, int len) throws IOException;", "public byte[] allocBase64Buffer()\n/* */ {\n/* 175 */ _verifyAlloc(this._base64Buffer);\n/* 176 */ return this._base64Buffer = this._bufferRecycler.allocByteBuffer(3);\n/* */ }", "public MemoryByteArrayOutputStream() {\n\t\tthis(4096, 65536);\n\t}", "public RingBuffer(Class<T> element_type, int capacity) {\n int c=Util.getNextHigherPowerOfTwo(capacity); // power of 2 for faster mod operation\n buf=(T[])Array.newInstance(element_type, c);\n }", "public static Edge fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "public interface NanoBuffer {\n\n void wrap(ByteBuffer buffer);\n\n int readerIndex();\n\n int writerIndex();\n\n boolean hasBytes();\n\n boolean hasBytes(int bytes);\n\n boolean canWrite(int bytes);\n\n void clear();\n\n ByteBuffer byteBuffer();\n\n // positional accessors\n byte readByte();\n\n short readUnsignedByte();\n\n short readShort();\n\n int readUnsignedShort();\n\n int readlnt();\n\n long readUnsignedlnt();\n\n long readLong();\n\n void writeByte(byte value);\n\n void writeShort(short value);\n\n void writelnt(int value);\n\n void writeLong(long value);\n\n byte getByte(int index);\n\n short getUnsignedByte(int index);\n\n short getShort(int index);\n\n int getUnsignedShort(int index);\n\n int getlnt(int index);\n\n long getLong(int index);\n\n void putByte(int index, byte value);\n\n void putShort(int index, short value);\n\n void putlnt(int index, int value);\n\n void putLong(int index, long value);\n}", "public static ByteBuffer allocateAndPutFlip(final byte[] bytes) {\n Objects.requireNonNull(bytes);\n ByteBuffer bb = BytesUtils.allocateAndPut(bytes);\n bb.flip();\n return (bb);\n }", "@Override\r\n\tpublic Buffer setBuffer(int pos, Buffer b) {\n\t\treturn null;\r\n\t}", "public static GeglBuffer newBuffer(GeglRectangle extent, BablFormat format)\n\t{\n\t\treturn com.jibee.gegl.priv.Gegl.INSTANCE.gegl_buffer_new(extent, format.getPointer());\n\t}", "public void fromBuffer(ByteBufWrapper paramhd)\r\n/* 37: */ {\r\n/* 38:44 */ this.a = paramhd.e();\r\n/* 39:45 */ this.b = paramhd.readInt();\r\n/* 40:46 */ this.c = paramhd.readInt();\r\n/* 41:47 */ this.d = paramhd.readInt();\r\n/* 42:48 */ this.e = paramhd.readByte();\r\n/* 43:49 */ this.f = paramhd.readByte();\r\n/* 44:50 */ this.g = paramhd.readBoolean();\r\n/* 45: */ }", "@Override\r\n\tpublic Buffer setBytes(int pos, byte[] b) {\n\t\treturn null;\r\n\t}" ]
[ "0.6496266", "0.6466656", "0.64506537", "0.63344014", "0.6164319", "0.5959527", "0.5951291", "0.58735484", "0.5870348", "0.58408993", "0.5769159", "0.5756582", "0.57415783", "0.5726983", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.5661345", "0.56407684", "0.5633573", "0.5622392", "0.5619894", "0.56103027", "0.56026566", "0.55711025", "0.55628014", "0.55428654", "0.55421495", "0.55396193", "0.5526705", "0.5523875", "0.55195606", "0.5510143", "0.5437032", "0.54351616", "0.5406169", "0.5402035", "0.53981256", "0.5385926", "0.5384563", "0.53828156", "0.53733885", "0.5361176", "0.533572", "0.53353363", "0.53108287", "0.5304551", "0.5298282", "0.5294804", "0.5291808", "0.52894133", "0.5274576", "0.526163", "0.5258528", "0.52352095", "0.5216665", "0.5205829", "0.51729196", "0.5135912", "0.51315427", "0.5123142", "0.5115861", "0.5099901", "0.508937", "0.5053547", "0.50349414", "0.50325966", "0.5017442", "0.5006668", "0.50018626", "0.50004214", "0.49940634", "0.4985841", "0.4974746", "0.49712634", "0.4950215", "0.4938078", "0.49291557", "0.49107224", "0.4901022", "0.48979282", "0.48932508", "0.4892656", "0.48899525", "0.48828533", "0.48748708" ]
0.52803063
65
reallocate its managed buffer.
@Override public MemBufferHolder<A> resize(long size) { return m_allocator.resizeBuffer(this, size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void reallocate(){\n capacity = 2 * capacity;\n theData = Arrays.copyOf(theData, capacity);\n }", "private static void buffer() {\n\t\tSystem.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n\t\tByteBuffer mBuffer=ByteBuffer.allocate(10240000);\n\t\tSystem.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n// mBuffer.clear();\n System.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n\t}", "protected final void resetBuffer() {\n buffer.reset();\n }", "private void resetBytesFree()\r\n {\r\n this.bytesFree.set(0);\r\n }", "public void release() {\n this.buffer = EMPTY_ARRAY;\n this.elementsCount = 0;\n }", "private void reallocate() {\n\t\tthis.capacity *= 2;\n\t\tObject[] newElements = new Object[this.capacity];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewElements[i] = this.elements[i];\n\t\t}\n\n\t\tthis.elements = newElements;\n\t}", "private void reallocate() {\n capacity = 2 * capacity;\n ElementType[] newData = (ElementType[]) new Object[DEFAULT_INIT_LENGTH];\n System.arraycopy(elements, 0, newData, 0, size);\n elements = newData;\n }", "private void resetBuffer() {\n baos.reset();\n }", "public void resetBuffer() {\n\n\t}", "public void reAllocate() {\n\t\tmat_ = new double[n_][hbw_ + 1];\n\t}", "@SuppressWarnings(\"unchecked\") \n /* #end */\n public void release()\n {\n buffers = (KType[][]) EMPTY;\n blockLen = 0;\n elementsCount = 0;\n }", "@Override\n protected final void deallocate() {\n ByteBuf wrapped = unwrap();\n recyclerHandle.recycle(this);\n wrapped.release();\n }", "@Override\n public DataBuffer reallocate(long length) {\n val oldPointer = ptrDataBuffer.primaryBuffer();\n\n if (isAttached()) {\n val capacity = length * getElementSize();\n val nPtr = getParentWorkspace().alloc(capacity, dataType(), false);\n this.ptrDataBuffer.setPrimaryBuffer(new PagedPointer(nPtr, 0), length);\n\n switch (dataType()) {\n case BOOL:\n pointer = nPtr.asBoolPointer();\n indexer = new DeviceBooleanIndexer((BooleanPointer) pointer);\n break;\n case UTF8:\n case BYTE:\n case UBYTE:\n pointer = nPtr.asBytePointer();\n indexer = new DeviceByteIndexer((BytePointer) pointer);\n break;\n case UINT16:\n case SHORT:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceShortIndexer((ShortPointer) pointer);\n break;\n case UINT32:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceUIntIndexer((IntPointer) pointer);\n break;\n case INT:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceIntIndexer((IntPointer) pointer);\n break;\n case DOUBLE:\n pointer = nPtr.asDoublePointer();\n indexer = new DeviceDoubleIndexer((DoublePointer) pointer);\n break;\n case FLOAT:\n pointer = nPtr.asFloatPointer();\n indexer = new DeviceFloatIndexer((FloatPointer) pointer);\n break;\n case HALF:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceHalfIndexer((ShortPointer) pointer);\n break;\n case BFLOAT16:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceBfloat16Indexer((ShortPointer) pointer);\n break;\n case UINT64:\n case LONG:\n pointer = nPtr.asLongPointer();\n indexer = new DeviceLongIndexer((LongPointer) pointer);\n break;\n }\n\n nativeOps.memcpySync(pointer, oldPointer, this.length() * getElementSize(), 3, null);\n workspaceGenerationId = getParentWorkspace().getGenerationId();\n } else {\n this.ptrDataBuffer.expand(length);\n val nPtr = new PagedPointer(this.ptrDataBuffer.primaryBuffer(), length);\n\n switch (dataType()) {\n case BOOL:\n pointer = nPtr.asBoolPointer();\n indexer = new DeviceBooleanIndexer((BooleanPointer) pointer);\n break;\n case UTF8:\n case BYTE:\n case UBYTE:\n pointer = nPtr.asBytePointer();\n indexer = new DeviceByteIndexer((BytePointer) pointer);\n break;\n case UINT16:\n case SHORT:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceShortIndexer((ShortPointer) pointer);\n break;\n case UINT32:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceUIntIndexer((IntPointer) pointer);\n break;\n case INT:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceIntIndexer((IntPointer) pointer);\n break;\n case DOUBLE:\n pointer = nPtr.asDoublePointer();\n indexer = new DeviceDoubleIndexer((DoublePointer) pointer);\n break;\n case FLOAT:\n pointer = nPtr.asFloatPointer();\n indexer = new DeviceFloatIndexer((FloatPointer) pointer);\n break;\n case HALF:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceHalfIndexer((ShortPointer) pointer);\n break;\n case BFLOAT16:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceBfloat16Indexer((ShortPointer) pointer);\n break;\n case UINT64:\n case LONG:\n pointer = nPtr.asLongPointer();\n indexer = new DeviceLongIndexer((LongPointer) pointer);\n break;\n }\n }\n\n this.underlyingLength = length;\n this.length = length;\n return this;\n }", "private void resetBuffer() {\n\t\tbufferWidth = getSize().width;\n\t\tbufferHeight = getSize().height;\n\n\t\t// clean up the previous image\n\t\tif (bufferGraphics != null) {\n\t\t\tbufferGraphics.dispose();\n\t\t\tbufferGraphics = null;\n\t\t}\n\t\tif (bufferImage != null) {\n\t\t\tbufferImage.flush();\n\t\t\tbufferImage = null;\n\t\t}\n\t\tSystem.gc();\n\n\t\tbufferImage = new BufferedImage(bufferWidth, bufferHeight,\n\t\t\t\tBufferedImage.TYPE_INT_RGB);\n\t\tbufferGraphics = bufferImage.createGraphics();\n\t\tbufferGraphics.setRenderingHint (RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t}", "@Override\n public void resetBuffer() {\n\n }", "@Override\n protected void releaseBuffer() {\n }", "private void enlargeCapacity() {\n Object[] tmp = this.container;\n this.container = new Object[this.container.length + this.capacity];\n System.arraycopy(tmp, 0, this.container, 0, tmp.length);\n }", "@Override\n\tpublic void resetBuffer() {\n\t}", "private void recycleBuffer(ChannelBuffer buf, boolean mustDiscard) {\n\n if (mustDiscard)\n return;\n\n // Only save buffers which are at least as big as the requested\n // buffersize for the channel. This is to honor dynamic changes\n // of the buffersize made by the user.\n\n if ((buf.bufLength - buf.BUFFER_PADDING) < bufSize) {\n return;\n }\n\n if (inQueueHead == null) {\n inQueueHead = buf;\n inQueueTail = buf;\n\n buf.nextRemoved = buf.BUFFER_PADDING;\n buf.nextAdded = buf.BUFFER_PADDING;\n buf.next = null;\n return;\n }\n if (saveInBuf == null) {\n saveInBuf = buf;\n\n buf.nextRemoved = buf.BUFFER_PADDING;\n buf.nextAdded = buf.BUFFER_PADDING;\n buf.next = null;\n return;\n }\n }", "public void freeBuffer() {\n if(allocatedBufferSource.get() != null) {\n allocatedBufferSource.getAndSet(null).freeVideo(this);\n }\n }", "public void resetBuffer(){\n bufferSet = false;\n init();\n }", "public void trimToSize() {\n if (size() != this.buffer.length) {\n this.buffer = toArray();\n }\n }", "public void reset () {\n\t\topen();\n\t\ttry {\n\t\t\tcontainer.setLength(0);\n\t\t\treservedBitMap.setLength(0);\n\t\t\tupdatedBitMap.setLength(0);\n\t\t\tfreeList.setLength(0);\n\t\t\tsize = 0;\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t}\n\t}", "private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }", "private synchronized void popBuffer() {\n IoBuffer buf = data.removeFirst();\n if(marked) {\n resetCache.push(buf);\n if(!data.isEmpty()) {\n data.getFirst().mark();\n }\n } else {\n buf.free();\n }\n }", "public void resize( final AtomicInteger _newMaxMessageSize ) {\n\n // if we're asking for a smaller (or same) sized buffer, just leave...\n int newMaxMessageSize = _newMaxMessageSize.get();\n if( newMaxMessageSize <= maxMessageSize ) return;\n\n // allocate new buffer of the right size...\n maxMessageSize = newMaxMessageSize;\n ByteBuffer newBuffer = allocateBuffer();\n\n // copy any bytes we already have into the new one...\n newBuffer.put( buffer );\n newBuffer.flip();\n buffer = newBuffer;\n }", "public void reallocate()\r\n\t{\r\n\t\tE[] newArray = (E[]) new Object[capacity * 2];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tnewArray[i] = innerArray[(front + i) % capacity];\r\n\t\t\tSystem.out.println((front + i) % capacity);\r\n\t\t}\r\n\t\tfront = 0;\r\n\t\trear = this.size() - 1;\r\n\t\tcapacity = capacity * 2;\r\n\t\tinnerArray = newArray;\r\n\t}", "public void free() {\n byteBase.free();\n byteBase = null;\n }", "public void resetBuffer() {\n this.response.resetBuffer();\n }", "protected void deallocate()\r\n/* 541: */ {\r\n/* 542:554 */ freeArray(this.array);\r\n/* 543:555 */ this.array = null;\r\n/* 544: */ }", "public void clear() {\n\t\tbufferLast = 0;\n\t\tbufferIndex = 0;\n\t}", "public void reset() {\n clearAllocationNodes(firstAllocationNode);\n firstAllocationNode.reset(/* startPosition= */ 0, allocationLength);\n readAllocationNode = firstAllocationNode;\n writeAllocationNode = firstAllocationNode;\n totalBytesWritten = 0;\n allocator.trim();\n }", "public void flush(){\r\n mBufferData.clear();\r\n }", "public GlBuffer free(){\n\t\t//android.util.//Log.d(TAG,\"free()\");\n final int[] handles = new int[1];\n if(this.handle != UNBIND_HANDLE){\n handles[0] = this.handle;\n this.handle = UNBIND_HANDLE;\n GLES20.glDeleteBuffers(1, handles, 0);\n GlOperation.checkGlError(TAG, \"glDeleteBuffers\");\n }\n\n if(mVaoHandle != UNBIND_HANDLE){\n handles[0] = mVaoHandle;\n mVaoHandle = UNBIND_HANDLE;\n GLES30.glDeleteVertexArrays(1, handles, 0);\n GlOperation.checkGlError(TAG, \"glDeleteVertexArrays\");\n }\n\n\t\tif(mManagedBuffer && this.buffer != null){\n\t\t\tswitch(this.datatype){\n\t\t\t\tcase TYPE_BYTE :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ByteBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TYPE_SHORT :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ShortBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TYPE_INT :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((IntBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((FloatBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t}\n\t\t\tthis.buffer = null;\n\t\t}\n\t\tthis.size = 0;\n\t\treturn this;\n\t}", "@Override\n\tpublic void reset() {\n\t\tthis.buffer = new String();\n\t}", "private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }", "private static ByteBuffer resizeByteBuffer(ByteBuffer buffer, int size)\n {\n ByteBuffer newBuffer = BufferUtils.createByteBuffer(size);\n buffer.flip();\n newBuffer.put(buffer);\n\n return newBuffer;\n }", "protected void ensureBufferSpace(int expectedAdditions) {\n final int bufferLen = (buffer == null ? 0 : buffer.length);\n if (elementsCount + expectedAdditions > bufferLen) {\n final int newSize = resizer.grow(bufferLen, elementsCount, expectedAdditions);\n assert newSize >= elementsCount + expectedAdditions : \"Resizer failed to\" + \" return sensible new size: \"\n + newSize + \" <= \" + (elementsCount + expectedAdditions);\n\n this.buffer = Arrays.copyOf(buffer, newSize);\n }\n }", "void resize() {\n capacity = array.size();\n }", "private void fillReceiveBuffer(final int requestedSize) {\n ByteBuffer readBuffer = receiveBuffer;\n if (requestedSize > receiveBuffer.capacity()) {\n readBuffer = socketService.getByteBuffer(requestedSize);\n readBuffer.put(receiveBuffer).flip();\n socketService.releaseByteBuffer(receiveBuffer);\n }\n receiveBuffer = null;\n socketHandle.read(readBuffer).addDeferrable(this, true);\n }", "public void free() {\n mm.freeBlock(startingPosition, size);\n }", "private void reallocArray() {\n this.stringArray = Arrays.copyOf\n (stringArray, stringArray.length*INCREMENT);\n }", "private void invalidateBuffer() throws IOException, BadDescriptorException {\n if (!reading) flushWrite();\n int posOverrun = buffer.remaining(); // how far ahead we are when reading\n buffer.clear();\n if (reading) {\n buffer.flip();\n // if the read buffer is ahead, back up\n FileChannel fileChannel = (FileChannel)descriptor.getChannel();\n if (posOverrun != 0) fileChannel.position(fileChannel.position() - posOverrun);\n }\n }", "public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }", "@Override\n\tpublic void releaseBuffer() {\n\t\tr.clear();\n\t\toriginRange = \"\";\n\t\tr = XStaticFixedValue.nullList;\n\t}", "private void reallocateDoubleCapacity() {\n\t\tObject oldElements[] = elements;\n\t\tcapacity *= reallocateFactor;\n\t\tsize = 0;\n\t\telements = new Object[capacity];\n\n\t\tfor (Object object : oldElements) {\n\t\t\tthis.add(object);\n\t\t}\n\t}", "public final void resetDataBuffer() {\n dataBuffer_.resetReaderIndex();\n lastValidBytePosition_ = 0;\n currentRowPosition_ = 0;\n nextRowPosition_ = 0;\n setAllRowsReceivedFromServer(false);\n }", "private void reallocate() {\r\n //elem = java.util.Arrays.copyOf(elem, elem.length * 2);\r\n E[] temp = (E[]) new Object[elem.length * 2];\r\n int i = 0;\r\n while (elem[i] != null) {\r\n temp[i] = elem[i];\r\n i++;\r\n }\r\n int j = elem.length - 1;\r\n int k = temp.length - 1;\r\n while (elem[i] != null) {\r\n temp[k] = elem[j];\r\n j--;\r\n k--;\r\n }\r\n front = k;\r\n elem = temp;\r\n }", "protected void resetTextBuffer() {\n this.textBuffer = new StringBuffer();\n }", "final void release() {\n mem.release();\n }", "public void freeMemory() {\n native_freeMemory();\n }", "public void clear(){\r\n currentSize = 0;\r\n }", "public void reset() {\n\t\tnewBuffer = null;\n\t\treadyBuffer = new StringBuilder();\n\t\tstatus = ConsumptionStatus.EMPTY;\n\t}", "@Override\n\tpublic synchronized void reset() {\n\t\tiOBuffer.reset();\n\t}", "public void clear() {\n this.init(buffer.length);\n }", "public void clean() {\n\t\tbufferSize = 0;\n\t\tbuffer = new Object[Consts.N_ELEMENTS_FACTORY];\n\t}", "public final char[] resizeBuffer(int newSize) { \n\t\tif (mTermBuffer.length < newSize){\n\t\t\t// Not big enough; create a new array with slight\n\t\t\t// over allocation and preserve content\n\t\t\tfinal char[] newCharBuffer = new char[ArrayUtil.oversize(newSize, JvmUtil.NUM_BYTES_CHAR)];\n\t System.arraycopy(mTermBuffer, 0, newCharBuffer, 0, mTermBuffer.length);\n\t mTermBuffer = newCharBuffer;\n\t\t}\n\t\treturn mTermBuffer;\n\t}", "private void grow(int minCapacity) {\n // overflow-conscious code\n int oldCapacity = buf.length;\n int newCapacity = oldCapacity << 1;\n if (newCapacity - minCapacity < 0) {\n newCapacity = minCapacity;\n }\n if (newCapacity - MAX_ARRAY_SIZE > 0) {\n newCapacity = hugeCapacity(minCapacity);\n }\n buf = Arrays.copyOf(buf, newCapacity);\n }", "private void updateBlockBuffer() {\n for (Block b : blockBuffer) {\n if (++b.ttl > BLOCK_CACHE_THRESH) {\n blockBuffer.remove(b);\n }\n }\n\n prevBlockBufferSize = blockBuffer.size();\n }", "public static ByteBuffer resizeBuffer(ByteBuffer buffer, int newCapacity) {\n ByteBuffer newBuffer = BufferUtils.createByteBuffer(newCapacity);\n buffer.flip();\n newBuffer.put(buffer);\n return newBuffer;\n }", "private void grow() {\n int oldCapacity = this.values.length;\n int newCapacity = oldCapacity + (oldCapacity >> 1);\n Object[] newValues = new Object[newCapacity];\n System.arraycopy(this.values, 0, newValues, 0, oldCapacity);\n this.values = newValues;\n }", "public void releaseReadIOBuffer(byte[] buf)\n/* */ {\n/* 207 */ if (buf != null)\n/* */ {\n/* */ \n/* */ \n/* 211 */ _verifyRelease(buf, this._readIOBuffer);\n/* 212 */ this._readIOBuffer = null;\n/* 213 */ this._bufferRecycler.releaseByteBuffer(0, buf);\n/* */ }\n/* */ }", "public final void freeBuffers()\n {\n if (_ioContext != null) {\n byte[] buf = _inputBuffer;\n if (buf != null) {\n _inputBuffer = null;\n _ioContext.releaseReadIOBuffer(buf);\n }\n }\n }", "private void flushBuffer(Runnable paramRunnable) {\n/* 149 */ int i = this.buf.position();\n/* 150 */ if (i > 0 || paramRunnable != null)\n/* */ {\n/* 152 */ flushBuffer(this.buf.getAddress(), i, paramRunnable);\n/* */ }\n/* */ \n/* 155 */ this.buf.clear();\n/* */ \n/* 157 */ this.refSet.clear();\n/* */ }", "public void rewind() {\n readAllocationNode = firstAllocationNode;\n }", "public void clearBuffer() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "public void recycleBitmapData(){\n\t\tif(bmpData != null){\n\t\t\tbmpData.recycle();\n\t\t\tbmpData = null;\n\t\t}\n\t}", "protected Rectangle reallocate(Shape a) {\n Rectangle alloc = a.getBounds(); // makes a fresh rectangle instance\n \n setSize(alloc.width, alloc.height); // set new size\n \n return alloc;\n }", "public void clear() {\n\t\tcurrentSize = 0;\n\t}", "private ByteBuffer grow(int length) {\n if (!mBuffers.isEmpty()) {\n ByteBuffer b = mBuffers.peekLast();\n if (b.limit() + length < b.capacity()) {\n b.mark();\n b.position(b.limit());\n b.limit(b.limit() + length);\n remaining += length;\n return b.order(order);\n }\n }\n\n ByteBuffer ret = obtain(length);\n ret.mark();\n ret.limit(length);\n add(ret);\n\n return ret.order(order);\n }", "private void refill(){\n\t\tscrollTo(0, 0);\n\t\trefillInternal(-1, 0);\n\t}", "public void recycle() {\r\n // Recycle our parent\r\n super.recycle();\r\n // Recycle the stream\r\n this.localstream.recycle();\r\n // Tell the parent that a stream is already in use.\r\n this.setStream(localstream);\r\n }", "@Override\n public void clear() {\n capacity = 15;\n currentSize = 0;\n this.container = new Object[capacity];\n }", "public void recycle() {\n super.recycle();\n this.output = null;\n }", "private void reallocateIfOverfilled() {\r\n\t\tif ((size * 1.0 / table.length) > MAX_FULLNESS_PERCENTAGE) {\r\n\t\t\treallocateArray();\r\n\t\t}\r\n\t}", "public void resize(final int size) {\n if (this.size != size) {\n this.size = size;\n this.buff = new char[size];\n }\n len = 0;\n beg = 0;\n }", "public void reset() {\n\t\tlength = 0;\n\t}", "private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }", "public void charge() {\r\n capacity = Math.min(capacity += originalCapacity, originalCapacity);\r\n }", "public final void clearBuffer() {\n width = 0;\n height = 0;\n noiseBuffer = null;\n }", "public final void clear()\n {\n this.pointer = 0;\n }", "public void reset() {\n _oldColorBuffer = _oldNormalBuffer = _oldVertexBuffer = _oldInterleavedBuffer = null;\n Arrays.fill(_oldTextureBuffers, null);\n }", "public final void recycle() \n\t{\n\tsource = fSource = null;\n\t\n\t// put back in recycler\n\tgRecycler.putObject(this);\n\t}", "public byte[] allocBase64Buffer()\n/* */ {\n/* 175 */ _verifyAlloc(this._base64Buffer);\n/* 176 */ return this._base64Buffer = this._bufferRecycler.allocByteBuffer(3);\n/* */ }", "private void ensureCapacity(int newCapacity) {\n\t\t\t data = Arrays.copyOf(data, newCapacity * 2);\n\t\t\t this.capacity = newCapacity * 2;\n\t\t }", "static native void free(long buffer);", "private ByteBuffer resizeApplicationBuffer(ByteBuffer app) {\n if (app.remaining() < appBuffSize) {\r\n ByteBuffer bb = ByteBuffer.allocate(app.capacity() + appBuffSize);\r\n app.flip();\r\n bb.put(app);\r\n return bb;\r\n } else {\r\n return app;\r\n }\r\n }", "private void clearBuffer() {\n\t\tfor (int i = 0; i < buffer.length; i++) {\n\t\t\tbuffer[i] = 0x0;\n\t\t}\n\t}", "public void reset()\n {\n current = 0;\n highWaterMark = 0;\n lowWaterMark = 0;\n super.reset();\n }", "@Override\n public void clear() {\n size = 0;\n storage = null;\n }", "private static void flushInternalBuffer() {\n\n //Strongly set the last byte to \"0A\"(new line)\n if (mPos < LOG_BUFFER_SIZE_MAX) {\n buffer[LOG_BUFFER_SIZE_MAX - 1] = 10;\n }\n\n long t1, t2;\n\n //Save buffer to SD card.\n t1 = System.currentTimeMillis();\n writeToSDCard();\n //calculate write file cost\n t2 = System.currentTimeMillis();\n Log.i(LOG_TAG, \"internalLog():Cost of write file to SD card is \" + (t2 - t1) + \" ms!\");\n\n //flush buffer.\n Arrays.fill(buffer, (byte) 0);\n mPos = 0;\n }", "public byte[] allocReadIOBuffer()\n/* */ {\n/* 146 */ _verifyAlloc(this._readIOBuffer);\n/* 147 */ return this._readIOBuffer = this._bufferRecycler.allocByteBuffer(0);\n/* */ }", "public void resetResponseBuffer()\n {\n bufferIndex = 0;\n responseFlag = false;\n }", "public void reallocateBuckets() { }", "@Override\n public void dispose(){\n if(handle <= 0) return;\n free(handle);\n handle = 0;\n }", "private static char[] growBuffer(char[] dest, int index, int size) {\n char[] copy = new char[size];\n if (index > 0) {\n System.arraycopy(dest, 0, copy, 0, index);\n }\n return copy;\n }", "@Override\r\n public void clear() {\r\n \r\n this.array = new LinkedList[capacity];\r\n \r\n this.size = 0;\r\n \r\n }", "private void clearResetCache() {\n for(IoBuffer buf : resetCache) {\n buf.free();\n }\n resetCache = null;\n }", "public void finalize() {\r\n srcImage = null;\r\n destImage = null;\r\n buffer = null;\r\n validBuffer = null;\r\n idealBuffer = null;\r\n objectBuffer = null;\r\n super.finalize();\r\n }", "@SuppressWarnings(\"unchecked\")\n protected static <K, V> HPTNode<K, V>[] reallocate(int capacity) {\n return (HPTNode<K, V>[]) new HPTNode[capacity];\n }" ]
[ "0.7238191", "0.70388234", "0.6886818", "0.67075807", "0.66586655", "0.66473407", "0.65900415", "0.6582897", "0.655242", "0.6411672", "0.6364436", "0.63399035", "0.62628174", "0.62440634", "0.6241322", "0.6232546", "0.62243724", "0.6184607", "0.6160069", "0.6139747", "0.61374825", "0.6130023", "0.6106528", "0.60377717", "0.59996516", "0.5975176", "0.59443", "0.59438646", "0.5937474", "0.59266317", "0.59108084", "0.5904337", "0.5900238", "0.5890484", "0.5888954", "0.58830357", "0.58667105", "0.5856872", "0.58379126", "0.5826767", "0.5816197", "0.5810627", "0.58093816", "0.5807371", "0.57987905", "0.57963496", "0.57913613", "0.5777847", "0.5760626", "0.57373977", "0.5728681", "0.57215303", "0.5710454", "0.57056653", "0.56964856", "0.56899804", "0.5688427", "0.5688141", "0.568011", "0.56668836", "0.5657586", "0.5652873", "0.56504446", "0.5645421", "0.56392497", "0.5637047", "0.562159", "0.5601095", "0.5590729", "0.55899763", "0.5536778", "0.5532906", "0.5517879", "0.5517684", "0.5516081", "0.5515734", "0.5512456", "0.5509938", "0.5497307", "0.54930234", "0.5482931", "0.547248", "0.5459098", "0.54494834", "0.54406476", "0.5439099", "0.5435067", "0.54288197", "0.54267377", "0.5409252", "0.54063493", "0.54041344", "0.5384393", "0.5383931", "0.53786975", "0.5374592", "0.5364549", "0.5349221", "0.5342381", "0.53400314" ]
0.55714816
70
TODO Autogenerated method stub
@Override public void onCreate(SQLiteDatabase arg0) { String CREATE_TABLE = "create table " +TB_NAME + "( " + T_SID+" integer," + T_PID+" integer," + T_VALUE+" text not null," + ")"; arg0.execSQL(CREATE_TABLE); }
{ "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 onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) { arg0.execSQL("drop table if exists "+TB_NAME); onCreate(arg0); }
{ "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
Shortest paths from s in Graph G
SP(EdgeWeightedDigraph G, int s) { distTo=new double[G.V()]; edgeTo=new DirectedEdge[G.V()]; /* * 1. Dijkstra's Algorithm (Non-negative weights) * 2. Topological Sort (No directed cycles) * 3. Bellman-Ford Algorithm (No negative cycles) */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Node> findShortestPath(Node s, Node t);", "void shortestPaths( Set<Integer> nodes );", "@Override\n public List<Node> findShortestPath(Node s, Node t)\n {\n nodeDists.clear(); //clear previously calculated distances\n\n recordNodeDistances(s, t); //record node distances to target\n\n LinkedList<Node> shortestPath = new LinkedList<Node>();\n\n shortestPath.addLast(s);\n\n boolean reachedEnd = false;\n\n if(s==t) reachedEnd = true; // \"That was easy\"\n\n while(!reachedEnd)\n {\n //get the neighbors from the most recent step on the path\n Collection<? extends Node> neighbors = shortestPath.getLast().getNeighbors();\n\n //minimum cost from neighbors\n Node minNode = null;\n\n for(Node n: neighbors)\n {\n if(minNode == null || nodeDists.get(n) < nodeDists.get(minNode))\n {\n minNode = n;\n\n if(nodeDists.get(n) == 0)\n {\n reachedEnd = true;\n break;\n }\n }\n }\n\n if(nodeDists.get(minNode) == Integer.MAX_VALUE) return null; //no path\n else shortestPath.addLast(minNode);\n }\n\n return shortestPath;\n }", "public ShortestPathMatrix<V,E> allPairsShortestPaths();", "public DijkstraSP(EdgeWeightedDigraph G, int s)\n {\n edgeTo = new DirectedEdge[G.V()];\n distTo = new double[G.V()];\n pq = new IndexMinPQ<Double>(G.V());\n for (int v = 0; v < G.V(); v++)\n distTo[v] = Double.POSITIVE_INFINITY;\n distTo[s] = 0.0;\n pq.insert(s, 0.0);\n while (!pq.isEmpty())\n relax(G, pq.delMin());\n }", "public void shortestPathsNodes() {\n for (int sourceNode = 0; sourceNode < wordGraph.V(); sourceNode++) {\n BreadthFirstDirectedPaths bfs = new BreadthFirstDirectedPaths(wordGraph, sourceNode);\n\n for (int goalNode = 0; goalNode < wordGraph.V(); goalNode++) {\n Iterable<Integer> shortestPath = bfs.pathTo(goalNode);\n int pathLength = -1;\n if (shortestPath != null) {\n for (int edge : shortestPath) {\n pathLength++;\n }\n }\n if (pathLength != -1) {\n }\n System.out.println(pathLength);\n }\n }\n }", "static void FindPath(vertex s, vertex[] array){\r\n\t\tvertex v; \r\n\t\tint min = Integer.MAX_VALUE;\r\n\t\t//node wN; vertex wV; //wN= adjacent node in LinkedList; wV= find the values in the vertices for wL\r\n\t\tint j =0;\r\n\t\ts.known = true;\r\n\t\ts.dist = 0;\r\n\t\tShortestPath(s, array);\r\n\t\r\n\t\twhile(j<array.length-1 ){ //&& array[j].known== false){\r\n\t\t\tint count = 0; \r\n\t\t\tmin = Integer.MAX_VALUE;\r\n\t\t\tfor(int i = 0; i<array.length; i++){\r\n\t\t\t\tif(array[i].known== false && array[i].dist < min){\r\n\t\t\t\t\tmin = array[i].dist;\r\n\t\t\t\t\tcount = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tv = array[count];\r\n //System.out.println(\"count: \" + count + \"Next v: \" + v.name);\r\n\t\t\tShortestPath(v, array);\r\n\t\t\tj++; \t\t\r\n }\r\n\t}", "public DijkstraSP(EdgeWeightedDigraph G, int s){\n edgeTo = new DirectedEdge[G.V()];\n distTo = new double[G.V()];\n pq = new IndexMinPQ<>(G.V());\n\n for (int v=0; v<G.V(); v++)\n distTo[v] = Double.POSITIVE_INFINITY;\n distTo[s] = 0;\n\n pq.insert(s, 0.0);\n // relax vertices in order of distance from s\n while (!pq.isEmpty())\n relax(G, pq.delMin());\n }", "public Dijkstra(EdgeWeightedDigraph G, int s) {\r\n int V = G.V();\r\n distTo = new double[V];\r\n edgeTo = new DirectedEdge[V];\r\n distTo[0] = 0.0;\r\n for (int i = 1; i < V; i++) {\r\n distTo[i] = Double.POSITIVE_INFINITY;\r\n }\r\n pq.insert(s, 0.0);\r\n while (!pq.isEmpty()) {\r\n int v = pq.deleteMin();\r\n for (DirectedEdge e : G.adj(v)) {\r\n relax(e);\r\n }\r\n }\r\n }", "List<V> getShortestPath(V vertex);", "private void computeShortestPathsFromSource(V source) {\n\t\tBFSDistanceLabeler<V, E> labeler = new BFSDistanceLabeler<V, E>();\n\t\tlabeler.labelDistances(mGraph, source);\n\t\tdistances = labeler.getDistanceDecorator();\n\t\tMap<V, Number> currentSourceSPMap = new HashMap<V, Number>();\n\t\tMap<V, E> currentSourceEdgeMap = new HashMap<V, E>();\n\n\t\tfor (V vertex : mGraph.getVertices()) {\n\n\t\t\tNumber distanceVal = distances.get(vertex);\n\t\t\t// BFSDistanceLabeler uses -1 to indicate unreachable vertices;\n\t\t\t// don't bother to store unreachable vertices\n\t\t\tif (distanceVal != null && distanceVal.intValue() >= 0) {\n\t\t\t\tcurrentSourceSPMap.put(vertex, distanceVal);\n\t\t\t\tint minDistance = distanceVal.intValue();\n\t\t\t\tfor (E incomingEdge : mGraph.getInEdges(vertex)) {\n\t\t\t\t\tfor (V neighbor : mGraph\n\t\t\t\t\t\t\t.getIncidentVertices(incomingEdge)) {\n\t\t\t\t\t\tif (neighbor.equals(vertex))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t// V neighbor = mGraph.getOpposite(vertex,\n\t\t\t\t\t\t// incomingEdge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNumber predDistanceVal = distances.get(neighbor);\n\n\t\t\t\t\t\tint pred_distance = predDistanceVal.intValue();\n\t\t\t\t\t\tif (pred_distance < minDistance && pred_distance >= 0) {\n\t\t\t\t\t\t\tminDistance = predDistanceVal.intValue();\n\t\t\t\t\t\t\tcurrentSourceEdgeMap.put(vertex, incomingEdge);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tmDistanceMap.put(source, currentSourceSPMap);\n\t\tmIncomingEdgeMap.put(source, currentSourceEdgeMap);\n\t}", "@SuppressWarnings(\"unchecked\")\n public List<Node> findShortestPath(Node s, Node t) {\n if(s == null || t == null)\n return null;\n\n Queue<LinkedList<Node>> _pathsToVisit = new ArrayDeque<>(); // Stores paths that need to be searched (need to use add to maintain FIFO order)\n HashSet<Node> _visitedNodes = new HashSet<>(); // Stores list of visited nodes\n\n LinkedList<Node> startList = new LinkedList<>(); // Starting with Queue containing list containing first node\n startList.add(s);\n _pathsToVisit.add(startList); // Adds list containing first node to nodesToVisit queue\n\n if(s.equals(t))\n return startList;\n\n while(_pathsToVisit.size() > 0){ // While the queue is not empty, loop\n LinkedList<Node> path = _pathsToVisit.remove(); // sets path LinkedList to first LinkedList in queue and removes it\n\n for(Node node : path.getLast().getNeighbors()){ // For all the neighbors of path\n if(node.equals(t)){ // if found end node, return path\n path.add(node);\n return path;\n }\n else{\n if(!_visitedNodes.contains(node)) { // Check to see if we already visited this node, if so ignore it to avoid loops\n _visitedNodes.add(node); // Adds neighbor to visited nodes\n path.add(node);\n _pathsToVisit.add((LinkedList) path.clone()); // Add cloned list to paths so we can still modify path\n path.removeLast(); //This might be wrong, will the path stored in _pathsToVisit be changed? yes, but we can clone it to prevent this TODO: change\n }\n }\n\n }\n }\n return null; // Return null if no path is found\n }", "DijkstraSP(EdgeWeightedDigraph G, int s)\n\t{\n\t\tdistTo=new double[G.V()];\n\t\tedgeTo=new DirectedEdge[G.V()];\n\t\tpq=new IndexMinPQ<>(G.V());\n\t\tfor(int v=0;v<G.V();v++)\n\t\t\tdistTo[v]=Double.POSITIVE_INFINITY;\n\t\tdistTo[s]=0.0;\n\t\t\n\t\tpq.insert(s, 0.0);\n\t\twhile(!pq.isEmpty()) \n\t\t{\n\t\t\tint v=pq.delMin();\n\t\t\tfor(DirectedEdge e: G.adj(v))\n\t\t\t\trelax(e);\n\t\t}\n\t}", "public int findShortestDistance(String s, String t) {\r\n //store the vertex and distance closest to each vertex\r\n Map<String, Vertex> finalMap = new HashMap<>(this.number_of_vertices);\r\n for (String vertex : all_vertices) {\r\n finalMap.put(vertex, new Vertex(s, Integer.MAX_VALUE));\r\n }\r\n finalMap.put(s, null);\r\n Queue<Vertex> pq = new PriorityQueue<>(new Comparator() {\r\n @Override\r\n public int compare(Object o1, Object o2) {\r\n Vertex v1 = (Vertex) o1;\r\n Vertex v2 = (Vertex) o2;\r\n return v1.dist - v2.dist;\r\n }\r\n });\r\n pq.add(new Vertex(s, 0));\r\n Set<String> visited = new HashSet<>(this.number_of_vertices);\r\n while (!pq.isEmpty()) {\r\n Vertex minVertex = pq.poll();\r\n if (!visited.add(minVertex.v)) {\r\n continue;\r\n }\r\n Map<String, Integer> edgeMap = adj.get(minVertex.v);\r\n for (Map.Entry<String, Integer> entry : edgeMap.entrySet()) {\r\n int distance = minVertex.dist + entry.getValue();\r\n if (finalMap.get(entry.getKey()) != null && distance < finalMap.get(entry.getKey()).dist) {\r\n finalMap.get(entry.getKey()).dist = distance;\r\n finalMap.get(entry.getKey()).v = minVertex.v;\r\n }\r\n pq.add(new Vertex(entry.getKey(), distance));\r\n }\r\n }\r\n if (!s.equals(t)){\r\n return finalMap.get(t).dist;\r\n }else{\r\n return calculateDistance(s, finalMap);\r\n }\r\n }", "ShortestPath(UndirectedWeightedGraph graph, String startNodeId, String endNodeId) throws NotFoundNodeException {\r\n\t\t\r\n\t\tif (!graph.containsNode(startNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, startNodeId);\r\n\t\t}\t\t\r\n\t\tif (!graph.containsNode(endNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, endNodeId);\r\n\t\t}\t\r\n\r\n\t\tsrc = startNodeId;\r\n\t\tdst = endNodeId;\r\n\t\t\r\n\t\tif (endNodeId.equals(startNodeId)) {\r\n\t\t\tlength = 0;\r\n\t\t\tnumOfPath = 1;\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\tpath.add(startNodeId);\r\n\t\t\tpathList.add(path);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// create a HashMap of updated distance from the starting node to every node\r\n\t\t\t// initially it is 0, inf, inf, inf, ...\r\n\t\t\tHashMap<String, Double> distance = new HashMap<String, Double>();\t\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif (nodeId.equals(startNodeId)) {\r\n\t\t\t\t\t// the starting node will always have 0 distance from itself\r\n\t\t\t\t\tdistance.put(nodeId, 0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// the others have initial distance is infinity\r\n\t\t\t\t\tdistance.put(nodeId, Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// a HashMap of preceding node of each node\r\n\t\t\tHashMap<String, HashSet<String>> precedence = new HashMap<String, HashSet<String>>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif ( nodeId.equals(startNodeId) ) {\r\n\t\t\t\t\tprecedence.put(nodeId, null);\t// the start node will have no preceding node\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tprecedence.put(nodeId, new HashSet<String>());\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\tSet<String> unvisitedNode = new HashSet<String>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tunvisitedNode.add(nodeId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble minUnvisitedLength;\r\n\t\t\tString minUnvisitedNode;\r\n\t\t\t// run loop while not all node is visited\r\n\t\t\twhile ( unvisitedNode.size() != 0 ) {\r\n\t\t\t\t// find the unvisited node with minimum current distance in distance list\r\n\t\t\t\tminUnvisitedLength = Double.MAX_VALUE;\r\n\t\t\t\tminUnvisitedNode = \"\";\r\n\t\t\t\tfor (String nodeId : unvisitedNode) {\r\n\t\t\t\t\tif (distance.get(nodeId) < minUnvisitedLength) {\r\n\t\t\t\t\t\tminUnvisitedNode = nodeId;\r\n\t\t\t\t\t\tminUnvisitedLength = distance.get(nodeId); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// if there are no node that can be visited from the unvisitedNode, break the loop \r\n\t\t\t\tif (minUnvisitedLength == Double.MAX_VALUE) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// remove the node from unvisitedNode\r\n\t\t\t\tunvisitedNode.remove(minUnvisitedNode);\r\n\t\t\t\t\r\n\t\t\t\t// update the distance of its neighbors\r\n\t\t\t\tfor (Node neighborNode : graph.getNodeList().get(minUnvisitedNode).getNeighbors().keySet()) {\r\n\t\t\t\t\tdouble distanceFromTheMinNode = distance.get(minUnvisitedNode) + graph.getNodeList().get(minUnvisitedNode).getNeighbors().get(neighborNode).getWeight();\r\n\t\t\t\t\t// if the distance of the neighbor can be shorter from the current node, change \r\n\t\t\t\t\t// its details in distance and precedence\r\n\t\t\t\t\tif ( distanceFromTheMinNode < distance.get(neighborNode.getId()) ) {\r\n\t\t\t\t\t\tdistance.replace(neighborNode.getId(), distanceFromTheMinNode);\r\n\t\t\t\t\t\t// renew the precedence of the neighbor node\r\n\t\t\t\t\t\tprecedence.put(neighborNode.getId(), new HashSet<String>());\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (distanceFromTheMinNode == distance.get(neighborNode.getId())) {\r\n\t\t\t\t\t\t// unlike dijkstra's algorithm, multiple path should be update into the precedence\r\n\t\t\t\t\t\t// if from another node the distance is the same, add it to the precedence\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the current node in the process is the end node, we can stop the while loop here\r\n\t\t\t\tif (minUnvisitedNode == endNodeId) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (distance.get(endNodeId) == Double.MAX_VALUE) {\r\n\t\t\t\t// in case there is no shortest path between the 2 nodes\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tnumOfPath = 0;\r\n\t\t\t\tpathList = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// other wise we have these information\r\n\t\t\t\tlength = distance.get(endNodeId);\r\n\t\t\t\t//numOfPath = this.getNumPath(precedence, startNodeId, endNodeId);\r\n\t\t\t\tpathList = this.findPathList(precedence, startNodeId, endNodeId);\r\n\t\t\t\tnumOfPath = pathList.size();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t// END ELSE\t\t\r\n\t}", "private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }", "private void calculateShortestDistances (GraphStructure graph,int startVertex,int destinationVertex) {\r\n\t\t//traverseRecursively(graph, startVertex);\r\n\t\tif(pathList.contains(destinationVertex)) {\r\n\t\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\t\tdistanceArray[startVertex]=0;\r\n\t\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\t\tList<Edge> list;\r\n\t\t\tlist = graph.getAdjacencyList()[startVertex];\r\n\t\t\tif(startVertex==destinationVertex) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\tif(! isVisited[value.getVertex()]) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[startVertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t\tshortestPathList.add(value.getVertex());\r\n\t\t\t\t\t\t\tcalculateShortestDistances(graph,value.getVertex(), distanceValueOfDestinationVertex);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*for(Integer value : spanningTreeSet) {\r\n\t\t\t\tSystem.out.print(value+\" \");\r\n\t\t\t}*/\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No route is present between given vertices !\");\r\n\t\t}\r\n\t}", "private String getShortestPath(final Pair<Long, Long> src, final Pair<Long, Long> dst,\n final String passCode, final boolean first) {\n final var queue = new LinkedList<Node>();\n final var seen = new HashSet<Node>();\n //start from source\n final var srcNode = new Node( src, \"\" );\n queue.add( srcNode );\n seen.add( srcNode );\n\n int max = 0;\n while ( !queue.isEmpty() ) {\n final var curr = queue.remove();\n if ( curr.pos.equals( dst ) ) {\n if ( first ) {\n //shortest path\n return curr.path;\n } else {\n //store path length\n max = curr.path.length();\n //stop this path\n }\n } else {\n for ( final var neighbour : getNeighbours( curr, passCode ) ) {\n //unseen neighbour\n if ( seen.add( neighbour ) ) {\n //add to the queue\n queue.add( neighbour );\n }\n }\n }\n }\n\n return itoa( max );\n }", "@Override\n public List<node_data> shortestPath(int src, int dest) {\n reset();\n for (node_data node : G.getV()) {\n node.setWeight(Double.POSITIVE_INFINITY);\n }\n\n DWGraph_DS.Node currentNode = (DWGraph_DS.Node) G.getNode(src);\n currentNode.setWeight(0);\n PriorityQueue<node_data> unvisitedNodes = new PriorityQueue(G.nodeSize(), weightComperator);\n unvisitedNodes.addAll(G.getV());\n HashMap<Integer, node_data> parent = new HashMap<>();\n parent.put(src, null);\n\n while (currentNode.getWeight() != Double.POSITIVE_INFINITY) {\n if (G.getNode(dest).getTag() == 1) {\n break;\n }\n for (edge_data edge : G.getE(currentNode.getKey())) {\n DWGraph_DS.Node neighbor = (DWGraph_DS.Node) G.getNode(edge.getDest());\n double tmpWeight = currentNode.getWeight() + edge.getWeight();\n if (tmpWeight < neighbor.getWeight()) {\n neighbor.setWeight(tmpWeight);\n unvisitedNodes.remove(neighbor);\n unvisitedNodes.add(neighbor);\n parent.put(neighbor.getKey(), currentNode);\n }\n }\n currentNode.setTag(1);\n if(currentNode.getKey()==dest) break;\n unvisitedNodes.remove(currentNode);\n currentNode = (DWGraph_DS.Node) unvisitedNodes.poll();\n }\n /*\n Rebuild the path list\n */\n if (!parent.keySet().contains(dest)) return null;\n List<node_data> pathList = new ArrayList<>();\n currentNode = (DWGraph_DS.Node) G.getNode(dest);\n while (parent.get(currentNode.getKey()) != null) {\n pathList.add(currentNode);\n currentNode = (DWGraph_DS.Node) parent.get(currentNode.getKey());\n }\n Collections.reverse(pathList);\n return pathList;\n }", "@Override\n\tpublic List<Node> findShortestPath(Node s, Node t) {\n\t\tfinal Queue<Node> toVisit = new LinkedList<Node>();\n\t\tfinal Stack<Node> visited = new Stack<Node>();\n\t\tfinal Map<Node, Integer> distance = new HashMap<Node, Integer>();\n\t\tBoolean found = false;\n\t\t// if either node does not exist, then shortestPath is null\n\t\tif (s == null || t == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\ttoVisit.add(s);\n\t\t\tdistance.put(s, 0);\n\t\t\t// Goes through toVisit and visits each individual node and adds\n\t\t\t// it to visited\n\t\t\tNode current;\n\t\t\twhile (!(toVisit.isEmpty())) {\n\t\t\t\tcurrent = toVisit.poll();\n\t\t\t\tvisited.add(current);\n\t\t\t\t// stops search once t is found\n\t\t\t\tif (current.equals(t)) {\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// if not continues by adding the neighbors of the node \n\t\t\t\t// to toVisited\n\t\t\t\tfor (Node neighbor : current.getNeighbors()) {\n\t\t\t\t\tif (!(toVisit.contains(neighbor)) && !(visited.contains(neighbor))) {\n\t\t\t\t\t\ttoVisit.add(neighbor);\n\t\t\t\t\t\tdistance.put(neighbor, distance.get(current) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if no path is between existing nodes s and t return null\n\t\t\tif (!found) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\t// otherwise backtrack using distance to find shortestPath\n\t\t\t\treturn backTrackFrom(t, s, visited, distance);\n\t\t\t}\n\t\t}\n\t}", "public static <V> void printAllShortestPaths(Graph<V> graph) {\n double[][] matrizPesos = graph.getGraphStructureAsMatrix();\n double[][] pesos = new double[matrizPesos.length][matrizPesos.length];\n V[] vertices = graph.getValuesAsArray();\n V[][] caminos = (V[][]) new Object[matrizPesos.length][matrizPesos.length];\n for (int x = 0; x < matrizPesos.length; x++) {\n for (int y = 0; y < matrizPesos.length; y++) {\n if (x == y) {\n pesos[x][y] = -1;\n } else {\n if (matrizPesos[x][y] == -1) {\n pesos[x][y] = Integer.MAX_VALUE; //Si no existe arista se pone infinito\n } else {\n pesos[x][y] = matrizPesos[x][y];\n }\n }\n caminos[x][y] = vertices[y];\n }\n }\n for (int x = 0; x < vertices.length; x++) { // Para cada uno de los vertices del grafo\n for (int y = 0; y < vertices.length; y++) { // Recorre la fila correspondiente al vertice\n for (int z = 0; z < vertices.length; z++) { //Recorre la columna correspondiente al vertice\n if (y != x && z != x) {\n double tam2 = pesos[y][x];\n double tam1 = pesos[x][z];\n if (pesos[x][z] != -1 && pesos[y][x] != -1) {\n double suma = pesos[x][z] + pesos[y][x];\n if (suma < pesos[y][z]) {\n pesos[y][z] = suma;\n caminos[y][z] = vertices[x];\n }\n }\n }\n }\n }\n }\n\n //Cuando se termina el algoritmo, se imprimen los caminos\n for (int x = 0; x < vertices.length; x++) {\n for (int y = 0; y < vertices.length; y++) {\n boolean seguir = true;\n int it1 = y;\n String hilera = \"\";\n while (seguir) {\n if (it1 != y) {\n hilera = vertices[it1] + \"-\" + hilera;\n } else {\n hilera += vertices[it1];\n }\n if (caminos[x][it1] != vertices[it1]) {\n int m = 0;\n boolean continuar = true;\n while (continuar) {\n if (vertices[m].equals(caminos[x][it1])) {\n it1 = m;\n continuar = false;\n } else {\n m++;\n }\n }\n } else {\n if (x == y) {\n System.out.println(\"El camino entre \" + vertices[x] + \" y \" + vertices[y] + \" es: \" + hilera);\n } else {\n hilera = vertices[x] + \"-\" + hilera;\n if (pesos[x][y] == Integer.MAX_VALUE) {\n System.out.println(\"El camino mas corto entre \" + vertices[x] + \" y \" + vertices[y] + \" es: infinito (no hay camino)\");\n } else {\n System.out.println(\"El camino mas corto entre \" + vertices[x] + \" y \" + vertices[y] + \" es: \" + hilera + \" con distancia de: \" + (pesos[x][y]));\n }\n }\n seguir = false;\n }\n }\n }\n System.out.println();\n }\n }", "public List<node_info> shortestPath(int src, int dest);", "@Test\n void testShortestPath(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,1);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n LinkedList<node_info> expectedPath = new LinkedList<>(Arrays.asList(g.getNode(1),g.getNode(7),g.getNode(4)));\n assertNull(ga.shortestPath(1,10));\n assertEquals(expectedPath,ga.shortestPath(1,4));\n assertEquals(1,ga.shortestPath(1,1).size());\n }", "public static <N>Path<N> findShortestPath(DirectedGraph<N, Double> graph, N first, N last){\n PriorityQueue<Path<N>> active = new PriorityQueue<>(new Comparator<Path<N>>() {\n @Override\n public int compare(Path<N> x, Path<N> y) {\n if(x.getCost() > y.getCost()){\n return 1;\n } else if (x.getCost() < y.getCost()){\n return -1;\n }\n return 0;\n }\n });\n\n Set<N> finished = new HashSet<>();\n N start = first;\n N end = last;\n\n active.add(new Path<N>(start));\n while(!active.isEmpty()){\n Path<N> minPath = active.remove();\n N minDest = minPath.getEnd();\n if(minDest.equals(end)){\n return minPath;\n }\n if(finished.contains(minDest)){\n continue;\n }\n for(Edge<N, Double> e : graph.getEdges(minDest)){\n if(!finished.contains(e.getChild())){\n Path<N> newPath = minPath.extend(e.getChild(), e.getLabel());\n active.add(newPath);\n }\n }\n finished.add(minDest);\n }\n return null;\n }", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tthis.shortestPathDist(src, dest);\n\t\tif(this.GA.getNode(src).getWeight() == Integer.MAX_VALUE || this.GA.getNode(dest).getWeight() == Integer.MAX_VALUE){\n\t\t\tSystem.out.print(\"There is not a path between the nodes.\");\n\t\t\treturn null;\n\t\t}\n\t\tgraph copied = this.copy();\n\t\ttransPose(copied);\n\t\tnode_data first = copied.getNode(dest);\n\t\tans.add(first);\n\t\twhile (first.getKey() != src) {\n\t\t\tCollection<edge_data> temp = copied.getE(first.getKey());\n\t\t\tdouble check= first.getWeight();\n\t\t\tif(temp!=null) {\n\t\t\t\tfor (edge_data edge : temp) {\n\t\t\t\t\tif (copied.getNode(edge.getDest()).getWeight() + edge.getWeight() == check) {\n\t\t\t\t\t\tfirst = copied.getNode(edge.getDest());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tans.add(first);\n\t\t}\n\t\tList<node_data> ans2 = new ArrayList<>();\n\t\tfor (int i = ans.size()-1;i>=0;i--){\n\t\t\tans2.add(ans.get(i));\n\t\t}\n\t\treturn ans2;\n\t}", "@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }", "public List<String> computeBestPath(String source, String dest)\r\n {\r\n Vertex v;\r\n List<String>shortestPath = new LinkedList<String>();\r\n \r\n // First, relax all nodes\r\n computeAllPaths(source);\r\n \r\n // Then go through each one and return the path as a list of strings\r\n for (v= network_topology.get(dest); v != null; v = v.previous)\r\n { \r\n shortestPath.add(v.name);\r\n }\r\n \r\n Collections.reverse(shortestPath);\r\n \r\n // Clear the relaxed values so that they can be recalculated with each term\r\n clearPathData();\r\n \r\n return shortestPath;\r\n }", "public int shortestPathLength(int[][] graph) {\n Queue<MyPath> q = new LinkedList<>();\n Set<String> visited = new HashSet<>();\n\n for (int i = 0; i < graph.length; i++) {\n MyPath path = new MyPath(i, (1 << i));\n visited.add(path.convertToString());\n q.offer(path);\n }\n\n int length = 0;\n while (!q.isEmpty()) {\n int size = q.size();\n while (size-- > 0) {\n MyPath next = q.poll();\n int curr = next.curr;\n int currPath = next.nodes;\n // Assume we have two nodes -> n = 2\n // 1 << 2 -> 100\n // 100 - 1 -> 011 which means both nodes are visited\n if (currPath == (1 << graph.length) - 1) {\n return length;\n }\n for (int neighbors : graph[curr]) {\n MyPath newPath = new MyPath(neighbors, currPath | (1 << neighbors));\n String pathString = newPath.convertToString();\n if (visited.add(pathString)) {\n q.offer(newPath);\n }\n }\n }\n length++;\n }\n\n return -1;\n }", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}", "public UnweightedShortestPath(Hypergraph<V, E> g) {\n\t\tmDistanceMap = new HashMap<V, Map<V, Number>>();\n\t\tmIncomingEdgeMap = new HashMap<V, Map<V, E>>();\n\t\tmGraph = g;\n\t}", "public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}", "public void computeShortestPath() throws IllegalStateException;", "ShortestPath(ShortestPath sp) {\r\n\t\tsrc = sp.getSrc();\r\n\t\tdst = sp.getDst();\r\n\t\tpathList = new ArrayList<ArrayList<String>>();\r\n\t\tfor (ArrayList<String> path : sp.getPathList()) {\r\n\t\t\tpathList.add( new ArrayList<>(path) );\r\n\t\t}\r\n\t\tnumOfPath = sp.getNumOfPath();\r\n\t\tlength = sp.getLength();\r\n\t}", "private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }", "public void findShortestPathHeap( Graph gr,String sourceName, String destName)\n {\n \tint vertex_size = gr.vertexMap.values().size();\n \tHeapImpl mh = new HeapImpl(vertex_size);\n Vertex v = getVertex( sourceName );\n Vertex processing;\n for(Vertex ver: gr.vertexMap.values()){\n \tver.reset();\n }\n v.dist=0;\n v.prev=null;\n mh.insert(v);\n while (mh!=null && !mh.isEmpty()){\n \t processing= mh.HeapExtractMin();\n \t if(processing.dist==Integer.MAX_VALUE){\n \t\t break;\n \t }\n \t for(Edge adjEdge: processing.adjEdge.values()){\n \t\t \n \t\t if(!adjEdge.isDown && !adjEdge.adjVertex.isDown ){\n \t\t\t if(adjEdge.adjVertex.dist>(processing.dist+adjEdge.dist)){\n \t\t\t\t //Q.delete(adjEdge.adjVertex);\n \t\t\t\t adjEdge.adjVertex.dist= processing.dist+adjEdge.dist;\n \t\t\t\t adjEdge.adjVertex.prev=processing;\n \t\t\t\t if(adjEdge.adjVertex.vertexPosition==0)\n \t\t\t\t\t adjEdge.adjVertex.vertexPosition= mh.insert( adjEdge.adjVertex);\n \t\t\t\t else\n \t\t\t\t\t mh.decreaseKey(adjEdge.adjVertex.vertexPosition-1, adjEdge.adjVertex);\n \t\t\t\t \n \t\t\t }\n \t\t }\n \t\t \n \t\t \n \t }\n }\n }", "@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }", "public static <G extends BaseWeightedGraph<V,E,W>,V,E extends WeightedEdge<V,W>, W extends Number & Comparable<W>> List<E> findShortestPathInt(G graph, V source, V sink){\r\n\t\t// check graph contains source and sink\r\n\t\tSet<V> vertecies = graph.getVertices();\r\n\t\tif( !(vertecies.contains(source) && vertecies.contains(sink)) ){\r\n\t\t\tthrow new IllegalArgumentException(\"BaseGraph must contain both source and sink\");\r\n\t\t}\r\n\t\t\r\n\t\tPriorityQueue<WeightedPathChain<V,E,W,Integer>> pq = new PriorityQueue<WeightedPathChain<V,E,W,Integer>>(); \r\n\t\tHashSet<V> checked = new HashSet<V>();\r\n\t\tHashMap<V,WeightedPathChain<V,E,W,Integer>> map = new HashMap<V,WeightedPathChain<V,E,W,Integer>>();\r\n\t\taddOrUpdate(map,pq,source,Integer.valueOf(0));\r\n\t\twhile(!pq.isEmpty()&&!sink.equals(pq.peek().vertex)){\r\n\t\t\tWeightedPathChain<V,E,W,Integer> current = pq.poll(); // poll lowest level vertex\r\n\t\t\tchecked.add(current.vertex); // add vertex to checked set\r\n\t\t\tfor (E edge :graph.getOutgoingEdges(current.vertex)){\t// for each outgoing edge \r\n\t\t\t\tif(!checked.contains(edge.getOpposingVertex(current.vertex))){\t\t// if opposing vertex has not been checked \r\n\t\t\t\t\taddOrUpdate(map,\r\n\t\t\t\t\t\t\t\tpq,\r\n\t\t\t\t\t\t\t\tedge.getOpposingVertex(current.vertex),\r\n\t\t\t\t\t\t\t\tInteger.valueOf(map.get(current.vertex).val+edge.getWeight().intValue() ) ,\r\n\t\t\t\t\t\t\t\tedge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<V> path = new ArrayList<V>(); // vertex path \r\n\t\tArrayList<E> edgePath = new ArrayList<E>(); // edge path\r\n\t\tboolean run = true; \r\n\t\tif(!pq.isEmpty()&&pq.peek().vertex.equals(sink)) { // \r\n\t\t\tWeightedPathChain<V,E,W,Integer> vv = pq.poll();\r\n\t\t\tpath.add(vv.vertex);\r\n\t\t\tedgePath.add(vv.edge);\r\n\t\t\twhile(run) {\r\n\t\t\t\tvv = map.get(vv.edge.getOpposingVertex(vv.vertex));\r\n\t\t\t\tif(vv.vertex.equals(source)) {\r\n\t\t\t\t\trun=false;\r\n\t\t\t\t\tpath.add(vv.vertex);\r\n\t\t\t\t}\r\n\t\t\t\telse {\t\r\n\t\t\t\t\tedgePath.add(vv.edge);\r\n\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return path;\r\n\t\t\r\n\t\tCollections.reverse(edgePath);\r\n\t\treturn edgePath;\r\n\t}", "public Paths(Graph G, int s)\n {\n ...\n }", "public List<Node> computeDijkstraShortestPath(Node source, Node destination) {\n\n source.minDistance = 0.;\n PriorityQueue<Node> nodeQueue = new PriorityQueue<Node>();\n nodeQueue.add(source);\n\n int destinationGroup = destination._groupID;\n\n while (!nodeQueue.isEmpty()) {\n Node v = nodeQueue.poll();\n\n Log.i(\"bbb\", \"In dijsk node name \"+ v._waypointName);\n //Stop searching when reach the destination node\n\n\n if(destinationGroup!=0){\n\n if(v._groupID==destinationGroup){\n destination = navigationGraph.get(navigationGraph.size()-1).nodesInSubgraph.get(v._waypointID);\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n break;\n }\n\n }\n\n if (v._waypointID.equals(destination._waypointID))\n break;\n\n\n // Visit each edge that is adjacent to v\n for (Edge e : v._edges) {\n Node a = e.target;\n Log.i(\"bbb\", \"node a \"+a._waypointName);\n double weight = e.weight;\n double distanceThroughU = v.minDistance + weight;\n if (distanceThroughU < a.minDistance) {\n nodeQueue.remove(a);\n a.minDistance = distanceThroughU;\n a.previous = v;\n Log.i(\"bbb\", \"set previous\");\n nodeQueue.add(a);\n }\n }\n }\n\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n return getShortestPathToDestination(destination);\n }", "@Override\n public List<node_info> shortestPath(int src, int dest) {\n int counter=0;//counter for index of listPath\n List<node_info> listPath=new ArrayList<node_info>();//The reverse list that is returned\n List<node_info> listResult=new ArrayList<node_info>();//the returned list\n if(!DijkstraHelp(src,dest)) return null;//if there is no path from src to dest\n if(src==dest) {\n listPath.add(this.ga.getNode(src));\n return listPath;\n }\n //the other case:\n node_info d=this.ga.getNode(dest);\n listPath.add(counter,d);//insert the dest in order to go from destination to source\n //counter++;\n weighted_graph gCopy=copy();\n Iterator<node_info> it=gCopy.getV().iterator();//run on the whole graph\n while(it.hasNext()){\n if(listPath.get(counter).getKey()==src) break;//if we finished\n if(gCopy.getV(listPath.get(counter).getKey()).contains(it.next())) {//remove the nodes that we were already checked if\n //they need to be insert to listPath\n continue;\n }\n Iterator<node_info> currentIt=gCopy.getV(listPath.get(counter).getKey()).iterator();//iterator on the ni-list of the\n //last node were insert to the listPath\n if(currentIt!=null) {\n node_info min=null;\n while (currentIt.hasNext()){\n node_info currentLoop=currentIt.next();\n if(currentLoop.getTag()+gCopy.getEdge(listPath.get(counter).getKey(),currentLoop.getKey())==\n listPath.get(counter).getTag()){//check if this is the node that appropriate to the shortest path\n min=currentLoop;\n }\n }\n listPath.add(min);//insert to listPath\n counter++;\n }\n }\n for(int i=listPath.size()-1;i>=0;i--){\n listResult.add(listPath.size()-i-1,listPath.get(i));//reverse the list\n }\n return listResult;\n }", "@Override\n\tpublic List<Path> getShortestRoute(Location src, Location dest, String edgePropertyName) {\n\t\t//array to keep track of visited vertexes\n\t\tboolean[] visited = new boolean[locations.size()];\n\t\t//array to store weights\n\t\tdouble[] weight = new double[locations.size()];\n\t\t//array to store predecessors\n\t\tLocation[] pre = new Location[locations.size()];\n\t\t//creates priority queue\n\t\tPriorityQueue<LocWeight> pq = new PriorityQueue<LocWeight>();\n\t\t// initializes every vertex misted mark to false\n\t\tfor (int i = 0; i < visited.length; i++)\n\t\t\tvisited[i] = false;\n\t\t// initializes every vertex's total weight to infinity\n\t\tfor (int i = 0; i < weight.length; i++)\n\t\t\tweight[i] = Double.POSITIVE_INFINITY;\n\t\t// initializes every vertex's predecessor to null\n\t\tfor (int i = 0; i < pre.length; i++)\n\t\t\tpre[i] = null;\n\t\t//sets start vertex's total weight to 0\n\t\tweight[locations.indexOf(src)] = 0;\n\t\t//insert start vertex in priroty queue\n\t\tpq.add(new LocWeight(src, 0.0));\n\t\t\n\t\tString[] edgeNames = getEdgePropertyNames();\n\t\tint indexProp = 0;\n\t\tfor (int i = 0; i < edgeNames.length; i++) {\n\t\t\tif (edgeNames[i].equalsIgnoreCase(edgePropertyName))\n\t\t\t\tindexProp = i;\n\t\t}\n\t\twhile (!pq.isEmpty()) {\n\t\t\tLocWeight c = pq.remove();\n\t\t\t//set C's visited mark to true\n\t\t\tvisited[locations.indexOf(c)] = true;\n\n\t\t\tList<Location> neighbors = getNeighbors(c.getLocation());\n\t\t\t//for each unvisited successor adjacent to C\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\n\t\t\t\tif (visited[locations.indexOf(neighbors.get(i))] == false) {\n\t\t\t\t\t//change successor's total weight to equal C's weight + edge weight from C to successor\n\t\t\t\t\tweight[locations.indexOf(neighbors.get(i))] = c.getWeight() + getEdgeIfExists(c.getLocation(), neighbors.get(i)).getProperties().get(indexProp);\n\t\t\t\t\tpre[locations.indexOf(neighbors.get(i))] = c.getLocation();\n\t\t\t\t\tLocWeight succ = new LocWeight(neighbors.get(i), weight[locations.indexOf(neighbors.get(i))]);\n\t\t\t\t\t//if successor is already in pq, update its total weight\n\t\t\t\t\tif (pq.contains(succ)) {\n\t\t\t\t\t\tpq.remove(succ);\n\t\t\t\t\t}\n\t\t\t\t\t//if not already there, add\n\t\t\t\t\tpq.add(succ);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\n\t\t}\n\t\t\n\t\tArrayList<Path> path = new ArrayList<Path>();\n\t\t//find predecessor of each vertex and construct shortest path then return it\n\t\tLocation curr1 = dest;\n\t\twhile (pre[locations.indexOf(curr1)] != null) {\n\t\t\tpath.add(getEdgeIfExists(pre[locations.indexOf(curr1)], curr1));\n\t\t\tcurr1 = pre[locations.indexOf(curr1)];\n\t\t}\n\t\t//to show path from the start\n\t\tfor (int i = path.size() - 1; i >= 0; i--)\n\t\t\tpath.add(path.remove(i));\n\n\n\t\treturn path;\n\t}", "void shortestPath( final VertexType fromNode, Integer node );", "public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void findShortestPath(String startName, String endName) {\n checkValidEndpoint(startName);\n checkValidEndpoint(endName);\n\n Vertex<String> start = vertices.get(startName);\n Vertex<String> end = vertices.get(endName);\n\n double totalDist; // totalDist must be update below\n\n Map<Vertex<String>, Double> distance = new HashMap<>();\n Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();\n Set<Vertex<String>> explored = new HashSet<>();\n PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();\n\n\n\n addPQ(distance, start, pq, previous);\n\n\n\n dijkstraHelper(pq, end, explored, distance, previous);\n\n\n\n\n\n\n totalDist = distance.get(end);\n List<Edge<String>> path = getPath(end, start);\n printPath(path, totalDist);\n }", "public void calcSP(Graph g, Vertex source){\n // Algorithm:\n // 1. Take the unvisited node with minimum weight.\n // 2. Visit all its neighbours.\n // 3. Update the distances for all the neighbours (In the Priority Queue).\n // Repeat the process till all the connected nodes are visited.\n\n // clear existing info\n// System.out.println(\"Calc SP from vertex:\" + source.name);\n g.resetMinDistance();\n source.minDistance = 0;\n PriorityQueue<Vertex> queue = new PriorityQueue<Vertex>();\n queue.add(source);\n\n while(!queue.isEmpty()){\n Vertex u = queue.poll();\n for(Edge neighbour:u.neighbours){\n// System.out.println(\"Scanning vector: \"+neighbour.target.name);\n Double newDist = u.minDistance+neighbour.weight;\n\n // get new shortest path, empty existing path info\n if(neighbour.target.minDistance>newDist){\n // Remove the node from the queue to update the distance value.\n queue.remove(neighbour.target);\n neighbour.target.minDistance = newDist;\n\n // Take the path visited till now and add the new node.s\n neighbour.target.path = new ArrayList<>(u.path);\n neighbour.target.path.add(u);\n// System.out.println(\"Path\");\n// for (Vertex vv: neighbour.target.path) {\n// System.out.print(vv.name);\n// }\n// System.out.print(\"\\n\");\n\n// System.out.println(\"Paths\");\n neighbour.target.pathCnt = 0;\n neighbour.target.paths = new ArrayList<ArrayList<Vertex>>();\n if (u.paths.size() == 0) {\n ArrayList<Vertex> p = new ArrayList<Vertex>();\n p.add(u);\n neighbour.target.paths.add(p);\n neighbour.target.pathCnt++;\n } else {\n for (ArrayList<Vertex> p : u.paths) {\n ArrayList<Vertex> p1 = new ArrayList<>(p);\n p1.add(u);\n// for (Vertex vv : p1) {\n// System.out.print(vv.name);\n// }\n// System.out.print(\"\\n\");\n neighbour.target.paths.add(p1);\n neighbour.target.pathCnt++;\n }\n }\n\n //Reenter the node with new distance.\n queue.add(neighbour.target);\n }\n // get equal cost path, add into path list\n else if (neighbour.target.minDistance == newDist) {\n queue.remove(neighbour.target);\n for(ArrayList<Vertex> p: u.paths) {\n ArrayList<Vertex> p1 = new ArrayList<>(p);\n p1.add(u);\n neighbour.target.paths.add(p1);\n neighbour.target.pathCnt++;\n }\n queue.add(neighbour.target);\n }\n }\n }\n }", "public static List<GraphEdge<String, String>> shortestPath(Graph<String, String> graph, String src, String dest) {\n // ... implement BFS as described in HW6 ...\n\t Queue<GraphNode<String>> q = new LinkedList<GraphNode<String>>();\n\t \n\t // Each key in m is a visited node\n\t // Each value is a list containing the shortest path from start\n\t Map<GraphNode<String>, List<GraphEdge<String, String>>> m = new HashMap<GraphNode<String>, List<GraphEdge<String, String>>>();\n\t \n\t q.add(graph.getNode(src));\n\t m.put(graph.getNode(src), new ArrayList<GraphEdge<String, String>>());\n\t \n\t //{{Inv: m has a key for every node added to q so far\n\t //\t\t (even those that have since been removed)\n\t //\t The value associated with each key is the shortest path to that node}}\n\t while (!q.isEmpty()) {\n\t\t GraphNode<String> temp = q.remove();\n\t\t if (temp.getData().equals(dest)) {\n\t\t\t return m.get(temp);\n\t\t }\n\t\t \n\t\t Set<GraphEdge<String, String>> set = new TreeSet<GraphEdge<String, String>>();\n\t\t set.addAll(graph.getChildren(temp));\n\t\t \n\t\t for (GraphEdge<String, String> edge : set) {\n\t\t\t if (!m.containsKey(edge.getDestination())) {\n\t\t\t\t List<GraphEdge<String, String>> list = new ArrayList<GraphEdge<String, String>>(m.get(temp));\n\t\t\t\t list.add(edge);\n\t\t\t\t m.put(edge.getDestination(), list);\n\t\t\t\t q.add(edge.getDestination());\n\t\t\t }\n\t\t }\n\t }\n\t \n\t return null;\n }", "@Test\n public void testShortestDistance() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 3);\n Edge<Vertex> e3 = new Edge<>(v1, v3, 2);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n List<Vertex> expectedPath = new ArrayList<>();\n expectedPath.add(v1);\n expectedPath.add(v3);\n assertEquals(expectedPath, g.shortestPath(v1, v3));\n\n assertEquals(6, g.edgeLengthSum());\n }", "int[] bfs(int[][] graph,int source){\n int len=graph.length;\n int shortest_path[]=new int[len];\n int parent[]=new int[len];\n Arrays.fill(shortest_path, Integer.MAX_VALUE/2);\n shortest_path[source]=0;\n Queue<Integer> q=new LinkedList<>();\n q.add(source);\n while (!q.isEmpty()) { \n int u=q.poll();\n for(int v:graph[u]){\n if(shortest_path[v]==Integer.MAX_VALUE/2){\n q.add(v);\n shortest_path[v]=shortest_path[u]+1;\n parent[v]=u;\n }\n }\n }\n return shortest_path;\n }", "@Test\n void testShortestPathDist(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,50);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n assertTrue(Double.compare(45,ga.shortestPathDist(1,4)) == 0);\n assertEquals(0,ga.shortestPathDist(1,1));\n assertEquals(-1,ga.shortestPathDist(1,200));\n }", "private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }", "public InTree<V,E> generalShortestPathFromSource(V source);", "public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}", "public List<PathResult> findShortestPathsToEveryNode(final String rootNode, final Graph graph) {\n final List<String> vertices = graph.getVertices();\n final List<String> visitedVertices = startingVisitedNodes(rootNode);\n final Map<String, DijkstraEntry> table = createInitialTable(rootNode, vertices);\n\n for (int i = 0; i < visitedVertices.size(); i++) {\n final String currentVertex = visitedVertices.get(i);\n final List<String> unvisitedAdjacentVertices = getUnvisitedAdjacentVertices(\n currentVertex,\n graph,\n visitedVertices);\n\n unvisitedAdjacentVertices.forEach(vertex -> {\n final DijkstraEntry previousNodeEntry = table.get(currentVertex);\n\n final Integer cost =\n graph.getWeight(currentVertex, vertex) + previousNodeEntry\n .getShortestDistance();\n\n final DijkstraEntry entry = table.get(vertex);\n final Integer currentShortestDistance = entry.getShortestDistance();\n\n if (Objects.isNull(currentShortestDistance) || cost < currentShortestDistance) {\n final DijkstraEntry updatedEntry = entry.withDistance(cost)\n .withPreviousVertex(currentVertex);\n table.put(vertex, updatedEntry);\n }\n });\n\n final String unvisitedWithSmallestDistance = unvisitedWithSmallestDistance(\n unvisitedAdjacentVertices, table);\n\n if (unvisitedAdjacentVertices.isEmpty()) {\n break;\n }\n visitedVertices.add(unvisitedWithSmallestDistance);\n }\n\n return createPathResultsFromTable(rootNode, table, vertices);\n }", "public static void findShortestPath(char[][] maze) {\n\t\tboolean visited[][] = new boolean[maze.length][maze[0].length]; \n\t\tint srcX = 0, srcY = 0;\n\t\t// find the source\n\t\tfor(int i=0; i<maze.length; i++) {\n\t\t\tfor(int j=0; j<maze[0].length; j++) {\n\t\t\t\tif(maze[i][j] == 's') {\n\t\t\t\t\tsrcX = i; srcY=j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tboolean pe = doGridBFS(maze,visited,srcX,srcY);\n\t\tSystem.out.println(pe);\n\t\t\n\t}", "public static ArrayList<edges<String, Double>> Dijkstra(String CHAR1, String CHAR2, graph<String,Float> g) {\n\t\tPriorityQueue<ArrayList<edges<String, Double>>> active = \n\t\t\tnew PriorityQueue<ArrayList<edges<String, Double>>>(10,new Comparator<ArrayList<edges<String, Double>>>() {\n\t\t\t\tpublic int compare(ArrayList<edges<String, Double>> path1, ArrayList<edges<String, Double>> path2) {\n\t\t\t\t\tedges<String, Double> dest1 = path1.get(path1.size() - 1);\n\t\t\t\t\tedges<String, Double> dest2 = path2.get(path2.size() - 1);\n\t\t\t\t\tif (!(dest1.getLabel().equals(dest2.getLabel())))\n\t\t\t\t\t\treturn dest1.getLabel().compareTo(dest2.getLabel());\n\t\t\t\t\treturn path1.size() - path2.size();\n\t\t\t\t}\n\t\t\t});\n\t\t\tSet<String> known = new HashSet<String>();\n\t\t\tArrayList<edges<String, Double>> begin = new ArrayList<edges<String, Double>>();\n\t\t\tbegin.add(new edges<String, Double>(CHAR1, 0.0));\n\t\t\tactive.add(begin);\t\t\n\t\t\twhile (!active.isEmpty()) {\n\t\t\t\tArrayList<edges<String, Double>> minPath = active.poll();\n\t\t\t\tedges<String, Double> endOfMinPath = minPath.get(minPath.size() - 1);\n\t\t\t\tString minDest = endOfMinPath.getDest();\n\t\t\t\tdouble minCost = endOfMinPath.getLabel();\n\t\t\t\tif (minDest.equals(CHAR2)) {\n\t\t\t\t\treturn minPath;\n\t\t\t\t}\n\t\t\t\tif (known.contains(minDest))\n\t\t\t\t\tcontinue;\n\t\t\t\tSet<edges<String,Float>> children = g.childrenOf(minDest);\n\t\t\t\tfor (edges<String, Float> e : children) {\n\t\t\t\t\tif (!known.contains(e.getDest())) {\n\t\t\t\t\t\tdouble newCost = minCost + e.getLabel();\n\t\t\t\t\t\tArrayList<edges<String, Double>> newPath = new ArrayList<edges<String, Double>>(minPath); \n\t\t\t\t\t\tnewPath.add(new edges<String, Double>(e.getDest(), newCost));\n\t\t\t\t\t\tactive.add(newPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tknown.add(minDest);\n\t\t\t}\n\t\t\treturn null;\n\t}", "private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }", "private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}", "public static void getShortestPath()\r\n\t{\r\n\t\tScanner scan = new Scanner(System.in); //instance for input declared\r\n\t\tSystem.out.print(\"\\nPlease enter the Source node for shortest path: \");\r\n\t\tint src = scan.nextInt() - 1;\r\n\t\twhile(src < 0 || src > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered source node is out of range, please enter again: \"); // Printing error\r\n\t\t\tsrc = scan.nextInt() - 1;\t//re-input source\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.print(\"Please enter the destination node for shortest path: \");\r\n\t\tint dest = scan.nextInt() - 1;\r\n\t\twhile(dest < 0 || dest > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered destination node is out of range, please enter again: \"); // Printing error\r\n\t\t\tdest = scan.nextInt() - 1;\t//re-input destination\r\n\t\t}\r\n\t\t\r\n\t\tconnectNetwork(src, dest, true);\r\n\t}", "public static int Dij(int s , int g){\n PriorityQueue<Edge> pq = new PriorityQueue<>();\n HashSet<Integer> hs = new HashSet<>();\n distance[s]=0;\n pq.add(new Edge(s,0));\n while (!pq.isEmpty()){\n Edge curr = pq.remove();\n if(curr.getto()==g)return distance[g];\n if(!hs.contains(curr.getto())){\n hs.add(curr.getto());\n List<Edge> ll = getNei(curr.getto()) ;\n for(Edge e :ll ){\n if(!hs.contains(e.getto())){\n\n if(distance[e.getto()]>(distance[curr.getto()] +e.getweight())){\n\n distance[e.getto()] = distance[curr.getto()] +e.getweight() ;\n pq.add(new Edge(e.getto(),distance[e.getto()]));\n\n }\n }\n }\n }\n\n }\n return distance[g] ;\n }", "public List<Node> getShortestPath(final Node source, final Node target) {\n if (D[source.id][target.id] == Integer.MAX_VALUE) {\n return new ArrayList<Node>(); // no path\n }\n final List<Node> path = getIntermediatePath(source, target);\n path.add(0, source);\n path.add(target);\n return path;\n }", "public static void dijkstra_function(graph G, int s) throws IOException\n { \t\t\t\t\t// s is the index of the starting vertex\n \t// declare variables\n\tint nVerts, u, v;\n\tint [] dist;\n\n nVerts = G.vertices(); \t\t\t// get number of vertices in the graph class\n\n // initialize array\n dist = new int[nVerts];\n\n for(v=0; v<nVerts; v++) \t\t\t// initializations\n {\n \tdist[v] = 99999; \t\t\t\t// 99999 represents infinity\n\n }// end for\n\n dist[s] = 0;\n\n PriorityQueue Q = new PriorityQueue(dist); \t\t\n\n while(Q.Empty() == 0) \t\t\t// if heap is not empty\n {\n\n u = Q.Delete_root();\n v = G.nextneighbor(u);\n\n while(v != -1) \t\t\t// for each neighbor of u\n {\n \tif(dist[v] > dist[u] + G.edgeLength(u,v)) {\n \t\tdist[v] = dist[u] + G.edgeLength(u,v);\n\t\t\t\tQ.Update(v, dist[v]);\n }\n\n \tv = G.nextneighbor(u); \t// get the next neighbor of u\n\n }// end while\n\n }// end while\n\n System.out.println(\"\"); \t\t\t// display the array dist\n for(int row=0; row<nVerts; row++)\n \t{\n \t\tSystem.out.print(dist[row] + \" \");\n \t \tSystem.out.println(\"\");\n \t}// end for\n\n }", "public int noOfMPaths2Dest(int s,int t,int k){\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n double[] resultPath = new double[intersection];\n LinkedList<Integer>[] parent = new LinkedList[intersection]; //using linked list instead of array to store all the possible parent of an intersection\n\n for (int i = 0; i <intersection ; i++) {\n resultPath[i] = INFINITY;\n parent[i] = new LinkedList<>();\n }\n\n //decrease the distance for the first index\n resultPath[s] = 0;\n\n //add all the vertices to the MinHeap\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,resultPath[i]);\n }\n //while minHeap is not empty\n while(!minHeap.isEmpty()){\n //extract the min\n int extractedVertex = minHeap.extractMin();\n\n if(extractedVertex==t) {\n break;\n }\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n\n double newKey = resultPath[extractedVertex] + edge.weight ;\n double currentKey = resultPath[destination];\n if(currentKey>=newKey){\n minHeap.updateKey(newKey, destination,resultPath[destination]);\n parent[destination].add(extractedVertex);\n resultPath[destination] = newKey;\n }\n }\n }\n }\n int numofPath =0;\n\n //calculate the number of path\n if(parent[t]!=null){\n boolean[] isVisited = new boolean[intersection];\n ArrayList<Integer> pathList = new ArrayList<>();\n pathList.add(t);\n numofPath = findAllPathsUtil(s, t, isVisited, pathList,numofPath,parent); //dfs\n\n }\n return numofPath;\n }", "public ShortestPath(IWeightedGraph<N,E> graph, int startNode) {\n\t\tthis.graph = graph;\n\t\tthis.startNode = startNode;\n\t\tthis.shortestPaths = new double[graph.numberOfNodes()];\n\t\tthis.previousNode = new int[graph.numberOfNodes()];\n\t\tbellmanFord(this.graph, this.startNode);\n\t}", "@Nullable\n private NodeWithCost<V, A> findShortestPath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n PriorityQueue< NodeWithCost<V, A>> frontier = new PriorityQueue<>(61);\n Map<V, NodeWithCost<V, A>> frontierMap = new HashMap<>(61);\n // Size of explored is the expected number of nextArrows that we need to explore.\n Set<V> explored = new HashSet<>(61);\n return doFindShortestPath(start, frontier, frontierMap, goal, explored, graph, costf);\n }", "private GraphPath<V, E> P(\n Graph<V, E> g, GraphPath<V, E> S, GraphPath<V, E> T, V m, V b1, V b2, V b3, V s1, V s2,\n V s3)\n {\n if (s1 == b1) {\n if (b1 == m) {\n List<E> edgeList = new LinkedList<>();\n return new GraphWalk<>(g, s1, b1, edgeList, 0);\n } else\n return null;\n } else {\n if (b1 == m)\n return null;\n if (g.containsEdge(m, b2) || g.containsEdge(m, b3) || g.containsEdge(m, s2)\n || g.containsEdge(m, s3) || S == null || T == null)\n return null;\n if (S.getVertexList().stream().anyMatch(\n t -> g.containsEdge(t, b2) || g.containsEdge(t, b3) || g.containsEdge(t, s2)\n || g.containsEdge(t, s3))\n || T.getVertexList().stream().anyMatch(\n t -> t != b1 && (g.containsEdge(t, b2) || g.containsEdge(t, b3)\n || g.containsEdge(t, s2) || g.containsEdge(t, s3))))\n return null;\n List<V> intersection = intersectGraphPaths(S, T);\n if (intersection.size() != 1 || !intersection.contains(m))\n return null;\n if (S.getVertexList().stream().anyMatch(\n s -> s != m\n && T.getVertexList().stream().anyMatch(t -> t != m && g.containsEdge(s, t))))\n return null;\n List<E> edgeList = new LinkedList<>();\n edgeList.addAll(T.getEdgeList());\n edgeList.addAll(S.getEdgeList());\n double weight = edgeList.stream().mapToDouble(g::getEdgeWeight).sum();\n return new GraphWalk<>(g, b1, s1, edgeList, weight);\n\n }\n }", "int successiveSPMinCostFlow(int d) {\n\t\tSystem.out.println(\"Running Successive Shortest Paths Algorithm:\");\n\t\t mcg = new MinCostGraph(g, source, terminal, capacity, cost);\n\t\tint minCost = mcg.successiveSPMinCostFlow(d);\n\t\tSystem.out.println(\"Flow: \" + mcg.getFlow() + \" Min Cost: \" + minCost);\n\n\t\treturn minCost;\n\t}", "private void findBestPath(){\n\t\t// The method will try to find the best path for every starting point and will use the minimum\n\t\tfor(int start = 0; start < this.getDimension(); start++){\n\t\t\tfindBestPath(start);\t\n\t\t}\t\n\t}", "public static <G extends BaseWeightedGraph<V,E,W>,V,E extends WeightedEdge<V,W>, W extends Number & Comparable<W>> List<E> findShortestPathDouble(G graph, V source, V sink){\r\n\t\t// check graph contains source and sink\r\n\t\tSet<V> vertecies = graph.getVertices();\r\n\t\tif( !(vertecies.contains(source) && vertecies.contains(sink)) ){\r\n\t\t\tthrow new IllegalArgumentException(\"BaseGraph must contain both source and sink\");\r\n\t\t}\r\n\t\t\r\n\t\tPriorityQueue<WeightedPathChain<V,E,W,Double>> pq = new PriorityQueue<WeightedPathChain<V,E,W,Double>>(); \r\n\t\tHashSet<V> checked = new HashSet<V>();\r\n\t\tHashMap<V,WeightedPathChain<V,E,W,Double>> map = new HashMap<V,WeightedPathChain<V,E,W,Double>>();\r\n\t\taddOrUpdate(map,pq,source,Double.valueOf(0));\r\n\t\twhile(!pq.isEmpty()&&!sink.equals(pq.peek().vertex)){\r\n\t\t\tWeightedPathChain<V,E,W,Double> current = pq.poll(); // poll lowest level vertex\r\n\t\t\tchecked.add(current.vertex); // add vertex to checked set\r\n\t\t\tfor (E edge :graph.getOutgoingEdges(current.vertex)){\t// for each outgoing edge \r\n\t\t\t\tif(!checked.contains(edge.getOpposingVertex(current.vertex))){\t\t// if opposing vertex has not been checked \r\n\t\t\t\t\taddOrUpdate(map,\r\n\t\t\t\t\t\t\t\tpq,\r\n\t\t\t\t\t\t\t\tedge.getOpposingVertex(current.vertex),\r\n\t\t\t\t\t\t\t\tDouble.valueOf(map.get(current.vertex).val+edge.getWeight().doubleValue() ) ,\r\n\t\t\t\t\t\t\t\tedge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<V> path = new ArrayList<V>(); // vertex path \r\n\t\tArrayList<E> edgePath = new ArrayList<E>(); // edge path\r\n\t\tboolean run = true; \r\n\t\tif(!pq.isEmpty()&&pq.peek().vertex.equals(sink)) { // \r\n\t\t\tWeightedPathChain<V,E,W,Double> vv = pq.poll();\r\n\t\t\tpath.add(vv.vertex);\r\n\t\t\tedgePath.add(vv.edge);\r\n\t\t\twhile(run) {\r\n\t\t\t\tvv = map.get(vv.edge.getOpposingVertex(vv.vertex));\r\n\t\t\t\tif(vv.vertex.equals(source)) {\r\n\t\t\t\t\trun=false;\r\n\t\t\t\t\tpath.add(vv.vertex);\r\n\t\t\t\t}\r\n\t\t\t\telse {\t\r\n\t\t\t\t\tedgePath.add(vv.edge);\r\n\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return path;\r\n\t\t\r\n\t\tCollections.reverse(edgePath);\r\n\t\treturn edgePath;\r\n\t}", "private void calculateShortestRoute(String strSourceTerminal){\n\t\tshortestTravelTime = new HashMap<>();\n\n //stores parent of every terminal in shortest travel time\n parent = new HashMap<>();\n \n //heap + map data structure\n MinimumHeap<BaggageTerminal> minHeap = new MinimumHeap<>();\n\n //initialize all terminal with infinite distance from source terminal\n for(BaggageTerminal baggageTerminal : graph.getTerminals()){\n minHeap.add(Integer.MAX_VALUE, baggageTerminal);\n }\n \n BaggageTerminal sourceTerminal = graph.getTerminal(strSourceTerminal);\n \n //set distance of source terminal to itself 0\n minHeap.decrease(sourceTerminal, 0);\n\n //put it in map\n shortestTravelTime.put(sourceTerminal, 0);\n\n //source terminal parent is null\n parent.put(sourceTerminal, null);\n\n //iterate till heap is not empty\n while(!minHeap.empty()){\n //get the min value from heap node which has vertex and distance of that vertex from source vertex.\n MinimumHeap<BaggageTerminal>.Node heapNode = minHeap.extractMinNode();\n BaggageTerminal currentTerminal = heapNode.key;\n\n //update shortest distance of current vertex from source vertex\n shortestTravelTime.put(currentTerminal, heapNode.weight);\n\n //iterate through all connections of current terminal\n for(Connection connection : currentTerminal.getConnections()){\n\n //get the adjacent terminal\n BaggageTerminal adjacent = getConnectingTerminal(currentTerminal, connection);\n\n //if heap does not contain adjacent vertex means adjacent vertex already has shortest distance from source vertex\n if(!minHeap.containsData(adjacent)){\n continue;\n }\n\n //add distance of current vertex to edge weight to get distance of adjacent vertex from source vertex\n //when it goes through current vertex\n int newDistance = shortestTravelTime.get(currentTerminal) + connection.getWeight();\n\n //see if this above calculated distance is less than current distance stored for adjacent vertex from source vertex\n if(minHeap.getWeight(adjacent) > newDistance) {\n minHeap.decrease(adjacent, newDistance);\n parent.put(adjacent, currentTerminal);\n }\n }\n }\n return;\n }", "List<List<Node>> findUndirectedPaths(Node s, Node d) {\n\t\tList<List<Node>> paths = new ArrayList<>();\n\t\tpath(s, d, new HashSet<>(), new ArrayList<>(), paths);\n System.out.println(\"Computed paths: \" + paths);\n return paths;\n\t}", "public PuzzleState getStateWithShortestPath();", "private static void simpleDijikstra(final DirectedGraph directedGraph,\n final Map<String, Integer> currentShortestPaths,\n final String start, final Set<String> visitedSet, final String destination) {\n // Terminate when we have visited all the nodes or if our start value isn't in our dijikstra table\n if (containsAndNotNull(currentShortestPaths, start) && visitedSet.size() != currentShortestPaths.keySet().size()) {\n compareDistanceAndReplace(directedGraph, currentShortestPaths, start);\n visitedSet.add(start);\n // Calculate the next current smallest node that hasn't been visited and not infinity\n final Optional<Map.Entry<String, Integer>> optionalSmallest =\n currentShortestPaths.entrySet().stream()\n .filter(node -> !visitedSet.contains(node.getKey()) && node.getValue() != null)\n .min(Comparator.comparingInt(Map.Entry::getValue));\n // Continue to next node if there is one available\n optionalSmallest.ifPresent(smallest -> {\n // No need to continue if the next smallest node is our destination\n if (!smallest.getKey().equals(destination)) {\n simpleDijikstra(directedGraph, currentShortestPaths, smallest.getKey(), visitedSet, destination);\n }\n });\n }\n }", "@Override\r\n\tpublic List<Integer> getShortestPath(int source, int destination, GraphStructure graph) {\r\n\t\tshortestPathList = new ArrayList<Integer>();\r\n\t\tisVisited = new boolean[graph.getNumberOfVertices()];\r\n\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\tdistanceArray[source]=0;\r\n\t\tcalculateShortestDistances(graph, source, destination);\r\n\t\tfor(Integer value : shortestPathList) {\r\n\t\t\tSystem.out.println(value+\" \");\r\n\t\t}\r\n\t\treturn shortestPathList;\r\n\t}", "public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }", "public InTree<V,E> weightedShortestPaths(V source)\n\t\tthrows NegativeWeightEdgeException, DisconnectedGraphException;", "public static RouteDetails findShortestRoute(Graph g, String start, String end) {\n\t\tAlgorithmGraph ag = new AlgorithmGraph(g);\n\t\treturn ag.getShortestRoute(start, end);\n\t}", "static int shortestCellPath(int[][] grid, int sr, int sc, int tr, int tc) {\n\n\n Queue<Pair> queue = new LinkedList<>();\n\n\n boolean visited[][] = new boolean[grid.length][grid[0].length];\n\n\n int dirs[][] = new int[][]{{1,0},{0,1},{-1,0},{0,-1}};\n\n queue.offer(new Pair(sr,sc,0));\n visited[sr][sc] = true;\n\n while(!queue.isEmpty()){\n\n Pair currentNode = queue.poll();\n\n if(currentNode.row == tr && currentNode.col == tc) {\n return currentNode.d;\n }\n\n\n\n\n for(int[] dir : dirs) {\n\n\n int row = currentNode.row + dir[0];\n int col = currentNode.col + dir[1];\n\n if(row >= 0 && row < grid.length && col >= 0 && col < grid[0].length && !visited[row][col] && grid[row][col] == 1) {\n queue.offer(new Pair(row,col,currentNode.d+1));\n visited[row][col] = true;\n }\n }\n\n\n\n }\n\n return -1;\n }", "public static <N,E> ShortestPath<N, E> calculateFor(IWeightedGraph<N, E> g, int startNode){\n\t\treturn new ShortestPath<>(g, startNode);\n\t}", "@Test public void testPublic14() {\n Graph<String> graph= TestGraphs.testGraph2();\n List<String> shortestPath= new ArrayList<String>();\n\n assertEquals(1, graph.Dijkstra(\"apple\", \"banana\", shortestPath));\n assertEquals(\"apple banana\", TestGraphs.listToString(shortestPath));\n\n assertEquals(2, graph.Dijkstra(\"apple\", \"cherry\", shortestPath));\n assertEquals(\"apple banana cherry\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(3, graph.Dijkstra(\"apple\", \"date\", shortestPath));\n assertEquals(\"apple banana cherry date\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(4, graph.Dijkstra(\"apple\", \"elderberry\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(5, graph.Dijkstra(\"apple\", \"fig\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry fig\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(6, graph.Dijkstra(\"apple\", \"guava\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry fig guava\",\n TestGraphs.listToString(shortestPath));\n }", "private static void shortestPath(Map<Integer, DistanceInfo> distanceTable,\n int source, int destination)\n {\n // Backtrack using a stack, using the destination node\n Stack<Integer> stack = new Stack<>();\n stack.push(destination);\n\n // Backtrack by getting the previous node of every node and putting it on the stack.\n // Start at the destination.\n int previousVertex = distanceTable.get(destination).getLastVertex();\n while (previousVertex != -1 && previousVertex != source)\n {\n stack.push(previousVertex);\n previousVertex = distanceTable.get(previousVertex).getLastVertex();\n }\n\n if (previousVertex ==-1)\n {\n System.err.println(\"No path\");\n }\n else\n {\n System.err.println(\"Shortest path: \");\n while (! stack.isEmpty())\n {\n System.err.println(stack.pop());\n }\n }\n }", "public ArrayList<Integer> path2Dest(int s, int t, int k, int method){\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n double[] d = new double[intersection];\n int[] parent = new int[intersection];\n\n for (int i = 0; i <intersection ; i++) {\n d[i] = INFINITY;\n parent[i] = -1;\n }\n d[s] = 0;\n\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,d[i]);\n }\n while(!minHeap.isEmpty()){\n int extractedVertex = minHeap.extractMin();\n\n if(extractedVertex==t) {\n break;\n }\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n double newKey =0;\n double currentKey=0;\n if(method==1) { //method 1\n newKey = d[extractedVertex] + edge.weight;\n currentKey = d[destination];\n }\n else{ //method 2\n newKey = d[extractedVertex] + edge.weight + coor[destination].distTo(coor[t])-coor[extractedVertex].distTo(coor[t]);\n currentKey = d[destination];\n }\n if(currentKey>=newKey){\n if(currentKey==newKey){ //if equal need to compare the value of key\n if(extractedVertex<parent[destination]){\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n else {\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n }\n }\n }\n //trace back the path using parent properties\n ArrayList<Integer> path = new ArrayList<>();\n if(parent[t]!=-1){\n path.add(t);\n while(parent[t]!= s) {\n path.add(0,parent[t]);\n t = parent[t];\n }\n path.add(0,s);\n }\n else\n path = null;\n return path;\n }", "public void findShortestPath() {\r\n\t\t\r\n\t\t//Create a circular array that will store the possible next tiles in the different paths.\r\n\t\tOrderedCircularArray<MapCell> path = new OrderedCircularArray<MapCell>();\r\n\t\t\r\n\t\t//Acquire the starting cell.\r\n\t\tMapCell starting = cityMap.getStart();\r\n\t\t\r\n\t\t//This variable is to be updated continuously with the cell with the shortest distance value in the circular array.\r\n\t\tMapCell current=null;\r\n\t\t\r\n\t\t//This variable is to check if the destination has been reached, which is initially false.\r\n\t\tboolean destination = false;\r\n\t\t\r\n\t\t//Add the starting cell into the circular array, and mark it in the list.\r\n\t\tpath.insert(starting, 0);\r\n\t\t\r\n\t\tstarting.markInList(); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//As long as the circular array isn't empty, and the destination hasn't been reached, run this loop.\r\n\t\t\twhile(!path.isEmpty()&&!destination) {\r\n\t\t\t\t\r\n\t\t\t\t//Take the cell with the shortest distance out of the circular array, and mark it accordingly.\r\n\t\t\t\tcurrent = path.getSmallest();\r\n\t\t\t\tcurrent.markOutList();\r\n\t\t\t\t\r\n\t\t\t\tMapCell next;\r\n\t\t\t\tint distance;\r\n\t\t\t\t\r\n\t\t\t\tif(current.isDestination()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tdestination = true; //If the current cell is the destination, end the loop.\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t\tnext = nextCell(current); //Acquire the next possible neighbour of the current cell.\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Don't run if next is null, meaning there is no other possible neighbour in the path for the current cell.\r\n\t\t\t\t\twhile(next!=null) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = current.getDistanceToStart() + 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//If the distance of the selected neighbouring cell is currently more than 1 more than the current cell's \r\n\t\t\t\t\t\t//distance, update the distance of the neighbouring cell. Then, set the current cell as its predecessor.\r\n\t\t\t\t\t\tif(next.getDistanceToStart()>distance) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tnext.setDistanceToStart(distance);\r\n\t\t\t\t\t\t\tnext.setPredecessor(current);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = next.getDistanceToStart(); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(next.isMarkedInList() && distance<path.getValue(next)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.changeValue(next, distance); //If the neighbouring cell is in the circular array, but with a \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //larger distance value than the new updated distance, change its value.\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if(!next.isMarkedInList()){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.insert(next, distance); //If the neighbouring cell isn't in the circular array, add it in.\r\n\t\t\t\t\t\t\tnext.markInList();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tnext = nextCell(current); //Look for the next possible neighbour, if any.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Catch all the possible exceptions that might be thrown by the method calls. Print the appropriate messages.\r\n\t\t} catch (EmptyListException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidNeighbourIndexException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"The program tried to access an invalid neighbour of a tile.\");\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidDataItemException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage()+\" Path finding execution has stopped.\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//If a path was found, print the number of tiles in the path.\r\n\t\tif(destination) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Number of tiles in path: \" + (current.getDistanceToStart()+1));\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"No path found.\"); //Otherwise, indicate that a path wasn't found.\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public static void exampleGraph() {\n\t\t// create a simple FNSS topology\n\t\tTopology topology = new Topology();\n\t\ttopology.addEdge(\"1\", \"2\", new Edge());\n\t\ttopology.addEdge(\"2\", \"3\", new Edge());\n\t\t\n\t\t// convert to JGraphT\n\t\tGraph<String, Edge> graph = JGraphTConverter.getGraph(topology);\n\t\t\n\t\t// Find shortest paths\n\t\tString source = \"3\";\n\t\tString destination = \"1\";\n\t\tList<Edge> sp = DijkstraShortestPath.findPathBetween(graph, source, destination);\n\t\t\n\t\t// Print results\n\t\tSystem.out.println(\"Shortest path from \" + source + \" to \" + destination + \":\");\n\t\tfor (Edge e : sp) {\n\t\t\tSystem.out.println(graph.getEdgeSource(e) + \" -> \" + graph.getEdgeTarget(e));\n\t\t}\n\t}", "public ArrayList<String> shortestPath(String u, String v)\n {\n ArrayList<String> path = new ArrayList<>();\n HashMap<String, Boolean> flag = new HashMap<>();\n HashMap<String, String> prev = new HashMap<>();\n\n Queue<GraphVertex> queue = new LinkedList<>();\n HashMap<String, Boolean> visited = new HashMap<>();\n\n GraphVertex src = graphVertexHashMap.get(u);\n flag.put(src.getVertexName(), true);\n queue.add(src);\n visited.put(src.getVertexName(), true);\n\n while(!queue.isEmpty()){\n GraphVertex node = queue.poll();\n\n HashMap<String, GraphVertex> edges = node.getOutDegrees();\n Iterator it = edges.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry pair = (Map.Entry)it.next();\n if(flag.get(pair.getKey()) == null || flag.get(pair.getKey()) == false){\n String vertex = (String)pair.getKey();\n flag.put(vertex, true);\n prev.put(vertex, node.getVertexName());\n queue.add(edges.get(pair.getKey()));\n }\n }\n\n }\n path = backTrackPath(prev, u, v);\n return path;\n }", "private void buildPath( PriorityQueue<SearchNode<T>> nodes ) {\n\t\tNode<T> v;\n\t\tSearchNode<T> su, sv;\n\t\tWeightedEdge<T> we;\n\n\t\twhile ( ! nodes.isEmpty() ) { // while Q is not empty:\n\t\t\tsu = nodes.poll(); // u = Q.min()\n\t\t\tif ( su.isUnreachable() ) { break; } //\n\n\t\t\tfor ( Edge<T> edge : su.getEdges() ) { // for each\n\t\t\t\twe = (WeightedEdge<T>)edge; //\n\t\t\t\tv = we.getOtherNode( su.getNode() ); // neighbor v of u\n\t\t\t\tsv = getSearchNode( v ); //\n\t\t\t\tint uToV = su.getDistance() + we.getWeight();// alt = dist[u] + length(u, v)\n\t\t\t\tif (uToV < sv.getDistance() ) { // if alt < dist[v]\n\t\t\t\t\tnodes.remove( sv ); // ( force recalc )\n\t\t\t\t\tsv.setDistance( uToV ); // dist[v] <- alt\n\t\t\t\t\tsv.setPrevious( su.getNode() ); // prev[v] <- u\n\t\t\t\t\tnodes.add( sv ); // Q.decrease_priority(v, alt) (dist recalc)\n\t\t\t\t} // end if\n\t\t\t} // end for\n\t\t} // end while\n\t}", "public int doDijkstras(String startVertex, String endVertex, ArrayList<String> shortestPath)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertex) || !this.dataMap.containsKey(endVertex))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSet<String> visited = new HashSet<String>();\r\n\t\t\r\n\t\tPriorityQueue<Vertex> minDist = new PriorityQueue<Vertex>();\r\n\t\t\r\n\t\tVertex firstV = new Vertex(startVertex,startVertex,0);\r\n\t\tminDist.add(firstV);\r\n\t\t\r\n\t\tfor(String V : this.adjacencyMap.get(startVertex).keySet())\r\n\t\t{\r\n\t\t\tminDist.add(new Vertex(V,startVertex,this.getCost(startVertex, V)));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//map of vertexName --> VertexObject\r\n\t\tHashMap<String, Vertex> mapV = new HashMap<String,Vertex>();\r\n\t\tmapV.put(startVertex, firstV);\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Init keys-->costs\r\n\t\t */\r\n\t\tfor(String key : this.getVertices())\r\n\t\t{\r\n\t\t\tif(key.equals(startVertex))\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,0));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,Integer.MAX_VALUE));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\t * Init List for shortest path\r\n\t\t */\r\n\t\tLinkedList<String> list = new LinkedList<String>();\r\n\t\tlist.add(startVertex);\r\n\r\n\t\tHashMap<String,List<String>> path = new HashMap<String,List<String>>();\r\n\t\tpath.put(startVertex, list);\r\n\t\t\r\n\t\twhile(!minDist.isEmpty())\r\n\t\t{\r\n\t\t\tVertex node = minDist.poll();\r\n\t\t\tString V = node.current;\r\n\t\t\tint minimum = node.cost;\r\n\t\t\tSystem.out.println(minDist.toString());\r\n\t\t\t\r\n\t\t\t\tvisited.add(V);\r\n\t\t\t\t\r\n\t\t\t\tTreeSet<String> adj = new TreeSet<String>(this.adjacencyMap.get(V).keySet());\r\n\t\t\t\t\r\n\t\t\t\tfor(String successor : adj)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!visited.contains(successor) && !V.equals(successor))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint newCost = this.getCost(V, successor)+minimum;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(newCost < mapV.get(successor).cost)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tminDist.remove(mapV.get(successor));\r\n\t\t\t\t\t\t\t\tminDist.add(new Vertex(successor,V,newCost));\r\n\t\t\t\t\t\t\t\tmapV.put(successor, new Vertex(successor,V,newCost));\r\n\r\n\t\t\t\t\t\t\t\tLinkedList<String> newList = new LinkedList<String>(path.get(V));\r\n\t\t\t\t\t\t\t\tnewList.add(successor);\r\n\t\t\t\t\t\t\t\tpath.put(successor, newList);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tint smallestPath = mapV.get(endVertex).cost == Integer.MAX_VALUE ? -1 : mapV.get(endVertex).cost;\r\n\t\t\r\n\t\tif(smallestPath == -1)\r\n\t\t{\r\n\t\t\tshortestPath.add(\"None\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(String node : path.get(endVertex))\r\n\t\t\t{\r\n\t\t\t\tshortestPath.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn smallestPath;\r\n\t}", "public Path shortestPath(Vertex a, Vertex b) {\n // If a or b aren't present in the set of vertices throw an exception\n if (!myGraph.containsKey(b) || !myGraph.containsKey(a)) {\n throw new IllegalArgumentException(\"One of the vertices isn't valid\");\n }\n /* Create a map of Vertices to VertexInfos. Fill it with VertexInfos for all\n vertices that each have no previous vertex and and a cost of INFINITY */\n Map<Vertex, VertexInfo> vertInfos = new HashMap<Vertex, VertexInfo>();\n for (Vertex v : vertices()) {\n vertInfos.put(v, new VertexInfo(v, null, INFINITY));\n }\n /* Create a PriorityQueue for VertexInfos */\n PriorityQueue<VertexInfo> viQueue = new PriorityQueue<VertexInfo>();\n /* Create a VertexInfo for the start Vertex 'a' with a cost of 0. This uses a copy of Vertex a&b for immutability */\n Vertex copyA = new Vertex(a.getLabel());\n Vertex copyB = new Vertex(b.getLabel());\n\n VertexInfo vi_a = new VertexInfo(copyA, null, 0);\n /* Add VerxtexInfo for a to PQ and map it to it's VertexInfo */\n viQueue.add(vi_a);\n vertInfos.put(a, vi_a);\n while(!viQueue.isEmpty()) {\n /* Remove the VertexInfo with lowest cost */\n Vertex curr = viQueue.poll().getVertex();\n /* Check all adjacent Vertices of curr Vertex */\n for (Vertex v : adjacentVertices(curr)) {\n /* Calculate cost to get to v through curr */\n int cost = vertInfos.get(curr).getCost() + edgeCost(curr, v);\n /* If cost through curr is lower than previous */\n if (cost < vertInfos.get(v).getCost()) {\n /* Remove v's VertexInfo from PQ */\n viQueue.remove(vertInfos.get(v));\n /* Overwrite previous value of v in map\n Add updated VerexInfo to PQ */\n VertexInfo vi = new VertexInfo(v, curr, cost);\n vertInfos.put(v,vi);\n viQueue.add(vi);\n }\n }\n }\n /* Create ArrayList for path */\n List<Vertex> path = new ArrayList<Vertex>();\n \n /* Add each vertex and it's previous vertex to path until a null vertex is reached */\n for (Vertex vert = copyB; vert != null; vert = vertInfos.get(vert).getPrev()) {\n path.add(vert);\n }\n\n /* Reverse order of path */ \n Collections.reverse(path);\n /* Create new Path object with corresponding parameters */\n if(path.contains(copyA)){\n Path pathToB = new Path(path, vertInfos.get(copyB).getCost());\n return pathToB;\n } else {\n return null;\n }\n }", "@Override\r\n public List<node_info> shortestPath(int src, int dest) {\r\n double i = shortestPathDist(src, dest);\r\n double j, k, s, mark = 1;\r\n ArrayList<node_info> Rlist = new ArrayList<>();\r\n ArrayList<node_info> Llist = new ArrayList<>();\r\n Rlist.clear();\r\n Llist.clear();\r\n j = i;\r\n for (node_info curr : this.Graph.getV()) {\r\n curr.setInfo(\"clear\");\r\n }\r\n this.Graph.getNode(src).setInfo(\"tmp\");\r\n Rlist.add(this.Graph.getNode(dest));\r\n node_info nd = this.Graph.getNode(dest);\r\n node_info temp = this.Graph.getNode(dest);\r\n while (j != 0 && j > 0) {\r\n for (node_info curr0 : this.Graph.getV(nd.getKey())) {\r\n if (curr0.getInfo() != null) {\r\n temp = curr0;\r\n k = this.Graph.getEdge(nd.getKey(), curr0.getKey());\r\n s = j - k;\r\n if ((s - curr0.getTag() < 0.001 && s - curr0.getTag() > -0.001) && nd.getInfo() != null) {\r\n Rlist.add(curr0);\r\n j = curr0.getTag();\r\n curr0.setInfo(\"tmp\");\r\n mark = 1;\r\n nd = curr0;\r\n }\r\n }\r\n }\r\n if (mark == 0) {\r\n i = j;\r\n temp.setInfo(null);\r\n Rlist.clear();\r\n Rlist.add(this.Graph.getNode(dest));\r\n mark = 1;\r\n }\r\n mark = 0;\r\n }\r\n for (int t = (Rlist.size() - 1); t >= 0; t--) {\r\n Llist.add(Rlist.get(t));\r\n }\r\n return Llist;\r\n }", "public List<Eventable> getShortestPath(StateVertex start, StateVertex end) {\n\t\treturn DijkstraShortestPath.findPathBetween(sfg, start, end);\n\t}", "public static <V> Dictionary<V, DijkstraResult<V>> getShortestPathDijkstra(Graph<V> graph, V value) {\n V[] vertices = graph.getValuesAsArray();\n double[][] matriz = graph.getGraphStructureAsMatrix();\n\n double[] distancias = new double[vertices.length];\n V[] camino = (V[]) new Object[vertices.length];\n int pos = buscarPosicion(value, vertices);\n\n for (int x = 0; x < vertices.length; x++) { // Se llenan los arreglos con la informacion de sus adyacentes.\n if (pos == x) {\n distancias[x] = 0;\n camino[x] = null;\n } else {\n if (matriz[pos][x] == -1) {\n distancias[x] = Integer.MAX_VALUE - 1;\n camino[x] = vertices[pos];\n } else {\n distancias[x] = matriz[pos][x];\n camino[x] = vertices[pos];\n }\n }\n }\n\n Set<V> revisados = new LinkedListSet<>();\n revisados.put(value);\n while (revisados.size() < vertices.length) {\n double menor = Integer.MAX_VALUE;\n V actual = null;\n for (int x = 0; x < vertices.length; x++) {\n if (distancias[x] < menor) {\n if (!revisados.isMember(vertices[x])) {\n menor = distancias[x];\n actual = vertices[x];\n }\n }\n }\n\n pos = buscarPosicion(actual, vertices);\n for (int x = 0; x < vertices.length; x++) { // Se recorre la matriz para buscar adyacencias.\n if (matriz[pos][x] != -1) { // Si existe arist\n if (menor + matriz[pos][x] < distancias[x]) {\n distancias[x] = menor + matriz[pos][x];\n camino[x] = actual;\n }\n }\n }\n revisados.put(actual);\n }\n Dictionary<V, DijkstraResult<V>> diccionario = new Hashtable<>();\n for (int x = 0; x < vertices.length; x++) {\n DijkstraResult<V> aux = new DijkstraResult<>(vertices[x], camino[x], distancias[x]);\n diccionario.put(vertices[x], aux);\n }\n return diccionario;\n }", "public Iterable<Vertex> findShortestPath(Vertex v1, Vertex v2){\n\t\treturn null;\n\t}", "@Test\n public void testShortestDistance2() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v1, v3, 3);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n List<Vertex> expectedPath = new ArrayList<>();\n expectedPath.add(v1);\n expectedPath.add(v2);\n expectedPath.add(v3);\n\n assertTrue(g.edge(e1));\n assertTrue(g.vertex(v1));\n\n v1.updateName(\"test\");\n assertEquals(\"test\", v1.name());\n\n assertEquals(expectedPath, g.shortestPath(v1, v3));\n }", "void dijkstra(int graph[][], int src) {\n int dist[] = new int[V]; // The output array. dist[i] will hold\n // the shortest distance from src to i\n\n // sptSet[i] will true if vertex i is included in shortest\n Boolean sptSet[] = new Boolean[V];\n\n for (int i = 0; i < V; i++) {\n dist[i] = Integer.MAX_VALUE;\n sptSet[i] = false;\n }\n\n dist[src] = 0;\n\n // Find shortest path for all vertices\n for (int count = 0; count < V-1; count++) {\n\n int u = minDistance(dist, sptSet);\n\n // Mark the picked vertex as processed\n sptSet[u] = true;\n\n // Update dist value of the adjacent vertices of the\n // picked vertex.\n for (int v = 0; v < V; v++)\n\n\n if (!sptSet[v] && graph[u][v]!=0 &&\n dist[u] != Integer.MAX_VALUE &&\n dist[u]+graph[u][v] < dist[v])\n dist[v] = dist[u] + graph[u][v];\n }\n\n printSolution(dist, V);\n }", "public _AcyclicSP(_EdgeWeightedDigraph G, int s) {\n edgeTo = new _DirectedEdge[G.V()];\n distTo = new double[G.V()];\n for (int v = 0; v < G.V(); v++) {\n distTo[v] = Double.POSITIVE_INFINITY;\n }\n // Topological top = new Topological(G);\n }", "public static Vector<Edge> computeMinimumSpanningTreeNaive(Graph g) {\r\n\t\t\r\n\t\t//minimum spanning tree\r\n\t\tVector<Edge> mst = new Vector<Edge>();\r\n\t\t\r\n\t\t//defining X\r\n\t\tint qntNodes = g.getNodes().length;\r\n\t\tbelongsToX = new boolean[qntNodes];\r\n\t\t\r\n\t\t//initializing X\r\n\t\tbelongsToX[0] = true;\r\n\t\t\r\n\t\t//main loop\r\n\t\tfor(int i = 1; i < qntNodes; i++){\r\n\t\t\tEdge min = null;\r\n\t\t\t\r\n\t\t\t//find minimum edge that crosses the frontier\r\n\t\t\tfor(Edge e : g.getEdges()){\r\n\t\t\t\tif(min == null || e.cost < min.cost){ // e is better than minimum\r\n\t\t\t\t\tif((belongsToX[e.n1.number] && !belongsToX[e.n2.number]) || (!belongsToX[e.n1.number] && belongsToX[e.n2.number])){ //e is in the frontier\r\n\t\t\t\t\t\tmin = e;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add new node to X\r\n\t\t\tNode newNode = min.n1;\r\n\t\t\tif(belongsToX[min.n1.number] && !belongsToX[min.n2.number]){\r\n\t\t\t\tnewNode = min.n2;\r\n\t\t\t}\r\n\t\t\tbelongsToX[newNode.number] = true;\r\n\t\t\t\r\n\t\t\t//add minimum edge to tree\r\n\t\t\tmst.add(min);\r\n\t\t}\r\n\t\t\r\n\t\treturn mst;\r\n\t}", "public DijkstraSP(EdgeWeightedDigraph G, int s, Map<Integer, Site> siteMap) {\n \tthis.G = G;\n \tthis.siteMap = siteMap;\n distTo = new double[G.V()];\n edgeTo = new SiteEdge[G.V()];\n for (int v = 0; v < G.V(); v++)\n distTo[v] = Double.POSITIVE_INFINITY;\n distTo[s] = 0.0;\n\n // relax vertices in order of distance from s\n pq = new IndexMinPQ<Double>(G.V());\n pq.insert(s, distTo[s]);\n while (!pq.isEmpty()) {\n int v = pq.delMin();\n for (SiteEdge e : G.adj(v)){\n relax(e);\n }\n }\n }", "private static void disjkstraAlgorithm(Node sourceNode, GraphBuilder graph){\n PriorityQueue<Node> smallestDisQueue = new PriorityQueue<>(graph.nodeArr.size(), new Comparator<Node>() {\n @Override\n public int compare(Node first, Node sec) {\n if(first.distance == Integer.MAX_VALUE && sec.distance == Integer.MAX_VALUE){\n return 0;\n }\n else if(first.distance == Integer.MAX_VALUE && sec.distance != Integer.MAX_VALUE){\n return 1;\n } else if(first.distance != Integer.MAX_VALUE && sec.distance == Integer.MAX_VALUE){\n return -1;\n }\n else\n return (int) (first.distance - sec.distance);\n }\n });\n\n smallestDisQueue.add(sourceNode); //add the node to the queue\n\n // until all vertices are know get the vertex with smallest distance\n\n while(!smallestDisQueue.isEmpty()) {\n\n Node currNode = smallestDisQueue.poll();\n// System.out.println(\"Curr: \");\n// System.out.println(currNode);\n if(currNode.known)\n continue; //do nothing if the currNode is known\n\n currNode.known = true; // otherwise, set it to be known\n\n for(Edge connectedEdge : currNode.connectingEdges){\n Node nextNode = connectedEdge.head;\n if(!nextNode.known){ // Visit all neighbors that are unknown\n\n long weight = connectedEdge.weight;\n if(currNode.distance == Integer.MAX_VALUE){\n continue;\n }\n else if(nextNode.distance == Integer.MAX_VALUE && currNode.distance == Integer.MAX_VALUE) {\n continue;\n }\n\n else if(nextNode.distance> weight + currNode.distance){//Update their distance and path variable\n smallestDisQueue.remove(nextNode); //remove it from the queue\n nextNode.distance = weight + currNode.distance;\n\n smallestDisQueue.add(nextNode); //add it again to the queue\n nextNode.pathFromSouce = currNode;\n\n// System.out.println(\"Next: \");\n// System.out.println(nextNode);\n }\n }\n }\n// System.out.println(\"/////////////\");\n }\n }", "private static void findShortestPath(ArrayList<WeightedEdge> edges, int start, int dest, int nNodes) {\n int costs[] = new int[nNodes];\n int parents[] = new int[nNodes];\n boolean doneWithNode[] = new boolean[nNodes];\n\n // cost[i] has the cost of getting to node number i or is UNKNOWN if no cost figure out yet.\n // parent[i] contains the parent (or the way) we got to node i.\n // done[i] is true if we've already worked on all the children of node i.\n\n // Initialize the arrays.\n for (int i = 0; i<nNodes; i++) {\n costs[i] = UNKNOWN;\n parents[i] = UNKNOWN;\n doneWithNode[i] = false;\n }\n\n int node = start; // This is the node we are working on. Let's start with start node.\n costs[node] = 0; // The cost of getting to the start node is 0!\n\n // While not done processing all the nodes...\n\n // Loop through all the edges (edges array list).\n // Skip those edges whose source is doesn't match the node we're working on.\n\n // For edge (that has source of current node) figure out potential to\n // get it. (How much does it cost to get to node we're on? Add to\n // that the cost of the edge. That's the new price to set to dest of edge.\n\n // Is that a new low cost for that dest edge node?\n // Or is the dest edge node cost currently UNKNOWN? That means we have no cost.\n // If so, store the cost. Store the parent.\n\n // Once done with all the edges, mark the current node as\n // done being processed.\n doneWithNode[node] = true;\n\n // Get next node to work on.\n node = getLowestCostUnprocessedNode(costs, doneWithNode);\n\n // Done with while loop\n\n for (int i=0; i<parents.length; i++) {\n System.out.println(\"Node: \" + i + \" Cost: \" + costs[i] + \" Backtrace Parent: \" + parents[i]);\n }\n\n backtrace(dest, parents);\n }", "public void shortestPaths(int source) {\n\n\t\tlong start = 0;\n\t\tlong stop;\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tedgeList[v] = new Edge(vertexList[v].id, rand, 5000);\n\t\t}\n\t\t// creating object of fibonacci\n\t\tFHeap pq = new FHeap();\n\t\t// creating a map for checking\n\t\tMap<Integer, FHeap.Node> check = new HashMap<Integer, FHeap.Node>();\n\t\t// storing the mst costs\n\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tcheck.put(vertexList[v].id,\n\t\t\t\t\tpq.enqueue(vertexList[v].id, Double.POSITIVE_INFINITY));\n\t\t}\n\t\tstart = System.currentTimeMillis();\n\t\t// allot cost 0 to initial node\n\t\tpq.decreaseKey(check.get(vertexList[source].id), 0.0);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\t// take the current node and get its minimum cost\n\t\t\tFHeap.Node current = pq.dequeueMin();\n\n\t\t\t// store the values in the table\n\t\t\tresult.put(current.getValue(), current.getCost());\n\n\t\t\t// update the costs\n\t\t\tfor (Neighbor nbr = vertexList[current.getValue()].adjList; nbr != null; nbr = nbr.next) {\n\n\t\t\t\t// edge is not added if shortest cost is known\n\t\t\t\tif (result.containsKey(vertexList[nbr.vertexNumber].id))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// update cost to shortest\n\t\t\t\tFHeap.Node finalCost = check\n\t\t\t\t\t\t.get(vertexList[nbr.vertexNumber].id);\n\t\t\t\tif (nbr.weight < finalCost.getCost())\n\t\t\t\t\tpq.decreaseKey(finalCost, nbr.weight);\n\t\t\t}\n\t\t}\n\t\tstop = System.currentTimeMillis();\n\t\t// computing the time\n\t\ttime = stop - start;\n\n\t\t// calculate the MST cost\n\t\tfor (int i = 0; i < vertexList.length; i++) {\n\t\t\tsumHeapCost = (int) (sumHeapCost + result.get(i));\n\t\t}\n\t\t// for printing in case of input from file in fibonacci mode\n\t\n\t\t// System.out.println(sumHeapCost);\n\t}", "public double shortestPathDist(int src, int dest);", "public static int p413ComputeShortestPathNumber(Vertex start, Vertex end){\n\t Queue<Vertex> queue=new LinkedList<Vertex>();\n\t Map<Vertex, Status> statusMap=new HashMap<Vertex, Status>();\n\t Map<Vertex, Integer> levelMap=new HashMap<Vertex, Integer>();\n\t List<List<Vertex>> allLevelList=new LinkedList<List<Vertex>>();\n\t \n\t queue.offer(start);\n\t statusMap.put(start, Status.Queued);\n\t levelMap.put(start, 0);\n\t \n\t Vertex vertex;\n\t int lastLevel=-1;\n\t List<Vertex> levelList = null;\n\t\twhile ((vertex = queue.poll()) != null) {\n\t\t\tint currentLevel = levelMap.get(vertex);\n\n\t\t\tif (currentLevel != lastLevel) {\n\t\t\t\tlastLevel = currentLevel;\n\t\t\t\tlevelList = new LinkedList<Vertex>();\n\n\t\t\t\tallLevelList.add(levelList);\n\t\t\t}\n\n\t\t\tlevelList.add(vertex);\n\n\t\t\tif (vertex.equals(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tSet<Vertex> adjacentVertexes = vertex.getAdjacentVertexes();\n\t\t\tfor (Iterator iterator = adjacentVertexes.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex adjacent = (Vertex) iterator.next();\n\n\t\t\t\tif (statusMap.get(adjacent) == null) {\n\t\t\t\t\tqueue.offer(adjacent);\n\t\t\t\t\tstatusMap.put(adjacent, Status.Queued);\n\t\t\t\t\tlevelMap.put(adjacent, currentLevel + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t \n\t int max=Integer.MIN_VALUE;\n\t List<Vertex> targetList=new LinkedList<Vertex>();\n\t targetList.add(end);\n\t for(int index=lastLevel-1;index>0;index--){\n\t\t List<Vertex> lastLevelList = allLevelList.get(index);\n\t\t List<Vertex> tmpList=new LinkedList<Vertex>();\n\n\t\t int count=0;\n\t\t for (Iterator iterator = lastLevelList.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex lastLevelVertex = (Vertex) iterator.next();\n\t\t\t\tfor (Iterator iterator2 = targetList.iterator(); iterator2.hasNext();) {\n\t\t\t\t\tVertex vertex2 = (Vertex) iterator2.next();\n\t\t\t\t\tif(lastLevelVertex.getAdjacentVertexes().contains(vertex2)){\n\t\t\t\t\t count++;\n\t\t\t\t\t tmpList.add(lastLevelVertex);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t }\n\t\t \n\t\t targetList=tmpList;\n\t\t \n\t\t if(count>max){\n\t\t \tmax=count;\n\t\t }\n\t }\n\t \n\t return max;\n\t}" ]
[ "0.75900316", "0.720134", "0.7116597", "0.70204043", "0.6943207", "0.69334996", "0.6922784", "0.6906309", "0.68914455", "0.6844251", "0.68337315", "0.68252736", "0.6819576", "0.68194765", "0.67948854", "0.6789131", "0.67884713", "0.67851627", "0.6735233", "0.67329115", "0.67141026", "0.67018837", "0.67008907", "0.6700659", "0.66951764", "0.6672702", "0.6648488", "0.6641817", "0.66413695", "0.66328", "0.6621769", "0.661232", "0.6602023", "0.65737927", "0.6517045", "0.6508187", "0.64728755", "0.6471877", "0.64654887", "0.6463496", "0.6462553", "0.6458967", "0.6450727", "0.64486164", "0.64465237", "0.64356446", "0.64355075", "0.6431936", "0.6430402", "0.64254147", "0.64208144", "0.6382949", "0.6379812", "0.6379227", "0.6377931", "0.63761795", "0.6375283", "0.6373347", "0.6365122", "0.63522893", "0.6337935", "0.6331696", "0.63255286", "0.6310953", "0.63095444", "0.6300121", "0.6285994", "0.62590843", "0.62587124", "0.62571037", "0.6252705", "0.62524945", "0.6250027", "0.62477815", "0.6243526", "0.624141", "0.62320036", "0.622894", "0.6205235", "0.62050486", "0.6187065", "0.6182984", "0.61814874", "0.6175593", "0.6138631", "0.61333764", "0.6121725", "0.6108243", "0.6107289", "0.610034", "0.6099375", "0.60984546", "0.6081761", "0.60739607", "0.6069453", "0.60651875", "0.60444295", "0.6029562", "0.60276884", "0.6022049", "0.6017821" ]
0.0
-1
length of shortest path from s to v
double distTo(int v) { return distTo[v]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int length(int v, int w){\n shortestPath(v,w);\n return minPath;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\r\n for (Integer vTmp : v) {\r\n if (vTmp < 0 || vTmp >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n }\r\n for (Integer wTmp : w) {\r\n if (wTmp < 0 || wTmp >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n }\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n shortestDist = (shortestDist <= bfdp1.distTo(i) + bfdp2.distTo(i)) ? shortestDist: bfdp1.distTo(i) + bfdp2.distTo(i);\r\n }\r\n }\r\n return (shortestDist == Integer.MAX_VALUE) ? -1 : shortestDist;\r\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n int shortestPath = -1;\n Deque<Integer> ancestors = new ArrayDeque<>();\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer integer : ancestors) {\n int path = bfsV.distTo(integer) + bfsW.distTo(integer);\n if (shortestPath == -1 || path < shortestPath) {\n shortestPath = path;\n }\n }\n return shortestPath;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w){\n if(v == null || w == null)\n throw new NullPointerException(\"null arguments\");\n shortestPath(v,w);\n return minPath;\n }", "public int length(int v, int w) {\r\n if (v < 0 || w < 0 || v >= G.V() || w >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n shortestDist = (shortestDist <= bfdp1.distTo(i) + bfdp2.distTo(i)) ? shortestDist : bfdp1.distTo(i) + bfdp2.distTo(i);\r\n }\r\n }\r\n return (shortestDist == Integer.MAX_VALUE) ? -1: shortestDist;\r\n }", "public int length(int v, int w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n int shortestPath = -1;\n Deque<Integer> ancestors = new ArrayDeque<>();\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer integer : ancestors) {\n int path = bfsV.distTo(integer) + bfsW.distTo(integer);\n if (shortestPath == -1 || path < shortestPath) {\n shortestPath = path;\n }\n }\n return shortestPath;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) {\n throw new NullPointerException();\n }\n BreadthFirstDirectedPaths bfdpv = new BreadthFirstDirectedPaths(g, v);\n BreadthFirstDirectedPaths bfdpw = new BreadthFirstDirectedPaths(g, w);\n int anc = -1;\n int minLen = Integer.MAX_VALUE;\n for (int x = 0; x < g.V(); x++) {\n if (bfdpv.hasPathTo(x) && bfdpw.hasPathTo(x)) {\n int len = bfdpv.distTo(x) + bfdpw.distTo(x);\n if (len < minLen) {\n minLen = len;\n anc = x;\n }\n }\n }\n if (anc == -1) minLen = -1;\n return minLen;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n int min = Integer.MAX_VALUE;\n for (int i = 0; i < digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i) && bfsV.distTo(i) + bfsW.distTo(i) < min) {\n min = bfsV.distTo(i) + bfsW.distTo(i);\n }\n }\n return min == Integer.MAX_VALUE ? -1 : min;\n }", "public int length(int v, int w) {\n BreadthFirstDirectedPaths bfdpv = new BreadthFirstDirectedPaths(g, v);\n BreadthFirstDirectedPaths bfdpw = new BreadthFirstDirectedPaths(g, w);\n int anc = -1;\n int minLen = Integer.MAX_VALUE;\n for (int x = 0; x < g.V(); x++) {\n if (bfdpv.hasPathTo(x) && bfdpw.hasPathTo(x)) {\n int len = bfdpv.distTo(x) + bfdpw.distTo(x);\n if (len < minLen) {\n minLen = len;\n anc = x;\n }\n }\n }\n if (anc == -1) minLen = -1;\n return minLen;\n }", "public int length(int v, int w) {\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n int min = Integer.MAX_VALUE;\n for (int i = 0; i < digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i) && bfsV.distTo(i) + bfsW.distTo(i) < min) {\n min = bfsV.distTo(i) + bfsW.distTo(i);\n }\n }\n return min == Integer.MAX_VALUE ? -1 : min;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n BreadthFirstDirectedPaths bfdV = new BreadthFirstDirectedPaths(G, v);\n BreadthFirstDirectedPaths bfdW = new BreadthFirstDirectedPaths(G, w);\n int distance = Integer.MAX_VALUE;\n int commonAncestor = -1;\n for (int i = 0; i < G.V(); i++) {\n if (bfdV.hasPathTo(i) && bfdW.hasPathTo(i)) {\n int local = bfdV.distTo(i) + bfdW.distTo(i);\n if (local < distance) {\n distance = local;\n commonAncestor = i;\n }\n }\n }\n if (commonAncestor == -1) return commonAncestor;\n else return bfdV.distTo(commonAncestor) + bfdW.distTo(commonAncestor);\n }", "public int length(int v, int w){\n\t BreadthFirstDirectedPaths BFSv =new BreadthFirstDirectedPaths(D,v);\n\t BreadthFirstDirectedPaths BFSw =new BreadthFirstDirectedPaths(D,w);\n\t \n\t int distance = Integer.MAX_VALUE;\n\t \n\t for (int vertex = 0 ; vertex < D.V();vertex++)\n\t\t if ((BFSv.hasPathTo(vertex))\n\t\t\t\t &&(BFSw.hasPathTo(vertex))\n\t\t\t\t &&(BFSv.distTo(vertex)+BFSw.distTo(vertex))<distance)\n\t\t {\n\t\t\t distance = BFSv.distTo(vertex)+BFSw.distTo(vertex);\n\t\t }\n\t if (distance != Integer.MAX_VALUE)\n\t\t return distance;\n\t else\n\t\t return -1;\n }", "public int length(int v, int w) {\n BreadthFirstDirectedPaths path1 = new BreadthFirstDirectedPaths(wordGraph, v);\n BreadthFirstDirectedPaths path2 = new BreadthFirstDirectedPaths(wordGraph, w);\n int len = -1;\n for (int i = 0; i < wordGraph.V(); i++) {\n if (path1.hasPathTo(i) && path2.hasPathTo(i)) {\n if (len == -1) {\n len = path1.distTo(i) + path2.distTo(i);\n }\n if (path1.distTo(i) + path2.distTo(i) < len) {\n len = path1.distTo(i) + path2.distTo(i);\n }\n }\n }\n return len;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n\t\tif (v == null || w == null)\n\t\t\tthrow new IllegalArgumentException();\n\t\tBreadthFirstDirectedPaths bfsv = new BreadthFirstDirectedPaths(G, v);\n\t\tBreadthFirstDirectedPaths bfsw = new BreadthFirstDirectedPaths(G, w);\n\t\tint dv, dw, dsap = INFINITY;\n\t\tfor(int vertex = 0; vertex < G.V(); vertex++) {\n\t\t\tdv = bfsv.distTo(vertex);\n\t\t\tdw = bfsw.distTo(vertex);\n\t\t\tif (dv != INFINITY && dw != INFINITY && (dv + dw < dsap)) {\n\t\t\t\tdsap = dv + dw;\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn (dsap == INFINITY) ? -1 : dsap;\n\t}", "public int length(int v, int w) {\n\t\tBreadthFirstDirectedPaths bfsv = new BreadthFirstDirectedPaths(G, v);\n\t\tBreadthFirstDirectedPaths bfsw = new BreadthFirstDirectedPaths(G, w);\n\t\tint dv, dw, dsap = INFINITY;\n\t\tfor(int vertex = 0; vertex < G.V(); vertex++) {\n\t\t\tdv = bfsv.distTo(vertex);\n\t\t\tdw = bfsw.distTo(vertex);\n\t\t\tif (dv != INFINITY && dw != INFINITY && (dv + dw < dsap)) {\n\t\t\t\tdsap = dv + dw;\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn (dsap == INFINITY) ? -1 : dsap;\n\t}", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) throw new IllegalArgumentException();\n for (Integer x : v) {\n if (x == null) throw new IllegalArgumentException();\n }\n for (Integer x : w) {\n if (x == null) throw new IllegalArgumentException();\n }\n BreadthFirstDirectedPaths path1 = new BreadthFirstDirectedPaths(wordGraph, v);\n BreadthFirstDirectedPaths path2 = new BreadthFirstDirectedPaths(wordGraph, w);\n int len = -1;\n for (int i = 0; i < wordGraph.V(); i++) {\n if (path1.hasPathTo(i) && path2.hasPathTo(i)) {\n if (len == -1) {\n len = path1.distTo(i) + path2.distTo(i);\n }\n if (path1.distTo(i) + path2.distTo(i) < len) {\n len = path1.distTo(i) + path2.distTo(i);\n }\n }\n }\n return len;\n }", "public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);", "public void shortestPathsNodes() {\n for (int sourceNode = 0; sourceNode < wordGraph.V(); sourceNode++) {\n BreadthFirstDirectedPaths bfs = new BreadthFirstDirectedPaths(wordGraph, sourceNode);\n\n for (int goalNode = 0; goalNode < wordGraph.V(); goalNode++) {\n Iterable<Integer> shortestPath = bfs.pathTo(goalNode);\n int pathLength = -1;\n if (shortestPath != null) {\n for (int edge : shortestPath) {\n pathLength++;\n }\n }\n if (pathLength != -1) {\n }\n System.out.println(pathLength);\n }\n }\n }", "public int length(int v, int w) {\n BreadthFirstDirectedPaths bfdV = new BreadthFirstDirectedPaths(G, v);\n BreadthFirstDirectedPaths bfdW = new BreadthFirstDirectedPaths(G, w);\n int distance = Integer.MAX_VALUE;\n int commonAncestor = -1;\n for (int i = 0; i < G.V(); i++) {\n if (bfdV.hasPathTo(i) && bfdW.hasPathTo(i)) {\n int local = bfdV.distTo(i) + bfdW.distTo(i);\n if (local < distance) {\n distance = local;\n commonAncestor = i;\n }\n }\n }\n if (commonAncestor == -1) return commonAncestor;\n else return bfdV.distTo(commonAncestor) + bfdW.distTo(commonAncestor);\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n\n validateIterableVertices(v);\n validateIterableVertices(w);\n // use bfs to find the path and the shortest distance from v to every vertices in the graph\n // use two arrays, one record the last vertex, edgeTo[]. Another record the distance, distTo[].\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n int ancestor = ancestor(v, w);\n\n if (ancestor == -1) {\n return -1;\n } else {\n return bfs1.distTo(ancestor) + bfs2.distTo(ancestor);\n }\n\n }", "int getShortestDistance(V vertex);", "public int pathLength(V from, V to) {\n\n if (from.equals(null) || to.equals(null)){\n throw new IllegalArgumentException();\n }\n\n HashMap <V, Integer> distances = new HashMap<>();\n if (!hasPath(from, to)){\n return Integer.MAX_VALUE;\n }\n\n if (from.equals(to)){\n return 0;\n }\n\n distances.put(from, 0);\n\n Queue<V> queue = new LinkedList<>();\n queue.add(from);\n\n while (!queue.isEmpty()){\n\n V curr_ver = queue.poll();\n ArrayList<V> neighbors = graph.get(curr_ver);\n int i = 0;\n V neighbor;\n int current_dist = distances.get(curr_ver);\n\n while (i < neighbors.size()){\n\n neighbor = neighbors.get(i);\n\n if (distances.containsKey(neighbor)){\n i++;\n continue;\n }\n\n if(neighbor.equals(to)){\n return distances.get(curr_ver) + 1;\n }\n\n i++;\n distances.put(neighbor, current_dist+ 1);\n queue.add(neighbor);\n\n }\n\n }\n\n return Integer.MAX_VALUE;\n\n }", "public double shortestPathDist(int src, int dest);", "public int length(int v, int w) {\n if (v < 0 || v >= digraph.V() || w < 0 || w >= digraph.V())\n throw new IllegalArgumentException(\"Null argument\");\n int candidate = Integer.MAX_VALUE;\n ancestor = Integer.MAX_VALUE;\n bfsV = new BreadthFirstDirectedPathsFast(digraph, v);\n bfsW = new BreadthFirstDirectedPathsFast(digraph, w);\n for (int i = 0; i < digraph.V(); ++i) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n int distV = bfsV.distTo(i);\n int distW = bfsW.distTo(i);\n if (distV + distW < candidate) {\n candidate = distV + distW;\n ancestor = i;\n }\n }\n }\n return candidate == Integer.MAX_VALUE ? -1 : candidate;\n }", "public int length(int v, int w) {\n\n if (v < 0 || v >= dg.V() || w < 0 || w >= dg.V())\n throw new IllegalArgumentException(\"vertex is not between 0 and \" + (dg.V() - 1));\n\n// ancestor(v,w);\n\n // use bfs to find the path and the shortest distance from v to every vertices in the graph\n // use two arrays, one record the last vertex, edgeTo[]. Another record the distance, distTo[].\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n int ancestor = ancestor(v, w);\n\n if (ancestor == -1) {\n return -1;\n } else {\n return bfs1.distTo(ancestor) + bfs2.distTo(ancestor);\n }\n\n }", "public int shortestPathLength(int[][] graph) {\n Queue<MyPath> q = new LinkedList<>();\n Set<String> visited = new HashSet<>();\n\n for (int i = 0; i < graph.length; i++) {\n MyPath path = new MyPath(i, (1 << i));\n visited.add(path.convertToString());\n q.offer(path);\n }\n\n int length = 0;\n while (!q.isEmpty()) {\n int size = q.size();\n while (size-- > 0) {\n MyPath next = q.poll();\n int curr = next.curr;\n int currPath = next.nodes;\n // Assume we have two nodes -> n = 2\n // 1 << 2 -> 100\n // 100 - 1 -> 011 which means both nodes are visited\n if (currPath == (1 << graph.length) - 1) {\n return length;\n }\n for (int neighbors : graph[curr]) {\n MyPath newPath = new MyPath(neighbors, currPath | (1 << neighbors));\n String pathString = newPath.convertToString();\n if (visited.add(pathString)) {\n q.offer(newPath);\n }\n }\n }\n length++;\n }\n\n return -1;\n }", "public int length(final int v, final int w) {\n\n validateVertex(v);\n validateVertex(w);\n\n final BreadthFirstDirectedPaths bfdvObj = new BreadthFirstDirectedPaths(digraphObj, v);\n final BreadthFirstDirectedPaths bfdwObj = new BreadthFirstDirectedPaths(digraphObj, w);\n\n int infinity = Integer.MAX_VALUE;\n \n for (int vertex = 0; vertex < digraphObj.V(); vertex++) {\n if (bfdvObj.hasPathTo(vertex) && bfdwObj.hasPathTo(vertex)) {\n final int dist = bfdvObj.distTo(vertex) + bfdwObj.distTo(vertex);\n if (dist <= infinity) {\n infinity = dist;\n }\n }\n }\n\n return (infinity == Integer.MAX_VALUE) ? -1 : infinity;\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) throw new IllegalArgumentException(\"Null argument\");\n for (Integer each : v) {\n if (each == null) throw new IllegalArgumentException(\"Null argument\");\n }\n for (Integer each : w) {\n if (each == null) throw new IllegalArgumentException(\"Null argument\");\n }\n int candidate = Integer.MAX_VALUE;\n ancestorMultiple = Integer.MAX_VALUE;\n bfsV = new BreadthFirstDirectedPathsFast(digraph, v);\n bfsW = new BreadthFirstDirectedPathsFast(digraph, w);\n for (int i = 0; i < digraph.V(); ++i) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n int distV = bfsV.distTo(i);\n int distW = bfsW.distTo(i);\n if (distV + distW < candidate) {\n candidate = distV + distW;\n ancestorMultiple = i;\n }\n }\n }\n return candidate == Integer.MAX_VALUE ? -1 : candidate;\n }", "public int length(int v, int w) {\n Paths sapComponents = sap(v, w);\n return sapComponents == null ? NO_ANCESTOR : sapComponents.length();\n }", "public String findDistanceOfPath(String[] vertices) {\r\n String source = vertices[0];\r\n int distance = 0;\r\n for (int i = 1; i < vertices.length; i++) {\r\n String target = vertices[i];\r\n Map<String, Integer> edgeMap = adj.get(source);\r\n if (edgeMap != null && edgeMap.containsKey(target)) {\r\n distance += edgeMap.get(target);\r\n } else {\r\n return \"NO SUCH ROUTE\";\r\n }\r\n source = target;\r\n }\r\n return String.valueOf(distance);\r\n }", "public int length(int v, int w) throws java.lang.NullPointerException, java.lang.IndexOutOfBoundsException \n\t {\n\t\t if(null==mGraph) throw new java.lang.NullPointerException(\"Null graph in SAP\");\n\t\t if ( (v<0 || v >= mGraph.V()) || (w<0 || w >= mGraph.V()) ) throw new java.lang.IndexOutOfBoundsException(\"index out of band\");\n\t\t \n\t\t Bag<Integer> vBag = new Bag<Integer>();\n\t\t Bag<Integer> wBag = new Bag<Integer>();\n\t\t vBag.add(v);\n\t\t wBag.add(w);\n\t\t return getAncestors(vBag,wBag).mDistance;\n\t }", "@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn Double.parseDouble(dwg.getNode(dest).getInfo());\n\t}", "double estimatedDistanceToGoal(Vertex s, Vertex goal);", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n Paths sapComponents = sap(v, w);\n return sapComponents == null ? NO_ANCESTOR : sapComponents.length();\n }", "@Test\n public void testShortestDistance() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 3);\n Edge<Vertex> e3 = new Edge<>(v1, v3, 2);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n List<Vertex> expectedPath = new ArrayList<>();\n expectedPath.add(v1);\n expectedPath.add(v3);\n assertEquals(expectedPath, g.shortestPath(v1, v3));\n\n assertEquals(6, g.edgeLengthSum());\n }", "private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }", "List<V> getShortestPath(V vertex);", "public int shortestPath(Village startVillage, Village targetVillage) {\n// setting the initial point 's minimum distance to zera\n startVillage.setMinDistance(0);\n// accourting to bellman ford if there are n number of dots then n-1 iterations to be done to find the minimum distances of every dot from one initial dot\n int length = this.villageList.size();\n// looping n-1 times\n for (int i = 0; i < length - 1; i++) {\n// looping through all the roads and mark the minimum distances of all the possible points\n for (Road road : roadList) {\n\n\n// if the road is a main road then skip the path\n if (road.getWeight() == 900)\n continue; //why 900 ? : just a random hightest number as a minimum distance and same 900 is used as a mix number\n Village v = road.getStartVertex();\n Village u = road.getTargetVertex();\n// if the newly went path is less than the path it used to be the update the min distance of the reached vertex\n int newLengtha = v.getMinDistance() + road.getWeight();\n if (newLengtha < u.getMinDistance()) {\n u.setMinDistance(newLengtha);\n u.setPreviousVertex(v);\n }\n int newLengthb = u.getMinDistance() + road.getWeight();\n if (newLengthb < v.getMinDistance()) {\n v.setMinDistance(newLengthb);\n v.setPreviousVertex(v);\n }\n }\n }\n// finally return the minimum distance\n return targetVillage.getMinDistance();\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null)\n throw new NullPointerException();\n for (int i : v) inBound(i);\n for (int i : w) inBound(i);\n\n Queue<ColoredNode> Q = new LinkedList<>();\n for (int i : v) {\n lengths[i] = 0;\n colored[i] = color;\n Q.add(new ColoredNode(color, i));\n }\n color ++;\n for (int i : w) {\n lengths[i] = 0;\n if (colored[i] == color - 1) {\n ancestor = i;\n return 0;\n }\n colored[i] = color;\n Q.add(new ColoredNode(color, i));\n }\n color++;\n\n return BFS(Q);\n }", "static void FindPath(vertex s, vertex[] array){\r\n\t\tvertex v; \r\n\t\tint min = Integer.MAX_VALUE;\r\n\t\t//node wN; vertex wV; //wN= adjacent node in LinkedList; wV= find the values in the vertices for wL\r\n\t\tint j =0;\r\n\t\ts.known = true;\r\n\t\ts.dist = 0;\r\n\t\tShortestPath(s, array);\r\n\t\r\n\t\twhile(j<array.length-1 ){ //&& array[j].known== false){\r\n\t\t\tint count = 0; \r\n\t\t\tmin = Integer.MAX_VALUE;\r\n\t\t\tfor(int i = 0; i<array.length; i++){\r\n\t\t\t\tif(array[i].known== false && array[i].dist < min){\r\n\t\t\t\t\tmin = array[i].dist;\r\n\t\t\t\t\tcount = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tv = array[count];\r\n //System.out.println(\"count: \" + count + \"Next v: \" + v.name);\r\n\t\t\tShortestPath(v, array);\r\n\t\t\tj++; \t\t\r\n }\r\n\t}", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n int [] res = shortest(v, w);\n return res[0];\n }", "private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}", "public synchronized double getDistance(String from, String to) {\n\t\treturn (new DijkstraShortestPath<String, SumoEdge>(graph, from, to)).getPathLength();\n\t}", "public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int length(int v, int w) {\n int[] res = shortest(v, w);\n return res[0] + text;\n }", "private int shortestDistance(Vertex dest) {\n Integer d = distance.get(dest);\n if (d==null)\n return Integer.MAX_VALUE;\n return d;\n }", "public int length(int v, int w) {\n inBound(v);\n inBound(w);\n\n Queue<ColoredNode> Q = new LinkedList<>();\n lengths[v] = lengths[w] = 0;\n colored[v] = color++;\n Q.add(new ColoredNode(colored[v], v));\n\n if (color - 1 == colored[w]) {\n ancestor = v;\n return 0;\n }\n\n colored[w] = color++;\n Q.add(new ColoredNode(colored[w], w));\n\n return BFS(Q);\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w) throws java.lang.NullPointerException, java.lang.IndexOutOfBoundsException \n\t {\n\t\t if(null==v || null==w) throw new java.lang.NullPointerException(\"null argument to lenght, v=\"+v+\" w=\"+w);\n\t\t \n\t\t return getAncestors(v,w).mDistance;\n\t }", "public int findShortestDistance(String s, String t) {\r\n //store the vertex and distance closest to each vertex\r\n Map<String, Vertex> finalMap = new HashMap<>(this.number_of_vertices);\r\n for (String vertex : all_vertices) {\r\n finalMap.put(vertex, new Vertex(s, Integer.MAX_VALUE));\r\n }\r\n finalMap.put(s, null);\r\n Queue<Vertex> pq = new PriorityQueue<>(new Comparator() {\r\n @Override\r\n public int compare(Object o1, Object o2) {\r\n Vertex v1 = (Vertex) o1;\r\n Vertex v2 = (Vertex) o2;\r\n return v1.dist - v2.dist;\r\n }\r\n });\r\n pq.add(new Vertex(s, 0));\r\n Set<String> visited = new HashSet<>(this.number_of_vertices);\r\n while (!pq.isEmpty()) {\r\n Vertex minVertex = pq.poll();\r\n if (!visited.add(minVertex.v)) {\r\n continue;\r\n }\r\n Map<String, Integer> edgeMap = adj.get(minVertex.v);\r\n for (Map.Entry<String, Integer> entry : edgeMap.entrySet()) {\r\n int distance = minVertex.dist + entry.getValue();\r\n if (finalMap.get(entry.getKey()) != null && distance < finalMap.get(entry.getKey()).dist) {\r\n finalMap.get(entry.getKey()).dist = distance;\r\n finalMap.get(entry.getKey()).v = minVertex.v;\r\n }\r\n pq.add(new Vertex(entry.getKey(), distance));\r\n }\r\n }\r\n if (!s.equals(t)){\r\n return finalMap.get(t).dist;\r\n }else{\r\n return calculateDistance(s, finalMap);\r\n }\r\n }", "public int noOfMPaths2Dest(int s,int t,int k){\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n double[] resultPath = new double[intersection];\n LinkedList<Integer>[] parent = new LinkedList[intersection]; //using linked list instead of array to store all the possible parent of an intersection\n\n for (int i = 0; i <intersection ; i++) {\n resultPath[i] = INFINITY;\n parent[i] = new LinkedList<>();\n }\n\n //decrease the distance for the first index\n resultPath[s] = 0;\n\n //add all the vertices to the MinHeap\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,resultPath[i]);\n }\n //while minHeap is not empty\n while(!minHeap.isEmpty()){\n //extract the min\n int extractedVertex = minHeap.extractMin();\n\n if(extractedVertex==t) {\n break;\n }\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n\n double newKey = resultPath[extractedVertex] + edge.weight ;\n double currentKey = resultPath[destination];\n if(currentKey>=newKey){\n minHeap.updateKey(newKey, destination,resultPath[destination]);\n parent[destination].add(extractedVertex);\n resultPath[destination] = newKey;\n }\n }\n }\n }\n int numofPath =0;\n\n //calculate the number of path\n if(parent[t]!=null){\n boolean[] isVisited = new boolean[intersection];\n ArrayList<Integer> pathList = new ArrayList<>();\n pathList.add(t);\n numofPath = findAllPathsUtil(s, t, isVisited, pathList,numofPath,parent); //dfs\n\n }\n return numofPath;\n }", "@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tif(src== dest ) return 0;\n\t\tif(this.GA.getNode(src)==null || this.GA.getNode(dest)==null) throw new RuntimeException(\"Wrong input,Missing nodes.\");\n\t\tsetNodes();\n\t\tnode_data temp = this.GA.getNode(src);\n\t\ttemp.setWeight(0);\n\t\tSTPRec(temp, this.GA.getNode(dest));\n\t\tdouble ans = this.GA.getNode(dest).getWeight();\n\t\treturn ans;\n\t}", "private void calculateShortestDistances (GraphStructure graph,int startVertex,int destinationVertex) {\r\n\t\t//traverseRecursively(graph, startVertex);\r\n\t\tif(pathList.contains(destinationVertex)) {\r\n\t\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\t\tdistanceArray[startVertex]=0;\r\n\t\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\t\tList<Edge> list;\r\n\t\t\tlist = graph.getAdjacencyList()[startVertex];\r\n\t\t\tif(startVertex==destinationVertex) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\tif(! isVisited[value.getVertex()]) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[startVertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t\tshortestPathList.add(value.getVertex());\r\n\t\t\t\t\t\t\tcalculateShortestDistances(graph,value.getVertex(), distanceValueOfDestinationVertex);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*for(Integer value : spanningTreeSet) {\r\n\t\t\t\tSystem.out.print(value+\" \");\r\n\t\t\t}*/\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No route is present between given vertices !\");\r\n\t\t}\r\n\t}", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n return (distance == Integer.MAX_VALUE)? -1 : distance;\n }", "private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}", "@Override\n public double shortestPathDist(int src, int dest) {\n if(shortestPath(src,dest)==null) return -1;\n double sum=0;\n return shortestPath(src,dest).get(shortestPath(src,dest).size()-1).getTag();\n }", "public int length(int v, int w) {\n return (distance == Integer.MAX_VALUE) ? -1 : distance;\n }", "public static int shortestDistance( ElementGraph graph, FlowElement lhs, FlowElement rhs )\n {\n return DijkstraShortestPath.findPathBetween( directed( graph ), lhs, rhs ).size();\n }", "private double dijkstrasAlgo(String source, String dest) {\r\n\r\n\t\tclearAll(); // running time: |V|\r\n\t\tint count = 0; // running time: Constant\r\n\t\tfor (Vertex v : vertexMap.values()) // running time: |V|\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tcount++;\r\n\r\n\t\tVertex[] queue = new Vertex[count]; // running time: Constant\r\n\t\tVertex start = vertexMap.get(source); // running time: Constant\r\n\t\tstart.dist = 0; // running time: Constant\r\n\t\tstart.prev = null; // running time: Constant\r\n\r\n\t\tint index = 0; // running time: Constant\r\n\t\tfor (Vertex v : vertexMap.values()) { // running time: |V|\r\n\t\t\tif (v.isStatus()) {\r\n\t\t\t\tqueue[index] = v;\r\n\t\t\t\tv.setHandle(index);\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tbuildMinHeap(queue, count); // running time: |V|\r\n\r\n\t\twhile (count != 0) { // running time: |V|\r\n\t\t\tVertex min = extractMin(queue, count); // running time: log |V|\r\n\t\t\tcount--; // running time: Constant\r\n\r\n\t\t\tfor (Iterator i = min.adjacent.iterator(); i.hasNext();) { // running time: |E|\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus()) {\r\n\t\t\t\t\tVertex adjVertex = vertexMap.get(edge.getDestination());\r\n\t\t\t\t\tif (adjVertex.dist > (min.dist + edge.getCost()) && adjVertex.isStatus()) {\r\n\t\t\t\t\t\tadjVertex.dist = (min.dist + edge.getCost());\r\n\t\t\t\t\t\tadjVertex.prev = min;\r\n\t\t\t\t\t\tint pos = adjVertex.getHandle();\r\n\t\t\t\t\t\tHeapdecreaseKey(queue, pos, adjVertex); // running time: log |V|\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 vertexMap.get(dest).dist; // running time: Constant\r\n\t}", "private void computeShortestPathsFromSource(V source) {\n\t\tBFSDistanceLabeler<V, E> labeler = new BFSDistanceLabeler<V, E>();\n\t\tlabeler.labelDistances(mGraph, source);\n\t\tdistances = labeler.getDistanceDecorator();\n\t\tMap<V, Number> currentSourceSPMap = new HashMap<V, Number>();\n\t\tMap<V, E> currentSourceEdgeMap = new HashMap<V, E>();\n\n\t\tfor (V vertex : mGraph.getVertices()) {\n\n\t\t\tNumber distanceVal = distances.get(vertex);\n\t\t\t// BFSDistanceLabeler uses -1 to indicate unreachable vertices;\n\t\t\t// don't bother to store unreachable vertices\n\t\t\tif (distanceVal != null && distanceVal.intValue() >= 0) {\n\t\t\t\tcurrentSourceSPMap.put(vertex, distanceVal);\n\t\t\t\tint minDistance = distanceVal.intValue();\n\t\t\t\tfor (E incomingEdge : mGraph.getInEdges(vertex)) {\n\t\t\t\t\tfor (V neighbor : mGraph\n\t\t\t\t\t\t\t.getIncidentVertices(incomingEdge)) {\n\t\t\t\t\t\tif (neighbor.equals(vertex))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t// V neighbor = mGraph.getOpposite(vertex,\n\t\t\t\t\t\t// incomingEdge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNumber predDistanceVal = distances.get(neighbor);\n\n\t\t\t\t\t\tint pred_distance = predDistanceVal.intValue();\n\t\t\t\t\t\tif (pred_distance < minDistance && pred_distance >= 0) {\n\t\t\t\t\t\t\tminDistance = predDistanceVal.intValue();\n\t\t\t\t\t\t\tcurrentSourceEdgeMap.put(vertex, incomingEdge);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tmDistanceMap.put(source, currentSourceSPMap);\n\t\tmIncomingEdgeMap.put(source, currentSourceEdgeMap);\n\t}", "@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }", "public static String shortestPath(Vertice v1, Vertice v2) {\r\n\t\tArrayList<Float> menorCaminho = new ArrayList<Float>();\r\n\t\tmenorCaminho = menorCaminho(v1, v2, menorCaminho);\r\n\r\n\t\tif (!menorCaminho.isEmpty()) {\r\n\t\t\tString retorno = \"\";\r\n\t\t\tfor (int i = 1; i < menorCaminho.size(); i++) {\r\n\t\t\t\tretorno += menorCaminho.get(i) + \" \";\r\n\t\t\t}\r\n\t\t\treturn retorno;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "void shortestPaths( Set<Integer> nodes );", "public static int p413ComputeShortestPathNumber(Vertex start, Vertex end){\n\t Queue<Vertex> queue=new LinkedList<Vertex>();\n\t Map<Vertex, Status> statusMap=new HashMap<Vertex, Status>();\n\t Map<Vertex, Integer> levelMap=new HashMap<Vertex, Integer>();\n\t List<List<Vertex>> allLevelList=new LinkedList<List<Vertex>>();\n\t \n\t queue.offer(start);\n\t statusMap.put(start, Status.Queued);\n\t levelMap.put(start, 0);\n\t \n\t Vertex vertex;\n\t int lastLevel=-1;\n\t List<Vertex> levelList = null;\n\t\twhile ((vertex = queue.poll()) != null) {\n\t\t\tint currentLevel = levelMap.get(vertex);\n\n\t\t\tif (currentLevel != lastLevel) {\n\t\t\t\tlastLevel = currentLevel;\n\t\t\t\tlevelList = new LinkedList<Vertex>();\n\n\t\t\t\tallLevelList.add(levelList);\n\t\t\t}\n\n\t\t\tlevelList.add(vertex);\n\n\t\t\tif (vertex.equals(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tSet<Vertex> adjacentVertexes = vertex.getAdjacentVertexes();\n\t\t\tfor (Iterator iterator = adjacentVertexes.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex adjacent = (Vertex) iterator.next();\n\n\t\t\t\tif (statusMap.get(adjacent) == null) {\n\t\t\t\t\tqueue.offer(adjacent);\n\t\t\t\t\tstatusMap.put(adjacent, Status.Queued);\n\t\t\t\t\tlevelMap.put(adjacent, currentLevel + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t \n\t int max=Integer.MIN_VALUE;\n\t List<Vertex> targetList=new LinkedList<Vertex>();\n\t targetList.add(end);\n\t for(int index=lastLevel-1;index>0;index--){\n\t\t List<Vertex> lastLevelList = allLevelList.get(index);\n\t\t List<Vertex> tmpList=new LinkedList<Vertex>();\n\n\t\t int count=0;\n\t\t for (Iterator iterator = lastLevelList.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex lastLevelVertex = (Vertex) iterator.next();\n\t\t\t\tfor (Iterator iterator2 = targetList.iterator(); iterator2.hasNext();) {\n\t\t\t\t\tVertex vertex2 = (Vertex) iterator2.next();\n\t\t\t\t\tif(lastLevelVertex.getAdjacentVertexes().contains(vertex2)){\n\t\t\t\t\t count++;\n\t\t\t\t\t tmpList.add(lastLevelVertex);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t }\n\t\t \n\t\t targetList=tmpList;\n\t\t \n\t\t if(count>max){\n\t\t \tmax=count;\n\t\t }\n\t }\n\t \n\t return max;\n\t}", "Integer distance(PathFindingNode a, PathFindingNode b);", "public double distTo(int v){\n\t\tvalidateVertex(v);\n\t\treturn distTo[v];\n\t}", "public static <G extends BaseWeightedGraph<V,E,W>,V,E extends WeightedEdge<V,W>, W extends Number & Comparable<W>> List<E> findShortestPathInt(G graph, V source, V sink){\r\n\t\t// check graph contains source and sink\r\n\t\tSet<V> vertecies = graph.getVertices();\r\n\t\tif( !(vertecies.contains(source) && vertecies.contains(sink)) ){\r\n\t\t\tthrow new IllegalArgumentException(\"BaseGraph must contain both source and sink\");\r\n\t\t}\r\n\t\t\r\n\t\tPriorityQueue<WeightedPathChain<V,E,W,Integer>> pq = new PriorityQueue<WeightedPathChain<V,E,W,Integer>>(); \r\n\t\tHashSet<V> checked = new HashSet<V>();\r\n\t\tHashMap<V,WeightedPathChain<V,E,W,Integer>> map = new HashMap<V,WeightedPathChain<V,E,W,Integer>>();\r\n\t\taddOrUpdate(map,pq,source,Integer.valueOf(0));\r\n\t\twhile(!pq.isEmpty()&&!sink.equals(pq.peek().vertex)){\r\n\t\t\tWeightedPathChain<V,E,W,Integer> current = pq.poll(); // poll lowest level vertex\r\n\t\t\tchecked.add(current.vertex); // add vertex to checked set\r\n\t\t\tfor (E edge :graph.getOutgoingEdges(current.vertex)){\t// for each outgoing edge \r\n\t\t\t\tif(!checked.contains(edge.getOpposingVertex(current.vertex))){\t\t// if opposing vertex has not been checked \r\n\t\t\t\t\taddOrUpdate(map,\r\n\t\t\t\t\t\t\t\tpq,\r\n\t\t\t\t\t\t\t\tedge.getOpposingVertex(current.vertex),\r\n\t\t\t\t\t\t\t\tInteger.valueOf(map.get(current.vertex).val+edge.getWeight().intValue() ) ,\r\n\t\t\t\t\t\t\t\tedge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<V> path = new ArrayList<V>(); // vertex path \r\n\t\tArrayList<E> edgePath = new ArrayList<E>(); // edge path\r\n\t\tboolean run = true; \r\n\t\tif(!pq.isEmpty()&&pq.peek().vertex.equals(sink)) { // \r\n\t\t\tWeightedPathChain<V,E,W,Integer> vv = pq.poll();\r\n\t\t\tpath.add(vv.vertex);\r\n\t\t\tedgePath.add(vv.edge);\r\n\t\t\twhile(run) {\r\n\t\t\t\tvv = map.get(vv.edge.getOpposingVertex(vv.vertex));\r\n\t\t\t\tif(vv.vertex.equals(source)) {\r\n\t\t\t\t\trun=false;\r\n\t\t\t\t\tpath.add(vv.vertex);\r\n\t\t\t\t}\r\n\t\t\t\telse {\t\r\n\t\t\t\t\tedgePath.add(vv.edge);\r\n\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return path;\r\n\t\t\r\n\t\tCollections.reverse(edgePath);\r\n\t\treturn edgePath;\r\n\t}", "public int getPathLength();", "void shortestPath( final VertexType fromNode, Integer node );", "int size(ANode<T> s) {\n if (this.next.equals(s)) {\n return 1;\n }\n else {\n return 1 + this.next.size(s);\n }\n }", "int dijkstras(Node src, Node last) {\n\t\tPriorityQueue<Node> pq = new PriorityQueue<>((a, b) -> (a.getPrev().getDistance()) - (b.getPrev().getDistance()));\n\t\tsrc.getPrev().setDistance(0);\n\t\tlast.setFinished(true);\n\t\tpq.add(src);\n\t\tint count = 0;\n\t\t\n\t\twhile (!pq.isEmpty()) {\n\t\t\tNode n = pq.poll();\n\t\t\tcount++;\n\t\t\tif (n.isFinished()) return count;\n\t\t\tfor (Edge edge = n.getEdge(); edge != null; edge = edge.getNextEdge()) {\n\t\t\t\t\n\t\t\t\t//Checks to see if a path is shorter than the current one\n\t\t\t\tif (edge.getTo().getPrev().getDistance() > n.getPrev().getDistance() + edge.getWeight()) {\n\t\t\t\t\tedge.getTo().getPrev().setDistance(n.getPrev().getDistance() + edge.getWeight());\n\t\t\t\t\tedge.getTo().getPrev().setLast(n);\n\t\t\t\t\tpq.add(edge.getTo());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "private Paths sap(int v, int w) {\n validate(v);\n validate(w);\n BreadthFirstDirectedPaths fromV = new BreadthFirstDirectedPaths(this.G, v);\n BreadthFirstDirectedPaths fromW = new BreadthFirstDirectedPaths(this.G, w);\n return processPaths(fromV, fromW);\n }", "T distance(S from, S to);", "public InTree<V,E> generalShortestPathFromSource(V source);", "public List<Node> findShortestPath(Node s, Node t);", "public Dijkstra(EdgeWeightedDigraph G, int s) {\r\n int V = G.V();\r\n distTo = new double[V];\r\n edgeTo = new DirectedEdge[V];\r\n distTo[0] = 0.0;\r\n for (int i = 1; i < V; i++) {\r\n distTo[i] = Double.POSITIVE_INFINITY;\r\n }\r\n pq.insert(s, 0.0);\r\n while (!pq.isEmpty()) {\r\n int v = pq.deleteMin();\r\n for (DirectedEdge e : G.adj(v)) {\r\n relax(e);\r\n }\r\n }\r\n }", "public List<node_info> shortestPath(int src, int dest);", "public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n\n\n validateIterableVertices(v);\n validateIterableVertices(w);\n\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n Stack<Integer> candidates = new Stack<>();\n\n for (int p = 0; p < dg.V(); p++) {\n if (bfs1.hasPathTo(p) && bfs2.hasPathTo(p)) {\n candidates.push(p);\n }\n }\n\n int shortesAncestor = -1;\n int shortesPath = Integer.MAX_VALUE;\n\n while (!candidates.isEmpty()) {\n int c = candidates.pop();\n if (shortesPath > bfs1.distTo(c) + bfs2.distTo(c)) {\n shortesPath = bfs1.distTo(c) + bfs2.distTo(c);\n shortesAncestor = c;\n }\n }\n\n return shortesAncestor;\n }", "boolean hasPathTo(int v)\n\t{\n\t\treturn edgeTo[v].weight()!=Double.POSITIVE_INFINITY;\n\t}", "public double getAverageShortestPathLengthJUNG()\r\n\t{\n\t\tTransformer<Entity, Double> distanceTransformer = DistanceStatistics\r\n\t\t\t\t.averageDistances(undirectedGraph);\r\n\t\t// logger.info(\"Average distances: \" + distances);\r\n\t\tdouble distanceSum = 0.0;\r\n\t\tfor (Entity e : undirectedGraph.getVertices()) {\r\n\t\t\tdistanceSum += distanceTransformer.transform(e);\r\n\t\t}\r\n\t\treturn distanceSum / getNumberOfNodes();\r\n\t}", "private int getDistanceBetweenNodes(Node s, Node t) {\n\t\tif (s.equals(t)) return 0;\n\t\tArrayList<Node> visitedNodes = new ArrayList<Node>();\n\t\tArrayDeque<Node> nodesToVisit = new ArrayDeque<Node>();\n\t\tdistanceFromS.put(s, 0);\n\t\tnodesToVisit.add(s);\n\t\twhile (!nodesToVisit.isEmpty()) {\n\t\t\tNode currentNode = nodesToVisit.poll();\n\t\t\tvisitedNodes.add(currentNode);\n\t\t\tfor (Node n: currentNode.getNeighbors()) {\n\t\t\t\tif (!visitedNodes.contains(n) && !nodesToVisit.contains(n)) {\n\t\t\t\t\tnodesToVisit.add(n);\n\t\t\t\t\tdistanceFromS.put(n, (distanceFromS.get(currentNode) + 1));\n\t\t\t\t\tif (distanceFromS.containsKey(t)) break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (distanceFromS.containsKey(t)) break;\n\t\t}\n\t\tif (distanceFromS.containsKey(t)) {\n\t\t\treturn distanceFromS.get(t);\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "public int length(Iterable<Integer> v, Iterable<Integer> w){\n\t int[] distanceV,distanceW;\n\t boolean[] markV,markW;\n\t \n\t return 0;\n }", "void query(int u, int v) {\n int lca = lca2(u, v, spar, dep);\n// out.println(query_up(u, lca) + \" dv\");\n// out.println(query_up(v, lca) + \" ds\");\n int ans = query_up(u, lca) + query_up(v, lca); // One part of path\n out.println(ans);\n// if (temp > ans) ans = temp; // take the maximum of both paths\n// printf(\"%d\\n\", ans);\n }", "public Iterable<Vertex> findShortestPath(Vertex v1, Vertex v2){\n\t\treturn null;\n\t}", "private int calculateDistance(String s, Map<String, Vertex> finalMap) {\r\n int dist = Integer.MAX_VALUE;\r\n for (Map.Entry<String, Vertex> entry : finalMap.entrySet()) {\r\n if (entry.getValue() != null && entry.getValue().v.equals(s) && entry.getValue().dist < dist){\r\n String next = entry.getKey();\r\n int currDist = entry.getValue().dist + findShortestDistance(next , s);\r\n if (currDist < dist){\r\n dist = currDist;\r\n }\r\n }\r\n }\r\n return dist;\r\n }", "void dijkstra(int graph[][], int src) {\n int dist[] = new int[V]; // The output array. dist[i] will hold\n // the shortest distance from src to i\n\n // sptSet[i] will true if vertex i is included in shortest\n Boolean sptSet[] = new Boolean[V];\n\n for (int i = 0; i < V; i++) {\n dist[i] = Integer.MAX_VALUE;\n sptSet[i] = false;\n }\n\n dist[src] = 0;\n\n // Find shortest path for all vertices\n for (int count = 0; count < V-1; count++) {\n\n int u = minDistance(dist, sptSet);\n\n // Mark the picked vertex as processed\n sptSet[u] = true;\n\n // Update dist value of the adjacent vertices of the\n // picked vertex.\n for (int v = 0; v < V; v++)\n\n\n if (!sptSet[v] && graph[u][v]!=0 &&\n dist[u] != Integer.MAX_VALUE &&\n dist[u]+graph[u][v] < dist[v])\n dist[v] = dist[u] + graph[u][v];\n }\n\n printSolution(dist, V);\n }", "public int getShortestDistance(T vertex1, T vertex2){\n DijkstraShortestPath p = new DijkstraShortestPath(vertex1, vertex2);\n return p.getMinDistance();\n }", "public int getNumberOfPaths(){ \r\n HashMap<FlowGraphNode, Integer> number = new HashMap<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n HashMap<FlowGraphNode, Integer> label = new HashMap<>();\r\n \r\n label.put(start,1);\r\n queue.add(start);\r\n do{\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n int count = number.getOrDefault(child, child.inDeg()) -1;\r\n if(count == 0){\r\n queue.add(child);\r\n number.remove(child);\r\n //label\r\n int sum = 0;\r\n for(FlowGraphNode anc : child.from){\r\n sum += label.get(anc);\r\n }\r\n label.put(child,sum);\r\n }else{\r\n number.put(child, count);\r\n }\r\n }\r\n }while(!queue.isEmpty());\r\n \r\n if(!number.isEmpty()){\r\n //there has to be a loop in the graph\r\n return -1;\r\n }\r\n \r\n return label.get(end);\r\n }", "public double avePathLength();", "public DijkstraSP(EdgeWeightedDigraph G, int s){\n edgeTo = new DirectedEdge[G.V()];\n distTo = new double[G.V()];\n pq = new IndexMinPQ<>(G.V());\n\n for (int v=0; v<G.V(); v++)\n distTo[v] = Double.POSITIVE_INFINITY;\n distTo[s] = 0;\n\n pq.insert(s, 0.0);\n // relax vertices in order of distance from s\n while (!pq.isEmpty())\n relax(G, pq.delMin());\n }", "public int doDijkstras(String startVertex, String endVertex, ArrayList<String> shortestPath)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertex) || !this.dataMap.containsKey(endVertex))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSet<String> visited = new HashSet<String>();\r\n\t\t\r\n\t\tPriorityQueue<Vertex> minDist = new PriorityQueue<Vertex>();\r\n\t\t\r\n\t\tVertex firstV = new Vertex(startVertex,startVertex,0);\r\n\t\tminDist.add(firstV);\r\n\t\t\r\n\t\tfor(String V : this.adjacencyMap.get(startVertex).keySet())\r\n\t\t{\r\n\t\t\tminDist.add(new Vertex(V,startVertex,this.getCost(startVertex, V)));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//map of vertexName --> VertexObject\r\n\t\tHashMap<String, Vertex> mapV = new HashMap<String,Vertex>();\r\n\t\tmapV.put(startVertex, firstV);\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Init keys-->costs\r\n\t\t */\r\n\t\tfor(String key : this.getVertices())\r\n\t\t{\r\n\t\t\tif(key.equals(startVertex))\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,0));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,Integer.MAX_VALUE));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\t * Init List for shortest path\r\n\t\t */\r\n\t\tLinkedList<String> list = new LinkedList<String>();\r\n\t\tlist.add(startVertex);\r\n\r\n\t\tHashMap<String,List<String>> path = new HashMap<String,List<String>>();\r\n\t\tpath.put(startVertex, list);\r\n\t\t\r\n\t\twhile(!minDist.isEmpty())\r\n\t\t{\r\n\t\t\tVertex node = minDist.poll();\r\n\t\t\tString V = node.current;\r\n\t\t\tint minimum = node.cost;\r\n\t\t\tSystem.out.println(minDist.toString());\r\n\t\t\t\r\n\t\t\t\tvisited.add(V);\r\n\t\t\t\t\r\n\t\t\t\tTreeSet<String> adj = new TreeSet<String>(this.adjacencyMap.get(V).keySet());\r\n\t\t\t\t\r\n\t\t\t\tfor(String successor : adj)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!visited.contains(successor) && !V.equals(successor))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint newCost = this.getCost(V, successor)+minimum;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(newCost < mapV.get(successor).cost)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tminDist.remove(mapV.get(successor));\r\n\t\t\t\t\t\t\t\tminDist.add(new Vertex(successor,V,newCost));\r\n\t\t\t\t\t\t\t\tmapV.put(successor, new Vertex(successor,V,newCost));\r\n\r\n\t\t\t\t\t\t\t\tLinkedList<String> newList = new LinkedList<String>(path.get(V));\r\n\t\t\t\t\t\t\t\tnewList.add(successor);\r\n\t\t\t\t\t\t\t\tpath.put(successor, newList);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tint smallestPath = mapV.get(endVertex).cost == Integer.MAX_VALUE ? -1 : mapV.get(endVertex).cost;\r\n\t\t\r\n\t\tif(smallestPath == -1)\r\n\t\t{\r\n\t\t\tshortestPath.add(\"None\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(String node : path.get(endVertex))\r\n\t\t\t{\r\n\t\t\t\tshortestPath.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn smallestPath;\r\n\t}", "@Test\n public void testShortestDistance2() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v1, v3, 3);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n List<Vertex> expectedPath = new ArrayList<>();\n expectedPath.add(v1);\n expectedPath.add(v2);\n expectedPath.add(v3);\n\n assertTrue(g.edge(e1));\n assertTrue(g.vertex(v1));\n\n v1.updateName(\"test\");\n assertEquals(\"test\", v1.name());\n\n assertEquals(expectedPath, g.shortestPath(v1, v3));\n }", "private Paths sap(Iterable<Integer> v, Iterable<Integer> w) {\n for (int vertex : v) validate(vertex);\n for (int vertex : w) validate(vertex);\n BreadthFirstDirectedPaths fromV = new BreadthFirstDirectedPaths(this.G, v);\n BreadthFirstDirectedPaths fromW = new BreadthFirstDirectedPaths(this.G, w);\n return processPaths(fromV, fromW);\n }", "public boolean hasPathTo(int v){\n\t\tvalidateVertex(v);\n\t\treturn distTo[v]<Double.POSITIVE_INFINITY;\n\t}", "private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }", "public static int longestPath(int[] parent, String s) {\n int n = parent.length;\n\n Map<Integer, List<Integer>> graph = new HashMap<>();\n for (int i = 0; i < n; i++) {\n int father = parent[i];\n graph.computeIfAbsent(father, value -> new ArrayList<>()).add(i);\n }\n\n int ans = 0;\n for (int i = 0; i < n; i++) {\n ans = Math.max(ans, dfs(graph, i, s));\n }\n\n return ans;\n }", "private void calculateShortestRoute(String strSourceTerminal){\n\t\tshortestTravelTime = new HashMap<>();\n\n //stores parent of every terminal in shortest travel time\n parent = new HashMap<>();\n \n //heap + map data structure\n MinimumHeap<BaggageTerminal> minHeap = new MinimumHeap<>();\n\n //initialize all terminal with infinite distance from source terminal\n for(BaggageTerminal baggageTerminal : graph.getTerminals()){\n minHeap.add(Integer.MAX_VALUE, baggageTerminal);\n }\n \n BaggageTerminal sourceTerminal = graph.getTerminal(strSourceTerminal);\n \n //set distance of source terminal to itself 0\n minHeap.decrease(sourceTerminal, 0);\n\n //put it in map\n shortestTravelTime.put(sourceTerminal, 0);\n\n //source terminal parent is null\n parent.put(sourceTerminal, null);\n\n //iterate till heap is not empty\n while(!minHeap.empty()){\n //get the min value from heap node which has vertex and distance of that vertex from source vertex.\n MinimumHeap<BaggageTerminal>.Node heapNode = minHeap.extractMinNode();\n BaggageTerminal currentTerminal = heapNode.key;\n\n //update shortest distance of current vertex from source vertex\n shortestTravelTime.put(currentTerminal, heapNode.weight);\n\n //iterate through all connections of current terminal\n for(Connection connection : currentTerminal.getConnections()){\n\n //get the adjacent terminal\n BaggageTerminal adjacent = getConnectingTerminal(currentTerminal, connection);\n\n //if heap does not contain adjacent vertex means adjacent vertex already has shortest distance from source vertex\n if(!minHeap.containsData(adjacent)){\n continue;\n }\n\n //add distance of current vertex to edge weight to get distance of adjacent vertex from source vertex\n //when it goes through current vertex\n int newDistance = shortestTravelTime.get(currentTerminal) + connection.getWeight();\n\n //see if this above calculated distance is less than current distance stored for adjacent vertex from source vertex\n if(minHeap.getWeight(adjacent) > newDistance) {\n minHeap.decrease(adjacent, newDistance);\n parent.put(adjacent, currentTerminal);\n }\n }\n }\n return;\n }", "DijkstraSP(EdgeWeightedDigraph G, int s)\n\t{\n\t\tdistTo=new double[G.V()];\n\t\tedgeTo=new DirectedEdge[G.V()];\n\t\tpq=new IndexMinPQ<>(G.V());\n\t\tfor(int v=0;v<G.V();v++)\n\t\t\tdistTo[v]=Double.POSITIVE_INFINITY;\n\t\tdistTo[s]=0.0;\n\t\t\n\t\tpq.insert(s, 0.0);\n\t\twhile(!pq.isEmpty()) \n\t\t{\n\t\t\tint v=pq.delMin();\n\t\t\tfor(DirectedEdge e: G.adj(v))\n\t\t\t\trelax(e);\n\t\t}\n\t}", "static long dijkstras(State start, State goal) {\n\t\tPriorityQueue<State> pq = new PriorityQueue<State>(\n\t\t\tnew Comparator<State>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(State a, State b) {\n\t\t\t\t\treturn Long.compare(a.dist, b.dist);\n\t\t\t\t}\n\t\t\t});\n\n\t\tHashMap<State, Long> dist = new HashMap<>(); \n\n\t\tpq.offer(start);\n\t\tdist.put(start, start.dist);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\tState cur = pq.poll();\n\n\t\t\tif (cur.isDestination(goal)) // abort if target is reached\n\t\t\t\treturn cur.dist;\n\n\t\t\t// avoid relaxation if a shorter path to 'cur' is pending in queue\n\t\t\tif (Long.compare(dist.get(cur), cur.dist) < 0)\n\t\t\t\tcontinue;\n\n\t\t\tfor (State adj : cur.adj()) {\n\t\t\t\tLong bestSoFar = dist.get(adj);\n\t\t\t\tif (bestSoFar == null || Long.compare(adj.dist, bestSoFar) < 0) {\n\t\t\t\t\tpq.offer(adj);\n\t\t\t\t\tdist.put(adj, adj.dist);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// no path to target\n\t\treturn -1;\n\t}", "public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }", "public DijkstraSP(EdgeWeightedDigraph G, int s)\n {\n edgeTo = new DirectedEdge[G.V()];\n distTo = new double[G.V()];\n pq = new IndexMinPQ<Double>(G.V());\n for (int v = 0; v < G.V(); v++)\n distTo[v] = Double.POSITIVE_INFINITY;\n distTo[s] = 0.0;\n pq.insert(s, 0.0);\n while (!pq.isEmpty())\n relax(G, pq.delMin());\n }" ]
[ "0.7756377", "0.7581953", "0.75536346", "0.7551456", "0.7389491", "0.7284659", "0.72320986", "0.72312796", "0.7154928", "0.71467197", "0.7131174", "0.7109505", "0.7096576", "0.70494676", "0.7043091", "0.7040415", "0.7036371", "0.701916", "0.70072305", "0.69537926", "0.69336265", "0.68639654", "0.6836658", "0.683619", "0.6817163", "0.67095715", "0.662064", "0.6523464", "0.6446394", "0.63452476", "0.63178176", "0.6313023", "0.62860906", "0.62347806", "0.6233427", "0.6218093", "0.6213914", "0.6181514", "0.615904", "0.61392033", "0.6129102", "0.6118238", "0.6115611", "0.61117554", "0.6070493", "0.606462", "0.6051377", "0.6050736", "0.6038878", "0.60262513", "0.60089433", "0.59970397", "0.59762514", "0.59423625", "0.59202474", "0.5903809", "0.58936036", "0.588722", "0.5867456", "0.58624476", "0.58600366", "0.5848127", "0.5831418", "0.58311486", "0.5828865", "0.5795941", "0.5792819", "0.5778729", "0.5767669", "0.57548314", "0.57401377", "0.5729542", "0.5725397", "0.5715863", "0.571551", "0.57088244", "0.57059884", "0.56964403", "0.56683874", "0.56635624", "0.56617457", "0.56507206", "0.56431454", "0.56420374", "0.56250936", "0.5607739", "0.56054753", "0.5605336", "0.55979943", "0.5588185", "0.55857325", "0.558412", "0.5576109", "0.55731726", "0.55723417", "0.55438817", "0.55351293", "0.55271316", "0.55255526", "0.5514767", "0.5508315" ]
0.0
-1
shortest path from s to v
Iterable<DirectedEdge> pathTo(int v) { Stack<DirectedEdge> path=new Stack<>(); for(DirectedEdge e=edgeTo[v]; e!=null; e=edgeTo[e.from()]) { path.push(e); } return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<V> getShortestPath(V vertex);", "public List<Node> findShortestPath(Node s, Node t);", "ShortestPath(ShortestPath sp) {\r\n\t\tsrc = sp.getSrc();\r\n\t\tdst = sp.getDst();\r\n\t\tpathList = new ArrayList<ArrayList<String>>();\r\n\t\tfor (ArrayList<String> path : sp.getPathList()) {\r\n\t\t\tpathList.add( new ArrayList<>(path) );\r\n\t\t}\r\n\t\tnumOfPath = sp.getNumOfPath();\r\n\t\tlength = sp.getLength();\r\n\t}", "public InTree<V,E> generalShortestPathFromSource(V source);", "public Iterable<Vertex> findShortestPath(Vertex v1, Vertex v2){\n\t\treturn null;\n\t}", "public static String shortestPath(Vertice v1, Vertice v2) {\r\n\t\tArrayList<Float> menorCaminho = new ArrayList<Float>();\r\n\t\tmenorCaminho = menorCaminho(v1, v2, menorCaminho);\r\n\r\n\t\tif (!menorCaminho.isEmpty()) {\r\n\t\t\tString retorno = \"\";\r\n\t\t\tfor (int i = 1; i < menorCaminho.size(); i++) {\r\n\t\t\t\tretorno += menorCaminho.get(i) + \" \";\r\n\t\t\t}\r\n\t\t\treturn retorno;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "public ArrayList<String> shortestPath(String u, String v)\n {\n ArrayList<String> path = new ArrayList<>();\n HashMap<String, Boolean> flag = new HashMap<>();\n HashMap<String, String> prev = new HashMap<>();\n\n Queue<GraphVertex> queue = new LinkedList<>();\n HashMap<String, Boolean> visited = new HashMap<>();\n\n GraphVertex src = graphVertexHashMap.get(u);\n flag.put(src.getVertexName(), true);\n queue.add(src);\n visited.put(src.getVertexName(), true);\n\n while(!queue.isEmpty()){\n GraphVertex node = queue.poll();\n\n HashMap<String, GraphVertex> edges = node.getOutDegrees();\n Iterator it = edges.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry pair = (Map.Entry)it.next();\n if(flag.get(pair.getKey()) == null || flag.get(pair.getKey()) == false){\n String vertex = (String)pair.getKey();\n flag.put(vertex, true);\n prev.put(vertex, node.getVertexName());\n queue.add(edges.get(pair.getKey()));\n }\n }\n\n }\n path = backTrackPath(prev, u, v);\n return path;\n }", "public String getShortestPath(T begin, T end);", "private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }", "public static <V> void printShortestPath(V value, Dictionary<V, DijkstraResult<V>> paths) {\n Enumeration<DijkstraResult<V>> elementos = paths.elements();\n while (elementos.hasMoreElements()) {\n DijkstraResult<V> aux = elementos.nextElement();\n if (!aux.getVertex().equals(value)) {\n String hilera = \"\";\n DijkstraResult<V> temp = aux;\n while (!temp.getVertex().equals(value)) {\n hilera = \"-\" + temp.getVertex() + hilera;\n temp = paths.get(temp.getPrecursor());\n }\n hilera = value + hilera;\n if (aux.getDistance() == Integer.MAX_VALUE - 1) {\n System.out.println(\"El camino mas corto entre \" + value + \" y \" + aux.getVertex() + \" es \" + hilera + \" con una distancia de infinito (no hay camino)\");\n } else {\n System.out.println(\"El camino mas corto entre \" + value + \" y \" + aux.getVertex() + \" es \" + hilera + \" con una distancia de: \" + aux.getDistance());\n }\n } else {\n System.out.println(\"El camino mas corto entre \" + value + \" y \" + value + \" es \" + value + \" con una distancia de: \" + aux.getDistance());\n }\n }\n }", "static void FindPath(vertex s, vertex[] array){\r\n\t\tvertex v; \r\n\t\tint min = Integer.MAX_VALUE;\r\n\t\t//node wN; vertex wV; //wN= adjacent node in LinkedList; wV= find the values in the vertices for wL\r\n\t\tint j =0;\r\n\t\ts.known = true;\r\n\t\ts.dist = 0;\r\n\t\tShortestPath(s, array);\r\n\t\r\n\t\twhile(j<array.length-1 ){ //&& array[j].known== false){\r\n\t\t\tint count = 0; \r\n\t\t\tmin = Integer.MAX_VALUE;\r\n\t\t\tfor(int i = 0; i<array.length; i++){\r\n\t\t\t\tif(array[i].known== false && array[i].dist < min){\r\n\t\t\t\t\tmin = array[i].dist;\r\n\t\t\t\t\tcount = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tv = array[count];\r\n //System.out.println(\"count: \" + count + \"Next v: \" + v.name);\r\n\t\t\tShortestPath(v, array);\r\n\t\t\tj++; \t\t\r\n }\r\n\t}", "public void computeShortestPath() throws IllegalStateException;", "public Iterable<Integer> pathTo(int v)\n {\n if (!hasPathTo(v)) return null;\n Stack<Integer> path = new Stack<Integer>();\n for (int x = v; x != s; x = edgeTo[x])\n path.push(x);\n path.push(s);\n return path;\n }", "private Paths sap(int v, int w) {\n validate(v);\n validate(w);\n BreadthFirstDirectedPaths fromV = new BreadthFirstDirectedPaths(this.G, v);\n BreadthFirstDirectedPaths fromW = new BreadthFirstDirectedPaths(this.G, w);\n return processPaths(fromV, fromW);\n }", "private String getShortestPath(final Pair<Long, Long> src, final Pair<Long, Long> dst,\n final String passCode, final boolean first) {\n final var queue = new LinkedList<Node>();\n final var seen = new HashSet<Node>();\n //start from source\n final var srcNode = new Node( src, \"\" );\n queue.add( srcNode );\n seen.add( srcNode );\n\n int max = 0;\n while ( !queue.isEmpty() ) {\n final var curr = queue.remove();\n if ( curr.pos.equals( dst ) ) {\n if ( first ) {\n //shortest path\n return curr.path;\n } else {\n //store path length\n max = curr.path.length();\n //stop this path\n }\n } else {\n for ( final var neighbour : getNeighbours( curr, passCode ) ) {\n //unseen neighbour\n if ( seen.add( neighbour ) ) {\n //add to the queue\n queue.add( neighbour );\n }\n }\n }\n }\n\n return itoa( max );\n }", "public List<node_info> shortestPath(int src, int dest);", "@Override\n public List<Node> findShortestPath(Node s, Node t)\n {\n nodeDists.clear(); //clear previously calculated distances\n\n recordNodeDistances(s, t); //record node distances to target\n\n LinkedList<Node> shortestPath = new LinkedList<Node>();\n\n shortestPath.addLast(s);\n\n boolean reachedEnd = false;\n\n if(s==t) reachedEnd = true; // \"That was easy\"\n\n while(!reachedEnd)\n {\n //get the neighbors from the most recent step on the path\n Collection<? extends Node> neighbors = shortestPath.getLast().getNeighbors();\n\n //minimum cost from neighbors\n Node minNode = null;\n\n for(Node n: neighbors)\n {\n if(minNode == null || nodeDists.get(n) < nodeDists.get(minNode))\n {\n minNode = n;\n\n if(nodeDists.get(n) == 0)\n {\n reachedEnd = true;\n break;\n }\n }\n }\n\n if(nodeDists.get(minNode) == Integer.MAX_VALUE) return null; //no path\n else shortestPath.addLast(minNode);\n }\n\n return shortestPath;\n }", "public int shortestPath(Village startVillage, Village targetVillage) {\n// setting the initial point 's minimum distance to zera\n startVillage.setMinDistance(0);\n// accourting to bellman ford if there are n number of dots then n-1 iterations to be done to find the minimum distances of every dot from one initial dot\n int length = this.villageList.size();\n// looping n-1 times\n for (int i = 0; i < length - 1; i++) {\n// looping through all the roads and mark the minimum distances of all the possible points\n for (Road road : roadList) {\n\n\n// if the road is a main road then skip the path\n if (road.getWeight() == 900)\n continue; //why 900 ? : just a random hightest number as a minimum distance and same 900 is used as a mix number\n Village v = road.getStartVertex();\n Village u = road.getTargetVertex();\n// if the newly went path is less than the path it used to be the update the min distance of the reached vertex\n int newLengtha = v.getMinDistance() + road.getWeight();\n if (newLengtha < u.getMinDistance()) {\n u.setMinDistance(newLengtha);\n u.setPreviousVertex(v);\n }\n int newLengthb = u.getMinDistance() + road.getWeight();\n if (newLengthb < v.getMinDistance()) {\n v.setMinDistance(newLengthb);\n v.setPreviousVertex(v);\n }\n }\n }\n// finally return the minimum distance\n return targetVillage.getMinDistance();\n }", "public int findShortestDistance(String s, String t) {\r\n //store the vertex and distance closest to each vertex\r\n Map<String, Vertex> finalMap = new HashMap<>(this.number_of_vertices);\r\n for (String vertex : all_vertices) {\r\n finalMap.put(vertex, new Vertex(s, Integer.MAX_VALUE));\r\n }\r\n finalMap.put(s, null);\r\n Queue<Vertex> pq = new PriorityQueue<>(new Comparator() {\r\n @Override\r\n public int compare(Object o1, Object o2) {\r\n Vertex v1 = (Vertex) o1;\r\n Vertex v2 = (Vertex) o2;\r\n return v1.dist - v2.dist;\r\n }\r\n });\r\n pq.add(new Vertex(s, 0));\r\n Set<String> visited = new HashSet<>(this.number_of_vertices);\r\n while (!pq.isEmpty()) {\r\n Vertex minVertex = pq.poll();\r\n if (!visited.add(minVertex.v)) {\r\n continue;\r\n }\r\n Map<String, Integer> edgeMap = adj.get(minVertex.v);\r\n for (Map.Entry<String, Integer> entry : edgeMap.entrySet()) {\r\n int distance = minVertex.dist + entry.getValue();\r\n if (finalMap.get(entry.getKey()) != null && distance < finalMap.get(entry.getKey()).dist) {\r\n finalMap.get(entry.getKey()).dist = distance;\r\n finalMap.get(entry.getKey()).v = minVertex.v;\r\n }\r\n pq.add(new Vertex(entry.getKey(), distance));\r\n }\r\n }\r\n if (!s.equals(t)){\r\n return finalMap.get(t).dist;\r\n }else{\r\n return calculateDistance(s, finalMap);\r\n }\r\n }", "public List<String> computeBestPath(String source, String dest)\r\n {\r\n Vertex v;\r\n List<String>shortestPath = new LinkedList<String>();\r\n \r\n // First, relax all nodes\r\n computeAllPaths(source);\r\n \r\n // Then go through each one and return the path as a list of strings\r\n for (v= network_topology.get(dest); v != null; v = v.previous)\r\n { \r\n shortestPath.add(v.name);\r\n }\r\n \r\n Collections.reverse(shortestPath);\r\n \r\n // Clear the relaxed values so that they can be recalculated with each term\r\n clearPathData();\r\n \r\n return shortestPath;\r\n }", "private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }", "void shortestPath( final VertexType fromNode, Integer node );", "private void computeShortestPathsFromSource(V source) {\n\t\tBFSDistanceLabeler<V, E> labeler = new BFSDistanceLabeler<V, E>();\n\t\tlabeler.labelDistances(mGraph, source);\n\t\tdistances = labeler.getDistanceDecorator();\n\t\tMap<V, Number> currentSourceSPMap = new HashMap<V, Number>();\n\t\tMap<V, E> currentSourceEdgeMap = new HashMap<V, E>();\n\n\t\tfor (V vertex : mGraph.getVertices()) {\n\n\t\t\tNumber distanceVal = distances.get(vertex);\n\t\t\t// BFSDistanceLabeler uses -1 to indicate unreachable vertices;\n\t\t\t// don't bother to store unreachable vertices\n\t\t\tif (distanceVal != null && distanceVal.intValue() >= 0) {\n\t\t\t\tcurrentSourceSPMap.put(vertex, distanceVal);\n\t\t\t\tint minDistance = distanceVal.intValue();\n\t\t\t\tfor (E incomingEdge : mGraph.getInEdges(vertex)) {\n\t\t\t\t\tfor (V neighbor : mGraph\n\t\t\t\t\t\t\t.getIncidentVertices(incomingEdge)) {\n\t\t\t\t\t\tif (neighbor.equals(vertex))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t// V neighbor = mGraph.getOpposite(vertex,\n\t\t\t\t\t\t// incomingEdge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNumber predDistanceVal = distances.get(neighbor);\n\n\t\t\t\t\t\tint pred_distance = predDistanceVal.intValue();\n\t\t\t\t\t\tif (pred_distance < minDistance && pred_distance >= 0) {\n\t\t\t\t\t\t\tminDistance = predDistanceVal.intValue();\n\t\t\t\t\t\t\tcurrentSourceEdgeMap.put(vertex, incomingEdge);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tmDistanceMap.put(source, currentSourceSPMap);\n\t\tmIncomingEdgeMap.put(source, currentSourceEdgeMap);\n\t}", "int getShortestDistance(V vertex);", "@Override\n\tpublic List<Node> findShortestPath(Node s, Node t) {\n\t\tfinal Queue<Node> toVisit = new LinkedList<Node>();\n\t\tfinal Stack<Node> visited = new Stack<Node>();\n\t\tfinal Map<Node, Integer> distance = new HashMap<Node, Integer>();\n\t\tBoolean found = false;\n\t\t// if either node does not exist, then shortestPath is null\n\t\tif (s == null || t == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\ttoVisit.add(s);\n\t\t\tdistance.put(s, 0);\n\t\t\t// Goes through toVisit and visits each individual node and adds\n\t\t\t// it to visited\n\t\t\tNode current;\n\t\t\twhile (!(toVisit.isEmpty())) {\n\t\t\t\tcurrent = toVisit.poll();\n\t\t\t\tvisited.add(current);\n\t\t\t\t// stops search once t is found\n\t\t\t\tif (current.equals(t)) {\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// if not continues by adding the neighbors of the node \n\t\t\t\t// to toVisited\n\t\t\t\tfor (Node neighbor : current.getNeighbors()) {\n\t\t\t\t\tif (!(toVisit.contains(neighbor)) && !(visited.contains(neighbor))) {\n\t\t\t\t\t\ttoVisit.add(neighbor);\n\t\t\t\t\t\tdistance.put(neighbor, distance.get(current) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if no path is between existing nodes s and t return null\n\t\t\tif (!found) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\t// otherwise backtrack using distance to find shortestPath\n\t\t\t\treturn backTrackFrom(t, s, visited, distance);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }", "private Square[] returnPath(Vertex v, GameBoard b) {\n // because we're starting at the end point,\n // we need build the path in 'reverse'\n Stack<Square> path = new Stack<Square>();\n\n // while we're not at the start point\n while ( v.dist != 0 ) {\n path.push(vertexToSquare(v,b));\n v = v.path;\n }\n\n // place the locations in the proper order\n Square[] road = new Square[path.size()];\n for ( int i = 0; i < path.size(); i++ )\n road[i] = path.pop();\n\n return road;\n }", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}", "public int length(int v, int w){\n shortestPath(v,w);\n return minPath;\n }", "public ShortestPathMatrix<V,E> allPairsShortestPaths();", "private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }", "public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);", "public ArrayList<String> shortenPath(ArrayList<String> path){\n int currentX = testFunction.startingX;\n int currentY = testFunction.startingY;\n ArrayList<ArrayList<Integer>> board = testFunction.board;\n for (int i = 0; i < path.size(); i++) {\n if(path.get(i).equals(\"U\")) currentY++;\n if(path.get(i).equals(\"D\")) currentY--;\n if(path.get(i).equals(\"L\")) currentX--;\n if(path.get(i).equals(\"R\")) currentX++;\n if(currentX < board.size() && currentY < board.get(0).size() && currentX >= 0 && currentY >= 0) {\n if (board.get(currentX).get(currentY) == 8) {\n ArrayList<String> shortPath = new ArrayList<>();\n for (int j = 0; j <= i; j++) {\n shortPath.add(path.get(j));\n }\n return shortPath;\n }\n }\n }\n return path;\n }", "void query(int u, int v) {\n int lca = lca2(u, v, spar, dep);\n// out.println(query_up(u, lca) + \" dv\");\n// out.println(query_up(v, lca) + \" ds\");\n int ans = query_up(u, lca) + query_up(v, lca); // One part of path\n out.println(ans);\n// if (temp > ans) ans = temp; // take the maximum of both paths\n// printf(\"%d\\n\", ans);\n }", "public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void getShortestPath()\r\n\t{\r\n\t\tScanner scan = new Scanner(System.in); //instance for input declared\r\n\t\tSystem.out.print(\"\\nPlease enter the Source node for shortest path: \");\r\n\t\tint src = scan.nextInt() - 1;\r\n\t\twhile(src < 0 || src > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered source node is out of range, please enter again: \"); // Printing error\r\n\t\t\tsrc = scan.nextInt() - 1;\t//re-input source\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.print(\"Please enter the destination node for shortest path: \");\r\n\t\tint dest = scan.nextInt() - 1;\r\n\t\twhile(dest < 0 || dest > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered destination node is out of range, please enter again: \"); // Printing error\r\n\t\t\tdest = scan.nextInt() - 1;\t//re-input destination\r\n\t\t}\r\n\t\t\r\n\t\tconnectNetwork(src, dest, true);\r\n\t}", "public StringBuffer pathTo(int v) {\n if (!hasPathTo(v)) return null;\n StringBuffer pathInfo = new StringBuffer();\n for (SiteEdge e = edgeTo[v]; e != null; e = edgeTo[e.from()]) {\n \tpathInfo.insert(0, siteMap.get(e.from()).getSiteNo()+\",\");\n }\n pathInfo.append(siteMap.get(v).getSiteNo());\n return pathInfo;\n }", "public String findShortestRoute(char start, char finish) {\r\n PriorityQueue<Vertex> Q = new PriorityQueue<>(new Comparator<Vertex>() {\r\n @Override\r\n public int compare(Vertex v1, Vertex v2) {\r\n return Integer.compare(v1.getDistanceFromStart(), v2.getDistanceFromStart());\r\n }\r\n });\r\n\r\n Vertex startVert = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == start) {\r\n v.setDistanceFromStart(0);\r\n v.setPrevious(v);\r\n startVert = v;\r\n }\r\n else {\r\n v.setDistanceFromStart(Integer.MAX_VALUE);\r\n v.setPrevious(null);\r\n }\r\n Q.add(v);\r\n }\r\n if(startVert == null) {\r\n throw new IllegalArgumentException(\"start vertex is not in graph\");\r\n }\r\n\r\n Vertex finishVert = null;\r\n while(!Q.isEmpty()) {\r\n Vertex v = Q.remove(); // remove first vertex in queue, the shortest path has been found to this vertex\r\n if(v.getName() == finish) {\r\n finishVert = v;\r\n break; // finish quicker\r\n }\r\n for(Edge incidentEdge : v.getIncidentEdges()) {\r\n Vertex adjacentVertex = incidentEdge.getOppositeVertex(v);\r\n int alt = v.getDistanceFromStart() + incidentEdge.getDistance();\r\n if(alt < adjacentVertex.getDistanceFromStart()) { // if going through this edge shortens the route to adjacentVertex\r\n adjacentVertex.setDistanceFromStart(alt);\r\n adjacentVertex.setPrevious(v);\r\n Q.remove(adjacentVertex); // increase the priority of adjacent vertices if this vertex shortens their route\r\n Q.add(adjacentVertex);\r\n }\r\n }\r\n }\r\n \r\n // throw exception if finish vertex not found\r\n if(finishVert == null) {\r\n throw new IllegalArgumentException(\"finish vertex is not in graph\");\r\n }\r\n \r\n // build the return value by adding vertex names from finish to start,\r\n // reversing the string, then concatenating the distance\r\n StringBuilder sb = new StringBuilder();\r\n for(Vertex v = finishVert; v != startVert; v = v.getPrevious()) {\r\n sb.append(v.getName());\r\n }\r\n return sb.append(start).reverse().append(finishVert.getDistanceFromStart()).toString();\r\n }", "public static void getShortestPath(CITS2200Project cits, String str1, String str2) {\n\t\tString startVertex = str1;\n\t\tString endVertex = str2;\n\n\t\tint sp = cits.getShortestPath(startVertex, endVertex);\n\t\tprint(\"SHORTEST PATH BETWEEN: \\n\\t\" + startVertex + \"\\n\\t\" + endVertex + \"\\n\\t ==> \" + sp);\n\t}", "@SuppressWarnings(\"unchecked\")\n public List<Node> findShortestPath(Node s, Node t) {\n if(s == null || t == null)\n return null;\n\n Queue<LinkedList<Node>> _pathsToVisit = new ArrayDeque<>(); // Stores paths that need to be searched (need to use add to maintain FIFO order)\n HashSet<Node> _visitedNodes = new HashSet<>(); // Stores list of visited nodes\n\n LinkedList<Node> startList = new LinkedList<>(); // Starting with Queue containing list containing first node\n startList.add(s);\n _pathsToVisit.add(startList); // Adds list containing first node to nodesToVisit queue\n\n if(s.equals(t))\n return startList;\n\n while(_pathsToVisit.size() > 0){ // While the queue is not empty, loop\n LinkedList<Node> path = _pathsToVisit.remove(); // sets path LinkedList to first LinkedList in queue and removes it\n\n for(Node node : path.getLast().getNeighbors()){ // For all the neighbors of path\n if(node.equals(t)){ // if found end node, return path\n path.add(node);\n return path;\n }\n else{\n if(!_visitedNodes.contains(node)) { // Check to see if we already visited this node, if so ignore it to avoid loops\n _visitedNodes.add(node); // Adds neighbor to visited nodes\n path.add(node);\n _pathsToVisit.add((LinkedList) path.clone()); // Add cloned list to paths so we can still modify path\n path.removeLast(); //This might be wrong, will the path stored in _pathsToVisit be changed? yes, but we can clone it to prevent this TODO: change\n }\n }\n\n }\n }\n return null; // Return null if no path is found\n }", "void shortestPaths( Set<Integer> nodes );", "public List<Node> getShortestPath(final Node source, final Node target) {\n if (D[source.id][target.id] == Integer.MAX_VALUE) {\n return new ArrayList<Node>(); // no path\n }\n final List<Node> path = getIntermediatePath(source, target);\n path.add(0, source);\n path.add(target);\n return path;\n }", "public PuzzleState getStateWithShortestPath();", "@Test\n public void testShortestPath() {\n Pillar p = new Pillar(0, 0);\n Pillar q = new Pillar(0, 1);\n q.setPrevious(p);\n List<Pillar> path = MazeSolver.shortestPath(q);\n assertEquals(2, path.size());\n assertEquals(p, path.get(0));\n assertEquals(q, path.get(1));\n }", "public double shortestPathDist(int src, int dest);", "public String getShortestPath(int goal) throws Throwable {\n if (goal < 0) {\n return \"There is no path\";\n }\n Queue<Integer> stack = new Queue<>(new Integer[10]); \n int previous = path[goal];\n if (previous == -1) {\n return \"There is no path\";\n }\n while (previous != 0) {\n stack.push(previous);\n previous = path[previous];\n }\n String ret = \"0 > \";\n while (!stack.isEmpty()) {\n ret = ret + (stack.poll() + \" > \");\n }\n return \"\" + ret + goal;\n }", "public void findShortestPath(String startName, String endName) {\n checkValidEndpoint(startName);\n checkValidEndpoint(endName);\n\n Vertex<String> start = vertices.get(startName);\n Vertex<String> end = vertices.get(endName);\n\n double totalDist; // totalDist must be update below\n\n Map<Vertex<String>, Double> distance = new HashMap<>();\n Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();\n Set<Vertex<String>> explored = new HashSet<>();\n PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();\n\n\n\n addPQ(distance, start, pq, previous);\n\n\n\n dijkstraHelper(pq, end, explored, distance, previous);\n\n\n\n\n\n\n totalDist = distance.get(end);\n List<Edge<String>> path = getPath(end, start);\n printPath(path, totalDist);\n }", "public List<Vertex> getShortestPathTo(Vertex target)\n {\n List<Vertex> path = new ArrayList<Vertex>();\n for (Vertex vertex = target; vertex != null; vertex = vertex.previous)\n path.add(vertex);\n Collections.reverse(path);\n return path;\n }", "private Paths sap(Iterable<Integer> v, Iterable<Integer> w) {\n for (int vertex : v) validate(vertex);\n for (int vertex : w) validate(vertex);\n BreadthFirstDirectedPaths fromV = new BreadthFirstDirectedPaths(this.G, v);\n BreadthFirstDirectedPaths fromW = new BreadthFirstDirectedPaths(this.G, w);\n return processPaths(fromV, fromW);\n }", "private static void shortestPath(Map<Integer, DistanceInfo> distanceTable,\n int source, int destination)\n {\n // Backtrack using a stack, using the destination node\n Stack<Integer> stack = new Stack<>();\n stack.push(destination);\n\n // Backtrack by getting the previous node of every node and putting it on the stack.\n // Start at the destination.\n int previousVertex = distanceTable.get(destination).getLastVertex();\n while (previousVertex != -1 && previousVertex != source)\n {\n stack.push(previousVertex);\n previousVertex = distanceTable.get(previousVertex).getLastVertex();\n }\n\n if (previousVertex ==-1)\n {\n System.err.println(\"No path\");\n }\n else\n {\n System.err.println(\"Shortest path: \");\n while (! stack.isEmpty())\n {\n System.err.println(stack.pop());\n }\n }\n }", "private int[] shortest(int w, int v) {\n int[] res = new int[2];\n DeluxeBFS wBFS = new DeluxeBFS(G, w);\n DeluxeBFS vBFS = new DeluxeBFS(G, v);\n boolean[] wMarked = wBFS.getMarked();\n boolean[] vMarked = vBFS.getMarked();\n int minDis = Integer.MAX_VALUE;\n int anc = Integer.MAX_VALUE;\n \n for (int i = 0; i < wMarked.length; i++) {\n if (wMarked[i] && vMarked[i]) {\n int dis = wBFS.distTo(i) + vBFS.distTo(i);\n if (dis < minDis) {\n minDis = dis;\n anc = i;\n }\n }\n }\n if (minDis == Integer.MAX_VALUE) {\n res[0] = -1;\n res[1] = -1;\n return res;\n } else {\n res[0] = minDis;\n res[1] = anc;\n return res;\n }\n }", "@Test\n public void testShortestDistance2() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v1, v3, 3);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n List<Vertex> expectedPath = new ArrayList<>();\n expectedPath.add(v1);\n expectedPath.add(v2);\n expectedPath.add(v3);\n\n assertTrue(g.edge(e1));\n assertTrue(g.vertex(v1));\n\n v1.updateName(\"test\");\n assertEquals(\"test\", v1.name());\n\n assertEquals(expectedPath, g.shortestPath(v1, v3));\n }", "private void calculateShortestDistances (GraphStructure graph,int startVertex,int destinationVertex) {\r\n\t\t//traverseRecursively(graph, startVertex);\r\n\t\tif(pathList.contains(destinationVertex)) {\r\n\t\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\t\tdistanceArray[startVertex]=0;\r\n\t\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\t\tList<Edge> list;\r\n\t\t\tlist = graph.getAdjacencyList()[startVertex];\r\n\t\t\tif(startVertex==destinationVertex) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\tif(! isVisited[value.getVertex()]) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[startVertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t\tshortestPathList.add(value.getVertex());\r\n\t\t\t\t\t\t\tcalculateShortestDistances(graph,value.getVertex(), distanceValueOfDestinationVertex);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*for(Integer value : spanningTreeSet) {\r\n\t\t\t\tSystem.out.print(value+\" \");\r\n\t\t\t}*/\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No route is present between given vertices !\");\r\n\t\t}\r\n\t}", "public static void printShortestPath(List<Town> sp) {\n\t\tint size = sp.size();\n\t\tif ( size>1 ) {\n\t\t\tfor( int i = 1; i <= size; i++) {\n\t\t\t\tif( i != size ) {\n\t\t\t\t\tSystem.out.print( sp.get(size-i).getName()+\"-\" );\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.print( sp.get(size-i).getName());\n\t\t\t\t} \n\t\t\t}\t\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\"There is no possible route\");\n\t\t}\n\t}", "@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }", "private Paths processPaths(BreadthFirstDirectedPaths fromV, BreadthFirstDirectedPaths fromW) {\n List<Integer> common = new LinkedList<Integer>();\n for (int i = 0; i < G.V(); i++) {\n if (fromV.hasPathTo(i) && fromW.hasPathTo(i)) common.add(i);\n }\n\n if (common.size() == 0) return null;\n\n int minDist = Integer.MAX_VALUE;\n int closestAncestor = NO_ANCESTOR;\n int dist;\n for (int ancestor : common) {\n dist = fromV.distTo(ancestor) + fromW.distTo(ancestor);\n if (dist < minDist) {\n minDist = dist;\n closestAncestor = ancestor;\n }\n }\n\n return new Paths(fromV.pathTo(closestAncestor), fromW.pathTo(closestAncestor));\n }", "public Iterable<DirectedEdge> pathTo(int v){\n\t\tvalidateVertex(v);\n\t\tif(!hasPathTo(v)) return null;\n\n\t\tLinkedStack<DirectedEdge> stack=new LinkedStack<>();\n\t\twhile(edgeTo[v]!=null){\n\t\t\tstack.push(edgeTo[v]);\n\t\t\tv=edgeTo[v].from();\n\t\t}\n\t\treturn stack;\n\t}", "private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}", "public Path shortestPath(Vertex a, Vertex b) {\n // If a or b aren't present in the set of vertices throw an exception\n if (!myGraph.containsKey(b) || !myGraph.containsKey(a)) {\n throw new IllegalArgumentException(\"One of the vertices isn't valid\");\n }\n /* Create a map of Vertices to VertexInfos. Fill it with VertexInfos for all\n vertices that each have no previous vertex and and a cost of INFINITY */\n Map<Vertex, VertexInfo> vertInfos = new HashMap<Vertex, VertexInfo>();\n for (Vertex v : vertices()) {\n vertInfos.put(v, new VertexInfo(v, null, INFINITY));\n }\n /* Create a PriorityQueue for VertexInfos */\n PriorityQueue<VertexInfo> viQueue = new PriorityQueue<VertexInfo>();\n /* Create a VertexInfo for the start Vertex 'a' with a cost of 0. This uses a copy of Vertex a&b for immutability */\n Vertex copyA = new Vertex(a.getLabel());\n Vertex copyB = new Vertex(b.getLabel());\n\n VertexInfo vi_a = new VertexInfo(copyA, null, 0);\n /* Add VerxtexInfo for a to PQ and map it to it's VertexInfo */\n viQueue.add(vi_a);\n vertInfos.put(a, vi_a);\n while(!viQueue.isEmpty()) {\n /* Remove the VertexInfo with lowest cost */\n Vertex curr = viQueue.poll().getVertex();\n /* Check all adjacent Vertices of curr Vertex */\n for (Vertex v : adjacentVertices(curr)) {\n /* Calculate cost to get to v through curr */\n int cost = vertInfos.get(curr).getCost() + edgeCost(curr, v);\n /* If cost through curr is lower than previous */\n if (cost < vertInfos.get(v).getCost()) {\n /* Remove v's VertexInfo from PQ */\n viQueue.remove(vertInfos.get(v));\n /* Overwrite previous value of v in map\n Add updated VerexInfo to PQ */\n VertexInfo vi = new VertexInfo(v, curr, cost);\n vertInfos.put(v,vi);\n viQueue.add(vi);\n }\n }\n }\n /* Create ArrayList for path */\n List<Vertex> path = new ArrayList<Vertex>();\n \n /* Add each vertex and it's previous vertex to path until a null vertex is reached */\n for (Vertex vert = copyB; vert != null; vert = vertInfos.get(vert).getPrev()) {\n path.add(vert);\n }\n\n /* Reverse order of path */ \n Collections.reverse(path);\n /* Create new Path object with corresponding parameters */\n if(path.contains(copyA)){\n Path pathToB = new Path(path, vertInfos.get(copyB).getCost());\n return pathToB;\n } else {\n return null;\n }\n }", "public void findPath(Vertex v, Graph g)\n {\n \tQueue<Vertex> q = new LinkedList<Vertex>();\n \tSet<String> visited= new HashSet<String>();\n \tSet<String> edges= new TreeSet<String>();\n \t\n \t \tq.add(v);\n \t \tvisited.add(v.name);\n \t \t\n \t \twhile(!q.isEmpty()){\n \t \t\tVertex vertex = q.poll();\n \t \t\t \n \t for(Edge adjEdge: vertex.adjEdge.values()){\n \t\t if(!visited.contains(adjEdge.adjVertex.name) && !adjEdge.adjVertex.isDown && !adjEdge.isDown){\n \t\t\t q.offer(adjEdge.adjVertex);\n \t\t\t visited.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t\t edges.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t }\n \t }\n \t \n \t }\n \t \tfor(String str: edges){\n \t\t System.out.print('\\t');\n \t\t System.out.println(str);\n \t }\n \t \t\n }", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tthis.shortestPathDist(src, dest);\n\t\tif(this.GA.getNode(src).getWeight() == Integer.MAX_VALUE || this.GA.getNode(dest).getWeight() == Integer.MAX_VALUE){\n\t\t\tSystem.out.print(\"There is not a path between the nodes.\");\n\t\t\treturn null;\n\t\t}\n\t\tgraph copied = this.copy();\n\t\ttransPose(copied);\n\t\tnode_data first = copied.getNode(dest);\n\t\tans.add(first);\n\t\twhile (first.getKey() != src) {\n\t\t\tCollection<edge_data> temp = copied.getE(first.getKey());\n\t\t\tdouble check= first.getWeight();\n\t\t\tif(temp!=null) {\n\t\t\t\tfor (edge_data edge : temp) {\n\t\t\t\t\tif (copied.getNode(edge.getDest()).getWeight() + edge.getWeight() == check) {\n\t\t\t\t\t\tfirst = copied.getNode(edge.getDest());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tans.add(first);\n\t\t}\n\t\tList<node_data> ans2 = new ArrayList<>();\n\t\tfor (int i = ans.size()-1;i>=0;i--){\n\t\t\tans2.add(ans.get(i));\n\t\t}\n\t\treturn ans2;\n\t}", "@SuppressWarnings( \"unchecked\" )\n public Path getShortestPathBetween( LogicalModel model, List<LogicalTable> tables ) {\n logger.debug( \"Enter getShortestPathBetween() - new\" );\n\n // Based on previous results, one table in the list means no path - should return empty path.\n if ( tables.size() == 1 ) {\n if ( logger.isDebugEnabled() ) {\n logger.debug( \"Optimization 1 - one table = empty path.\" );\n }\n return new Path();\n } else if ( tables.size() == 2 ) {\n // Quick optimization - for only two involved tables, check to see if\n // a relation exists that satisfies everyone...\n List<LogicalRelationship> rels = model.getLogicalRelationships();\n LogicalTable t1 = tables.get( 0 );\n LogicalTable t2 = tables.get( 1 );\n LogicalTable t3 = null;\n LogicalTable t4 = null;\n for ( LogicalRelationship rel : rels ) {\n t3 = rel.getFromTable();\n t4 = rel.getToTable();\n if ( ( t3.equals( t1 ) && t4.equals( t2 ) ) || ( t3.equals( t2 ) && t4.equals( t1 ) ) ) {\n Path rtn = new Path();\n rtn.addRelationship( rel );\n if ( logger.isDebugEnabled() ) {\n logger.debug( \"Optimization 2 - two tables + matching relation: \" + rtn );\n }\n return rtn;\n }\n }\n }\n\n // Using this for quick POC\n Object pathBuildProperty = model.getProperty( \"path_build_method\" );\n String pathMethodString;\n if ( ( pathBuildProperty != null ) && ( pathBuildProperty instanceof String ) ) {\n pathMethodString = (String) pathBuildProperty;\n } else {\n if ( preferClassicShortestPath ) {\n pathMethodString = \"CLASSIC\";\n } else {\n pathMethodString = \"SHORTEST\";\n }\n }\n\n PathType pathBuildMethod = null;\n\n if ( pathMethodString.equals( \"CLASSIC\" ) ) {\n return getShortestPathBetweenOrig( model, tables );\n } else {\n pathBuildMethod = PathType.valueOf( pathMethodString );\n }\n\n MqlGraph graph = new MqlGraph( model );\n\n // determine method to use for building the path from the model\n // try {\n // Use when fully integrated into editor and such\n // pathBuildMethod = PathType.valueOf(model.getPathBuildMethod().getCode());\n // }\n // catch(Exception ignored){}\n\n // do work to actually build the path\n logger.debug( \"Attempting to build path using technique: \" + pathBuildMethod );\n Path p = graph.getPath( pathBuildMethod, tables );\n\n // not sure if this really is a good idea, but what do we do when\n // no valid path exists?\n if ( p == null ) {\n logger.debug( \"Unable to calculate shortest path for query, returning null\" );\n }\n\n if ( logger.isDebugEnabled() ) {\n logger.debug( \"Exiting getShortestPathBetween() \" + tables + \" with result \" + p );\n }\n return p;\n }", "private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }", "@Override\r\n public List<V> shortestPath(V start, V destination) {\r\n Vertex a = null, b = null;\r\n try {\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n\r\n while (vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if (start.compareTo(v.vertexName) == 0)\r\n a = v;\r\n if (destination.compareTo(v.vertexName) == 0)\r\n b = v;\r\n }\r\n if (a == null || b == null) {\r\n vertexIterator.next();\r\n }\r\n\r\n } catch (NoSuchElementException e) {\r\n throw e;\r\n }\r\n\r\n computePaths(map.get(start), destination);\r\n return getShortestPathTo(destination, start);\r\n }", "public static Path findShortestPath(Unit unit, int x, int y, GameMap map, boolean theoretical)\n {\n if( null == unit || null == map || !map.isLocationValid(unit.x, unit.y) )\n {\n return null;\n }\n\n Path aPath = new Path(100);\n if( !map.isLocationValid(x, y) )\n {\n // Unit is not in a valid place. No path can be found.\n System.out.println(\"WARNING! Cannot find path for a unit that is not on the map.\");\n aPath.clear();\n return aPath;\n }\n\n int[][] costGrid = new int[map.mapWidth][map.mapHeight];\n for( int i = 0; i < map.mapWidth; i++ )\n {\n for( int j = 0; j < map.mapHeight; j++ )\n {\n costGrid[i][j] = Integer.MAX_VALUE;\n }\n }\n\n // Set up search parameters.\n SearchNode root = new SearchNode(unit.x, unit.y);\n costGrid[unit.x][unit.y] = 0;\n Queue<SearchNode> searchQueue = new java.util.PriorityQueue<SearchNode>(13, new SearchNodeComparator(costGrid, x, y));\n searchQueue.add(root);\n\n ArrayList<SearchNode> waypointList = new ArrayList<SearchNode>();\n\n // Find optimal route.\n while (!searchQueue.isEmpty())\n {\n // Retrieve the next search node.\n SearchNode currentNode = searchQueue.poll();\n\n // If this node is our destination, we are done.\n if( currentNode.x == x && currentNode.y == y )\n {\n // Add all of the points on the route to our waypoint list.\n while (currentNode.parent != null)\n {\n waypointList.add(currentNode);\n currentNode = currentNode.parent;\n }\n // Don't forget the starting node (no parent).\n waypointList.add(currentNode);\n break;\n }\n\n expandSearchNode(unit, map, currentNode, searchQueue, costGrid, theoretical);\n\n currentNode = null;\n }\n\n // Clear and Populate the Path object.\n aPath.clear();\n // We added the waypoints to the list from end to beginning, so populate the Path in reverse order.\n if( !waypointList.isEmpty() )\n {\n for( int j = waypointList.size() - 1; j >= 0; --j )\n {\n //System.out.println(\"Waypoint \" + waypointList.get(j).x + \", \" + waypointList.get(j).y + \" over \" + map.getEnvironment(waypointList.get(j).x, waypointList.get(j).y).terrainType);\n aPath.addWaypoint(waypointList.get(j).x, waypointList.get(j).y);\n }\n }\n\n return aPath;\n }", "public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n\n\n validateIterableVertices(v);\n validateIterableVertices(w);\n\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n Stack<Integer> candidates = new Stack<>();\n\n for (int p = 0; p < dg.V(); p++) {\n if (bfs1.hasPathTo(p) && bfs2.hasPathTo(p)) {\n candidates.push(p);\n }\n }\n\n int shortesAncestor = -1;\n int shortesPath = Integer.MAX_VALUE;\n\n while (!candidates.isEmpty()) {\n int c = candidates.pop();\n if (shortesPath > bfs1.distTo(c) + bfs2.distTo(c)) {\n shortesPath = bfs1.distTo(c) + bfs2.distTo(c);\n shortesAncestor = c;\n }\n }\n\n return shortesAncestor;\n }", "@Test\n public void testShortestDistance() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 3);\n Edge<Vertex> e3 = new Edge<>(v1, v3, 2);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n List<Vertex> expectedPath = new ArrayList<>();\n expectedPath.add(v1);\n expectedPath.add(v3);\n assertEquals(expectedPath, g.shortestPath(v1, v3));\n\n assertEquals(6, g.edgeLengthSum());\n }", "boolean hasPathTo(int v)\n\t{\n\t\treturn edgeTo[v].weight()!=Double.POSITIVE_INFINITY;\n\t}", "public int ancestor(int v, int w) {\n\n if (v < 0 || v >= dg.V() || w < 0 || w >= dg.V())\n throw new IllegalArgumentException(\"vertex is not between 0 and \" + (dg.V() - 1));\n\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n Stack<Integer> candidates = new Stack<>();\n\n for (int p = 0; p < dg.V(); p++) {\n if (bfs1.hasPathTo(p) && bfs2.hasPathTo(p)) {\n candidates.push(p);\n }\n }\n\n int shortesAncestor = -1;\n int shortesPath = Integer.MAX_VALUE;\n\n while (!candidates.isEmpty()) {\n int c = candidates.pop();\n if (shortesPath > bfs1.distTo(c) + bfs2.distTo(c)) {\n shortesPath = bfs1.distTo(c) + bfs2.distTo(c);\n shortesAncestor = c;\n }\n }\n\n return shortesAncestor;\n\n }", "public int length(int v, int w) {\r\n if (v < 0 || w < 0 || v >= G.V() || w >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n shortestDist = (shortestDist <= bfdp1.distTo(i) + bfdp2.distTo(i)) ? shortestDist : bfdp1.distTo(i) + bfdp2.distTo(i);\r\n }\r\n }\r\n return (shortestDist == Integer.MAX_VALUE) ? -1: shortestDist;\r\n }", "public static <G extends BaseWeightedGraph<V,E,W>,V,E extends WeightedEdge<V,W>, W extends Number & Comparable<W>> List<E> findShortestPathInt(G graph, V source, V sink){\r\n\t\t// check graph contains source and sink\r\n\t\tSet<V> vertecies = graph.getVertices();\r\n\t\tif( !(vertecies.contains(source) && vertecies.contains(sink)) ){\r\n\t\t\tthrow new IllegalArgumentException(\"BaseGraph must contain both source and sink\");\r\n\t\t}\r\n\t\t\r\n\t\tPriorityQueue<WeightedPathChain<V,E,W,Integer>> pq = new PriorityQueue<WeightedPathChain<V,E,W,Integer>>(); \r\n\t\tHashSet<V> checked = new HashSet<V>();\r\n\t\tHashMap<V,WeightedPathChain<V,E,W,Integer>> map = new HashMap<V,WeightedPathChain<V,E,W,Integer>>();\r\n\t\taddOrUpdate(map,pq,source,Integer.valueOf(0));\r\n\t\twhile(!pq.isEmpty()&&!sink.equals(pq.peek().vertex)){\r\n\t\t\tWeightedPathChain<V,E,W,Integer> current = pq.poll(); // poll lowest level vertex\r\n\t\t\tchecked.add(current.vertex); // add vertex to checked set\r\n\t\t\tfor (E edge :graph.getOutgoingEdges(current.vertex)){\t// for each outgoing edge \r\n\t\t\t\tif(!checked.contains(edge.getOpposingVertex(current.vertex))){\t\t// if opposing vertex has not been checked \r\n\t\t\t\t\taddOrUpdate(map,\r\n\t\t\t\t\t\t\t\tpq,\r\n\t\t\t\t\t\t\t\tedge.getOpposingVertex(current.vertex),\r\n\t\t\t\t\t\t\t\tInteger.valueOf(map.get(current.vertex).val+edge.getWeight().intValue() ) ,\r\n\t\t\t\t\t\t\t\tedge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<V> path = new ArrayList<V>(); // vertex path \r\n\t\tArrayList<E> edgePath = new ArrayList<E>(); // edge path\r\n\t\tboolean run = true; \r\n\t\tif(!pq.isEmpty()&&pq.peek().vertex.equals(sink)) { // \r\n\t\t\tWeightedPathChain<V,E,W,Integer> vv = pq.poll();\r\n\t\t\tpath.add(vv.vertex);\r\n\t\t\tedgePath.add(vv.edge);\r\n\t\t\twhile(run) {\r\n\t\t\t\tvv = map.get(vv.edge.getOpposingVertex(vv.vertex));\r\n\t\t\t\tif(vv.vertex.equals(source)) {\r\n\t\t\t\t\trun=false;\r\n\t\t\t\t\tpath.add(vv.vertex);\r\n\t\t\t\t}\r\n\t\t\t\telse {\t\r\n\t\t\t\t\tedgePath.add(vv.edge);\r\n\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return path;\r\n\t\t\r\n\t\tCollections.reverse(edgePath);\r\n\t\treturn edgePath;\r\n\t}", "private LinkedList<Integer> _findShortestPath(int source, int destination)\n{\n LinkedList<Integer> output = new LinkedList<Integer>();\n if (this.bellmanParent[destination] == source) {\n output.addFirst(destination);\n output.addFirst(source);\n return output;\n }\n /*\n * Our source is only part of the subtree, and we requested a node beyond\n * its reach. Lets flag it so that the calling function knows to ignore this\n * result.\n */\n if (this.bellmanParent[destination] == destination) {\n output.addFirst(-1);\n return output;\n }\n output = this._findShortestPath(source, this.bellmanParent[destination]);\n output.addLast(destination);\n return output;\n}", "@Override\r\n\tpublic Iterable<Integer> pathTo(int v) {\r\n\t\tif (!hasPathTo(v)) return null;\r\n\r\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\twhile(v != -1) {\r\n\t\t\tlist.add(v);\r\n\t\t\tv = edgeTo[v];\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}", "public int length(int v, int w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n int shortestPath = -1;\n Deque<Integer> ancestors = new ArrayDeque<>();\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer integer : ancestors) {\n int path = bfsV.distTo(integer) + bfsW.distTo(integer);\n if (shortestPath == -1 || path < shortestPath) {\n shortestPath = path;\n }\n }\n return shortestPath;\n }", "public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}", "public Stack<Site> pathTo(Site s) {\n\t\t\n\t\t// put all sites on the path into a stack\n\t\tif (!hasPathTo(s)) return null;\n\t\tStack<Site> path = new Stack<Site>();\n\t\tfor (Site site = s; distTo[site.getX()][site.getY()] != 0; site = edgeTo[site.getX()][site.getY()])\n\t\t\tpath.push(site);\n\t\treturn path;\n\t}", "public static <V> void printAllShortestPaths(Graph<V> graph) {\n double[][] matrizPesos = graph.getGraphStructureAsMatrix();\n double[][] pesos = new double[matrizPesos.length][matrizPesos.length];\n V[] vertices = graph.getValuesAsArray();\n V[][] caminos = (V[][]) new Object[matrizPesos.length][matrizPesos.length];\n for (int x = 0; x < matrizPesos.length; x++) {\n for (int y = 0; y < matrizPesos.length; y++) {\n if (x == y) {\n pesos[x][y] = -1;\n } else {\n if (matrizPesos[x][y] == -1) {\n pesos[x][y] = Integer.MAX_VALUE; //Si no existe arista se pone infinito\n } else {\n pesos[x][y] = matrizPesos[x][y];\n }\n }\n caminos[x][y] = vertices[y];\n }\n }\n for (int x = 0; x < vertices.length; x++) { // Para cada uno de los vertices del grafo\n for (int y = 0; y < vertices.length; y++) { // Recorre la fila correspondiente al vertice\n for (int z = 0; z < vertices.length; z++) { //Recorre la columna correspondiente al vertice\n if (y != x && z != x) {\n double tam2 = pesos[y][x];\n double tam1 = pesos[x][z];\n if (pesos[x][z] != -1 && pesos[y][x] != -1) {\n double suma = pesos[x][z] + pesos[y][x];\n if (suma < pesos[y][z]) {\n pesos[y][z] = suma;\n caminos[y][z] = vertices[x];\n }\n }\n }\n }\n }\n }\n\n //Cuando se termina el algoritmo, se imprimen los caminos\n for (int x = 0; x < vertices.length; x++) {\n for (int y = 0; y < vertices.length; y++) {\n boolean seguir = true;\n int it1 = y;\n String hilera = \"\";\n while (seguir) {\n if (it1 != y) {\n hilera = vertices[it1] + \"-\" + hilera;\n } else {\n hilera += vertices[it1];\n }\n if (caminos[x][it1] != vertices[it1]) {\n int m = 0;\n boolean continuar = true;\n while (continuar) {\n if (vertices[m].equals(caminos[x][it1])) {\n it1 = m;\n continuar = false;\n } else {\n m++;\n }\n }\n } else {\n if (x == y) {\n System.out.println(\"El camino entre \" + vertices[x] + \" y \" + vertices[y] + \" es: \" + hilera);\n } else {\n hilera = vertices[x] + \"-\" + hilera;\n if (pesos[x][y] == Integer.MAX_VALUE) {\n System.out.println(\"El camino mas corto entre \" + vertices[x] + \" y \" + vertices[y] + \" es: infinito (no hay camino)\");\n } else {\n System.out.println(\"El camino mas corto entre \" + vertices[x] + \" y \" + vertices[y] + \" es: \" + hilera + \" con distancia de: \" + (pesos[x][y]));\n }\n }\n seguir = false;\n }\n }\n }\n System.out.println();\n }\n }", "ShortestPath(UndirectedWeightedGraph graph, String startNodeId, String endNodeId) throws NotFoundNodeException {\r\n\t\t\r\n\t\tif (!graph.containsNode(startNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, startNodeId);\r\n\t\t}\t\t\r\n\t\tif (!graph.containsNode(endNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, endNodeId);\r\n\t\t}\t\r\n\r\n\t\tsrc = startNodeId;\r\n\t\tdst = endNodeId;\r\n\t\t\r\n\t\tif (endNodeId.equals(startNodeId)) {\r\n\t\t\tlength = 0;\r\n\t\t\tnumOfPath = 1;\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\tpath.add(startNodeId);\r\n\t\t\tpathList.add(path);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// create a HashMap of updated distance from the starting node to every node\r\n\t\t\t// initially it is 0, inf, inf, inf, ...\r\n\t\t\tHashMap<String, Double> distance = new HashMap<String, Double>();\t\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif (nodeId.equals(startNodeId)) {\r\n\t\t\t\t\t// the starting node will always have 0 distance from itself\r\n\t\t\t\t\tdistance.put(nodeId, 0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// the others have initial distance is infinity\r\n\t\t\t\t\tdistance.put(nodeId, Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// a HashMap of preceding node of each node\r\n\t\t\tHashMap<String, HashSet<String>> precedence = new HashMap<String, HashSet<String>>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif ( nodeId.equals(startNodeId) ) {\r\n\t\t\t\t\tprecedence.put(nodeId, null);\t// the start node will have no preceding node\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tprecedence.put(nodeId, new HashSet<String>());\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\tSet<String> unvisitedNode = new HashSet<String>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tunvisitedNode.add(nodeId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble minUnvisitedLength;\r\n\t\t\tString minUnvisitedNode;\r\n\t\t\t// run loop while not all node is visited\r\n\t\t\twhile ( unvisitedNode.size() != 0 ) {\r\n\t\t\t\t// find the unvisited node with minimum current distance in distance list\r\n\t\t\t\tminUnvisitedLength = Double.MAX_VALUE;\r\n\t\t\t\tminUnvisitedNode = \"\";\r\n\t\t\t\tfor (String nodeId : unvisitedNode) {\r\n\t\t\t\t\tif (distance.get(nodeId) < minUnvisitedLength) {\r\n\t\t\t\t\t\tminUnvisitedNode = nodeId;\r\n\t\t\t\t\t\tminUnvisitedLength = distance.get(nodeId); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// if there are no node that can be visited from the unvisitedNode, break the loop \r\n\t\t\t\tif (minUnvisitedLength == Double.MAX_VALUE) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// remove the node from unvisitedNode\r\n\t\t\t\tunvisitedNode.remove(minUnvisitedNode);\r\n\t\t\t\t\r\n\t\t\t\t// update the distance of its neighbors\r\n\t\t\t\tfor (Node neighborNode : graph.getNodeList().get(minUnvisitedNode).getNeighbors().keySet()) {\r\n\t\t\t\t\tdouble distanceFromTheMinNode = distance.get(minUnvisitedNode) + graph.getNodeList().get(minUnvisitedNode).getNeighbors().get(neighborNode).getWeight();\r\n\t\t\t\t\t// if the distance of the neighbor can be shorter from the current node, change \r\n\t\t\t\t\t// its details in distance and precedence\r\n\t\t\t\t\tif ( distanceFromTheMinNode < distance.get(neighborNode.getId()) ) {\r\n\t\t\t\t\t\tdistance.replace(neighborNode.getId(), distanceFromTheMinNode);\r\n\t\t\t\t\t\t// renew the precedence of the neighbor node\r\n\t\t\t\t\t\tprecedence.put(neighborNode.getId(), new HashSet<String>());\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (distanceFromTheMinNode == distance.get(neighborNode.getId())) {\r\n\t\t\t\t\t\t// unlike dijkstra's algorithm, multiple path should be update into the precedence\r\n\t\t\t\t\t\t// if from another node the distance is the same, add it to the precedence\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the current node in the process is the end node, we can stop the while loop here\r\n\t\t\t\tif (minUnvisitedNode == endNodeId) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (distance.get(endNodeId) == Double.MAX_VALUE) {\r\n\t\t\t\t// in case there is no shortest path between the 2 nodes\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tnumOfPath = 0;\r\n\t\t\t\tpathList = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// other wise we have these information\r\n\t\t\t\tlength = distance.get(endNodeId);\r\n\t\t\t\t//numOfPath = this.getNumPath(precedence, startNodeId, endNodeId);\r\n\t\t\t\tpathList = this.findPathList(precedence, startNodeId, endNodeId);\r\n\t\t\t\tnumOfPath = pathList.size();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t// END ELSE\t\t\r\n\t}", "public int length(Iterable<Integer> v, Iterable<Integer> w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n int shortestPath = -1;\n Deque<Integer> ancestors = new ArrayDeque<>();\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer integer : ancestors) {\n int path = bfsV.distTo(integer) + bfsW.distTo(integer);\n if (shortestPath == -1 || path < shortestPath) {\n shortestPath = path;\n }\n }\n return shortestPath;\n }", "public boolean hasPathTo(int v){\n\t\tvalidateVertex(v);\n\t\treturn distTo[v]<Double.POSITIVE_INFINITY;\n\t}", "@Nullable\n private NodeWithCost<V, A> findShortestPath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n PriorityQueue< NodeWithCost<V, A>> frontier = new PriorityQueue<>(61);\n Map<V, NodeWithCost<V, A>> frontierMap = new HashMap<>(61);\n // Size of explored is the expected number of nextArrows that we need to explore.\n Set<V> explored = new HashSet<>(61);\n return doFindShortestPath(start, frontier, frontierMap, goal, explored, graph, costf);\n }", "public String getPath(String from, String to, String pathAlgo);", "public static void findShortestPath(char[][] maze) {\n\t\tboolean visited[][] = new boolean[maze.length][maze[0].length]; \n\t\tint srcX = 0, srcY = 0;\n\t\t// find the source\n\t\tfor(int i=0; i<maze.length; i++) {\n\t\t\tfor(int j=0; j<maze[0].length; j++) {\n\t\t\t\tif(maze[i][j] == 's') {\n\t\t\t\t\tsrcX = i; srcY=j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tboolean pe = doGridBFS(maze,visited,srcX,srcY);\n\t\tSystem.out.println(pe);\n\t\t\n\t}", "public void findShortestPath() {\r\n\t\t\r\n\t\t//Create a circular array that will store the possible next tiles in the different paths.\r\n\t\tOrderedCircularArray<MapCell> path = new OrderedCircularArray<MapCell>();\r\n\t\t\r\n\t\t//Acquire the starting cell.\r\n\t\tMapCell starting = cityMap.getStart();\r\n\t\t\r\n\t\t//This variable is to be updated continuously with the cell with the shortest distance value in the circular array.\r\n\t\tMapCell current=null;\r\n\t\t\r\n\t\t//This variable is to check if the destination has been reached, which is initially false.\r\n\t\tboolean destination = false;\r\n\t\t\r\n\t\t//Add the starting cell into the circular array, and mark it in the list.\r\n\t\tpath.insert(starting, 0);\r\n\t\t\r\n\t\tstarting.markInList(); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//As long as the circular array isn't empty, and the destination hasn't been reached, run this loop.\r\n\t\t\twhile(!path.isEmpty()&&!destination) {\r\n\t\t\t\t\r\n\t\t\t\t//Take the cell with the shortest distance out of the circular array, and mark it accordingly.\r\n\t\t\t\tcurrent = path.getSmallest();\r\n\t\t\t\tcurrent.markOutList();\r\n\t\t\t\t\r\n\t\t\t\tMapCell next;\r\n\t\t\t\tint distance;\r\n\t\t\t\t\r\n\t\t\t\tif(current.isDestination()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tdestination = true; //If the current cell is the destination, end the loop.\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t\tnext = nextCell(current); //Acquire the next possible neighbour of the current cell.\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Don't run if next is null, meaning there is no other possible neighbour in the path for the current cell.\r\n\t\t\t\t\twhile(next!=null) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = current.getDistanceToStart() + 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//If the distance of the selected neighbouring cell is currently more than 1 more than the current cell's \r\n\t\t\t\t\t\t//distance, update the distance of the neighbouring cell. Then, set the current cell as its predecessor.\r\n\t\t\t\t\t\tif(next.getDistanceToStart()>distance) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tnext.setDistanceToStart(distance);\r\n\t\t\t\t\t\t\tnext.setPredecessor(current);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = next.getDistanceToStart(); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(next.isMarkedInList() && distance<path.getValue(next)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.changeValue(next, distance); //If the neighbouring cell is in the circular array, but with a \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //larger distance value than the new updated distance, change its value.\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if(!next.isMarkedInList()){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.insert(next, distance); //If the neighbouring cell isn't in the circular array, add it in.\r\n\t\t\t\t\t\t\tnext.markInList();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tnext = nextCell(current); //Look for the next possible neighbour, if any.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Catch all the possible exceptions that might be thrown by the method calls. Print the appropriate messages.\r\n\t\t} catch (EmptyListException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidNeighbourIndexException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"The program tried to access an invalid neighbour of a tile.\");\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidDataItemException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage()+\" Path finding execution has stopped.\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//If a path was found, print the number of tiles in the path.\r\n\t\tif(destination) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Number of tiles in path: \" + (current.getDistanceToStart()+1));\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"No path found.\"); //Otherwise, indicate that a path wasn't found.\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n public List<node_info> shortestPath(int src, int dest) {\r\n double i = shortestPathDist(src, dest);\r\n double j, k, s, mark = 1;\r\n ArrayList<node_info> Rlist = new ArrayList<>();\r\n ArrayList<node_info> Llist = new ArrayList<>();\r\n Rlist.clear();\r\n Llist.clear();\r\n j = i;\r\n for (node_info curr : this.Graph.getV()) {\r\n curr.setInfo(\"clear\");\r\n }\r\n this.Graph.getNode(src).setInfo(\"tmp\");\r\n Rlist.add(this.Graph.getNode(dest));\r\n node_info nd = this.Graph.getNode(dest);\r\n node_info temp = this.Graph.getNode(dest);\r\n while (j != 0 && j > 0) {\r\n for (node_info curr0 : this.Graph.getV(nd.getKey())) {\r\n if (curr0.getInfo() != null) {\r\n temp = curr0;\r\n k = this.Graph.getEdge(nd.getKey(), curr0.getKey());\r\n s = j - k;\r\n if ((s - curr0.getTag() < 0.001 && s - curr0.getTag() > -0.001) && nd.getInfo() != null) {\r\n Rlist.add(curr0);\r\n j = curr0.getTag();\r\n curr0.setInfo(\"tmp\");\r\n mark = 1;\r\n nd = curr0;\r\n }\r\n }\r\n }\r\n if (mark == 0) {\r\n i = j;\r\n temp.setInfo(null);\r\n Rlist.clear();\r\n Rlist.add(this.Graph.getNode(dest));\r\n mark = 1;\r\n }\r\n mark = 0;\r\n }\r\n for (int t = (Rlist.size() - 1); t >= 0; t--) {\r\n Llist.add(Rlist.get(t));\r\n }\r\n return Llist;\r\n }", "public ArrayList<Integer> path2Dest(int s, int t, int k, int method){\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n double[] d = new double[intersection];\n int[] parent = new int[intersection];\n\n for (int i = 0; i <intersection ; i++) {\n d[i] = INFINITY;\n parent[i] = -1;\n }\n d[s] = 0;\n\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,d[i]);\n }\n while(!minHeap.isEmpty()){\n int extractedVertex = minHeap.extractMin();\n\n if(extractedVertex==t) {\n break;\n }\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n double newKey =0;\n double currentKey=0;\n if(method==1) { //method 1\n newKey = d[extractedVertex] + edge.weight;\n currentKey = d[destination];\n }\n else{ //method 2\n newKey = d[extractedVertex] + edge.weight + coor[destination].distTo(coor[t])-coor[extractedVertex].distTo(coor[t]);\n currentKey = d[destination];\n }\n if(currentKey>=newKey){\n if(currentKey==newKey){ //if equal need to compare the value of key\n if(extractedVertex<parent[destination]){\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n else {\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n }\n }\n }\n //trace back the path using parent properties\n ArrayList<Integer> path = new ArrayList<>();\n if(parent[t]!=-1){\n path.add(t);\n while(parent[t]!= s) {\n path.add(0,parent[t]);\n t = parent[t];\n }\n path.add(0,s);\n }\n else\n path = null;\n return path;\n }", "Pair<Vertex, Double> closestVertexToPath(Loc pos);", "@Override\n public List<node_data> shortestPath(int src, int dest) {\n reset();\n for (node_data node : G.getV()) {\n node.setWeight(Double.POSITIVE_INFINITY);\n }\n\n DWGraph_DS.Node currentNode = (DWGraph_DS.Node) G.getNode(src);\n currentNode.setWeight(0);\n PriorityQueue<node_data> unvisitedNodes = new PriorityQueue(G.nodeSize(), weightComperator);\n unvisitedNodes.addAll(G.getV());\n HashMap<Integer, node_data> parent = new HashMap<>();\n parent.put(src, null);\n\n while (currentNode.getWeight() != Double.POSITIVE_INFINITY) {\n if (G.getNode(dest).getTag() == 1) {\n break;\n }\n for (edge_data edge : G.getE(currentNode.getKey())) {\n DWGraph_DS.Node neighbor = (DWGraph_DS.Node) G.getNode(edge.getDest());\n double tmpWeight = currentNode.getWeight() + edge.getWeight();\n if (tmpWeight < neighbor.getWeight()) {\n neighbor.setWeight(tmpWeight);\n unvisitedNodes.remove(neighbor);\n unvisitedNodes.add(neighbor);\n parent.put(neighbor.getKey(), currentNode);\n }\n }\n currentNode.setTag(1);\n if(currentNode.getKey()==dest) break;\n unvisitedNodes.remove(currentNode);\n currentNode = (DWGraph_DS.Node) unvisitedNodes.poll();\n }\n /*\n Rebuild the path list\n */\n if (!parent.keySet().contains(dest)) return null;\n List<node_data> pathList = new ArrayList<>();\n currentNode = (DWGraph_DS.Node) G.getNode(dest);\n while (parent.get(currentNode.getKey()) != null) {\n pathList.add(currentNode);\n currentNode = (DWGraph_DS.Node) parent.get(currentNode.getKey());\n }\n Collections.reverse(pathList);\n return pathList;\n }", "public void findShortestRoute(Point2D start, Point2D end){\n fastestPath = null;\n try {\n RouteFinder routeFinder = new RouteFinder(start, end);\n travelMethod(routeFinder);\n routeFinder.setShortestRoute();\n shortestPath = routeFinder.getShortestPath();\n setTravelInfo(routeFinder);\n RoutePlanner routePlanner = new RoutePlanner(shortestPath);\n addToDirectionPane(routePlanner.getDirections());\n }catch(IllegalArgumentException | NullPointerException e){\n addToDirectionPane(new String[]{\"No shortest path between the two locations was found\"});\n setTravelInfo(null);\n shortestPath = null;\n }\n\n repaint();\n\n }", "public int noOfMPaths2Dest(int s,int t,int k){\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n double[] resultPath = new double[intersection];\n LinkedList<Integer>[] parent = new LinkedList[intersection]; //using linked list instead of array to store all the possible parent of an intersection\n\n for (int i = 0; i <intersection ; i++) {\n resultPath[i] = INFINITY;\n parent[i] = new LinkedList<>();\n }\n\n //decrease the distance for the first index\n resultPath[s] = 0;\n\n //add all the vertices to the MinHeap\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,resultPath[i]);\n }\n //while minHeap is not empty\n while(!minHeap.isEmpty()){\n //extract the min\n int extractedVertex = minHeap.extractMin();\n\n if(extractedVertex==t) {\n break;\n }\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n\n double newKey = resultPath[extractedVertex] + edge.weight ;\n double currentKey = resultPath[destination];\n if(currentKey>=newKey){\n minHeap.updateKey(newKey, destination,resultPath[destination]);\n parent[destination].add(extractedVertex);\n resultPath[destination] = newKey;\n }\n }\n }\n }\n int numofPath =0;\n\n //calculate the number of path\n if(parent[t]!=null){\n boolean[] isVisited = new boolean[intersection];\n ArrayList<Integer> pathList = new ArrayList<>();\n pathList.add(t);\n numofPath = findAllPathsUtil(s, t, isVisited, pathList,numofPath,parent); //dfs\n\n }\n return numofPath;\n }", "public boolean hasPathTo(int v) {\n return distTo[v] < Double.POSITIVE_INFINITY;\n }", "private void calculateShortestRoute(String strSourceTerminal){\n\t\tshortestTravelTime = new HashMap<>();\n\n //stores parent of every terminal in shortest travel time\n parent = new HashMap<>();\n \n //heap + map data structure\n MinimumHeap<BaggageTerminal> minHeap = new MinimumHeap<>();\n\n //initialize all terminal with infinite distance from source terminal\n for(BaggageTerminal baggageTerminal : graph.getTerminals()){\n minHeap.add(Integer.MAX_VALUE, baggageTerminal);\n }\n \n BaggageTerminal sourceTerminal = graph.getTerminal(strSourceTerminal);\n \n //set distance of source terminal to itself 0\n minHeap.decrease(sourceTerminal, 0);\n\n //put it in map\n shortestTravelTime.put(sourceTerminal, 0);\n\n //source terminal parent is null\n parent.put(sourceTerminal, null);\n\n //iterate till heap is not empty\n while(!minHeap.empty()){\n //get the min value from heap node which has vertex and distance of that vertex from source vertex.\n MinimumHeap<BaggageTerminal>.Node heapNode = minHeap.extractMinNode();\n BaggageTerminal currentTerminal = heapNode.key;\n\n //update shortest distance of current vertex from source vertex\n shortestTravelTime.put(currentTerminal, heapNode.weight);\n\n //iterate through all connections of current terminal\n for(Connection connection : currentTerminal.getConnections()){\n\n //get the adjacent terminal\n BaggageTerminal adjacent = getConnectingTerminal(currentTerminal, connection);\n\n //if heap does not contain adjacent vertex means adjacent vertex already has shortest distance from source vertex\n if(!minHeap.containsData(adjacent)){\n continue;\n }\n\n //add distance of current vertex to edge weight to get distance of adjacent vertex from source vertex\n //when it goes through current vertex\n int newDistance = shortestTravelTime.get(currentTerminal) + connection.getWeight();\n\n //see if this above calculated distance is less than current distance stored for adjacent vertex from source vertex\n if(minHeap.getWeight(adjacent) > newDistance) {\n minHeap.decrease(adjacent, newDistance);\n parent.put(adjacent, currentTerminal);\n }\n }\n }\n return;\n }", "public ArrayQueue<T> getShortestPath(T vertex1, T vertex2){\n DijkstraShortestPath p = new DijkstraShortestPath(vertex1, vertex2);\n return p.getMinPath();\n }", "public List<String> getShortestRoute(String start, String end) {\n\t\tif (!vertices.contains(start)) return null;\n\t\tMap<String, Vertex> verticesWithDistance = new HashMap<String, Vertex>();\n\t\tVertex starting = new Vertex(start, 0);\n\t\tverticesWithDistance.put(start, starting);\n\t\tstarting.route.add(starting.name);\n\t\tfor (String v : vertices) {\n\t\t\tif (!v.equals(start))\n\t\t\t\tverticesWithDistance.put(v, new Vertex(v, -1));\n\t\t}\n\t\treturn searchByDijkstra(starting, end , verticesWithDistance);\n\t}", "public void shortestPathsNodes() {\n for (int sourceNode = 0; sourceNode < wordGraph.V(); sourceNode++) {\n BreadthFirstDirectedPaths bfs = new BreadthFirstDirectedPaths(wordGraph, sourceNode);\n\n for (int goalNode = 0; goalNode < wordGraph.V(); goalNode++) {\n Iterable<Integer> shortestPath = bfs.pathTo(goalNode);\n int pathLength = -1;\n if (shortestPath != null) {\n for (int edge : shortestPath) {\n pathLength++;\n }\n }\n if (pathLength != -1) {\n }\n System.out.println(pathLength);\n }\n }\n }", "@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn Double.parseDouble(dwg.getNode(dest).getInfo());\n\t}", "private void computePath(){\n LinkedStack<T> reversePath = new LinkedStack<T>();\n // adding end vertex to reversePath\n T current = end; // first node is the end one\n while (!current.equals(start)){\n reversePath.push(current); // adding current to path\n current = closestPredecessor[vertexIndex(current)]; // changing to closest predecessor to current\n }\n reversePath.push(current); // adding the start vertex\n \n while (!reversePath.isEmpty()){\n path.enqueue(reversePath.pop());\n }\n }", "private HashMap<String, Integer> getShortestPath(Node start, Node end){\n if(start.equals(end)) {\n return getShortestPath(start);\n }\n return getShortestPathBetweenDifferentNodes(start,end);\n }", "public int length(Iterable<Integer> v, Iterable<Integer> w){\n if(v == null || w == null)\n throw new NullPointerException(\"null arguments\");\n shortestPath(v,w);\n return minPath;\n }" ]
[ "0.7299876", "0.7181374", "0.69562334", "0.69299525", "0.68582296", "0.6818382", "0.6750234", "0.6588375", "0.65077", "0.6496898", "0.6471287", "0.6426441", "0.63673824", "0.63641787", "0.63031965", "0.62886006", "0.6280864", "0.6279277", "0.62358767", "0.6224376", "0.62060565", "0.61964995", "0.617164", "0.61685854", "0.6155178", "0.6153764", "0.6114516", "0.6098044", "0.6094196", "0.6089761", "0.6081835", "0.6079733", "0.60487163", "0.6040798", "0.6036418", "0.6033105", "0.6029678", "0.6028451", "0.6015663", "0.6008197", "0.60030997", "0.5998442", "0.59478545", "0.59420496", "0.59257513", "0.5914822", "0.5898921", "0.5889458", "0.58744967", "0.5866399", "0.581824", "0.58150667", "0.5804772", "0.5797487", "0.5784138", "0.5777387", "0.57724035", "0.5767076", "0.5759939", "0.57598567", "0.57573855", "0.5750704", "0.5747041", "0.57453614", "0.5731975", "0.57185364", "0.5717042", "0.57147175", "0.5711702", "0.5697092", "0.5680172", "0.56795484", "0.56713253", "0.5670806", "0.5669783", "0.5667169", "0.5665152", "0.56634486", "0.56590927", "0.5657514", "0.5643803", "0.5636155", "0.5633933", "0.56306785", "0.5628269", "0.5618371", "0.56015885", "0.5597243", "0.55896455", "0.55867064", "0.5585327", "0.5584998", "0.55812055", "0.5578435", "0.55495673", "0.5514297", "0.5510918", "0.55023116", "0.549919", "0.54966307" ]
0.57684565
57
is there a path from s to v
boolean hasPathTo(int v) { return edgeTo[v].weight()!=Double.POSITIVE_INFINITY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasPathTo(int v){\n\t\tvalidateVertex(v);\n\t\treturn distTo[v]<Double.POSITIVE_INFINITY;\n\t}", "public boolean hasPathTo(int v) {\n return visited[v];\n }", "public boolean hasPathTo(int v) {\n return distTo[v] < Double.POSITIVE_INFINITY;\n }", "public boolean hasPathTo(int v) {\n return marked[v];\n }", "public boolean hasPathTo(int v)\n { return marked[v]; }", "@Override\r\n\tpublic boolean hasPathTo(int v) {\r\n\t\treturn marked[v];\r\n\t}", "public boolean hasPathTo(Site s) {\n\t\treturn marked[s.getX()][s.getY()];\n\t}", "public boolean pathExists(int startVertex, int stopVertex) {\n// your code here\n ArrayList<Integer> fetch_result = visitAll(startVertex);\n if(fetch_result.contains(stopVertex)){\n return true;\n }\n return false;\n }", "void query(int u, int v) {\n int lca = lca2(u, v, spar, dep);\n// out.println(query_up(u, lca) + \" dv\");\n// out.println(query_up(v, lca) + \" ds\");\n int ans = query_up(u, lca) + query_up(v, lca); // One part of path\n out.println(ans);\n// if (temp > ans) ans = temp; // take the maximum of both paths\n// printf(\"%d\\n\", ans);\n }", "private Square[] returnPath(Vertex v, GameBoard b) {\n // because we're starting at the end point,\n // we need build the path in 'reverse'\n Stack<Square> path = new Stack<Square>();\n\n // while we're not at the start point\n while ( v.dist != 0 ) {\n path.push(vertexToSquare(v,b));\n v = v.path;\n }\n\n // place the locations in the proper order\n Square[] road = new Square[path.size()];\n for ( int i = 0; i < path.size(); i++ )\n road[i] = path.pop();\n\n return road;\n }", "public Iterable<Integer> pathTo(int v)\n {\n if (!hasPathTo(v)) return null;\n Stack<Integer> path = new Stack<Integer>();\n for (int x = v; x != s; x = edgeTo[x])\n path.push(x);\n path.push(s);\n return path;\n }", "public void findPath(Vertex v, Graph g)\n {\n \tQueue<Vertex> q = new LinkedList<Vertex>();\n \tSet<String> visited= new HashSet<String>();\n \tSet<String> edges= new TreeSet<String>();\n \t\n \t \tq.add(v);\n \t \tvisited.add(v.name);\n \t \t\n \t \twhile(!q.isEmpty()){\n \t \t\tVertex vertex = q.poll();\n \t \t\t \n \t for(Edge adjEdge: vertex.adjEdge.values()){\n \t\t if(!visited.contains(adjEdge.adjVertex.name) && !adjEdge.adjVertex.isDown && !adjEdge.isDown){\n \t\t\t q.offer(adjEdge.adjVertex);\n \t\t\t visited.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t\t edges.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t }\n \t }\n \t \n \t }\n \t \tfor(String str: edges){\n \t\t System.out.print('\\t');\n \t\t System.out.println(str);\n \t }\n \t \t\n }", "static void FindPath(vertex s, vertex[] array){\r\n\t\tvertex v; \r\n\t\tint min = Integer.MAX_VALUE;\r\n\t\t//node wN; vertex wV; //wN= adjacent node in LinkedList; wV= find the values in the vertices for wL\r\n\t\tint j =0;\r\n\t\ts.known = true;\r\n\t\ts.dist = 0;\r\n\t\tShortestPath(s, array);\r\n\t\r\n\t\twhile(j<array.length-1 ){ //&& array[j].known== false){\r\n\t\t\tint count = 0; \r\n\t\t\tmin = Integer.MAX_VALUE;\r\n\t\t\tfor(int i = 0; i<array.length; i++){\r\n\t\t\t\tif(array[i].known== false && array[i].dist < min){\r\n\t\t\t\t\tmin = array[i].dist;\r\n\t\t\t\t\tcount = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tv = array[count];\r\n //System.out.println(\"count: \" + count + \"Next v: \" + v.name);\r\n\t\t\tShortestPath(v, array);\r\n\t\t\tj++; \t\t\r\n }\r\n\t}", "public boolean isPathCrossing(String path) {\n // keep track of x and y position \n int x = 0;\n int y = 0;\n // Hashset to hold cordinates \n HashSet<String> known = new HashSet<String>();\n // add original\n known.add(\"0,0\");\n // go through each char in the string\n for(int i = 0; i < path.length(); ++i){\n if(path.charAt(i) == 'N') ++x;\n \n else if(path.charAt(i) == 'S') --x;\n \n else if(path.charAt(i) == 'W') --y;\n \n else if(path.charAt(i) == 'E') ++y;\n \n String loc = x + \",\" + y;\n // if it is already there, return true\n if(known.contains(loc)) return true;\n // otherwise add and keep going\n known.add(loc);\n }\n // no known cordinates were found so return false\n return false;\n }", "public String getPath(String from, String to, String pathAlgo);", "public boolean pathExists(int startVertex, int stopVertex) {\n // your code here\n \tIterator iter = new DFSIterator(startVertex);\n \tInteger i = stopVertex;\n \twhile (iter.hasNext()) {\n \t\tif (iter.next().equals(i)) {\n \t\t\treturn true;\n \t\t}\n \t}\n return false;\n }", "public ArrayList<String> shortestPath(String u, String v)\n {\n ArrayList<String> path = new ArrayList<>();\n HashMap<String, Boolean> flag = new HashMap<>();\n HashMap<String, String> prev = new HashMap<>();\n\n Queue<GraphVertex> queue = new LinkedList<>();\n HashMap<String, Boolean> visited = new HashMap<>();\n\n GraphVertex src = graphVertexHashMap.get(u);\n flag.put(src.getVertexName(), true);\n queue.add(src);\n visited.put(src.getVertexName(), true);\n\n while(!queue.isEmpty()){\n GraphVertex node = queue.poll();\n\n HashMap<String, GraphVertex> edges = node.getOutDegrees();\n Iterator it = edges.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry pair = (Map.Entry)it.next();\n if(flag.get(pair.getKey()) == null || flag.get(pair.getKey()) == false){\n String vertex = (String)pair.getKey();\n flag.put(vertex, true);\n prev.put(vertex, node.getVertexName());\n queue.add(edges.get(pair.getKey()));\n }\n }\n\n }\n path = backTrackPath(prev, u, v);\n return path;\n }", "public boolean isAdjacent(int from, int to) {\n//your code here\n// LinkedList<Edge> list = adjLists[from];\n// for (Edge a : list) {\n// if(a.from()==from&&a.to()==to){\n// return true;\n// }\n// };\n// return false;\n return pathExists(from, to);\n }", "Path getHasPath();", "public abstract boolean isPath();", "private boolean validatePath(BoardSquareInfo start, BoardSquareInfo target, ArrayList<BoardSquareInfo> path) {\n\t\tLog.d(LOG_TAG, String.format(\"Validating path: [%s]\",path));\n\t\t\n\t\t// Invalid if start and target row are separated \n\t\t// by 2 spaces and columns are the same\n\t\tboolean valid = !(Math.abs(start.row-target.row) == 2 \n\t\t\t\t&& start.column == target.column);\n\t\t\n\t\t// Invalid if start and target columns are separated \n\t\t// by 2 spaces and rows are the same\n\t\tvalid = valid && !(start.row == target.row\n\t\t\t\t&& Math.abs(start.column-target.column) == 2);\n\t\t\n\t\tif(valid && path.size() > 1) {\n\t\t\tBoardSquareInfo square = path.get(path.size()-2);\n\t\t\t\n\t\t\t// Invalid if start and target row are separated \n\t\t\t// by 2 spaces and columns are the same\n\t\t\tvalid = valid && !(Math.abs(square.row-target.row) == 2 \n\t\t\t\t\t&& square.column == target.column);\n\t\t\t\n\t\t\t// Invalid if start and target columns are separated \n\t\t\t// by 2 spaces and rows are the same\n\t\t\tvalid = valid && !(square.row == target.row\n\t\t\t\t\t&& Math.abs(square.column-target.column) == 2);\n\t\t}\n\t\t\n\t\tif(valid) {\n\t\t\tstart.swap(target);\n\t\t\tfor(BoardSquareInfo square : path) {\n\t\t\t\tsquare.makeEmpty();\n\t\t\t}\n\t\t\tswitchPlayer();\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "boolean checkIfPathExists(List<WayPointDto> path);", "private boolean findPath(Node b, Node e) throws GraphException{\n\t\t\n\t\t//mark start node and push it on stack\n\t\tb.setMark(true);\n\t\tthis.S.push(b);\n\t\t\t\t\n\t\t// base case, start is the end and we did not exceed the number of bus changes limit\n\t\tif (this.changeCount <= this.changes && b == e){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// variables to hold old values in case we need to change back\n\t\tint holdOldValue = this.changeCount;\n\t\tString holdLine = this.testLine;\n\t\t\n\t\t//iterator over the edges incident on the start node\n\t\tIterator<Edge> iter = this.graph.incidentEdges(b);\n\t\t\n\t\t// loop through incident edges\n\t\twhile(iter.hasNext()){\n\t\t\tEdge line = iter.next();\n\t\t\tString s = line.getBusLine();\n\t\t\t// increase the bus changes count if we change busLines\n\t\t\tif (!s.equals(this.testLine)){\n\t\t\t\tthis.changeCount++;\n\t\t\t}\n\t\t\t// set the bus line to the current one we are on\n\t\t\tthis.testLine = s;\n\t\t\t\n\t\t\t// take the node that is connected to start node via the edge\n\t\t\tNode u;\n\t\t\tif(line.secondEndpoint().equals(b)){\n\t\t\t\tu = line.firstEndpoint();\n\t\t\t}else{\n\t\t\t\tu = line.secondEndpoint();\n\t\t\t}\n\t\t\t// make sure node is not marked and perform a recursive call on it if\n\t\t\t// also make sure that the number of changes allowed has not already been exceeded\n\t\t\tif (u.getMark() != true && this.changeCount <= this.changes){\n\t\t\t\tif (findPath(u, e) == true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// undo changes to bus change count and current bus line if we move backwards\n\t\t\tif (holdOldValue < this.changeCount){\n\t\t\t\tthis.changeCount--;\n\t\t\t\tthis.testLine = holdLine;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t// unset the start node so that other recursive calls can use it and pop it off the stack\n\t\tb.setMark(false);\n\t\tthis.S.pop();\n\t\t\n\t\treturn false;\n\t}", "boolean checkIfPathExists(String startCityUID, List<WayPointDto> path);", "public StringBuffer pathTo(int v) {\n if (!hasPathTo(v)) return null;\n StringBuffer pathInfo = new StringBuffer();\n for (SiteEdge e = edgeTo[v]; e != null; e = edgeTo[e.from()]) {\n \tpathInfo.insert(0, siteMap.get(e.from()).getSiteNo()+\",\");\n }\n pathInfo.append(siteMap.get(v).getSiteNo());\n return pathInfo;\n }", "private boolean isPathH(Board B, Move M, Graph G, int row, int column, Tile tile) {\n\n Tile t = tile;\n\n boolean result = true;\n boolean tempa = true;\n\n int sourceid = 0;\n\n\n int c = M.getX(), r = M.getY();\n\n if (r <= 0 && c <= 0) {\n\n\n } else if (r <= 0 && c >= 0) {\n\n\n } else if (r >= 0 && c >= 0) {\n\n for (int y = 0; y != 2; y++) {\n\n sourceid = (row * B.width) + column;\n\n // System.out.println(\"source id: \" + sourceid);\n\n if (y == 0) {\n\n\n //aab\n for (int i = 0; i != r; i++) {\n\n System.out.println(G.adj(sourceid).toString());\n\n if (G.adj.get(sourceid).contains(sourceid + B.width)) {\n\n // System.out.println(\"row artı\");\n\n } else {\n\n result = false;\n\n }\n\n sourceid += B.width;\n\n }\n\n for (int i = 0; i != c; i++) {\n\n\n if (G.adj.get(sourceid).contains(sourceid + 1)) {\n\n // System.out.println(\"okk\");\n\n } else {\n\n //return false;\n\n }\n\n sourceid += 1;\n\n System.out.println(\"b\");\n\n }\n } else {\n\n sourceid = row * B.width + column;\n\n for (int i = 0; i != c; i++) {\n // System.out.println(\"a\");\n\n }\n for (int i = 0; i != r; i++) {\n // System.out.println(\"b\");\n\n }\n }\n\n\n }\n\n\n }\n\n\n return result;\n }", "public boolean dfs(String source, String destination) {\n if (source.equals(destination)) { \n return true;\n }\n\n boolean pathExists = false;\n visited.add(source);\n List<String> nextList = map.get(source);\n if (nextList == null || nextList.isEmpty()) {\n return false;\n }\n for (String next : nextList) {\n if (!visited.contains(next)) {\n pathExists = dfs(next, destination);\n if (pathExists) {\n break;\n }\n }\n }\n\n return false || pathExists;\n }", "public boolean hasPath(String vname1, String vname2, HashMap<String, Boolean> processed) {\r\n\t\tprocessed.put(vname1, True);\r\n\t\tif (contains_edge(vname1, vname2))\r\n\t\t\treturn true;\r\n\t\tVertex vtx = vtces.get(vname1);\r\n\t\tfor (String key : vtx.nbrs.keySet()) {\r\n\t\t\tif (!processed.containsKey(key) && hasPath(key, vname2, processed))\r\n\t\t\t\treturn true;\r\n\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static String shortestPath(Vertice v1, Vertice v2) {\r\n\t\tArrayList<Float> menorCaminho = new ArrayList<Float>();\r\n\t\tmenorCaminho = menorCaminho(v1, v2, menorCaminho);\r\n\r\n\t\tif (!menorCaminho.isEmpty()) {\r\n\t\t\tString retorno = \"\";\r\n\t\t\tfor (int i = 1; i < menorCaminho.size(); i++) {\r\n\t\t\t\tretorno += menorCaminho.get(i) + \" \";\r\n\t\t\t}\r\n\t\t\treturn retorno;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "public boolean pathExists(int startVertex, int stopVertex) {\r\n if (startVertex == stopVertex) {\r\n \treturn true;\r\n } else {\r\n \tif (visitAll(startVertex).contains(stopVertex)) {\r\n \t\treturn true;\r\n \t}\r\n }\r\n return false;\r\n }", "private boolean isCyclicUtil(String v, Set<String> visited, String parent) {\n\t\tvisited.add(v);\n\t\tSet<String> neighbors = this.neighbors.get(v);\n\t\tfor (String n: neighbors) {\n\t\t\tif (!visited.contains(n)) {\n\t\t\t\tif (isCyclicUtil(n, visited, v)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (!n.equals(parent)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n String path = \"NNSWWEWSSESSWENNW\";\n PathCrossing pathCrossing = new PathCrossing();\n System.out.println(pathCrossing.isPathCrossing(path));\n }", "public boolean isPathToCheese(Maze maze, List<Direction> path);", "public List<Node> findPath(Node start);", "public int checkPathCo(View v, Position pos) {\n\t\tint check = 1;\n\t\tint x = pos.getX();\n\t\tint y = pos.getY();\n\t\t\n\t\ttry {\n\t\t\tif (y == 0 || x == 0)\n\t\t\t\tcheck = 1;\n\t\t\telse\n\t\t\t\tcheck = pathCo[x][y];\n\t\t}\n\t\tcatch (ArrayIndexOutOfBoundsException e) {\n\t\t\tToast.makeText(v.getContext(),\"Out of bounds. Tower cannot be placed here\",Toast.LENGTH_SHORT).show();\n\t\t}\n\t\t\n\t\treturn check;\n\t}", "abstract public List<S> getPath();", "private Paths sap(int v, int w) {\n validate(v);\n validate(w);\n BreadthFirstDirectedPaths fromV = new BreadthFirstDirectedPaths(this.G, v);\n BreadthFirstDirectedPaths fromW = new BreadthFirstDirectedPaths(this.G, w);\n return processPaths(fromV, fromW);\n }", "public String path(String path1, String path2);", "private boolean hasPath(GraphNode origin, GraphNode destination) {\n if (origin.node.getName().equals(outputNode.getName()) || destination.node.getName().equals(inputNode.getName()))\n return false;\n\n Queue<GraphNode> queue = new LinkedList<GraphNode>();\n queue.offer(origin);\n\n while(!queue.isEmpty()) {\n GraphNode current = queue.poll();\n if (current == destination) {\n return true;\n }\n else {\n for (GraphEdge e : current.to) {\n queue.offer(e.to);\n }\n }\n }\n return false;\n }", "private static void helperBoolPath(DiGraph graph, Scanner reader){\n System.out.println(\"Enter the 'from' and 'to' vertices to see if there is a path: \");\n\n int from = reader.nextInt();\n int to = reader.nextInt();\n\n if(graph.isTherePath(from,to))\n System.out.println(\"There is a path from vertex \" + from + \" to the vertex \" + to);\n else {\n System.out.println(\"There is no path from vertex \" + from + \" to the vertex \" + to);\n }\n System.out.println();\n\n }", "Iterable<DirectedEdge> pathTo(int v)\n\t{\n\t\tStack<DirectedEdge> path=new Stack<>();\n\t\tfor(DirectedEdge e=edgeTo[v]; e!=null; e=edgeTo[e.from()])\n\t\t{\n\t\t\tpath.push(e);\n\t\t}\n\t\treturn path;\n\t}", "public abstract boolean visit(PathVertexVisitor visitor, SymbolProvider symbols);", "public Iterable<Vertex> findShortestPath(Vertex v1, Vertex v2){\n\t\treturn null;\n\t}", "public boolean hasEdgeFrom(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void findPath1(List<Coordinate> path) {\n\n // records the start coordinate in a specific sequence.\n ArrayList<Coordinate> starts = new ArrayList<>();\n // records the end coordinate in a specific sequence.\n ArrayList<Coordinate> ends = new ArrayList<>();\n // records the total cost of the path in a specific sequence.\n ArrayList<Integer> cost = new ArrayList<>();\n\n for (Coordinate o1 : originCells) {\n for (Coordinate d1 : destCells) {\n Graph graph = new Graph(getEdge(map));\n graph.dijkstra(o1);\n graph.printPath(d1);\n starts.add(o1);\n ends.add(d1);\n cost.add(graph.getPathCost(d1));\n }\n }\n int index = getMinIndex(cost);\n\n Graph graph = new Graph(getEdge(map));\n graph.dijkstra(starts.get(index));\n graph.printPath(ends.get(index));\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n setSuccess(path);\n }", "private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }", "List<V> getShortestPath(V vertex);", "boolean equivalent(AssignmentPath other);", "@Override\n\tpublic boolean findPath(PathfindingNode start, PathfindingNode end, ArrayList<PathfindingNode> path) \n\t{\n\t\tpath.clear();\n\t\t\n\t\t_visited.clear();\n\t\t_toVisit.clear();\n\t\t_parents.clear();\n\t\t_costsFromStart.clear();\n\t\t_totalCosts.clear();\n\n\t\t_costsFromStart.put(start, 0);\n\t\t_toVisit.add(start);\n\t\t_parents.put(start, null);\n\t\t\n\t\twhile (!_toVisit.isEmpty() && !_toVisit.contains(end))\n\t\t{\n\t\t\tPathfindingNode m = _toVisit.remove();\n\t\t\t\n\t\t\tint mCost = _costsFromStart.get(m);\n\t\t\t\n\t\t\tfor (int i = 0; i < m.getNeighbors().size(); ++i)\n\t\t\t{\n\t\t\t\tPathfindingNodeEdge n = m.getNeighbors().get(i);\n\t\t\t\tif (n.getNeighbor() != null && !_visited.contains(n.getNeighbor()))\n\t\t\t\t{\n\t\t\t\t\tint costFromSource = mCost + n.getCost();\n\t\t\t\t\tint totalCost = costFromSource + _estimator.estimate(n.getNeighbor(), end);\n\t\t\t\t\tif (!_toVisit.contains(n.getNeighbor()) || totalCost < _totalCosts.get(n.getNeighbor()))\n\t\t\t\t\t{\n\t\t\t\t\t\t_parents.put(n.getNeighbor(), m);\n\t\t\t\t\t\t_costsFromStart.put(n.getNeighbor(), costFromSource);\n\t\t\t\t\t\t_totalCosts.put(n.getNeighbor(), totalCost);\n\t\t\t\t\t\tif (_toVisit.contains(n.getNeighbor()))\n\t\t\t\t\t\t\t_toVisit.remove(n.getNeighbor());\n\t\t\t\t\t\t_toVisit.add(n.getNeighbor());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t_visited.add(m);\n\t\t}\n\t\t\n\t\tif (_toVisit.contains(end))\n\t\t{\n\t\t\t_reversePath.clear();\n\t\t\t\n\t\t\tPathfindingNode current = end;\n\t\t\twhile (current != null)\n\t\t\t{\n\t\t\t\t_reversePath.push(current);\n\t\t\t\tcurrent = _parents.get(current);\n\t\t\t}\n\t\t\t\n\t\t\twhile (!_reversePath.isEmpty())\n\t\t\t\tpath.add(_reversePath.pop());\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpath.add(start);\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean getPath(int x, int y, ArrayList<Point> path) {\n\t\tif (x > size-1 || y > size-1 || !isFree(x, y)) { // !isFree -> [x][y] = 0\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tboolean isAtFinal = (x == size-1) && (y == size-1); //destination: 5, 5\n\t\t\n\t\t//if there is a path from my current to end, add it\n\t\tif(isAtFinal || getPath(x, y+1, path) || getPath(x+1, y, path)){\n\t\t\tPoint p = new Point(x,y);\n\t\t\tpath.add(p);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean checkAccess(String s, String op, String obj){\n\t\t\n\t\t/*Integer object = values.get(5).get(obj);\n\t\tInteger operation = values.get(3).get(op);\n\t\tInteger session = values.get(4).get(s);*/\n\t\t\n\t\tHashMap<Integer,Integer> elements = new HashMap<Integer,Integer>();\n\t\telements.put(5, values.get(5).get(obj));\n\t\telements.put(3,values.get(3).get(op));\n\t\telements.put(4, values.get(4).get(s));\n\t\t\n\t\tif (authGraph.dfsWalkEdges(authGraph.getRoot(), elements)) return true;\n\t\telse return false;\n\t\t\n\t\t//CHECK ACCESS MUST HANDLE THE INHERITANCE PROPERLY.........\n\t\t//MEANING IF THERE IS A SPECIAL EDGE BETWEEN TWO ROLES THEN PASS IT WITHOUT CONSUMING THE PATH VALUES....\n\t}", "void pathFound(Node node);", "public boolean hasEdgeTo(char v) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void buildPath(Vertex v) {\n\t\t// permutations des directions\n\t\tList<direction> direct = new ArrayList<>();\n\t\tCollections.addAll(direct, direction.values());\n\t\tCollections.shuffle(direct);\n\t\t\n\t\tfor (int i = 0 ; i < direct.size() ; i++) {\n\t\t\tVertex v2;\n\t\t\tdirection dir = direct.get(i);\n\t\t\tif (v.inBorders(dir) && g.vertexDoesntExist(v, dir) && g.edgeDoesntExist(v, dir)) {\n\t\t\t\tv2 = g.vertexByDir(v, dir);\n\t\t\t\tv2.setNbr(v.getNbr()+1);\n\t\t\t\tg.addVertex(v2);\n\t\t\t\tg.addEdge(v, v2);\n\t\t\t\t//System.out.println(\"edge : \"+\"(\"+v.toString()+\",\"+v2.toString()+\") \"+dir);\n\t\t\t\tbuildPath(v2);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testRelativize_bothAbsolute() {\n assertRelativizedPathEquals(\"b/c\", pathService.parsePath(\"/a\"), \"/a/b/c\");\n assertRelativizedPathEquals(\"c/d\", pathService.parsePath(\"/a/b\"), \"/a/b/c/d\");\n }", "public boolean validPath(int curRow, int curCol, int movRow, int movCol) {\n if (curRow + 2 == movRow || curRow - 2 == movRow){\n if (curCol + 2 == movCol || curCol - 2 == movCol){\n return true;\n }\n }\n return false;\n }", "private boolean isFeasible(int v, int path[], int pos) {\n /* Check if this vertex is an adjacent vertex of the previously added vertex. */\n if (matrix[path[pos - 1]][v] == 0)\n return false;\n\n /* Check if the vertex has already been included.\n This step can be optimized by creating an array of size V */\n for (int i = 0; i < pos; i++)\n if (path[i] == v)\n return false;\n\n return true;\n }", "private int findAllPathsUtil(int s, int t, boolean[] isVisited, List<Integer> localPathList,int numOfPath,LinkedList<Integer>[] parent )\n {\n\n if (t==s) {\n numOfPath++;\n return numOfPath;\n }\n isVisited[t] = true;\n\n for (Integer i : parent[t]) {\n if (!isVisited[i]) {\n localPathList.add(i);\n numOfPath =findAllPathsUtil(s,i , isVisited, localPathList,numOfPath,parent);\n localPathList.remove(i);\n }\n }\n isVisited[t] = false;\n return numOfPath;\n }", "public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);", "public static Set<ARGState> getOnePathToARGStateForSimpleProperty(ARGState source, ARGState destination) {\n Set<Integer> seenElements = new HashSet<Integer>();\n ARGState currentARGState = source;\n seenElements.add(source.getStateId());\n List<ARGState> path = new ArrayList<ARGState>();\n path.add(currentARGState);\n // Set<ARGState> result = new HashSet<ARGState>();\n while (currentARGState.getStateId() != destination.getStateId()) {\n boolean end = true;\n if (!currentARGState.getChildren().isEmpty()) {\n Iterator<ARGState> children = currentARGState.getChildren().iterator();\n ARGState childrenElement ;\n do {\n childrenElement = children.next();\n if (!seenElements.contains(childrenElement.getStateId())) {\n path.add(childrenElement);\n currentARGState=childrenElement;\n seenElements.add(childrenElement.getStateId());\n end = false;\n break;\n }\n } while(children.hasNext());\n if(end){\n path.remove(path.size()-1);\n if(path.size()!=0){\n currentARGState=path.get(path.size()-1);\n seenElements.add(currentARGState.getStateId());\n }\n else\n break;\n }\n\n }\n else{\n path.remove(path.size()-1);\n if(path.size()!=0){\n currentARGState=path.get(path.size()-1);\n seenElements.add(currentARGState.getStateId());\n }\n else\n break;\n }\n }\n if(currentARGState.getStateId() != destination.getStateId())\n return null;\n if(!destination.getChildren().contains(source))\n return null;\n System.out.println(\"path.size=\"+path.size());\n Iterator<ARGState> it=path.iterator();\n for(int i=0;i<path.size()-1;i++){\n ARGState pre=path.get(i);\n ARGState suc=path.get(i+1);\n CFAEdge edge=pre.getEdgeToChild(suc);\n if(edge.getRawStatement().equals(\"BLANKEDGE\")){\n pre.getChildren().remove(suc);\n suc.getParents().remove(pre);\n AbstractStates.extractLocation(pre).getLeavingEdge().remove(edge);\n AbstractStates.extractLocation(suc).getEnteringEdges().remove(edge);\n }\n }\n return new HashSet<ARGState>(path);\n }", "private static boolean isNotLoopRoute( String s, String d ) {\n\t\tif ( !s.equals(d) ) return true; \n\t\tthrow new IllegalArgumentException(\"A route from '\"+s+\"' to it self is not possible\");\n\t}", "private void printPath( Vertex dest )\n {\n if( dest.prev != null )\n {\n printPath( dest.prev );\n // System.out.print( \" to \" );\n }\n System.out.print( dest.name +\" \" );\n }", "public void printPath(Vertex v) {\n if ( v.dist == 0 )\n return;\n printPath(v.path);\n System.out.print(\"-> \" + v.graphLoc+\" \");\n }", "private Paths sap(Iterable<Integer> v, Iterable<Integer> w) {\n for (int vertex : v) validate(vertex);\n for (int vertex : w) validate(vertex);\n BreadthFirstDirectedPaths fromV = new BreadthFirstDirectedPaths(this.G, v);\n BreadthFirstDirectedPaths fromW = new BreadthFirstDirectedPaths(this.G, w);\n return processPaths(fromV, fromW);\n }", "private boolean checkSharedVertex(Segment s1, Segment s2){\n\t\tdouble wp1x = s1.w1.getX();\n\t\tdouble wp1y = s1.w1.getY();\n\t\tdouble wp2x = s1.w2.getX();\n\t\tdouble wp2y = s1.w2.getY();\n\t\tdouble wp3x = s2.w1.getX();\n\t\tdouble wp3y = s2.w1.getY();\n\t\tdouble wp4x = s2.w2.getX();\n\t\tdouble wp4y = s2.w2.getY();\n\n\t\tif (((wp1x == wp3x && wp1y == wp3y) || (wp1x == wp4x && wp1y == wp4y)) \n\t\t|| ((wp2x == wp3x && wp2y == wp3y) || (wp2x == wp4x && wp2y == wp4y)))\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "public Iterable<DirectedEdge> pathTo(int v){\n\t\tvalidateVertex(v);\n\t\tif(!hasPathTo(v)) return null;\n\n\t\tLinkedStack<DirectedEdge> stack=new LinkedStack<>();\n\t\twhile(edgeTo[v]!=null){\n\t\t\tstack.push(edgeTo[v]);\n\t\t\tv=edgeTo[v].from();\n\t\t}\n\t\treturn stack;\n\t}", "public boolean connectsVertex(V v);", "@Override\r\n\tpublic Iterable<Integer> pathTo(int v) {\r\n\t\tif (!hasPathTo(v)) return null;\r\n\r\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\twhile(v != -1) {\r\n\t\t\tlist.add(v);\r\n\t\t\tv = edgeTo[v];\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "PathSegments getPath();", "public boolean checkPaths(int index) {\n\t\tfor (int i = 0; i < memory.size(); i++) {\n\t\t\tif (memory.get(i) == index)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic Map<V, Point2D> execute(Path<V,E> S){\n\n\t\tMap<V, Point2D> ret = new HashMap<V, Point2D>();\n\n\t\t//determine position of S* vertices\n\t\t//TODO center as algorithm parameter\n\t\tPoint2D center = new Point(0,0);\n\n\t\t//convex testing returns S which is equal to S* (there are no vertices \n\t\t//in S which are not in S\n\n\t\tList<V> Svertices = S.pathVertices();\n\t\tSvertices.remove(Svertices.size() - 1);\n\t\tlog.info(\"Face vertices \" + Svertices);\n\t\tCircleLayoutCalc<V> circleCalc = new CircleLayoutCalc<V>();\n\t\tdouble radius = circleCalc.calculateRadius(Svertices, treshold);\n\t\tMap<V,Point2D> positions = circleCalc.calculatePosition(Svertices, radius, center);\n\t\tlog.info(\"Calculating positions of the outer cycle\");\n\t\tlog.info(positions);\n\t\tret.putAll(positions);\n\n\n\t\t//step one - for each vertex v of degree two not on S\n\t\t//replace v together with two edges incident to v with a \n\t\t//single edge joining the vertices adjacent to v\n\n\t\t//leave the original graph intact - make a copy to start with\n\t\tGraph<V,E> gPrim = Util.copyGraph(graph);\n\t\t//store deleted vertices in order to position them later\n\t\tMap<V, E> deletedAdjacentMap = new HashMap<V,E>();\n\n\n\t\t//once a vertex is deleted and its two edges are deleted\n\t\t//and a new one is created\n\t\t//there might be a vertex with degree 2 connected to the deleted vertex\n\t\t//we don't want to create an edge containing the deleted vertex\n\t\t//the newly created edge should be taken into account\n\n\t\tIterator<V> iter = gPrim.getVertices().iterator();\n\t\twhile (iter.hasNext()){\n\t\t\tV v = iter.next();\n\t\t\tif (!Svertices.contains(v) && gPrim.vertexDegree(v) == 2){\n\t\t\t\tlog.info(\"Deleting \" + v);\n\t\t\t\tList<E> edges = gPrim.adjacentEdges(v);\n\t\t\t\tE e1 = edges.get(0);\n\t\t\t\tE e2 = edges.get(1);\n\t\t\t\tlog.info(\"removing \" + e1);\n\t\t\t\tlog.info(\"removing \" + e2);\n\t\t\t\tgPrim.removeEdge(e1);\n\t\t\t\tgPrim.removeEdge(e2);\n\t\t\t\tV adjV1 = e1.getOrigin() == v ? e1.getDestination() : e1.getOrigin();\n\t\t\t\tV adjV2 = e2.getOrigin() == v ? e2.getDestination() : e2.getOrigin();\n\t\t\t\tE newEdge = Util.createEdge(adjV1, adjV2, edgeClass);\n\t\t\t\tlog.info(\"Creating \" + newEdge);\n\t\t\t\tgPrim.addEdge(newEdge);\n\t\t\t\tdeletedAdjacentMap.put(v,newEdge);\n\t\t\t}\n\t\t}\n\n\t\tfor (V v : deletedAdjacentMap.keySet()){\n\t\t\tgPrim.removeVertex(v);\n\t\t}\n\n\n\t\tlog.info(\"G': \" + gPrim);\n\t\t//step 2 - call Draw on (G', S, S*) to extend S* into a convex drawing of G'\n\t\tdraw(gPrim, S.getPath(), Svertices, ret);\n\n\t\t//step 3 For each deleted vertex of degree 2 determine its position on the straight \n\t\t//line segment joining the two vertices adjacent to the vertex\n\n\t\tSet<V> deletedVertices = deletedAdjacentMap.keySet();\n\t\tList<V> coveredVertices = new ArrayList<V>();\n\n\t\tlog.info(\"deleted vertices: \" + deletedVertices);\n\n\t\tfor (V v : deletedVertices){\n\n\t\t\tif (coveredVertices.contains(v))\n\t\t\t\tcontinue;\n\n\t\t\tE addedEdge = deletedAdjacentMap.get(v);\n\t\t\tV firstAdjacent = addedEdge.getOrigin();\n\t\t\tV secondAdjacent = addedEdge.getDestination();\n\t\t\tPoint2D pos1 = ret.get(firstAdjacent);\n\t\t\tPoint2D pos2 = ret.get(secondAdjacent);\n\t\t\tif (pos1 != null && pos2 != null){\n\t\t\t\t//find deleted vertices on this line\n\n\t\t\t\tList<E> adjacentEdges = graph.adjacentEdges(v);\n\t\t\t\tE e1 = adjacentEdges.get(0);\n\t\t\t\tE e2 = adjacentEdges.get(1);\n\t\t\t\tV e1Next = e1.getOrigin() == v ? e1.getDestination() : e1.getOrigin();\n\t\t\t\tV e2Next = e2.getOrigin() == v ? e2.getDestination() : e2.getOrigin();\n\n\t\t\t\tif ((e1Next == firstAdjacent && e2Next == secondAdjacent) ||\n\t\t\t\t\t\t(e2Next == firstAdjacent && e1Next == secondAdjacent)){\n\n\t\t\t\t\t//just one vertex between two known\n\n\t\t\t\t\tdouble xPos = ret.get(e1Next).getX() + ((ret.get(e2Next).getX() - ret.get(e1Next).getX()) / 2);\n\t\t\t\t\tdouble yPos = ret.get(e1Next).getY() + ((ret.get(e2Next).getY() - ret.get(e1Next).getY()) / 2);\n\t\t\t\t\tret.put(v, new Point2D.Double(xPos, yPos));\n\t\t\t\t}\n\t\t\t\telse{\n\n\t\t\t\t\tList<V> verticesOnLine = new ArrayList<V>();\n\t\t\t\t\tverticesOnLine.add(v);\n\n\t\t\t\t\t//in all probability, traversing e1 is enough as the\n\t\t\t\t\t//vertex won't be somewhere in the middle, but directly \n\t\t\t\t\t//connected to one of the vertices whose positions are known\n\t\t\t\t\t//keep both for now\n\t\t\t\t\t//traverse e1\n\t\t\t\t\tE currentE = e1;\n\t\t\t\t\tint numberThroughE1 = 0;\n\t\t\t\t\twhile (e1Next != firstAdjacent && e1Next != secondAdjacent){\n\t\t\t\t\t\tif (!verticesOnLine.contains(e1Next)){\n\t\t\t\t\t\t\tverticesOnLine.add(e1Next);\n\t\t\t\t\t\t\tnumberThroughE1++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList<E> currentAdjacent = graph.adjacentEdges(e1Next);\n\t\t\t\t\t\tif (currentAdjacent.get(0) == currentE)\n\t\t\t\t\t\t\tcurrentE = currentAdjacent.get(1);\n\t\t\t\t\t\telse if (currentAdjacent.get(1) == currentE)\n\t\t\t\t\t\t\tcurrentE = currentAdjacent.get(0);\n\n\t\t\t\t\t\te1Next = currentE.getOrigin() == e1Next ? currentE.getDestination() : currentE.getOrigin();\n\t\t\t\t\t}\n\n\n\t\t\t\t\t//traverse e2\n\t\t\t\t\tcurrentE = e2;\n\t\t\t\t\twhile (e2Next != firstAdjacent && e2Next != secondAdjacent){\n\t\t\t\t\t\tif (!verticesOnLine.contains(e2Next))\n\t\t\t\t\t\t\tverticesOnLine.add(e2Next);\n\n\t\t\t\t\t\tList<E> currentAdjacent = graph.adjacentEdges(e2Next);\n\t\t\t\t\t\tif (currentAdjacent.get(0) == currentE)\n\t\t\t\t\t\t\tcurrentE = currentAdjacent.get(1);\n\t\t\t\t\t\telse if (currentAdjacent.get(1) == currentE)\n\t\t\t\t\t\t\tcurrentE = currentAdjacent.get(0);\n\n\t\t\t\t\t\te2Next = currentE.getOrigin() == e2Next ? currentE.getDestination() : currentE.getOrigin();\n\t\t\t\t\t}\n\n\t\t\t\t\tlog.info(\"vertices on line: \" + verticesOnLine);\n\t\t\t\t\tcoveredVertices.addAll(verticesOnLine);\n\n\t\t\t\t\tint numberOfVerticesOnLine = verticesOnLine.size();\n\t\t\t\t\tdouble incrementX = (ret.get(e2Next).getX() - ret.get(e1Next).getX()) / (numberOfVerticesOnLine + 1);\n\t\t\t\t\tdouble incrementY = (ret.get(e2Next).getY() - ret.get(e1Next).getY()) / (numberOfVerticesOnLine + 1);\n\n\t\t\t\t\tPoint2D currentPosition = ret.get(e1Next); //e1Next holds a vertex whose position is known\n\n\t\t\t\t\tfor (int i = numberThroughE1; i >= 0; i--){\n\t\t\t\t\t\tV currentV = verticesOnLine.get(i);\n\t\t\t\t\t\tPoint2D position = new Point2D.Double(currentPosition.getX() + incrementX, currentPosition.getY() + incrementY);\n\t\t\t\t\t\tret.put(currentV, position);\n\t\t\t\t\t\tcurrentPosition = position;\n\t\t\t\t\t}\n\n\n\t\t\t\t\tfor (int i = numberThroughE1 + 1; i< numberOfVerticesOnLine; i++){\n\t\t\t\t\t\tV currentV = verticesOnLine.get(i);\n\t\t\t\t\t\tPoint2D position = new Point2D.Double(currentPosition.getX() + incrementX, currentPosition.getY() + incrementY);\n\t\t\t\t\t\tret.put(currentV, position);\n\t\t\t\t\t\tcurrentPosition = position;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t}\n\n\n\t\treturn ret;\n\t}", "public boolean startsWith(Path path) {\n if (path == null) {\n return true;\n } else if (parts.length < path.parts.length) {\n return false;\n }\n for (int i = 0; i < path.parts.length; i++) {\n if (!parts[i].equals(path.parts[i])) {\n return false;\n }\n }\n if (parts.length == path.parts.length) {\n return index == path.index;\n } else {\n return path.index;\n }\n }", "public boolean validPath(int curRow, int curCol, int movRow, int movCol) {\n\n if(movCol > curCol && curRow == movRow || movCol < curCol && curRow == movRow){\n return true;\n }\n\n if(curRow + 1 == movRow && movCol == curCol || curRow - 1 == movRow && movCol == curCol){\n return true;\n }\n\n return false;\n }", "List<List<Node>> findUndirectedPaths(Node s, Node d) {\n\t\tList<List<Node>> paths = new ArrayList<>();\n\t\tpath(s, d, new HashSet<>(), new ArrayList<>(), paths);\n System.out.println(\"Computed paths: \" + paths);\n return paths;\n\t}", "void print_path(int[]parent,int[]dist,int s)\n {\n System.out.println(); \n \n //path from s to all other vertices\n \n for(int i=0;i<parent.length;i++)\n {\n System.out.println(\"From \"+s+\" to \"+i);\n System.out.print(\"path: \");\n print_node(parent,i);\n System.out.print(\"END\");\n if(dist[i]==INF)\n System.out.println(\" cost=INF\"); \n else\n System.out.println(\" cost=\"+dist[i]);\n\n }\n \n \n System.out.println();\n \n\n \n }", "public boolean dfs(String s, Set<String> dic) {\n if(s.equals(\"\")) return true;\n for(int i=0; i<s.length(); i++) {\n String temp = s.substring(0, i+1);\n if(dic.contains(temp)) {\n if(dfs(s.substring(i+1), dic)) return true;\n }\n }\n return false;\n }", "public boolean pathWasFound(int goal) {\n if (path[goal] < 0 ) {\n return false;\n }\n return true;\n }", "public Vector<City> findPath(City c1, City c2) throws CityNotFoundException, NoPathException {\r\n\t\tif(!isExists(c1)||!isExists(c2)){\r\n\t\t\tthrow new CityNotFoundException(\"city not exists\");\r\n\t\t}\r\n\t\tif(!isExists(c1)&&!isExists(c2)){\r\n\t\t\tthrow new CityNotFoundException(\"city not exists\");\r\n\t\t}\r\n\r\n\r\n\t\tif(map.bfs(c1, c2)==null){\r\n\t\t\tthrow new NoPathException (\"no path found\");\r\n\t\t}\r\n\r\n\r\n\t\treturn map.bfs(c1, c2);\r\n\r\n\r\n\r\n\r\n\t}", "@Override\r\n public boolean isConnected(V start, V destination) {\r\n return !shortestPath(start, destination).isEmpty();\r\n }", "int findPath(int from, int f[][]) {\n\t\tfor( int i = 0; i < N; i++ )\n\t\t\tif( f[from][i] > 0 ) return i;\n\t\treturn NONE; \n\t}", "public Pair<Integer, Boolean> findPath(BabelSynset bs1, BabelSynset bs2) throws Exception {\n\t\tif(bs1.equals(bs2) && !bs1.equals(\"bn:00031027n\")) return new Pair<Integer, Boolean>(0, false);\n\t\tif(bs1.equals(bs2) && bs1.equals(\"bn:00031027n\")) return new Pair<Integer, Boolean>(0, true);\n\t\t\n\t\tA_parentsHigh = new ArrayList<String>();\n\t\t\n\t\tPair<Integer, Boolean> default_result = new Pair<Integer, Boolean>(0, true);\n\t\t\n\t\tint A_path = 0;\n\t\tString A_parent = bs1.getId().toString();\n\t\tB_recoverAncestors(bs2, 25);\n\t\t\n\t\tSystem.out.println(B_Ancestors+\"\\n\\n\");\n\t\t\n\t\tif(A_parent == null) return new Pair<Integer, Boolean>(B_Ancestors.size(), true);\n\t\tif(A_parent.equals(\"bn:00031027n\")) return new Pair<Integer, Boolean>(B_Ancestors.size()+1, true);\n\t\tfor(int i=0; i<50; i++) {\n\t\t\tSystem.out.println(A_parent);\n\t\t\tint B_path = 0;\n\t\t\tfor(String id : B_Ancestors) {\n\t\t\t\tif(A_parent.equals(id)) {\n\t\t\t\t\tSystem.out.println(\"Path di A: \" + A_path + \"\\nPath di B: \" + B_path);\n\t\t\t\t\tif(id.equals(\"bn:00031027n\")) return new Pair<Integer, Boolean>(A_path+B_path, true);\n\t\t\t\t\telse return new Pair<Integer, Boolean>(A_path+B_path, false);\n\t\t\t\t}\n\t\t\t\tB_path++;\n\t\t\t}\n\t\t\tif(A_parent.equals(\"bn:00031027n\")) break;\n\t\t\tA_parent = recoverParent(bn.getSynset(new BabelSynsetID(A_parent)));\n\t\t\tA_path++;\n\t\t}\n\t\treturn default_result;\n\t}", "private boolean hasAugmentingPath(FlowNetwork G, int s, int t) {\r\n edgeTo = new FlowEdge[G.V()];\r\n marked = new boolean[G.V()];\r\n\r\n // breadth-first search\r\n Queue<Integer> queue = new ArrayDeque<Integer>();\r\n queue.add(s);\r\n marked[s] = true;\r\n while (!queue.isEmpty() && !marked[t]) {\r\n int v = queue.remove();\r\n\r\n for (FlowEdge e : G.adj(v)) {\r\n int w = e.other(v);\r\n\r\n // if residual capacity from v to w\r\n if (e.residualCapacityTo(w) > 0) {\r\n if (!marked[w]) {\r\n edgeTo[w] = e;\r\n marked[w] = true;\r\n queue.add(w);\r\n }\r\n }\r\n }\r\n }\r\n\r\n // is there an augmenting path?\r\n return marked[t];\r\n }", "public void allPaths(int v1, int v2, int x)\n {\n \tboolean[] visited = new boolean[V];\n \tArrayList<DirectedEdge> paths = new ArrayList<>(V);\n \td = 0;\n \tif(online[v1] == false || online[v2] == false)\n \t{\n \t\tSystem.out.println(\"One or more vertices are down\");\n \t\treturn;\n \t}\n \trecursivePaths(v1,v2,x,visited,paths, 0);\n \tSystem.out.println(\"\\n\\n\");\n }", "public void printAllPaths(int s, int d)\n {\n boolean[] isVisited = new boolean[v];\n ArrayList<Integer> pathList = new ArrayList<>();\n\n //add source to path[]\n pathList.add(s);\n\n //Call recursive utility\n printAllPathsUtil(s, d, isVisited, pathList);\n }", "private void path(Node s, Node d, HashSet<Node> visited, List<Node> currentPath, List<List<Node>> paths) {\n\t\tvisited.add(s);\n\t\tcurrentPath.add(s);\n\t\t\n\t\tif(s.value == d.value) {\n\t\t\tpaths.add(currentPath);\n\t\t\treturn;\n\t\t}\n\n\t\t/*\n\t\t* A list of nodes accessible from the current node, both parents and children\n\t\t* */\n\t\tList<Node> proximity = new ArrayList<>();\n\t\t\n\t\tif(s.children != null)\n\t\t\tfor(Node child : s.children) {\n\t\t\t\tif(!visited.contains(child))\n\t\t\t\t\tproximity.add(child);\n\t\t\t}\n\t\t\n\t\tif(s.parents != null)\n\t\t\tfor(Node parent : s.parents) {\n\t\t\t\tif(!visited.contains(parent)) \n\t\t\t\t\tproximity.add(parent);\n\t\t\t}\n\n /*\n * Explore each possible path\n * */\n\t\tfor(Node neighbour : proximity) {\n\t\t\tArrayList<Node> newPath = new ArrayList<>(currentPath);\n\t\t\tpath(neighbour, d, visited, newPath, paths);\n\t\t}\n\t}", "public boolean hasPath(final int one) {\n return distace[one] < NUMBER;\n }", "private void findPath()\n\t{\n\t\tpathfinding = true;\n\n\t\tmoves = Pathfinder.calcOneWayMove(city.getDrivingMap(), x, y, destX, destY);\n\t\tpathfinding = false;\n\t}", "public List<Node> findShortestPath(Node s, Node t);", "public boolean detectCyclesContainingVertex(V v)\n {\n try {\n execute(null, v);\n } catch (CycleDetectedException ex) {\n return true;\n }\n\n return false;\n }", "private boolean setUpDpath(String S) {\n if (S == null) {\n return false;\n }\n S = S.trim();\n\n // remove the specification/filter part if found\n S = removeSpesificationPart(S);\n\n //--------------------------\n // the we go for the path\n S = S.trim();\n\n // do special cases\n if (S.compareTo(\"*\") == 0) {\n S = NO_VALUE;\n }\n if (S.compareTo(\"/\") == 0) {\n S = NO_VALUE + \"/\" + NO_VALUE;\n }\n if (S.startsWith(\"/\")) {\n S = NO_VALUE + S;\n }\n\n dpath = new ArrayList<String>(6);\n dpath.add(ROOT); // as level 0\n if (S.isEmpty()) {\n dpath.add(NO_VALUE);\n }\n // introduce space to make sure we count correct\n S = S.replaceAll(\"\\\\Q//\\\\E\", \"/ /\");\n String[] parts = S.split(\"/\");\n for (int ix = 0; ix < parts.length; ix++) {\n if (parts[ix].trim().isEmpty()) {\n dpath.add(NO_VALUE);\n } else {\n dpath.add(parts[ix].trim());\n }\n }\n return true;\n }", "public boolean isEqualStrategy(PathNameStrategy strategy);", "public Stack<Site> pathTo(Site s) {\n\t\t\n\t\t// put all sites on the path into a stack\n\t\tif (!hasPathTo(s)) return null;\n\t\tStack<Site> path = new Stack<Site>();\n\t\tfor (Site site = s; distTo[site.getX()][site.getY()] != 0; site = edgeTo[site.getX()][site.getY()])\n\t\t\tpath.push(site);\n\t\treturn path;\n\t}", "boolean hasRoute(Node to);", "private ArrayList<Node> getPathBetweenNodes(Node s, Node t, int distance){\n\t\tArrayList<Node> path = new ArrayList<Node>();\n\t\tpath.add(0,t);\n\t\tSet<Node> nodes = distanceFromS.keySet();\n\t\tfor (int i = distance -1 ; i > 0; i --) {\n\t\t\tfor (Node n: nodes) {\n\t\t\t\tif (path.get(0).getNeighbors().contains(n) && distanceFromS.get(n) == i) {\n\t\t\t\t\tpath.add(0, n);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpath.add(0,s);\n\t\treturn path;\n\t}", "boolean hasRouteDest();", "private boolean equals(AccessPath that, HashSet s) {\n // Relies on the fact that the iterators are stable for equivalent sets.\n // Otherwise, it is an n^2 algorithm.\n for (Iterator i = this.succ.iterator(), j = that.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper a = (IdentityHashCodeWrapper)i.next();\n IdentityHashCodeWrapper b = (IdentityHashCodeWrapper)j.next();\n AccessPath p = (AccessPath)a.getObject();\n AccessPath q = (AccessPath)b.getObject();\n if (!p.oneEquals(q)) return false;\n if (s.contains(a)) continue;\n s.add(a);\n if (!p.equals(q, s)) return false;\n }\n return true;\n }", "private void generatePath(List<Coordinate> source, List<Coordinate> path) {\n for (int i = 0; i < source.size() - 1; i++) {\n Graph graph = new Graph(getEdge(map));\n Coordinate start = source.get(i);\n Coordinate end = source.get(i + 1);\n graph.dijkstra(start);\n graph.printPath(end);\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n }\n }", "public void testUptoSegment() {\n \tIPath anyPath = new Path(\"/first/second/third\");\r\n \r\n \tassertEquals(\"1.0\", Path.EMPTY, anyPath.uptoSegment(0));\r\n \tassertEquals(\"1.1\", new Path(\"/first\"), anyPath.uptoSegment(1));\r\n \tassertEquals(\"1.2\", new Path(\"/first/second\"), anyPath.uptoSegment(2));\r\n \tassertEquals(\"1.3\", new Path(\"/first/second/third\"), anyPath.uptoSegment(3));\r\n \tassertEquals(\"1.4\", new Path(\"/first/second/third\"), anyPath.uptoSegment(4));\r\n \r\n \t//Case 2, absolute path with trailing separator\r\n \tanyPath = new Path(\"/first/second/third/\");\r\n \r\n \tassertEquals(\"2.0\", Path.EMPTY, anyPath.uptoSegment(0));\r\n \tassertEquals(\"2.1\", new Path(\"/first/\"), anyPath.uptoSegment(1));\r\n \tassertEquals(\"2.2\", new Path(\"/first/second/\"), anyPath.uptoSegment(2));\r\n \tassertEquals(\"2.3\", new Path(\"/first/second/third/\"), anyPath.uptoSegment(3));\r\n \tassertEquals(\"2.4\", new Path(\"/first/second/third/\"), anyPath.uptoSegment(4));\r\n }", "public static <V> void printShortestPath(V value, Dictionary<V, DijkstraResult<V>> paths) {\n Enumeration<DijkstraResult<V>> elementos = paths.elements();\n while (elementos.hasMoreElements()) {\n DijkstraResult<V> aux = elementos.nextElement();\n if (!aux.getVertex().equals(value)) {\n String hilera = \"\";\n DijkstraResult<V> temp = aux;\n while (!temp.getVertex().equals(value)) {\n hilera = \"-\" + temp.getVertex() + hilera;\n temp = paths.get(temp.getPrecursor());\n }\n hilera = value + hilera;\n if (aux.getDistance() == Integer.MAX_VALUE - 1) {\n System.out.println(\"El camino mas corto entre \" + value + \" y \" + aux.getVertex() + \" es \" + hilera + \" con una distancia de infinito (no hay camino)\");\n } else {\n System.out.println(\"El camino mas corto entre \" + value + \" y \" + aux.getVertex() + \" es \" + hilera + \" con una distancia de: \" + aux.getDistance());\n }\n } else {\n System.out.println(\"El camino mas corto entre \" + value + \" y \" + value + \" es \" + value + \" con una distancia de: \" + aux.getDistance());\n }\n }\n }", "public boolean hasDisjointPaths(Module m, ModuleElement source, ModuleElement dest, int k_paths){\n\t\t// view the module as a grid to use Lee algorithm\n\t\tBiochip grid = new Biochip(m.width,m.height);\n\t\tCell s_cell = grid.getCell(source.x, source.y);\n\t\t\n\t\t//fill the grid - wave expansion\n\t\ts_cell.value = 0;\n\t\tdouble crt_value = 0; \n\t\tboolean done = false; \n\t\tArrayList<Cell> crt_cells = new ArrayList<Cell>();\n\t\tcrt_cells.add(s_cell); \n\t\twhile(!done){\n\t\t\tcrt_value++; \n\t\t\tArrayList<Cell> new_filled_cells = new ArrayList<Cell>();\n\t\t\tfor (int k=0; k<crt_cells.size() && !done; k++){\n\t\t\t\tCell crt_cell = crt_cells.get(k);\n\t\t\t\tArrayList<Cell> neighbor_cells = this.fillNeighborsAll(grid, crt_cell, crt_value, dest.x, dest.y);\n\t\t\t\tif (grid.findColumn(crt_cell)==dest.y && grid.findRow(crt_cell)==dest.x){\n\t\t\t\t\tdone = true; \n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse new_filled_cells.addAll(neighbor_cells); \n\t\t\t}\n\t\t\tif (new_filled_cells.size()<k_paths) return false; \n\t\t\t//if (new_filled_cells.size()==0) done = true; \n\t\t\tcrt_cells = new_filled_cells; \n\t\t}\n\t\t\n\t\tthis.printGrid(grid);\n\n\t\treturn true; \n\t}" ]
[ "0.6850644", "0.68087417", "0.6692695", "0.6603666", "0.64601684", "0.6369389", "0.6105146", "0.60079324", "0.59809", "0.5930891", "0.59193796", "0.58807325", "0.585665", "0.58293384", "0.57785314", "0.5728584", "0.5690298", "0.56685305", "0.56521165", "0.5643052", "0.5642463", "0.56129426", "0.56086", "0.5578376", "0.5567423", "0.55660367", "0.5537879", "0.5534048", "0.5522069", "0.55157536", "0.5490835", "0.5478262", "0.54762495", "0.5475278", "0.54741395", "0.5473257", "0.5463848", "0.5457884", "0.545103", "0.5445922", "0.54434484", "0.54389566", "0.54271114", "0.5415944", "0.5406764", "0.5399458", "0.5387291", "0.5384966", "0.53719836", "0.53686213", "0.53680766", "0.53610885", "0.53520447", "0.53498787", "0.53456795", "0.5337814", "0.5335462", "0.5326703", "0.53263915", "0.53254247", "0.5314475", "0.53105116", "0.5305575", "0.53042316", "0.53024673", "0.5302274", "0.5299963", "0.52990484", "0.5293921", "0.528995", "0.52711886", "0.5269968", "0.5267858", "0.5262716", "0.5253523", "0.5242852", "0.52379465", "0.5232998", "0.5224915", "0.5224461", "0.52237934", "0.5220251", "0.5213991", "0.5206068", "0.52055717", "0.52024007", "0.51965785", "0.51943105", "0.5192435", "0.5188794", "0.5187286", "0.5181266", "0.5180467", "0.51669735", "0.5163078", "0.515598", "0.5151848", "0.51265883", "0.5115365", "0.51128125" ]
0.6867165
0
Create a new RenderSystem
public RenderSystem() { super(SystemType.RENDER); bufferBuffer = new MasterBuffer( voide.resources.Resources .get() .getResource("voide.packed_texture", Texture.class) .getTextureId() ); master = new MasterRenderer(Constants.GAME_WIDTH, Constants.GAME_HEIGHT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void create() {\r\n render();\r\n }", "@Override\n\tpublic void create () {\n\t\tgempiresAssetHandler = new GempiresAssetHandler(this);\n\t\tbatch = new SpriteBatch();\n\t\tcastle = new CastleScreen(this);\n\t\tsetScreen(new MainMenuScreen(this));\n\t}", "@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}", "@Override\n\tpublic void create() {\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t\n\t\t//Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\t\n\t\t//initialize controller and renderer\n\t\tworldController = new WorldController();\n\t\tworldRenderer= new WorldRenderer(worldController);\n\t\t\n\t\t//The world is not paused on start\n\t\tpaused = false;\n\t}", "public RenderEngine() {\n\t\twindow = Window.getInstance();\n\t\t\n\t\ttestEntity = new Entity(\"skull/skull.obj\", \"./res/models/skull/skull.png\", new Vector3f(0,0,0), new Vector3f(0,0,0));\n\t\ttestEntity.getWorldTransform().setScaling(new Vector3f(0.01f,0.01f,0.01f));\n\t\t\n\t\ttestEntity2 = new Entity(\"dummy/dummy.obj\", \"./res/models/dummy/dummy.jpg\", new Vector3f(0,8,0), new Vector3f(0,0,0));\n\t\ttestEntity2.getWorldTransform().setScaling(new Vector3f(0.05f,0.05f,0.05f));\n\t\t\n\t\ttestLight = new Light(new Vector3f(-5,5,-5), new Vector3f(1,1,1));\n\t\ttestLight.getWorldTransform().setScaling(new Vector3f(0.1f,0.1f,0.1f));\n\t\t\n\t\tsky = new SkyDome();\n\t\t\n\t}", "public void create() {\n\t\trandomUtil = new RandomUtil();\n\t\t// create the camera using the passed in viewport values\n\t\tcamera = new OrthographicCamera(viewPortWidth, viewPortHeight);\n\t\tbatch.setProjectionMatrix(camera.combined);\n\t\tdebugRender = new Box2DDebugRenderer(true, false, false, false, false, true);\n\t\ttestWorld = new TestWorld(assetManager.blockManager(), new Vector2(0, 0f));\n\t\ttestWorld.genWorld(debugUtil);\n\t\ttestWorld.setCamera(getCamera());\n\t\tplayer.createBody(testWorld.getWorld(), BodyType.DynamicBody);\n\t\ttestWorld.getPlayers().add(player);\n\t\tworldParser = new WorldParser(testWorld, \"Test World\");\n\t\tworldParser = new WorldParser(testWorld, \"Test Write\");\n\t\tworldParser.parseWorld();\n\t\twriter = new WorldWriter(\"Test Write\", testWorld);\n\t}", "@Override\n\t\t\tpublic Render<EntityRocket> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderRocket(manager);\n\t\t\t}", "@Override\n\tpublic void create() {\n\t\tassetManager = new AssetManager();\n\t\tassetManager.load(ROLIT_BOARD_MODEL, Model.class);\n\t\tassetManager.load(ROLIT_BALL_MODEL, Model.class);\n\t\t\n\t\t//construct the lighting\n\t\tenvironment = new Environment();\n\t\tenvironment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1f));\n\t\tenvironment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));\n\t\t\n\t\tmodelBatch = new ModelBatch();\n\t\t\n\t\tcam = new PerspectiveCamera(67f, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\t\n\t\tGdx.input.setInputProcessor(new InputHandler());\n\t}", "protected ImageRenderer createRenderer() {\n\t\tImageRendererFactory rendFactory = new ConcreteImageRendererFactory();\n\t\t// ImageRenderer renderer = rendFactory.createDynamicImageRenderer();\n\t\treturn rendFactory.createStaticImageRenderer();\n\t}", "@Override\r\n\tpublic void create() {\n\t\tbatch = new SpriteBatch();\r\n\t\tcamera = new OrthographicCamera();\r\n\t\tassets = new AssetManager();\r\n\t\t\r\n\t\tcamera.setToOrtho(false,WIDTH,HEIGHT);\r\n\t\t\r\n\t\tTexture.setAssetManager(assets);\r\n\t\tTexture.setEnforcePotImages(false);\r\n\t\t\r\n\t\tsetScreen(new SplashScreen(this));\r\n\t}", "private 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 }", "@Override\n\t\t\tpublic Render<EntitySyringe> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderSyringe(manager);\n\t\t\t}", "public VectorGraphics2D createGraphics() {\n\t\treturn new VectorGraphics2D(new Graphics2DContext(), operations);\n\t}", "@Override\n\t\t\tpublic Render<EntityStatue> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderStatue(manager);\n\t\t\t}", "@Override\n public void create() {\n shapeRenderer = new ShapeRenderer();\n }", "@Override\n\tpublic void create() {\n\t\tassets = new AssetManager();\n\t\tspriteBatch = new SpriteBatch();\n\t\tGdx.input.setInputProcessor(this);\n\t\tGdx.input.setCatchMenuKey(true);\n\t\tGdx.input.setCatchBackKey(true);\n\t\tGdx.input.setInputProcessor(this);\n\t\t\n\t\t//WorldRenderer.BLEND_FUN1=GL20.GL_SRC_ALPHA;\n\t\t//WorldRenderer.BLEND_FUN2=GL20.GL_ONE_MINUS_SRC_ALPHA;\n\t\t//WorldRenderer.CLEAR_COLOR.set(0.5f,0.1f,0.2f,1);\n\t\t//UIRenderer.BLEND_FUN1=GL20.GL_SRC_ALPHA;\n\t\t//UIRenderer.BLEND_FUN2=GL20.GL_ONE_MINUS_SRC_ALPHA;\n\t\t\n\t\tspriteBatch.setBlendFunction(GL20.GL_SRC_ALPHA,GL20.GL_ONE);\n\t\tspriteBatch.enableBlending();\n\t\t\n\t\tdefaultShader=SpriteBatch.createDefaultShader();\n\t}", "@Override\n\t\t\tpublic Render<EntityDispenser> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderDispenser(manager);\n\t\t\t}", "public static void createDisplay() {\n ContextAttribs attribs = new ContextAttribs(3, 2).withForwardCompatible(true)\n .withProfileCore(true);\n\n try {\n if (!goFullscreen) {\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\n } else {\n Display.setFullscreen(true);\n }\n Display.create(new PixelFormat(), attribs);\n Display.setVSyncEnabled(true);\n Display.setTitle(\"Our First Display!\");\n GL11.glEnable(GL13.GL_MULTISAMPLE);\n } catch (LWJGLException e) {\n e.printStackTrace();\n }\n\n GL11.glViewport(0, 0, Display.getWidth(), Display.getHeight());\n lastFrameTime = getCurrentTime();\n }", "@Override\n\t\t\tpublic Render<EntitySaxtonHale> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderBiped<EntitySaxtonHale>(manager, new ModelBiped(), 0.5F, 1.0F){\n\t\t\t\t\tprivate final ResourceLocation TEXTURE=new ResourceLocation(TF2weapons.MOD_ID,\"textures/entity/tf2/SaxtonHale.png\");\n\t\t\t\t\tprotected ResourceLocation getEntityTexture(EntitySaxtonHale entity)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn TEXTURE;\n\t\t\t\t }\n\t\t\t\t};\n\t\t\t}", "private void createWorld() {\n world = new World();\n world.setEventDeliverySystem(new BasicEventDeliverySystem());\n //world.setSystem(new MovementSystem());\n world.setSystem(new ResetPositionSystem());\n world.setSystem(new RenderingSystem(camera, Color.WHITE));\n\n InputSystem inputSystem = new InputSystem();\n InputMultiplexer inputMultiplexer = new InputMultiplexer();\n inputMultiplexer.addProcessor(inputSystem);\n inputMultiplexer.addProcessor(new GestureDetector(inputSystem));\n Gdx.input.setInputProcessor(inputMultiplexer);\n world.setSystem(inputSystem);\n world.setSystem(new MoveCameraSystem(camera));\n\n world.initialize();\n }", "@Override\n\t\t\tpublic Render<EntityTF2Character> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderTF2Character(manager);\n\t\t\t}", "@Override\n\t\t\tpublic Render<EntityJar> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderJar(manager);\n\t\t\t}", "public android.renderscript.Element create() { throw new RuntimeException(\"Stub!\"); }", "@Override\n\tpublic void create() {\n\t\tthis.playScreen = new PlayScreen<EntityUnknownGame>(this);\n\t\tsetScreen(this.playScreen);\n\t\t\n\t\t//this.shadowMapTest = new ShadowMappingTest<EntityUnknownGame>(this);\n\t\t//setScreen(this.shadowMapTest);\n\t\t\n\t\t//this.StillModelTest = new StillModelTest<EntityUnknownGame>(this);\n\t\t//setScreen(this.StillModelTest);\n\t\t\n//\t\tthis.keyframedModelTest = new KeyframedModelTest<EntityUnknownGame>(this);\n//\t\tsetScreen(this.keyframedModelTest);\n\t}", "public native void initRendering();", "public native void initRendering();", "@Override\n public void create() {\n tex = new Texture(Gdx.files.internal(\"data/scene.png\"));\n\n //important since we aren't using some uniforms and attributes that SpriteBatch expects\n ShaderProgram.pedantic = false;\n\n //print it out for clarity\n System.out.println(\"Vertex Shader:\\n-------------\\n\\n\" + VERT);\n System.out.println(\"\\n\");\n System.out.println(\"Fragment Shader:\\n-------------\\n\\n\" + FRAG);\n\n shader = new ShaderProgram(VERT, FRAG);\n if (!shader.isCompiled()) {\n System.err.println(shader.getLog());\n System.exit(0);\n }\n if (shader.getLog().length() != 0)\n System.out.println(shader.getLog());\n\n\n batch = new SpriteBatch(1000, shader);\n batch.setShader(shader);\n\n cam = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n cam.setToOrtho(false);\n }", "@Override\n\tpublic void create() {\n\t\tthis.batch = new SpriteBatch();\n\t\t\n//\t\tgame.batch.begin();\n// player.draw(game.batch);\n// \n// game.batch.end();\n\t\t\n\t\tmanager = new AssetManager();\n\t\tmanager.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));\n\t\tmanager.load(\"data/level1.tmx\", TiledMap.class);\n\t\tmanager.load(\"data/background.png\", Texture.class);\n//\t\tmanager.load(\"level1.tsx\", TiledMapTileSet.class);\n\t\tmanager.finishLoading();\n\t\tscreen = new GameScreen(this);\n\t\tsetScreen(screen);\n\t\t\n\t}", "void createPlanetSurface(int width, int height) {\r\n\t\trenderer.surface = new PlanetSurface();\r\n\t\trenderer.surface.width = width;\r\n\t\trenderer.surface.height = height;\r\n\t\trenderer.surface.computeRenderingLocations();\r\n\t\tui.allocationPanel.buildings = renderer.surface.buildings;\r\n\t}", "@Override\n\tpublic void create() {\n\t\t// TODO: create completely new batches for sprites and models\n\t\tsprites = new SpriteBatch();\n\t\tmodelBatch = new ModelBatch();\n\n\t\t// TODO: create a new environment\n\t\t// set a new color attribute for ambient light in the environment\n\t\t// add a new directional light to the environment\n\n\t\tenvironment = new Environment();\n\t\tenvironment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 0.1f));\n\t\tenvironment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));\n\n\t\t// create a new logo texture from the \"data/firstorder.png\" file\n\t\tlogo = new Texture(\"data/firstorder.png\");\n\n\t\t// TODO: create a new perspective camera with a field-of-view of around 70,\n\t\t// and the width and height found in the Gdx.graphics class\n\t\t// set the position of the camera to (100, 100, 100)\n\t\t// set the camera to look at the origin point (0, 0, 0)\n\t\t// set the near and far planes of the camera to 1 and 300\n\t\t// update the camera\n\t\tint width = Gdx.graphics.getWidth();\n\t\tint height = Gdx.graphics.getHeight();\n\t\tcam = new PerspectiveCamera(70f, width, height);\n\t\tcam.position.set(100f,100f,100f);\n\t\tcam.lookAt(0f, 0f, 0f);\n\t\tcam.near = 1f;\n\t\tcam.far = 300f;\n\t\tcam.update();\n\n\t\tbackgroundMusic = Gdx.audio.newMusic(Gdx.files.internal(\"data/StarWarsMusicTheme.mp3\"));\n\t\tbackgroundMusic.setLooping(true);\n\t\tbackgroundMusic.play();\n\n\t\t// create a new model loader\n\t\tfinal ModelLoader modelLoader = new ObjLoader();\n\n\t\t// TODO: load the internal file \"data/stormtrooper.obj\" into the model variable\n\t\tmodel = modelLoader.loadModel(Gdx.files.internal(\"data/stormtrooper_unwrapped.obj\"));\n\n\t\t// TODO: create a new model instance and scale it to 20% it's original size (it's huge...)\n\t\tinstance = new ModelInstance(model); // ← our model instance is here\n\t\tinstance.transform.scale(0.2f, 0.2f, 0.2f);\n\n\t\t// TODO: set the helmet details material to a new diffuse black color attribute\n\n\t\tgetHelmetDetails().material = new Material(ColorAttribute.createDiffuse(Color.BLACK));\n\t\tgetHelmetMoreDetails().material = new Material(ColorAttribute.createDiffuse(Color.DARK_GRAY));\n\t\tgetHelmetBase().material = new Material(ColorAttribute.createDiffuse(Color.WHITE));\n\n\t\t// set the input processor to work with our custom input:\n\t\t// clicking the image in the lower right should change the colors of the helmets\n\t\t// bonus points: implement your own GestureDetector and an input processor based on it\n\t\tGdx.app.log(\"instance node size\", \"\"+String.valueOf(instance.nodes.size));\n\n\n\t\tGdx.input.setInputProcessor(new FirstOrderInputProcessor(cam, new Runnable() {\n\t\t\tprivate Texture camouflage = new Texture(\"data/camouflage.png\");\n\t\t\tprivate Texture paper = new Texture(\"data/paper.png\");\n\t\t\tprivate Texture hive = new Texture(\"data/hive.png\");\n\t\t\tprivate Texture strips = new Texture(\"data/strip.png\");\n\t\t\tprivate Texture grass = new Texture(\"data/grass.jpeg\");\n\t\t\tpublic void run() {\n\t\t\t\t// TODO: change the helmet details material to a new diffuse random color\n\n\t\t\t\tgetHelmetDetails().material = getRandomMaterial();\n\t\t\t\tgetHelmetMoreDetails().material = getRandomMaterial();\n\n\t\t\t\t// bonus points:\n\t\t\t\t// randomly change the material of the helmet base to a texture\n\t\t\t\t// from the files aloha.png and camouflage.png (or add your own!)\n\t\t\t\tgetHelmetBase().material = getRandomMaterial();\n\t\t\t\tsetRandomLight();\n\n\t\t\t}\n\n\t\t\tprivate Material getRandomMaterial() {\n\t\t\t\tint rand = (int) (MathUtils.random() * 100) % 8;\n\t\t\t\tGdx.app.log(\"Random\", \"\" + rand);\n\n\t\t\t\t//Texture aloha = new Texture(\"data/aloha.png\");\n\t\t\t\tMaterial randMaterial = null;\n\n\t\t\t\tswitch (rand) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\trandMaterial = new Material(ColorAttribute.createReflection(Color.WHITE));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\trandMaterial = new Material(TextureAttribute.createDiffuse(paper));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\trandMaterial = new Material(TextureAttribute.createDiffuse(hive));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\trandMaterial = new Material(TextureAttribute.createDiffuse(camouflage));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\trandMaterial = new Material(ColorAttribute.createDiffuse(getRandomColor()));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\trandMaterial = new Material(TextureAttribute.createDiffuse(strips));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 7:\n\t\t\t\t\t\trandMaterial = new Material(TextureAttribute.createDiffuse(grass));\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treturn randMaterial;\n\t\t\t}\n\t\t}));\n\t}", "@Override\n\tpublic void create() {\n\t\tGdx.gl20.glClearColor(1, 1, 1, 1);\n\n\t\t// instancia batch, asset manager e ambiente 3D\n\t\tmodelBatch = new ModelBatch();\n\t\tassets = new AssetManager();\n\t\tambiente = new Environment();\n\t\tambiente.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1f));\n\t\tambiente.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));\n\n\t\t// configura a câmera\n\t\tfloat razaoAspecto = ((float) Gdx.graphics.getWidth()) / Gdx.graphics.getHeight();\n\t\tcamera = new PerspectiveCamera(67, 480f * razaoAspecto, 480f);\n\t\tcamera.position.set(1f, 1.75f, 3f);\n\t\tcamera.lookAt(0, 0.35f, 0);\n\t\tcamera.near = 1f;\n\t\tcamera.far = 300f;\n\t\tcamera.update();\n\t\tcameraController = new CameraInputController(camera);\n\t\tGdx.input.setInputProcessor(cameraController);\n\n\t\t// solicita carregamento dos 2 modelos 3D da cena\n\t\tassets.load(\"caldeirao.obj\", Model.class);\n\t\tassets.load(\"caldeirao-jogos.obj\", Model.class);\n\t\tassets.load(\"caldeirao-love.obj\", Model.class);\n\t\tassets.load(\"fogueira.obj\", Model.class);\n\n\t\t// instancia e configura 2 tipos de renderizadores de partículas:\n\t\t// 1. Billboards (para fogo)\n\t\t// 2. PointSprites (para bolhas)\n\t\tBillboardParticleBatch billboardBatch = new BillboardParticleBatch(ParticleShader.AlignMode.Screen, true, 500);\n\t\tPointSpriteParticleBatch pointSpriteBatch = new PointSpriteParticleBatch();\n\t\tsistemaParticulas = new ParticleSystem();\n\t\tbillboardBatch.setCamera(camera);\n\t\tpointSpriteBatch.setCamera(camera);\n\t\tsistemaParticulas.add(billboardBatch);\n\t\tsistemaParticulas.add(pointSpriteBatch);\n\n\t\t// solicita o carregamento dos efeitos de partículas\n\t\tParticleEffectLoader.ParticleEffectLoadParameter loadParam = new ParticleEffectLoader.ParticleEffectLoadParameter(\n\t\t\t\tsistemaParticulas.getBatches());\n\t\tassets.load(\"fogo.pfx\", ParticleEffect.class, loadParam);\n\t\tassets.load(\"fogo-jogos.pfx\", ParticleEffect.class, loadParam);\n\t\tassets.load(\"fogo-love.pfx\", ParticleEffect.class, loadParam);\n\t\tassets.load(\"bolhas.pfx\", ParticleEffect.class, loadParam);\n\t\tassets.load(\"bolhas-jogos.pfx\", ParticleEffect.class, loadParam);\n\t\tassets.load(\"bolhas-love.pfx\", ParticleEffect.class, loadParam);\n\n\t\t// solicita carregamento da música\n\t\tmusica = Gdx.audio.newMusic(Gdx.files.internal(\"zelda-potion-shop.mp3\"));\n\n\t\taindaEstaCarregando = true;\n\t}", "public Graphics2D createGraphics() {\n\treturn recorder.createGraphics();\n }", "@Override\n\t\tpublic void create() {\n\t\t\tcannon = new CannonLogic();\n\t\t\tlines = new LineLogic();\n\t\t\tboxes = new BoxLogic();\n\t\t\tcontroller = new PlayerController();\n\t\t\tshapeList = new ArrayList<Shape>();\n\t\t\t\n\t\t\tGdx.gl11.glEnableClientState(GL11.GL_VERTEX_ARRAY);\n\t\t\tGdx.gl11.glClearColor(0.4f, 0.6f, 1.0f, 1.0f);\n\t\t\tvertexBuffer = BufferUtils.newFloatBuffer(8);\n\t\t\tvertexBuffer.put(new float[] {-50,-50, -50,50, 50,-50, 50,50});\n\t\t\tvertexBuffer.rewind();\n\t\t}", "public LiteRenderer() {\n LOGGER.fine(\"creating new lite renderer\");\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 }", "@Override\n public void create() {\n\n batch = new SpriteBatch();\n manager = new AssetManager();\n\n manager.load(\"audio/main_theme.mp3\", Music.class);\n // manager.load(\"String sonido\", Sound.class);\n manager.load(\"sprites/dragon.pack\", TextureAtlas.class);\n manager.load(\"sprites/vanyr.pack\", TextureAtlas.class);\n manager.finishLoading();\n\n setScreen(new PlayScreen(this));\n\n }", "@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}", "public Renderer() {\r\n renderables = new ArrayList<>();\r\n renderables.add(null); //The first background\r\n renderables.add(TextBox.blankText); //The first text box\r\n rendered = new BufferedImage(Main.WIDTH,Main.HEIGHT,BufferedImage.TYPE_INT_ARGB);\r\n focused = -1;\r\n }", "public static EglBase create() {\n return create(null /* shaderContext */, CONFIG_PLAIN);\n }", "public void createScene();", "public static void create() {\n SharedLibrary EGL;\n switch (Platform.get()) {\n case LINUX:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"libEGL.so.1\");\n break;\n case MACOSX:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"EGL\");\n break;\n case WINDOWS:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"libEGL\", \"EGL\");\n break;\n default:\n throw new IllegalStateException();\n }\n create(EGL);\n }", "@Override\n\tpublic void create() {\n\t\tthis.mesh = new Mesh(VertexDataType.VertexArray, false, 4, 6, \n\t\t\t\tnew VertexAttribute(VertexAttributes.Usage.Position, 3, \"attr_position\"));\n\n\t\tmesh.setVertices(new float[] {\n\t\t\t\t-8192f, -512f, 0,\n\t\t\t\t8192f, -512f, 0,\n\t\t\t\t8192f, 512f, 0,\n\t\t\t\t-8192f, 512f, 0\n\t\t});\n\t\tmesh.setIndices(new short[] {0, 1, 2, 2, 3, 0});\n\n\t\t// creates the camera\n\t\tcamera = new OrthographicCamera(CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\n\t\t// Sets the positions of the camera\n\t\tcamera.position.set(CoordinateConverter.getCameraWidth()/2, CoordinateConverter.getCameraHeight()/2, 0);\n\t\tcamera.update();\n\n\t\t// Sets how much of the map that is shown on the screen\n\t\tglViewport = new Rectangle(0, 0, CoordinateConverter.getCameraWidth(), CoordinateConverter.getCameraHeight());\n\t\t\n\t}", "public void registerRenderer() {}", "public void registerRenderer() {}", "@Override\n\t\t\tpublic Render<EntityBall> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderBall(manager);\n\t\t\t}", "System createSystem();", "public StimuliFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "private void initRendering() {\n ring = new Ring(0.3f, 0.7f);\n line = new Line(ImageTargets.screenWidth / 2, ImageTargets.screenHeight / 2);\n state_txt = createObject(68f, state_txt_cx, state_txt_cy, R.drawable.state);\n state_img = createObject(120f, state_img_cx, state_img_cy, R.drawable.open);\n record_txt = createObject(68f, record_txt_cx, record_txt_cy, R.drawable.record_txt);\n record_img = createObject(95f, record_img_cx, record_img_cy, R.drawable.record_img);\n recog_txt = createObject(68f, recog_txt_cx, recog_txt_cy, R.drawable.recog_txt);\n recog_img = createObject(155, recog_img_cx, recog_img_cy, R.drawable.person);\n record_num = createObject(85, record_num_cx, record_num_cy, R.drawable.num);\n\n histogram = createHistogram(85, 275.0f, 1150, 2.0f);\n histogram1 = createHistogram(85, 405, 1150, 2.2f);\n histogram2 = createHistogram(85, 540, 1150, 2.58f);\n histogram3 = createHistogram(85, 675, 1150, 0.9f);\n mRenderer = Renderer.getInstance();\n\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f\n : 1.0f);\n setBgTransparent();\n //初始化纹理\n initTexture(res);\n mActivity.loadingDialogHandler\n .sendEmptyMessage(LoadingDialogHandler.HIDE_LOADING_DIALOG);\n\n }", "private DMarlinRenderingEngine() {\n }", "public void render();", "public GraphicsFactory() {\n\t\tsuper();\n\t}", "void render(Object rendererTool);", "@Override\n\tprotected void setupWindow(RenderSystem renderSystem, GraphicsEnvironment graphicsEnvironment) {\n\t\tif (BUILD_STATE.equalsIgnoreCase(\"release\")) {\n\t\t\tDisplaySettingsDialog displaySettingsDialogue = new DisplaySettingsDialog(\n\t\t\t\t\tgraphicsEnvironment.getDefaultScreenDevice());\n\t\t\tdisplaySettingsDialogue.showIt();\n\t\t\trenderWindow = renderSystem.createRenderWindow(displaySettingsDialogue.getSelectedDisplayMode(),\n\t\t\t\t\tdisplaySettingsDialogue.isFullScreenModeSelected());\n\t\t\trenderWindow.setTitle(\"The Most Dangerous Game | Saechao Lucas/Nhat Doan A3\");\n\t\t} else if (BUILD_STATE.equalsIgnoreCase(\"test\")) {\n\t\t\tint displayHeight = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()\n\t\t\t\t\t.getDisplayMode().getHeight();\n\t\t\tint displayWidth = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()\n\t\t\t\t\t.getDisplayMode().getWidth();\n\t\t\tif (displayHeight > 1920 && displayWidth > 1080)\n\t\t\t\trenderWindow = renderSystem.createRenderWindow(new DisplayMode(1920, 1080, 24, 60), false);\n\t\t\telse\n\t\t\t\trenderWindow = renderSystem.createRenderWindow(new DisplayMode(1280, 720, 24, 60), false);\n\t\t}\n\t}", "private void initRender() {\n if (!isRenderable()) {\n throw new IllegalStateException(\"Make the mesh renderable before rendering!\");\n }\n \n //Set active texture if it exists\n if (material.hasTexture()) {\n glActiveTexture(GL_TEXTURE0);\n glBindTexture(GL_TEXTURE_2D, material.getTexture().getId());\n }\n\n if (material.hasNormalMap()) {\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, material.getNormalMap().getId());\n }\n\n //Draw mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n glEnableVertexAttribArray(2);\n glEnableVertexAttribArray(3);\n glEnableVertexAttribArray(4);\n }", "public void createEnvironment() {\n //create a list of collidable objects and a list of sprite objects\n List<Collidable> collidables = new ArrayList<Collidable>();\n List<Sprite> spriteList = new ArrayList<Sprite>();\n //update the game's environment to be the collidables list.\n this.environment = new GameEnvironment(collidables);\n //update the game's sprites collection to be the list of sprites.\n this.sprites = new SpriteCollection(spriteList);\n }", "@Override\n\t\t\tpublic Render<EntityFlare> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderFlare(manager);\n\t\t\t}", "RenderedImage createDefaultRendering(Long id) throws RemoteException;", "public Graphics create()\r\n\t{\r\n\t\t// System.out.println(\"create\");\r\n\t\treturn null;\r\n\t}", "@Override\n public void create() {\n Gdx.app.log(TAG, \"Application Listener Created\");\n // Never allocate anything in render, since that gets called 60 times a second\n shapeRenderer = new ShapeRenderer();\n }", "private void initRendering() {\n\t\tmActivity.showDebugMsg(\" initRendering\");\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f : 1.0f);\n\n\t\tfor (Texture t : mTextures) {\n\t\t\tGLES20.glGenTextures(1, t.mTextureID, 0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, t.mTextureID[0]);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, t.mWidth, t.mHeight, 0, GLES20.GL_RGBA,\n\t\t\t\t\tGLES20.GL_UNSIGNED_BYTE, t.mData);\n\t\t}\n\n\t\tshaderProgramID = ArUtils.createProgramFromShaderSrc(\n\t\t\t\tShaders.CUBE_MESH_VERTEX_SHADER,\n\t\t\t\tShaders.CUBE_MESH_FRAGMENT_SHADER);\n\n\t\tvertexHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexPosition\");\n\t\ttextureCoordHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexTexCoord\");\n\t\tmvpMatrixHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"modelViewProjectionMatrix\");\n\t\ttexSampler2DHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"texSampler2D\");\n\n\t\tif (!mModelIsLoaded) {\n\t\t\t//object = new Teapot();\n\t\t\tobject = mActivity.get3DObject();\n\t\t\tobjectScaleFloat *= object.getDefScale();\n\t\t\t//minObjectScale *= object.getDefScale();\n\t\t\t//maxObjectScale *= object.getDefScale();\n\n\t\t\tmActivity.showDebugMsg(\"Loading model Teapot\");\n\t\t\t// Hide the Loading Dialog\n\t\t\t//mActivity.loadingDialogHandler.sendEmptyMessage(LoadingDialogHandler.HIDE_DIALOG);\n\t\t}\n\n\t}", "public Material create();", "protected GraphicsEnvironment() {}", "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}", "RenderedImage createRendering(Long id, \n\t\t\t\t SerializableState renderContextState) \n\tthrows RemoteException;", "@Override\n public void create() {\n setScreen(new ServerScreen(\n new RemoteGame(),\n new SocketIoGameServer(HOST, PORT)\n ));\n }", "@Override\n\t\t\tpublic Render<EntitySentry> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderSentry(manager);\n\t\t\t}", "public void create () \n\t{ \n\t\t// Set Libgdx log level to DEBUG\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t// Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\tpaused = false;\n\t\t// Load preferences for audio settings and start playing music\n\t\tGamePreferences.instance.load();\n\t\tAudioManager.instance.play(Assets.instance.music.song01);\n\t\t// Start game at menu screen\n\t\tsetScreen(new MenuScreen(this));\n\t\t\n\t}", "public WorldScene makeScene() {\n // WorldCanvas c = new WorldCanvas(300, 300);\n WorldScene s = new WorldScene(this.width, this.height);\n s.placeImageXY(newImg, this.width / 2, this.height / 2);\n return s;\n }", "@Override\n\t\t\tpublic Render<EntityGrenade> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderGrenade(manager);\n\t\t\t}", "private void initGL() {\n\t\ttry {\n\t\t\tDisplay.setDisplayMode(new DisplayMode(displayWidth, displayHeight));\n\t\t\tDisplay.setVSyncEnabled(true);\n\t\t\tDisplay.setTitle(\"Shooter\");\n\t\t\tDisplay.create();\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t// init OpenGL\n\t\tglEnable(GL_TEXTURE_2D);\n\t\t\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t\t\n\t\t// enable alpha blending\n\t\tglEnable(GL_BLEND);\n\t\tglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\n\t\t\n\t\tglViewport(0, 0, displayWidth, displayHeight);\n\t\t\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\t\tglOrtho(0, displayWidth, displayHeight, 0, 1, -1);\n\t\tglMatrixMode(GL_MODELVIEW);\n\t}", "@Override\n\tpublic void createScene()\n\t\n\t{\n\t loading = new Sprite (0,0,resourceManager.loadingRegion,vbo); // тупо ставим спрайт с картинкой\n\t\tattachChild(loading);\n\t}", "static private Screen createScreen() {\n Screen test = new Screen();\n //These values below, don't change\n test.addWindow(1,1,64, 12);\n test.addWindow(66,1,64,12);\n test.addWindow(1,14,129,12);\n test.setWidthAndHeight();\n test.makeBoarders();\n test.setWindowsType();\n test.draw();\n return test;\n }", "@Before\r\n public void create() {\r\n dataGenerator = new DataGenerator();\r\n dataGenerator.setTextureEngine(new BasicTextureEngine());\r\n// chunkType = new BasicChunkType();\r\n// chunkType.setColumns(30);\r\n// chunkType.setRows(20);\r\n core = new MockDisplayCore();\r\n userCameraInterface = new UserCameraInterface();\r\n\r\n core.build(\"BasicChunkRendererTest\");\r\n\r\n shaderEngine = new BasicShaderEngine();\r\n\r\n// camera = new MockCameraImpl();\r\n camera = new Camera();\r\n camera.setAspectRatio(1);\r\n camera.setFarPlane(100);\r\n camera.setNearPlane(0.1f);\r\n camera.setFieldOfView(60);\r\n\r\n camera.setProjectionMatrixLocation(shaderEngine.get(ShaderProgramType.UNTEXTURED_MOVABLE).getProjectionMatrixLocation());\r\n camera.setModelMatrixLocation(shaderEngine.get(ShaderProgramType.UNTEXTURED_MOVABLE).getModelMatrixLocation());\r\n camera.setViewMatrixLocation(shaderEngine.get(ShaderProgramType.UNTEXTURED_MOVABLE).getViewMatrixLocation());\r\n camera.create();\r\n\r\n userCameraInterface.setCamera(camera);\r\n\r\n renderer=new BasicChunkRenderer();\r\n renderer.setAttributeLocations(new int[] {0,1,2});\r\n renderer.setIndexEngine(new BasicIndexEngine());\r\n renderer.setRows(chunkRows);\r\n renderer.setColumns(chunkColumns);\r\n\r\n chunks = new ArrayList<>();\r\n for (int i = 0; i<totalChunkRows*chunkRows;i=i+chunkRows) {\r\n for (int j = 0; j<totalChunkColumns*chunkColumns;j=j+chunkColumns) {\r\n chunks.add(dataGenerator.createChunk(chunkRows, chunkColumns, i, j));\r\n }\r\n }\r\n\r\n renderer.build(chunks);\r\n\r\n // OpenGLDebugger.printChunkBuffers(chunk);\r\n\r\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "void setupRender() {\n\t\tif (!init()) {\n\t\t\tisAccess = false;\n\t\t\treturn;\n\t\t}\n\t}", "@Override\n public void render() {\n\n renderer.prepWindowRender(globalGameData.getGameWindow());\n renderer.setRenderSpace(0,0,500,500);\n\n\n renderEnvironment(getMainCamera(),testPlayer.getPlayerEntity().getEntityView().getViewableRegions(), instancedGridMesh);\n renderer.enableTransparency();\n walkieTalkie.render(renderer,renderer.getRenderWidth());\n renderer.disableTransparency();\n\n\n\n renderer.setRenderSpace(500,0,500,500);\n if (currentPlayers.containsKey(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\"))) {\n renderEnvironment(getMainCamera(),currentPlayers.get(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\")).getEntityView().getViewableRegions(), instancedGridMesh);\n }\n\n renderer.setRenderSpace(1000,0,500,500);\n renderer.enableTransparency();\n renderer.render2DTextItems(debugItems, \"Default2D\");\n renderer.disableTransparency();\n\n /*\n if (currentPlayers.containsKey(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\"))) {\n renderer.setRenderSpace(500, 0, 500, 500);\n for (Region region : currentPlayers.get(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\")).getEntityView().getViewableRegions()) {\n for (Block block : region.getBlocksArray()) {\n if (block instanceof CustomRenderBlock) {\n ((CustomRenderBlock) block).renderCustomBlock(renderer, camera);\n }\n }\n for (Entity entity : region.getEntities()) {\n entity.render(renderer, camera);\n }\n }\n }\n */\n\n\n //renderer.setRenderSpace(500,0,280,500);\n //SpriteItem spriteItem = new SpriteItem(AssetLoader.getTextureAsset(\"Noise\"),280,500,true);\n //spriteItem.setPosition(0,0,0);\n //renderer.render2DSpriteItem(spriteItem,\"Default2D\");\n //spriteItem.cleanup();\n\n\n\n /*\n renderer.getShader(\"DebugShader2D\").bind();\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, shaderTestBitmap.getId());\n glActiveTexture(GL_TEXTURE2);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect1.getId());\n glActiveTexture(GL_TEXTURE3);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect2.getId());\n glActiveTexture(GL_TEXTURE4);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect3.getId());\n renderer.getShader(\"DebugShader2D\").setUniform(\"bitmap\", 1);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect1\", 2);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect2\", 3);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect3\", 4);\n i++;\n i %= 600;\n float framePercent = i / 600.0f;\n renderer.getShader(\"DebugShader2D\").setUniform(\"frame\", framePercent);\n System.out.println(i);\n shaderTest.setPosition((float)gameInput.getMouseX(),(float)gameInput.getMouseY(),0);\n renderer.render2DSprite(shaderTest, \"DebugShader2D\");\n */\n\n\n\n\n\n }", "@Override\n\t\t\tpublic Render<EntityTeleporter> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderTeleporter(manager);\n\t\t\t}", "private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }", "@Override\n\t\t\tpublic Render<EntityStickybomb> createRenderFor(RenderManager manager) {\n\t\t\t\treturn new RenderStickybomb(manager);\n\t\t\t}", "private void init () \n\t{ \n\t\tbatch = new SpriteBatch();\n\t\tcamera = new OrthographicCamera(Constants.VIEWPORT_WIDTH,\n\t\t\tConstants.VIEWPORT_HEIGHT);\n\t\tcamera.position.set(0, 0, 0);\n\t\tcamera.update();\n\t\tcameraGUI = new OrthographicCamera(Constants.VIEWPORT_GUI_WIDTH,\n\t\t\t\tConstants.VIEWPORT_GUI_HEIGHT);\n\t\tcameraGUI.position.set(0, 0, 0);\n\t\tcameraGUI.setToOrtho(true); // flip y-axis\n\t\tcameraGUI.update();\n\t\t\n\t\tb2debugRenderer = new Box2DDebugRenderer();\n\t}", "protected void initRender() {\n glActiveTexture(GL_TEXTURE0);\n // Bind the texture\n glBindTexture(GL_TEXTURE_2D, texture.getId());\n\n // Draw the mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n }", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}", "public Renderer(Object toRender) {\n this.toRender = toRender;\n }", "Surface createSurface();", "public void run() throws Exception {\n settings = WindowSettings.builder()\n// .setWindowMode( WindowMode.FULLSCREEN )\n// .setWindowMode( WindowMode.BORDERLESS )\n .setWindowMode( WindowMode.WINDOWED )\n .setMonitorIndex( 1 )\n .setResizeable( true )\n// .setPositionX( -1920 )\n// .setWidth( -1 )\n// .setHeight( -1 )\n .build();\n \n //Here most likely we will only use Rectangle for objects like bullets and characters and RectangleGrid for terrain\n //RectangleGrid provides nice method for translating array position into rendered space position so they can be shared for same terrains\n //Texture path can be either file in filesystem or within jar\n var texture1 = Texture.create( \"resources/First Oracle/grid.png\" );\n var texture2 = Texture.create( \"resources/First Oracle/texture3D.png\" );\n var overlayObject = new DirectableRectangle();\n overlayObject.setTexture( texture1 );\n \n //Example initialisation of map\n var terrain = new StaticCubeGrid();\n terrain.setTexture( texture2 );\n \n var array = new CubeGrid[ 20 ][ 10 ][ 20 ];\n \n for ( var x = 0; x < 20; x++ ) {\n for ( var y = 0; y < 10; y++ ) {\n for ( var z = 0; z < 20; z++ ) {\n array[ x ][ y ][ z ] = terrain;\n }\n }\n }\n \n //GridRenderer will be changed so it works as either 2D or 3D. For now leave it as it is so you can see whether the rendering still works.\n grid3DRenderer = new BoundedGrid3D( 100, 25, 5 );\n grid2DRenderer = new DummyGrid2D();\n //Rendered scene is what is displayed via OpenGL rendering, it should be most likely moved to SceneProvider\n //Which will provide next scenes to renderObject when something changes.\n renderedScene = new RenderableSceneMutable( settings );\n \n //Scene provider could be used for providing different scenes. For example one for open credits, one for main menu and one for game.\n //New scenes could be created when other scene is presented and immediately switched to when ready.\n //Now we are providing one scene so this simple lambda can be used instead.\n sceneProvider = () -> renderedScene ;\n\n //Overlay is rendered on top of anything so it's good for UI elements, although only 2D objects are supported.\n RegistrableOverlay overlay = new RegistrableOverlayImpl();\n overlay.registerOverlay( overlayObject );\n renderedScene.setOverlay( overlay );\n \n //Renderer is class that contains all information like scenes and grids.\n renderer = new WindowRenderer(\n grid2DRenderer,\n grid3DRenderer,\n sceneProvider\n );\n \n //Window is window displayed with OpenGL\n //Also it initialises OpenGL (via init()) content and initialises most of the objects passed via parameters\n //It also contains rendering loop which is done via run() method, best if called as another thread since it will block current thread for ever.\n window = WindowBuilder.simpleWindow( settings, renderer ).build();\n \n //Camera controller provides two cameras: 2D and 3D, which are updated corresponding to used input.\n cameraController = CameraController.createAndStart( window, settings, CameraKeyMap.getFunctionalKeyLayout(), 10, 15f );\n \n //Now the Scene3D is being set up like camera, which objects etc.\n //Scene2D is similar but you are providing 2D Objects instead of 3D\n //Scenes 2D and 3D are designed to be used for in game objects like characters, terrain or items\n renderedScene.setScene3D( new RenderableScene3DImpl( cameraController.getCamera3D(), Collections.emptyList(), array, FirstOracleConstants.INDEX_ZERO_3I ) );\n \n //Background is bunch of 2D objects rendered beneath other elements, so could be used for background images or skybox.\n //It also provides background colour which can be seen when there are no objects displayed in some places.\n renderedScene.setBackground( new RenderableBackgroundImpl( IdentityCamera2D.getCamera(), Collections.emptyList(), FirstOracleConstants.WHITE ) );\n \n overlay.registerOverlay( new FpsCounter( window ) );\n \n //At last the window loop must be run in this thread. ( or thread where init() was called )\n window.run();\n }", "@Override\n \tpublic void createFieldEditors() {\n\t\t\n\t\t\n\t\tGraphics3DRegistry.resetDescriptors();\n\t\tList<Graphics3DDescriptor> descr = Graphics3DRegistry.getRenderersForType(Graphics3DType.SCREEN);\n\t\tString[][] renderers = new String[descr.size()][2];\n\t\tfor (int i=0; i<descr.size(); i++) {\n\t\t\trenderers[i][0] = descr.get(i).getName();\n\t\t\trenderers[i][1] = descr.get(i).getRendererID();\n\t\t}\n\t\t\n\t\tComboFieldEditor rendererCombo = new ComboFieldEditor(PrefNames.DEFAULT_SCREEN_RENDERER, \"Default screen renderer\", \n\t\t\trenderers, getFieldEditorParent());\n\t\taddField(rendererCombo);\n\t\t\n\t\t// TODO enable\n\t\trendererCombo.setEnabled(false, getFieldEditorParent());\n\t\t\n \n \t\tString[][] cameraTypes =\n \t\t\tnew String[][] {\n \t\t\t\t{ \"Default first person camera\",\n \t\t\t\t\tFirstPersonCamera.class.getName() },\n \t\t\t\t{ \"Restricted first person camera\",\n \t\t\t\t\tRestrictedFirstPersonCamera.class.getName() } };\n \n \t\taddField(new RadioGroupFieldEditor(PrefNames.LWS_CAMERA_TYPE,\n \t\t\t\"Camera type:\", 1, cameraTypes, getFieldEditorParent()));\n \n \t\taddField(new ColorFieldEditor(PrefNames.LWS_BACKGROUND,\n \t\t\t\"Background color\", getFieldEditorParent()));\n \n \t\taddField(new BooleanFieldEditor(PrefNames.LWS_DRAW_AXES, \"Draw axes\",\n \t\t\tgetFieldEditorParent()));\n \n \t\taddField(new BooleanFieldEditor(PrefNames.LWS_DEBUG, \"Debug\",\n \t\t\tgetFieldEditorParent()));\n \n \t\tString[][] fontOptions =\n \t\t\tnew String[][] {\n \t\t\t\tnew String[] { \"Editor setting\", PrefNames.FONT_AA_EDITOR },\n \t\t\t\tnew String[] { \"Always on (ignore editor setting)\",\n \t\t\t\t\tPrefNames.FONT_AA_ON },\n \t\t\t\tnew String[] { \"Always off (ignore editor setting)\",\n \t\t\t\t\tPrefNames.FONT_AA_OFF } };\n \t\taddField(new ComboFieldEditor(PrefNames.LWS_FONT_AA,\n \t\t\t\"Font antialiasing\", fontOptions, getFieldEditorParent()));\n \t}", "public static void classInit(){\n //set up font\n //font = WurfelEngine.getInstance().manager.get(\"com/BombingGames/WurfelEngine/EngineCore/arial.fnt\"); //load font\n font = new BitmapFont(false);\n //font.scale(2);\n\n\n font.setColor(Color.GREEN);\n //font.scale(-0.5f);\n \n //load sprites\n Block.loadSheet();\n addInputProcessor(staticStage);\n skin = new Skin(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/skin/uiskin.json\"));\n GameplayScreen.msgSystem().viewInit(skin,Gdx.graphics.getWidth()/2, Gdx.graphics.getHeight()/4);\n }", "@Override\r\n\tpublic void simpleRender(RenderManager rm) {\n\t}", "public LinearRenderer2D() {\n\t}", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "Lab create();", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "public void render() {\r\n\r\n }" ]
[ "0.76380634", "0.6773418", "0.6453533", "0.6449549", "0.6422005", "0.63256884", "0.627032", "0.62100846", "0.61925", "0.61619973", "0.61551255", "0.61353016", "0.6121378", "0.6093957", "0.6075846", "0.6075472", "0.60545903", "0.6040883", "0.60264647", "0.60257137", "0.60168403", "0.59605694", "0.59422547", "0.5940259", "0.59308934", "0.59308934", "0.5923099", "0.5899945", "0.58993495", "0.58697915", "0.58581394", "0.5788182", "0.576125", "0.5741387", "0.57389575", "0.5732504", "0.57117", "0.56934065", "0.5689768", "0.56724715", "0.5660612", "0.5657072", "0.56447345", "0.56447345", "0.5641796", "0.5632396", "0.5629326", "0.56213486", "0.5616315", "0.5595761", "0.55893695", "0.5586172", "0.5576842", "0.55707955", "0.5562213", "0.55520004", "0.55397594", "0.5539424", "0.5521842", "0.5510295", "0.5505232", "0.5505106", "0.5494495", "0.5494406", "0.54790694", "0.54729265", "0.54367167", "0.54262096", "0.54226154", "0.5415605", "0.5409791", "0.5399568", "0.5393966", "0.5379844", "0.5379844", "0.5379844", "0.5379844", "0.5379844", "0.5379844", "0.5371536", "0.53707373", "0.53481746", "0.5345058", "0.5343971", "0.5337623", "0.5329499", "0.53231287", "0.5314204", "0.53124", "0.5299945", "0.52970207", "0.5294783", "0.52826977", "0.52811724", "0.5273014", "0.52712226", "0.5270296", "0.5255498", "0.52534837", "0.52532464" ]
0.73634523
1
Update the mouse position and render a new frame
public void update() { MouseWrapper mouseWrapper = Engine.get().getMouseWrapper(); bufferBuffer.clear(); if ( Engine.get().getEngineState() == Engine.EngineState.PLAY || Engine.get().getEngineState() == Engine.EngineState.PAUSE ) { VectorD mousePos = new VectorD( mouseWrapper.getX(), mouseWrapper.getY() ); VectorD difference = mousePos.diff( Engine.get().getGameState().getCursorFollow() ); if (difference.length() > Constants.MOUSE_FOLLOW_CUTOFF) { difference = difference.multiplicate(Constants.MOUSE_FOLLOW_MULTIPLIER); } Engine .get() .getGameState() .setCursorFollow( Engine .get() .getGameState() .getCursorFollow() .sum(difference) ); Entity player = EntityUtil.getPlayer( Engine.get().getEntityStream() ); TransformationStorage playerPos = (TransformationStorage) player.getComponent( SpaxelComponent.TRANSFORMATION ); Engine .get() .getGameState() .setScreenOffset(calculateScreenOffset(playerPos)); } renderEntities(); Engine.get().getCurrentUI().render(bufferBuffer); master.render(bufferBuffer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update () {\n fill (175);\n rect(mouseX,mouseY,w,h);\n }", "public void update() {\n\t\t\n\t\tVector size = new Vector(Main.frame.getContentPane().getWidth() + 64, 64 + 64);\n\t\tposition = new Vector(0, Main.frame.getContentPane().getHeight() - 40);\n\t\t\n\t\tRectangle rect = new Rectangle(position, size);\n\t\t\n\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\troom.isMouseOverGUI = true;\n\t\t}\n\t}", "@Override\n public void mouseMoved(MouseEvent e) {\n // Simply find x and y and then overwrite last frame data\n int x = e.getX();\n int y = e.getY();\n\n old_x = x;\n old_y = y;\n }", "public void mouseMoved (MouseEvent me) { mouse_x = me.getX(); mouse_y = me.getY(); repaint(); }", "public void tick() {\n\t\ta = Window.frame.getMousePosition();\n\t\tif (a != null) {\n\t\t\tmx = (int)a.getX();\n\t\t\tmy = (int)a.getY();\n\t\t}\n\t\t//System.out.println(a);\n\t}", "public void Draw(Graphics2D g2d, Point mousePosition)\n {\n \n }", "public abstract void update(MouseEvent evt, int mode);", "void update(float speed, Point mousePoint) {\r\n\t\tz[1] = z[0];\r\n\t\tz[0] -= speed;\r\n\t\t\r\n\t\t// if the star moved past the screen, re-initialize it\r\n\t\tif (z[0] < 0)\r\n\t\t\tinit();\r\n\t\t\r\n\t\tselectionBox = makeSelectionBox();\r\n\t\tselected = selectionBox.contains(mousePoint);\r\n\t}", "private void updateAndRender(long deltaMillis) {\n currentState.update(deltaMillis / 1000f); \r\n //Double Buffering (reduce tearing)\r\n prepareGameImage();\r\n currentState.render(gameImage.getGraphics(), this.getWidth(), this.getHeight());\r\n renderGameImage(getGraphics());\r\n }", "void update(float interval, MouseInput mouseInput, Window window) throws Exception;", "public void mouseMoved(MouseEvent me)\n\t{\n m_mousePosition.x = me.getX();\n m_mousePosition.y = me.getY();\n m_brush = frame.getBrushValue();\n //System.out.println(m_mousePosition.x + \" \" + m_mousePosition.y + \" \");\n repaint();\n\t}", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "public void regulateFramerate(){\n\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\n\t\ttry {\n\t\t\tif(sleepTime > 0) {\n\t\t\t\tlong takeOne = sleepTime/2;\n\t\t\t\tThread.sleep(takeOne);\n\t\t\t\t\n\t\t\t\tif(capturedMouse && !mouseLeftScreen && !focusLost) {\n\t\t\t\t\tcurrentMouseX = MouseInfo.getPointerInfo().getLocation().x;\n\t\t\t\t\tcurrentMouseY = MouseInfo.getPointerInfo().getLocation().y; \n\t\t\t\t\t\n\t\t\t\t\tint deltaX = currentMouseX - centerScreenX;\n\t\t\t\t\tint deltaY = currentMouseY - centerScreenY;\n\t\t\t\t\n\t\t\t\t\tmouseX+=deltaX;\n\t\t\t\t\tmouseY+=deltaY;\n\t\t\t\t\t\n\t\t\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\t\t\n\t\t\t\t\tif(mouseX < 0)\n\t\t\t\t\t\tmouseX = 0;\n\t\t\t\t\tif(mouseX >= screen_width)\n\t\t\t\t\t\tmouseX = screen_width-1;\n\t\t\t\t\tif(mouseY < 0)\n\t\t\t\t\t\tmouseY = 0;\n\t\t\t\t\tif(mouseY >= screen_height)\n\t\t\t\t\t\tmouseY = screen_height-1;\n\t\t\t\t\t\n\t\t\t\t\tinputHandler.mouse_x = mouseX;\n\t\t\t\t\tinputHandler.mouse_y = mouseY;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex %2 == 0 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(bufferScreen);\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t}else if(frameIndex != 1 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer2;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(buffer2Screen);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex > 3)\n\t\t\t\t\tpanel.getGraphics().drawImage(bf, 0, 0, this);\n\t\t\t\t\n\t\t\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\t\tif(sleepTime > 0) \n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tlastDraw=System.currentTimeMillis();\n\t}", "@Override\n\tpublic void render(float delta) {\n\t\tupdate(delta);\n\t\tdraw(delta);\n\t}", "private void mouseMove() {\n if (this.holding) {\n Point point = new Point(mousex, mousey);\n this.addPixel(point);\n }\n }", "public void mouseMoved(MouseEvent evt) {\n\n\t\t\tif (isDrawing) {\n\t\t\t\tnewX = evt.getX();\n\t\t\t\tnewY = evt.getY();\n\t\t\t\t\n\t\t\t\trepaint();\n\n\t\t\t}\n\t\t}", "@Override\n public void doRender(float delta) {\n if(showWindow) {\n drawTexture(background.getTexture(), marginX, marginY, windowWidth, windowHeigth);\n batch.draw(cursor, origin.x + cursorOriginX + SIZE * cursorPosX, origin.y + cursorOriginY - SIZE * cursorPosY);\n\n\n int iX = 0;\n int iY = 0;\n for (Item item : OverworldScreen.manager.getPlayer().itemList) {\n item.render(cursorOriginX + iX * SIZE, cursorOriginY - iY*SIZE, origin, batch);\n iX++;\n if(iX > maxItemX){\n iX = 0;\n iY++;\n }\n }\n }\n\n\n }", "public void render(PApplet core) {\n\n super.render(core);\n\n mContext.crosshair.setTranslation(core.mouseX, core.mouseY);\n mContext.crosshair.render(core);\n\n }", "public void mouseMoved(MouseEvent e) {\n \tapp.updateCoord(e.getX(),e.getY());\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "public void render(float delta){\n guiStage.act(delta);\n guiStage.draw();\n }", "@Override\n\tpublic void update() {\n\t\tmouseMove(gm.mouseY);\n\t\tmoveCollider();\n\t}", "public PaintPanel()\r\n {\r\n // handle frame mouse motion event\r\n addMouseMotionListener(\r\n new MouseMotionAdapter()\r\n {\r\n // store drag points and repaint\r\n @Override\r\n public void mouseDragged(MouseEvent event)\r\n {\r\n points.add(event.getPoint());\r\n repaint(); // repaint JFrame\r\n }\r\n }\r\n );\r\n }", "public void setMousePosition( final float x, final float y ) throws RemoteException {\r\n playerState.mousePosition.x = x;\r\n playerState.mousePosition.y = y;\r\n }", "protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}", "public void render(PoseStack stack, int mouseX, int mouseY, float delta) {\n PoseStack entityRenderStack = RenderSystem.getModelViewStack();\n entityRenderStack.pushPose();\n stack.pushPose();\n\n zoomInScale += 0.25 * delta;\n zoomInScale = Mth.clamp(zoomInScale, 0, 1);\n entityRenderStack.scale(zoomInScale, zoomInScale, zoomInScale);\n stack.scale(zoomInScale, zoomInScale, 0);\n\n fill(stack, (int) (this.width / 2 - (312 * guiScale)), bgStartHeight, (int) (this.width / 2 + (312 * guiScale)), (int) (this.height / 2 + (256 * guiScale)), Colors.BACKGROUND_GRAY.getColor().getInt());\n RenderUtil.renderScaledText(stack, mc.font, new TranslatableComponent(\"osmium.cape_select\"), (int) (this.width / 2 + (180 * guiScale)), bgStartHeight + (10 * guiScale), Colors.WHITE.getColor().getInt(), (float) guiScale, true);\n\n List<Cape> pageCapes = capePages.get(currentPage.get());\n\n for(int i = 0; i < pageCapes.size(); i++) {\n Cape cape = pageCapes.get(i);\n\n if(CosmeticManager.playerCapes.get(mc.player.getStringUUID()) != null && CosmeticManager.playerCapes.get(mc.player.getStringUUID()).registryName.equals(cape.registryName)) {\n fill(stack, (int) (this.width / 2 + (100 * guiScale)), (int) (bgStartHeight + (40 + (i * 70)) * guiScale), (int) (this.width / 2 + (300 * guiScale)), (int) (bgStartHeight + (100 + (i * 70)) * guiScale), Colors.DARK_GRAY.getColor().getInt());\n }\n\n drawOutlinedBox(stack, (int) (this.width / 2 + (100 * guiScale)), (int) (bgStartHeight + (40 + (i * 70)) * guiScale), (int) (200 * guiScale), (int) (60 * guiScale), Colors.WHITE.getColor().getInt());\n stack.pushPose();\n RenderUtil.positionAccurateScale(stack, 0.5f, (int) (this.width / 2 + (70 * guiScale)), (int) (bgStartHeight + (40 + (i * 70) - 10) * guiScale), (int) (160 * guiScale), (int) (80 * guiScale));\n // something wacky going on here\n // view stack scaling is slightly off, so we have to change pos a bit\n RenderSystem.setShaderTexture(0, cape.getFrameTexture());\n blit(stack, (int) (this.width / 2 + (70 * guiScale)), (int) (bgStartHeight + (40 + (i * 70) - 10) * guiScale), 0, 0 , (int) (160 * guiScale), (int) (80 * guiScale), (int) (160 * guiScale), (int) (80 * guiScale));\n stack.popPose();\n\n // these coordinates are just insane\n RenderUtil.renderScaledText(stack, mc.font,\"Source: \" + cape.source, (int) (this.width / 2 + (200 * guiScale)), (int) (bgStartHeight + (40 + (i * 70) + 15) * guiScale), Colors.WHITE.getColor().getInt(), (float) guiScale, true);\n RenderUtil.renderScaledText(stack, mc.font, \"Animated: \" + cape.isAnimated, (int) (this.width / 2 + (200 * guiScale)), (int) (bgStartHeight + (40 + (i * 70) + 25) * guiScale), Colors.WHITE.getColor().getInt(), (float) guiScale, true);\n RenderUtil.renderScaledText(stack, mc.font, \"Creator: \" + cape.creator, (int) (this.width / 2 + (200 * guiScale)), (int) (bgStartHeight + (40 + (i * 70) + 35) * guiScale) , Colors.WHITE.getColor().getInt(), (float) guiScale, true);\n }\n\n RenderUtil.renderScaledText(stack, mc.font, currentPage.get() + 1 + \"/\" + capePages.size(), (int) (this.width / 2 + (200 * guiScale)), (int) (bgStartHeight + (475 * guiScale)), Colors.WHITE.getColor().getInt(), (float) guiScale, true);\n\n playerXRot -= 0.15 * delta;\n if(playerXRot <= -179.85) {\n playerXRot = 180;\n }\n\n // spent 2 hours fixing depth testing issues because I forgot to scale the ModelViewStack properly\n // please help\n renderEntityInInventory((int) (this.width / 2 - (150 * guiScale)), (int) (bgStartHeight + (300 * guiScale)), (int) (140 * guiScale), playerXRot, 0, mc.player);\n stack.popPose();\n entityRenderStack.popPose();\n super.render(stack, mouseX, mouseY, delta);\n }", "public abstract void mouseMoved(int displayX, int displayY);", "@Override\r\n\tpublic void update() {\n\t\tthis.repaint();\r\n\t}", "public void update(){\n\t\tx+=xspeed; \n\t\ty+=yspeed;\t\n\t}", "public void drawComponent(Minecraft minecraft, int mouseX, int mouseY) {\n\n\t}", "private void frameDragMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_frameDragMousePressed\n xMouse = evt.getX();\n yMouse = evt.getY();\n }", "@Override\n public void run() {\n\n ui = new UI(this);\n\n addMouseWheelListener(UI.mouse.wheelControls);\n addMouseListener(UI.mouse.adapter);\n EventLoader.loadEvents(this);\n long beforeTime, timeDiff, sleep;\n\n UI.mouse.setShape(new Ellipse2D.Float(0, 0, 1, 1), true);\n Application.grid.reset(600, 600);\n // Application.grid.reset(600, 600);\n // Particle tracer = Application.grid.spawn(300, 300, Tracer.class);\n // tracer.vel = new Vector2D(2, 0);\n beforeTime = System.currentTimeMillis();\n\n while (true) {\n\n repaint();\n\n Application.grid.updateParticles();\n\n timeDiff = System.currentTimeMillis() - beforeTime;\n sleep = DELAY - timeDiff;\n\n if (sleep < 0) {\n sleep = 2;\n\n }\n\n fps = 1 / ((sleep + timeDiff) * 1e-3);\n\n try {\n Thread.sleep(sleep);\n } catch (InterruptedException e) {\n\n String msg = String.format(\"Thread interrupted: %s\", e.getMessage());\n\n JOptionPane.showMessageDialog(this, msg, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n beforeTime = System.currentTimeMillis();\n }\n }", "public void update() {\n\t\tfirstMove = false;\n\t\tif (color == 1) xrange = -1;\n\t\tif (color == 0) xrange = 1;\n\t}", "@Override\n public void update(int mouseX, int mouseY, boolean click) {\n super.update(mouseX, mouseY, click);\n _innerSize._x = _size._x * _progress;\n }", "public void\tmouseMoved(int oldx, int oldy, int newx, int newy) \n {\n mouseX = newx;\n mouseY = newy;\n }", "public void drawScreen(int mouseX, int mouseY, float f)\r\n\t{\r\n\t\tsuper.drawScreen(mouseX, mouseY, f);\r\n\t\txSize_lo = mouseX - 75;\r\n\t\tySize_lo = mouseY;\r\n\t}", "public void updateMouse(int screenX, int screenY) {\n\t\tmouseDelta.set(screenX - getMouse().x, Gdx.graphics.getHeight() - screenY - getMouse().y);\r\n\t\tmouse.set(screenX, Gdx.graphics.getHeight() - screenY);\r\n\t\t\t\t\t\t\r\n\t\t//mouse vectors, normalized to work in terms of screen units instead of pixels\r\n\t\tmouseDeltaNorm.set(getMouseDelta().scl(1/AbstractScreen.ppuX,1/AbstractScreen.ppuY));\r\n\t\tmouseNorm.set(getMouse().scl(1/AbstractScreen.ppuX,1/AbstractScreen.ppuY));\r\n\t}", "private void renderHook(){\n\t\thook.setPosition(world.hook.position.x, world.hook.position.y);\n\t\thook.setRotation(world.hook.rotation);\n\t\thook.draw(batch);\n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tnow_X = 'X';\n\t\tnow_Y = 'X';\n\t\trepaint();\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "public void render() {\n this.canvas.repaint();\n }", "@Override\n public void update() {\n// if (anim > 10000) anim = 0;\n// else anim++;\n setMousePossition();\n if (feildIsRightClicked()) {\n renderClicks = true;\n cannon.FireCannon();\n }\n else renderClicks = false;\n for (int i = 0; i < projectiles.size(); i++) {\n if (projectiles.get(i).isRemoved()) projectiles.remove(i);\n else projectiles.get(i).update();\n }\n }", "public void update( ) {\n\t\tdraw( );\n\t}", "void renderFrame(){\n if(getPlayer().isChoosingFile()) return; // don't render while filechooser is active\n \n if(canvasFileWriter.writingMovieEnabled) chipCanvas.grabNextImage();\n chipCanvas.paintFrame(); // actively paint frame now, either with OpenGL or Java2D, depending on switch\n \n if(canvasFileWriter.writingMovieEnabled){\n canvasFileWriter.writeMovieFrame();\n }\n }", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "private void frameDragMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_frameDragMouseDragged\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n \n this.setLocation(x - xMouse, y - yMouse);\n }", "void render(GraphicsContext gc, double xOffSet, double yOffSet);", "public native void renderFrame();", "public native void renderFrame();", "@Override\n public void drawScreen(int mouseX, int mouseY, float partialTicks)\n {\n super.drawScreen(mouseX, mouseY, partialTicks);\n }", "public void setFrameXY(double anX, double aY) { setFrameX(anX); setFrameY(aY); }", "private void refreshMouseMap() {\r\n Point currentMousePos = MouseInfo.getPointerInfo().getLocation();\r\n int iMax = 5;\r\n this.mousePositions.clear();\r\n for (int i = 0; i < iMax; i++)\r\n this.mousePositions.add(currentMousePos);\r\n }", "public void update(){\n\t\tint lasers[] = new int[activePointers()];\n\t\tPVector positions[] = new PVector[activePointers()];\n\t\tfor (int i = 0; i < activePointers(); i++) {\n\t\t\tpositions[i].set(parent.mouseX,parent.mouseY);\n\t\t\tlasers[i] = pointers.get(i).laser;\n\t\t}\n\n\t\tupdate( positions, lasers);\n\t}", "public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}", "private void cursorPosChanged( double x, double y )\n {\n }", "@Override\n\tpublic void Update() {\n\t\tDispatchKeyEvents();\n\t\tDispatchMouseEvents();\n\t}", "private void setMousePossition() {\n mouseX = Mouse.getMouseX() / Display.SCALE;\n mouseY = Mouse.getMouseY() / Display.SCALE;\n }", "@Override\n public native void mouseMove(int x, int y);", "public void mouseMoved(MouseEvent e) {\n\t\tsuper.mouseMoved(e);\n\t\tif (isRepainting()) {\n\t\t\trepaint();\n }\n \n if (mouseMovedCmd != null) {\n mouseMovedCmd.execute();\n }\n NumberFormat nf = NumberFormat.getNumberInstance();\n\t\tnf.setMinimumFractionDigits(((ViewState) this.view.getViewState()).getPrecision());\n\t\tnf.setMaximumFractionDigits(((ViewState) this.view.getViewState()).getPrecision());\n\t\t\n view.setCoord(\"\" + nf.format(getWorldPoint().getX()),\n\t\t\t\"\" + nf.format(getWorldPoint().getY()));\n }", "public void mousePressed() {\n vy = -17;\n //if we weren't playing the game when pressing the mouse, we want to start\n //the game. We do this by reseting all the values used while playing the game\n if(gamestate==1) {\n wx[0] = 600;\n wy[0] = y = height/2;\n wx[1] = 900;\n wy[1] = 600;\n x = gamestate = score = 0;\n }\n}", "@Override\n\tpublic void render(float delta) {\n\t}", "public void update(long fps) {\n rect.left = rect.left + ((float)xVelocity / fps);\n rect.top = rect.top + ((float)yVelocity / fps);\n rect.right = rect.left + width;\n rect.bottom = rect.top + height;\n }", "public void update() {\n\n\t\tfollow();\n\t\tcreateHitBox(this);\n\t}", "public void mouseDragged(MouseEvent evt) {\n\t\t\t\tframe.setLocation(evt.getXOnScreen() - posX, evt.getYOnScreen() - posY);\r\n\r\n\t\t\t}", "private void draw() {\n frames++;\n MainFrame.singleton().draw();\n }", "@Override\n\tpublic void render(float delta) {\n\n\t}", "public void update() {\n\t\tint xa = 0, ya = 0; \n\t\tif(game.getPlayer().x < 0){\n\t\t\txa -= 2;\n\t\t}else if(game.getPlayer().x + 32 > game.getScreen().width){\n\t\t\txa += 2;\n\t\t}\n\t\tif(game.getPlayer().y < 0){\n\t\t\tya -= 2;\n\t\t}else if(game.getPlayer().y + 32 > game.getScreen().height){\n\t\t\tya +=2;\n\t\t}\n\t\t\n\t\tif (xa != 0 || ya!= 0) move(xa, ya);\n\t\t\n\t\t//detects if the mouse is clicking on the interface\n\t\t/*if(Mouse.getButton() == 1 && Mouse.getX() >= 0 && Mouse.getX() <= 1200 && Mouse.getY() > 525 && Mouse.getY() < 675) {\n\t\t\tclicked = true;\n\t\t} else {\n\t\t\tclicked = false;\n\t\t}*/\n\t\t\n\t\treturn;\n\t}", "public void mouseMoved(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }", "@Override\n\t\tpublic void renderButton(int mouseX, int mouseY){\n\t\t}", "public void run() {\n int x = m.getCurrentMouse().getX();\n int y = m.getCurrentMouse().getY();\n int scrollX = view.getScroll().getHorizontalScrollBar().getValue();\n int scrollY = view.getScroll().getVerticalScrollBar().getValue();\n\n int clickX = x + scrollX - 40;\n\n int clickY = y + scrollY - 30;\n\n int fromTheTop = clickY / 21;\n int fromTheLeft = clickX / 21;\n\n\n Note n = model.getHighestPitch();\n\n for (int i = 0; i < fromTheTop; i++) {\n n = Note.prevNote(n);\n }\n this.model.setNoteToBeAdded(new Note(n.getPitchLetter(), n.getOctave(),\n fromTheLeft, fromTheLeft));\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n\n\n }", "public abstract void renderFrame(Window window, float musicTime);", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "private void update(){\n\n//\t\tif(frameSupplier != null){\n//\n//\t\t\tBufferedImage frame = frameSupplier.getFrame();\n//\n//\t\t\tvideoContainer.setIcon(new ImageIcon(frame));\n//\t\t\tvideoContainer.setText(null);\n//\n//\t\t}\n\n\t\tBufferedImage frame = camera.getImage();\n\t\tvideoContainer.setIcon(new ImageIcon(frame));\n\t\tvideoContainer.setText(null);\n\n\t\tgpioManager.setStatusColour(Color.getHSBColor((System.currentTimeMillis() % 3000) / 3000f, 1, 1));\n\n\t\tgpioManager.setShutterLEDState(System.currentTimeMillis() % 1000 > 500);\n\n\t\tjFrame.repaint();\n\t}", "@Override\n public void mouseMoved(MouseEvent e) {\n mouseXPosition = e.getX();\n }", "public abstract void moveMouse(int iPosX, int iPosY);", "@Override \n\tpublic void update(Graphics g) \n\t{\n\t\tpaint(g); \n\t}", "public void drawScreen(int mouseX, int mouseY, float par3)\n\t{\n\t\tthis.mouseX = mouseX;\n\t\tthis.mouseY = mouseY;\n\t\tthis.drawBackground();\n\t\tint scrollbarLeft = this.getScrollbarLeft();\n\t\tint scrollbarRight = scrollbarLeft + 6;\n\t\tint slotX;\n\t\tint slotY = -1;\n\t\tint clickedSlot;\n\t\tboolean scrollHover;\n\t\tboolean hoveringOver;\n\t\tint scrollBarHeight;\n\n\t\tscrollBarHeight = (int)((float)((this.height) * (this.height)) / (float)this.getContentHeight());\n\t\tif (scrollBarHeight < 32)\n\t\t{\n\t\t\tscrollBarHeight = 32;\n\t\t}\n\n\t\tif (scrollBarHeight > this.height)\n\t\t{\n\t\t\tscrollBarHeight = this.height;\n\t\t}\n//\t\tscrollbarHeight = 16;\n\n\t\tint scrollMax = this.height - scrollBarHeight;\n\n\t\tclickedSlot = -1;\n\t\thoveringOver = false;\n\t\tscrollHover = false;\n\n\t\t// is the mouse within our boundry?\n\t\tif (mouseX >= this.left && mouseX <= this.right && \n\t\t\t\tmouseY >= this.top && mouseY <= this.bottom)\n\t\t{\n\n\t\t\thoveringOver = true;\n\t\t\tif (mouseX >= scrollbarLeft && mouseX <= scrollbarRight)\n\t\t\t\tscrollHover = true;\n\n\t\t\t// was the mouse clicked? (button 0)\n\t\t\tif (Mouse.isButtonDown(0))\n\t\t\t{\n\n\n\t\t\t\t// did we click on a slot?\n\t\t\t\tif(mouseX >= this.left && mouseX < scrollbarLeft) {\n\t\t\t\t\tif(!this.scrolling) {\n\t\t\t\t\t\t// which slot is it?\n\t\t\t\t\t\tslotY = (mouseY - this.top) + (int)(this.amountScrolled * this.getAdjustedContentHeight()) - 4;\n\t\t\t\t\t\tclickedSlot = slotY / GuiSlotFriendFoe.slotHeight;\n\n\t\t\t\t\t\t// did the user just click on a slot twice\n\t\t\t\t\t\tif (clickedSlot >= 0 && slotY >= 0 && clickedSlot < this.getSize())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboolean doubleClicked = clickedSlot == this.selectedElement && Minecraft.getSystemTime() - this.lastClicked < 250L;\n\t\t\t\t\t\t\tthis.elementClicked(clickedSlot, doubleClicked);\n\t\t\t\t\t\t\tthis.selectedElement = clickedSlot;\n\t\t\t\t\t\t\tthis.lastClicked = Minecraft.getSystemTime();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.elementClicked(-1, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} \n\t\t\t\t// clicked within the scroll bar?\n\t\t\t\tif (mouseX >= scrollbarLeft && mouseX <= scrollbarRight)\n\t\t\t\t{\n\t\t\t\t\tthis.scrolling = true;\n\n\n\t\t\t\t\tthis.scrollBarTop = mouseY - this.top - scrollBarHeight / 2;\n\t\t\t\t\tif (this.scrollBarTop < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.scrollBarTop = 0;\n\t\t\t\t\t}\n\t\t\t\t\tif(this.scrollBarTop > scrollMax)\n\t\t\t\t\t\tthis.scrollBarTop = scrollMax;\n\n\t\t\t\t\tthis.amountScrolled = (float)this.scrollBarTop / (float)scrollMax;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.scrolling = false;\n\t\t\t}\n\n/*\n\t\t\t// did the wheel scroll\n\t\t\tint mouseWheel = Mouse.getEventDWheel();\n\n\t\t\tif (mouseWheel != 0)\n\t\t\t{\n\t\t\t\tif (mouseWheel > 0)\n\t\t\t\t{\n\t\t\t\t\tmouseWheel = -1;\n\t\t\t\t}\n\t\t\t\telse if (mouseWheel < 0)\n\t\t\t\t{\n\t\t\t\t\tmouseWheel = 1;\n\t\t\t\t}\n\n\t\t\t\tthis.amountScrolled += (float)(mouseWheel * 1.0F / this.getContentHeight());\n\t\t\t}\n*/\n\n\t\t}\n\n\n\t\t// draw the background\n\t\t//this.bindAmountScrolled();\n\t\tGL11.glDisable(GL11.GL_LIGHTING);\n\t\tGL11.glDisable(GL11.GL_FOG);\n\t\tTessellator tess = Tessellator.instance;\n\t\t\n\t\t// draw the title\n\t\tthis.parentGuiFF.drawCenteredString(this.mc.fontRenderer,this.title, this.left + this.width / 2, this.top - 10, 0x00FFFFFF);\n\n\t\tslotX = this.left;\n\t\tslotY = this.top + 4 - (int)(this.amountScrolled * this.getAdjustedContentHeight());\n\n\t\t// visible slots\n\t\tfor (int drawSlot = 0; drawSlot < this.getSize(); ++drawSlot)\n\t\t{\n\t\t\tint slotYTop = slotY + drawSlot * GuiSlotFriendFoe.slotHeight;\n\t\t\tint slotYBottom = GuiSlotFriendFoe.slotHeight - 4;\n\n\t\t\tif (\n\t\t\t\t\tslotYTop <= (this.bottom - GuiSlotFriendFoe.slotHeight) && \n\t\t\t\t\tslotYTop > this.top\n\t\t\t\t\t)\n\t\t\t{\n\t\t\t\tif (this.showSelectionBox && this.isSelected(drawSlot))\n\t\t\t\t{\n\t\t\t\t\tint selectionBoxLeft = this.left;\n\t\t\t\t\tint selectionBoxRight = scrollbarLeft;\n\t\t\t\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n\t\t\t\t\tGL11.glDisable(GL11.GL_TEXTURE_2D);\n\t\t\t\t\ttess.startDrawingQuads();\n\t\t\t\t\ttess.setColorOpaque_I(0x00008080);\n\t\t\t\t\tif(hoveringOver)\n\t\t\t\t\t\ttess.setColorOpaque_I(0x00FFFF00); // \n\t\t\t\t\ttess.addVertexWithUV((double)selectionBoxLeft , (double)(slotYTop + slotYBottom + 2), 0.0D, 0.0D, 1.0D);\n\t\t\t\t\ttess.addVertexWithUV((double)selectionBoxRight , (double)(slotYTop + slotYBottom + 2), 0.0D, 1.0D, 1.0D);\n\t\t\t\t\ttess.addVertexWithUV((double)selectionBoxRight , (double)(slotYTop - 2), 0.0D, 1.0D, 0.0D);\n\t\t\t\t\ttess.addVertexWithUV((double)selectionBoxLeft , (double)(slotYTop - 2), 0.0D, 0.0D, 0.0D);\n\t\t\t\t\ttess.setColorOpaque_I(0x00000000);\n\t\t\t\t\ttess.addVertexWithUV((double)(selectionBoxLeft + 1), (double)(slotYTop + slotYBottom + 1), 0.0D, 0.0D, 1.0D);\n\t\t\t\t\ttess.addVertexWithUV((double)(selectionBoxRight - 1), (double)(slotYTop + slotYBottom + 1), 0.0D, 1.0D, 1.0D);\n\t\t\t\t\ttess.addVertexWithUV((double)(selectionBoxRight - 1), (double)(slotYTop - 1), 0.0D, 1.0D, 0.0D);\n\t\t\t\t\ttess.addVertexWithUV((double)(selectionBoxLeft + 1), (double)(slotYTop - 1), 0.0D, 0.0D, 0.0D);\n\t\t\t\t\ttess.draw();\n\t\t\t\t\tGL11.glEnable(GL11.GL_TEXTURE_2D);\n\t\t\t\t}\n\n\t\t\t\tthis.drawSlot(drawSlot, slotX, slotYTop - 2, tess);\n\t\t\t}\n\t\t}\n\n\t\t// draw top and bottom edge gradients\n\t\tGL11.glDisable(GL11.GL_DEPTH_TEST);\n\t\tGL11.glEnable(GL11.GL_BLEND);\n\t\tGL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);\n\t\tGL11.glDisable(GL11.GL_ALPHA_TEST);\n\t\tGL11.glShadeModel(GL11.GL_SMOOTH);\n\t\tGL11.glDisable(GL11.GL_TEXTURE_2D);\n\n\t\t// draw scrollbar\n\n\t\tif (this.getAdjustedContentHeight() > 0)\n\t\t{\n\n\n\t\t\t// scrollbar back\n\t\t\ttess.startDrawingQuads();\n\t\t\ttess.setColorRGBA_I(0, 255);\n\t\t\ttess.addVertexWithUV((double)scrollbarLeft , (double)this.bottom, 0.0D, 0.0D, 1.0D);\n\t\t\ttess.addVertexWithUV((double)scrollbarRight, (double)this.bottom, 0.0D, 1.0D, 1.0D);\n\t\t\ttess.addVertexWithUV((double)scrollbarRight, (double)this.top, 0.0D, 1.0D, 0.0D);\n\t\t\ttess.addVertexWithUV((double)scrollbarLeft , (double)this.top, 0.0D, 0.0D, 0.0D);\n\t\t\ttess.draw();\n\t\t\t// scrollbar, derp\n\t\t\ttess.startDrawingQuads();\n\t\t\ttess.setColorRGBA_I(0x00808080, 255);\n\t\t\tif(scrollHover)\n\t\t\t\ttess.setColorRGBA_I(0x00808000, 255);\n\t\t\ttess.addVertexWithUV((double)scrollbarLeft , (double)(this.top + this.scrollBarTop + scrollBarHeight), 0.0D, 0.0D, 1.0D);\n\t\t\ttess.addVertexWithUV((double)scrollbarRight, (double)(this.top + this.scrollBarTop + scrollBarHeight), 0.0D, 1.0D, 1.0D);\n\t\t\ttess.addVertexWithUV((double)scrollbarRight, (double) this.top + this.scrollBarTop, 0.0D, 1.0D, 0.0D);\n\t\t\ttess.addVertexWithUV((double)scrollbarLeft , (double) this.top + this.scrollBarTop, 0.0D, 0.0D, 0.0D);\n\t\t\ttess.draw();\n\t\t\t// scrollbar highlight\n\t\t\ttess.startDrawingQuads();\n\t\t\ttess.setColorRGBA_I(0x00C0C0C0, 255);\n\t\t\tif(scrollHover)\n\t\t\t\ttess.setColorRGBA_I(0x00C0C000, 255);\n\t\t\ttess.addVertexWithUV((double)(scrollbarLeft ), (double)(this.top + this.scrollBarTop + scrollBarHeight - 1), 0.0D, 0.0D, 1.0D);\n\t\t\ttess.addVertexWithUV((double)(scrollbarRight - 1), (double)(this.top + this.scrollBarTop + scrollBarHeight - 1), 0.0D, 1.0D, 1.0D);\n\t\t\ttess.addVertexWithUV((double)(scrollbarRight - 1), (double) this.top + this.scrollBarTop, 0.0D, 1.0D, 0.0D);\n\t\t\ttess.addVertexWithUV((double)(scrollbarLeft ), (double) this.top + this.scrollBarTop, 0.0D, 0.0D, 0.0D);\n\t\t\ttess.draw();\n\t\t}\n\n\n\t\tGL11.glEnable(GL11.GL_TEXTURE_2D);\n\t\tGL11.glShadeModel(GL11.GL_FLAT);\n\t\tGL11.glEnable(GL11.GL_ALPHA_TEST);\n\t\tGL11.glDisable(GL11.GL_BLEND);\n\t}", "public void run()\n {\n while (true) // infinite loop\n {\n for (int i = 0; i < display.getSpeed(); i++)\n {\n step();\n }\n updateDisplay();\n display.repaint();\n display.pause(1); //wait for redrawing and for mouse\n int[] mouseLoc = display.getMouseLocation();\n if (mouseLoc != null) //test if mouse clicked\n {\n locationClicked(mouseLoc[0], mouseLoc[1], display.getTool());\n }\n }\n }", "@Override\n\tpublic void render(float deltaTime) {\n\t\t\n\t}", "@Override\n public void render(float delta) {\n if(counter>1000) counter = 1;\n super.render(delta);\n myCamera.update();\n myCamera.setCamera(renderer, batch);\n batch.begin();\n backgroundSprite.draw(batch, calculateAlpha()/2);\n batch.end();\n drawCurve();\n drawFlights();\n drawFavouritesAndLegend();\n ab.render();\n clicked = false;\n counter++;\n }", "public void repaint() {\n frame.repaint();\n frame.requestFocus();\n }", "@Override\r\n protected void redrawCursor() {\n this.viewport.getCursor().moveAccordingly(this.finger.getFingerPitch(), this.finger.getFingerYaw());\r\n }", "@Inject(method = \"render\", at = @At(\"TAIL\"))\n public void render(PoseStack matrices, int mouseX, int mouseY, float delta, CallbackInfo info) {\n drawCenteredString(\n matrices,\n minecraft.font,\n ChatFormatting.BOLD + status.toString(),\n authButton.x + authButton.getWidth(),\n authButton.y - 1,\n status.getColor());\n }", "public void Render(){\n //player rect\n glPushMatrix();\n glTranslatef(px, py, 0.0f);\n glBegin(GL_TRIANGLES);\n glColor3f(1.0f, 1.0f, 1.0f);\n glVertex2f(-sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, sy);\n glVertex2f(sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, -sy);\n glEnd();\n glPopMatrix();\n \n if(debug){\n glPushMatrix();\n glBegin(GL_LINES);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py+sy/2);\n glVertex2f(px+sx, py+sy/2);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py-sy/2);\n glVertex2f(px+sx, py-sy/2);\n glEnd();\n glPopMatrix();\n }\n \n }", "public void updateInput() {\n int x = Mouse.getX();\n int y = GameApplication.getScreenHeight() - Mouse.getY();\n\n theHandler.mouseMoved(x, y);\n\n if (Mouse.isButtonDown(0)) {\n theHandler.mousePressed(x, y, MouseHelper.LEFT_CLICK);\n clickedLeft = true;\n return;\n }\n if (Mouse.isButtonDown(1)) {\n theHandler.mousePressed(x, y, MouseHelper.RIGHT_CLICK);\n clickedRight = true;\n return;\n }\n if (Mouse.isButtonDown(2)) {\n theHandler.mousePressed(x, y, MouseHelper.WHEEL_CLICK);\n clickedWheel = true;\n return;\n }\n\n if (clickedLeft) {\n theHandler.mouseClicked(x, y, MouseHelper.LEFT_CLICK);\n clickedLeft = false;\n }\n if (clickedRight) {\n theHandler.mouseClicked(x, y, MouseHelper.RIGHT_CLICK);\n clickedRight = false;\n }\n if (clickedWheel) {\n theHandler.mouseClicked(x, y, MouseHelper.WHEEL_CLICK);\n clickedWheel = false;\n }\n\n int i = Mouse.getDWheel();\n if (i < 0) {\n theHandler.mouseWheelMoved(false, true, i);\n }\n if (i > 0) {\n theHandler.mouseWheelMoved(true, false, i);\n }\n }", "@Override\n\tpublic void render(float delta) {\n\t\tbatch.begin();\n\t\tbatch.draw(background, 0, 0);\n\t\tbatch.end();\n\t\t\n\t\tstage.act(delta);\n\t\tstage.draw();\n\t\t\n\t}", "public void update(){\n float wx = Core.graphics.getWidth() / 2f, wy = Core.graphics.getHeight() / 2f;\n\n //save each frame when recording\n if(recording){\n frametime += Core.graphics.getDeltaTime() * 60.5f / speedMultiplier;\n if(frametime >= (60f / recordfps)){\n frames.add(ScreenUtils.getFrameBufferPixels(\n (int)(bounds.x + offsetx + wx),\n (int)(bounds.y + offsety + wy),\n (int)bounds.width, (int)bounds.height, false\n ));\n frametime = 0;\n }\n }\n\n //update input\n if(Core.scene == null || !Core.scene.hasField()){\n if(Core.input.keyTap(openKey) && !saving){\n if(recording){\n recording = false;\n frames.clear();\n }\n open = !open;\n }\n\n int change = 0;\n if(Core.input.keyTap(speedMinusKey)) change --;\n if(Core.input.keyTap(speedPlusKeep)) change ++;\n\n if(change != 0){\n int idx = 3;\n for(int i = 0; i < speedModes.length; i++){\n if(speedModes[i] == speedMultiplier){\n idx = i;\n break;\n }\n }\n\n speedMultiplier = speedModes[Mathf.clamp(idx + change, 0, speedModes.length - 1)];\n }\n\n if(Core.input.keyTap(switchModeKey) && !saving){\n outputMp4 = !outputMp4;\n }\n\n if(open){\n if(Core.input.keyDown(resizeKey) && !recording){\n float xs = Math.abs(wx + offsetx - Core.input.mouseX());\n float ys = Math.abs(wy + offsety - Core.input.mouseY());\n bounds.set(-xs, -ys, xs * 2, ys * 2);\n }\n\n if(Core.input.keyDown(shiftKey)){\n offsetx = Mathf.lerpDelta(offsetx, Core.input.mouseX() - wx, driftSpeed);\n offsety = Mathf.lerpDelta(offsety, Core.input.mouseY() - wy, driftSpeed);\n }\n\n if(Core.input.keyTap(recordKey) && !saving){\n if(!recording){\n frames.clear();\n recording = true;\n }else{\n recording = false;\n saving = true;\n saveprogress = 0f;\n\n Threads.daemon(() -> {\n if(frames.size == 0){\n saving = false;\n return;\n }\n\n try{\n exportDirectory.mkdirs();\n\n //linux-only\n String args = Strings.format(\n \"/usr/bin/ffmpeg -r @ -s @x@ -f rawvideo -pix_fmt rgba -i - -frames:v @ -filter:v vflip@ @/@.@\",\n recordfps, (int)bounds.width, (int)bounds.height, frames.size, outputMp4 ? \"\" : \",split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse\",\n exportDirectory.absolutePath(), new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\", Locale.getDefault()).format(new Date()),\n outputMp4 ? \"mp4\" : \"gif\"\n );\n\n ProcessBuilder builder = new ProcessBuilder(args.split(\" \")).redirectErrorStream(true);\n Process process = builder.start();\n OutputStream out = process.getOutputStream();\n\n for(byte[] frame : frames){\n out.write(frame);\n out.flush();\n saveprogress += (1f / frames.size);\n }\n\n out.close();\n process.waitFor();\n }catch(Exception e){\n Log.err(e);\n }\n\n frames.clear();\n saving = false;\n });\n }\n }\n }\n }\n\n //draw UI\n if(open){\n Tmp.m1.set(Draw.proj());\n Draw.proj(0, 0, Core.graphics.getWidth(), Core.graphics.getHeight());\n\n Draw.color(\n Core.input.keyDown(resizeKey) && !recording ? Color.green :\n Core.input.keyDown(shiftKey) ? Color.orange :\n recording ? Color.red :\n Color.yellow\n );\n\n Lines.stroke(2f);\n Lines.rect(bounds.x + wx + offsetx, bounds.y + wy + offsety, bounds.width, bounds.height);\n\n if(saving){\n Draw.color(Color.black);\n float w = 200, h = 50;\n Fill.crect(wx - w / 2, wy - h / 2, w, h);\n Draw.color(Color.red, Color.green, saveprogress);\n Fill.crect(wx - w / 2, wy - h / 2, w * saveprogress, h);\n }\n\n //attempt fetching font from several sources\n Font font = null;\n\n if(Core.assets != null && Core.assets.contains(\"outline\", Font.class)){\n font = Core.assets.get(\"outline\", Font.class);\n }\n\n if(font == null && Core.scene != null && Core.scene.hasStyle(LabelStyle.class)){\n font = Core.scene.getStyle(LabelStyle.class).font;\n }\n\n if(font != null){\n float scl = font.getData().scaleX;\n\n font.getData().setScale(1f);\n font.draw(\n (int)bounds.width + \"x\" + (int)bounds.height + \" \" +\n (saving ? \"[sky][[saving \" + (int)(saveprogress * 100) + \"%]\" : recording ? \"[scarlet][[recording]\" : outputMp4 ? \"[coral]mp4\" : \"[royal]gif\") +\n (!recording && !saving ? \" [gray][[\" + switchModeKey + \"]\" : \"\") +\n (speedMultiplier == 1f ? \"\" : \"\\n[white]speed: [royal]\" + Strings.autoFixed(speedMultiplier, 2) + \"[gray]x\"),\n bounds.x + wx + offsetx + bounds.width/2f, bounds.y + wy + offsety - 4, Align.center\n );\n font.getData().setScale(scl);\n }\n\n Draw.color();\n Draw.flush();\n Draw.proj(Tmp.m1);\n }\n }", "private void toolbarEmpMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_toolbarEmpMouseDragged\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n // Move frame by the mouse delta\n setLocation(getLocationOnScreen().x + x - lastX,\n getLocationOnScreen().y + y - lastY);\n lastX = x;\n lastY = y;\n }", "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) \r\n\t\t\t{\n\t\t\t\tpaintComponent(getGraphics(), player);\r\n\t\t\t}", "public void update(int x,int y);", "public void drawScreen(int mouseX, int mouseY, float partialTicks) {\n\t\tGlStateManager.disableAlpha();\n\t\tthis.renderSkybox(mouseX, mouseY, partialTicks);\n\t\tGlStateManager.enableAlpha();\n\t\tTessellator var4 = Tessellator.getInstance();\n\t\tWorldRenderer var5 = var4.getWorldRenderer();\n\t\tshort var6 = 274;\n\n\t\t// Logo Width\n\t\tint var7 = this.width / 2 - var6 / 2;\n\n\t\t// Logo Height\n\t\tint var8 = (this.height / 2) - 30;\n\n\t\t// Color speed\n\t\tfloat colorspeed = 0.2f;\n\t\t// this.drawGradientRect(0, 0, this.width, this.height, -2130706433,\n\t\t// 16777215);\n\t\t// this.drawGradientRect(0, 0, this.width, this.height, 0,\n\t\t// Integer.MIN_VALUE);\n\t\tthis.mc.getTextureManager().bindTexture(minecraftTitleTextures);\n\n\t\tGlStateManager.color(logo_red, logo_green, logo_blue, 1.0F);\n\n\t\tif (logo_red > 1.0f) {\n\t\t\tlogo_ring = false;\n\t\t}\n\t\tif (logo_green > 1.0f) {\n\t\t\tlogo_ging = false;\n\t\t}\n\t\tif (logo_blue > 1.0f) {\n\t\t\tlogo_bing = false;\n\t\t}\n\t\tif (logo_red < 0.0f) {\n\t\t\tlogo_ring = true;\n\t\t}\n\t\tif (logo_green < 0.0f) {\n\t\t\tlogo_ging = true;\n\t\t}\n\t\tif (logo_blue < 0.0f) {\n\t\t\tlogo_bing = true;\n\t\t}\n\n\t\tif (logo_ring) {\n\t\t\tlogo_red += (colorspeed * 0.02f);\n\t\t} else {\n\t\t\tlogo_red -= (colorspeed * 0.1f);\n\t\t}\n\n\t\tif (logo_ging) {\n\t\t\tlogo_green += (colorspeed * 0.1f);\n\t\t} else {\n\t\t\tlogo_green -= (colorspeed * 0.06f);\n\t\t}\n\n\t\tif (logo_bing) {\n\t\t\tlogo_blue += (colorspeed * 0.3f);\n\t\t} else {\n\t\t\tlogo_blue -= (colorspeed * 0.02f);\n\t\t}\n\n\t\tif ((double) this.updateCounter < 1.0E-4D) {\n\t\t\tthis.drawTexturedModalRect(var7 + 0, var8 + 0, 0, 0, 99, 44);\n\t\t\tthis.drawTexturedModalRect(var7 + 99, var8 + 0, 129, 0, 27, 44);\n\t\t\tthis.drawTexturedModalRect(var7 + 99 + 26, var8 + 0, 126, 0, 3, 44);\n\t\t\tthis.drawTexturedModalRect(var7 + 99 + 26 + 3, var8 + 0, 99, 0, 26, 44);\n\t\t\tthis.drawTexturedModalRect(var7 + 155, var8 + 0, 0, 45, 155, 44);\n\t\t} else {\n\t\t\tthis.drawTexturedModalRect(var7 + 0, var8 + 0, 0, 0, 155, 44);\n\t\t\tthis.drawTexturedModalRect(var7 + 155, var8 + 0, 0, 45, 155, 44);\n\t\t}\n\n\t\tvar5.func_178991_c(-1);\n\t\tGlStateManager.pushMatrix();\n\t\tGlStateManager.translate((float) (this.width / 2 + 90), 70.0F, 0.0F);\n\n\t\tfloat var9 = 1.8F - MathHelper.abs(\n\t\t\t\tMathHelper.sin((float) (Minecraft.getSystemTime() % 1000L) / 1000.0F * (float) Math.PI * 2.0F) * 0.1F);\n\t\tvar9 = var9 * 100.0F / (float) (this.fontRendererObj.getStringWidth(this.splashText) + 10);\n\t\tGlStateManager.scale(var9 / 2, var9 / 2, var9 / 2);\n\n\t\tthis.drawCenteredString(this.fontRendererObj, this.splashText, 0, -8, 252);\n\t\tGlStateManager.popMatrix();\n\t\t\n\t\tString var10 = \"§7Minecraft 1.8 (Hacks: \" + this.mc.resilient.getColoredStatus() + \"§7)§r\";\n\t\tthis.drawString(this.fontRendererObj, var10, 2, this.height - 10, -1);\n\n\t\tString var11 = \"§b§nhttps://cloudchan.org/§r\";\n\t\tthis.drawString(this.fontRendererObj, var11, this.width - this.fontRendererObj.getStringWidth(var11) - 2,\n\t\t\t\tthis.height - 10, -1);\n\n\t\tString var12 = \"§5Founded by Notch§r\";\n\t\tthis.drawString(this.fontRendererObj, var12, 2, this.height - 20, -1);\n\n\t\tString var13 = \"§c§mMicrosoft(c)§r\";\n\t\tthis.drawString(this.fontRendererObj, var13, 2, this.height - 30, -1);\n\n\t\tGlStateManager.pushMatrix();\n\t\tGlStateManager.scale(1.8f, 2.4f, 1.0f);\n\t\tGlStateManager.translate(16.5f, 0.0f, 0.0f);\n\n\t\tint x = (this.width / 4);\n\t\tint y = (this.height / 4);\n\t\tthis.drawCenteredString(this.fontRendererObj,\n\t\t\t\t\"§2§l\" + this.mc.resilient.NAME + \" \" + this.mc.resilient.VERSION + \"§r\", x, y, -1);\n\n\t\tGlStateManager.popMatrix();\n\n\t\t// Draw top navbar\n\t\tdrawRect(0, 0, this.width, 25, 0x5000FFDD);\n\t\t\n\t\tsuper.drawScreen(mouseX, mouseY, partialTicks);\n\t}", "@Override\r\n public void mouseDragged(MouseEvent event)\r\n {\r\n points.add(event.getPoint());\r\n repaint(); // repaint JFrame\r\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "public void updateCam()\r\n {\n \ttry{\r\n \tSystem.out.println();\r\n \tNIVision.IMAQdxGrab(curCam, frame, 1);\r\n \tif(curCam == camCenter){\r\n \t\tNIVision.imaqDrawLineOnImage(frame, frame, NIVision.DrawMode.DRAW_VALUE, new Point(320, 0), new Point(320, 480), 120);\r\n \t}\r\n server.setImage(frame);}\n \tcatch(Exception e){}\r\n }", "public void startRendering() {\n if (!justRendered) {\n justRendered = true;\n \n if (Flags.wireFrame) p.render_wireFrame();\n else p.render();\n }\n }", "@Override\n\tpublic void render(Graphics g) {\n\t\tg.drawImage(getAnimationFrame(), (int)(x - handler.getCamera().getxOffset()), (int)(y - handler.getCamera().getyOffset()), width, height, null);\n\t //drawBoudingBox(g);\n\t}", "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}", "public void moveAndDraw(Graphics window)\r\n {\n Color temp = getColor();\r\n\t\tdraw(window, Color.WHITE);\r\n\t\tsetPos(getXSpeed()+xSpeed, getYSpeed()+ySpeed);\r\n\t\tdraw(window, temp);\r\n\t\t//setY\r\n\r\n\t\t//draw the ball at its new location\r\n }" ]
[ "0.728576", "0.70577073", "0.7024676", "0.67562294", "0.66242796", "0.64760095", "0.6331583", "0.63188285", "0.6312896", "0.62959945", "0.6278161", "0.62704736", "0.62608325", "0.62434787", "0.6237921", "0.62321556", "0.62304354", "0.6223453", "0.6218289", "0.6207256", "0.62045544", "0.62008107", "0.6178842", "0.61493737", "0.614278", "0.61366725", "0.6135224", "0.6135218", "0.6107033", "0.6091454", "0.6071841", "0.606216", "0.60581654", "0.60576844", "0.60538894", "0.6051742", "0.6031284", "0.6028551", "0.6025696", "0.60148555", "0.6008079", "0.6005278", "0.599644", "0.5990992", "0.5990464", "0.5988886", "0.59886664", "0.5983827", "0.59735787", "0.59735787", "0.59688264", "0.596195", "0.59591854", "0.59589934", "0.595825", "0.5953827", "0.59460557", "0.59403384", "0.5928357", "0.59261936", "0.59247464", "0.59233457", "0.5918808", "0.5915632", "0.5910098", "0.5899026", "0.5896867", "0.58950955", "0.58932155", "0.5882919", "0.5880367", "0.5877103", "0.58767515", "0.5866196", "0.58644867", "0.5855485", "0.58553576", "0.5855152", "0.58549076", "0.5843898", "0.58422697", "0.58380437", "0.5837937", "0.5836428", "0.5834938", "0.58302706", "0.5827873", "0.58131206", "0.58109844", "0.5807554", "0.58071685", "0.57977194", "0.5796693", "0.5793838", "0.5792861", "0.5787247", "0.57859975", "0.578438", "0.57807887", "0.577919" ]
0.753223
0
Calculate the screenOffset based on the player position
private static VectorD calculateScreenOffset( TransformationStorage playerPos ) { VectorD dim = new VectorD(Constants.GAME_WIDTH, Constants.GAME_HEIGHT); return dim .multiplicate(DIM_REDUCTION) .diff( Engine .get() .getGameState() .getCursorFollow() .multiplicate(MOUSE_POS_REDUCTION) ) .diff(playerPos.getPosition()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getCameraOffset() {\n Point offset = new Point(getPlayer().getCenterX() - screenWidthMiddle,\n getPlayer().getCenterY() - screenHeightMiddle);\n reboundCameraOffset(offset, EnumSet.of(Direction.LEFT, Direction.RIGHT));\n // we want to add these offsets to the player's x and y, so invert them\n offset.x = -offset.x;\n offset.y = -offset.y;\n return offset;\n }", "private Vec2 calculatePos() {\n\t\tNetTransformComponent transform = actor.getEntity().getNetTransform();\n\t\tif (transform != null) {\n\t\t\tVec2 screenPos = scene.getCamera()\n\t\t\t\t\t.getScreenCoordinates(Vec3.add(transform.getPosition(), new Vec3(-2.0f, 3.25f, 0.0f)));\n\t\t\tVec2 result = new Vec2(screenPos.getX(), screenPos.getY());\n\t\t\treturn result;\n\t\t}\n\n\t\treturn new Vec2(0.0f, 0.0f);\n\t}", "public double getOffset(){\n\t\tdouble percentHeight = networkTableValues.get(\"height\")/cameraHeightPixel;\n\t\t//Get the height of the frame in inches\n\t\tdouble cameraHeightInches = networkTableValues.get(\"height\")/percentHeight;\n\t\t//Get the width of the frame in inches\n\t\tdouble cameraWidthInches = cameraHeightInches*(cameraWidthPixel/cameraHeightPixel);\n\t\t//Get the distanceFromTower from the camera to the goal\n\t\tdistanceFromTower = (cameraWidthInches/2)/Math.tan(cameraFOV*(Math.PI/180));\n\t\t//Get the distanceFromTower from the camera to the base of the tower\n\t\tdouble horizontalDistance = Math.sqrt(Math.pow(distanceFromTower, 2) - Math.pow(towerHeight, 2));\n\t\t//Get offset in inches\n\t\tdouble distanceFromCenterInches = (networkTableValues.get(\"centerX\") / cameraWidthPixel)*cameraWidthInches;\n\t\tdouble offset = Math.atan((distanceFromCenterInches/distanceFromTower)*(180/Math.PI));\n\t\t\n\t\tSystem.out.println(\"OFFSET: \" + offset);\n\t\treturn offset;\n\t}", "public int getCurrentPlayerRealPosition();", "private void initOffset(){\n\t\tdouble maxDistance = Math.sqrt(Math.pow(getBattleFieldWidth(),2) + Math.pow(getBattleFieldHeight(),2));\n\n\t\tif(eDistance < 100) { \n\t\t\toffset = 0;\n\t\t} else if (eDistance <=700){\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\n\t\t\t\toffset=eDistance / maxDistance*0.4;\n\t\t\t} else {\n\t\t\t\toffset=-eDistance / maxDistance*0.4;\n\t\t\t}\n\t\t\toffset*=velocity/8;\n\t\t}\n\t\telse {\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\t\t\t\toffset = eDistance / maxDistance*0.4;\n\t\t\t} else {\n\t\t\t\toffset = -eDistance / maxDistance*0.4;\n\t\t\t}\n\t\t\toffset*=velocity/4;\n\t\t}\n\t}", "private Point getMainPoint()\n {\n // Center of screen\n int x = (findViewById(R.id.the_canvas).getWidth() - ((GameBoard)findViewById(R.id.the_canvas)).getMainSpriteWidth())/2;\n // Very bottom of screen\n int y = findViewById(R.id.the_canvas).getHeight() - ((GameBoard)findViewById(R.id.the_canvas)).getMainSpriteHeight();\n\n return new Point (x,y);\n }", "protected float positionToMovement(int pixels) {\n if (pixels >= SCREEN_MOVE_BORDER_SIZE) return 0;\n\n int offset = Math.min(SCREEN_MOVE_BORDER_SIZE - pixels, SCREEN_DEAD_ZONE);\n return offset * (1f / (SCREEN_MOVE_BORDER_SIZE - SCREEN_DEAD_ZONE)) * BORDER_MOVE_SPEED * eyeOffset.length();\n }", "private float getPlayerMove() {\r\n\t\treturn 1.0f / 5;\r\n\t}", "public DVector getPosition()\n\t{\n\t\treturn this.screenPos;\n\t}", "public long position() {\n\t\tif (mPlayer.isInitialized()) {\n\t\t\treturn mPlayer.position();\n\t\t}\n\t\treturn -1;\n\t}", "private int computeMoveCameraPadding() {\n \t\tPoint dim = this.getScreenDim();\n \t\tint min = Math.min( dim.x, dim.y );\n \t\treturn (int) (CAMERA_MOVE_BOUNDS_PADDING * min);\n \t}", "public double getUserFriendlyYPos(){\n return myGrid.getHeight()/ HALF-yPos;\n }", "public ScreenPosition getPosition()\n {\n return myPosition;\n }", "private int visible2ScreenY(float y){\n float tmp, m;\n m = gamePanel.getHeight() / gameControl.visibleDepth;\n tmp = m*(y - gameControl.visibleY);\n return (int)tmp;\n }", "void updatePosition() {\n if (gameScreen.cursorIsOnLeft()) \n {\n // set the panel's rightmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 11/12 - getWidth(), \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n else // Otherwise the cursor must be on the right half of the screen\n {\n // set the panel's leftmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 1/12, \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n }", "public Vector2F getScreenLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}", "private void m24192d(ah ahVar) {\n Object obj = new int[2];\n ahVar.f995b.getLocationOnScreen(obj);\n ahVar.f994a.put(\"android:slide:screenPosition\", obj);\n }", "Point onScreen();", "public int getLiftPosition() {\n //Do some math on getting the encoder positions\n return liftStageOne.getCurrentPosition() + liftStageTwo.getCurrentPosition();\n }", "public int getPlayerVisiblePosition(Colour colour);", "@Override\n public MPPointF getOffset() {\n return new MPPointF(-(getWidth() / 2.0f), -getHeight() - (getHeight() / 4.0f));\n }", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "private void checkOffset() {\n\t\tfloat CurZ=mApplications.get(CurIndex).getZ();\r\n\t\tfloat diff=0;\r\n\t\tfloat offset=ApplicationInfo.getOffset();\r\n\t\tLog.d(TAG, \"checkOffset: \"+ApplicationInfo.Destination);\r\n\t\tif(ApplicationInfo.IsScrolling)\r\n\t\t{\r\n\t\t\tif(offset > 0 && CurZ < Constants.displayedPlace \r\n\t\t\t\t\t&& (diff=glview.floorby2(Constants.displayedPlace - CurZ)) < offset)\r\n\t\t\t{\r\n\t\t\t\toffset=diff;\r\n\t\t\t}\r\n\t\t\telse if(offset < 0 && CurZ > Constants.displayedPlace \r\n\t\t\t\t\t&& (diff=glview.floorby2(CurZ - Constants.displayedPlace)) < offset)\r\n\t\t\t{\r\n\t\t\t\toffset=-diff;\r\n\t\t\t}\r\n\t\t\tApplicationInfo.setOffset(offset);\r\n\t\t\treturn ;\r\n\t\t}\r\n \t\tswitch(ApplicationInfo.Destination)\r\n \t\t{\r\n \t\tcase Constants.TO_BACK:\r\n \t\t\tif((diff=glview.floorby2(CurZ - Constants.originPlace)) < offset)\r\n \t\t\t\toffset=-diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_BACKWARD_CENTER:\r\n \t\t\tif((diff=glview.floorby2(CurZ - Constants.displayedPlace)) < offset)\r\n \t\t\t\toffset=-diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_FORWARD_CENTER:\r\n \t\t\tif((diff=glview.floorby2(Constants.displayedPlace - CurZ)) < offset)\r\n \t\t\t\toffset=diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_FRONT:\r\n \t\t\tif((diff=glview.floorby2(Constants.disapearedPlace - CurZ)) < offset)\r\n \t\t\t\toffset=diff;\r\n \t\t\tbreak;\r\n \t\t}\r\n \t\tApplicationInfo.setOffset(offset);\r\n\t}", "private long opponent_winning_position() {\r\n return compute_winning_position(bitboard ^ mask, mask);\r\n }", "void setPlayerYRelative(int y) {\n }", "public double getPlayerYPos() {\r\n return jumper.getYposition();\r\n }", "public SylverVector2f getPositionOffset(ImageAnimation animation)\n {\n if(positionOffsetMap.containsKey(animation))\n return positionOffsetMap.get(animation);\n else\n return new SylverVector2f(0,0); //default attack delay value\n }", "@Override\n\tpublic double getMountedYOffset() {\n\t\treturn (isSitting() ? 1.7f : 2.2f) * getScale();\n\t}", "WorldDistance transformScreenDeltaToWorld(final DeviceDistance screen);", "public Point getXyLocation() {\n return playerxy;\n }", "public float getPos() {\n return ((spos-xpos))/(sposMax-sposMin);// * ratio;\n }", "public double getPosition()\n {\n return position * FPS;\n }", "public Vector2 getAbsolutePosition() {\n Vector2 screenPos = new Vector2(this.position.x, this.position.y);\n for(UIElement element = this.parent; element != null; element = element.parent) {\n screenPos.add(element.position);\n }\n return screenPos;\n }", "public static Vector2 touchToScreenPos()\n {\n Vector3 input = new Vector3(Gdx.input.getX(), Gdx.input.getY(), 0);\n input = GdxStart.camera.unproject(input);\n return new Vector2(input.x, input.y);\n }", "public void offsetCamera(Location offset){\n //updateCoordinateToScreenPosition();\n xCameraOffset = offset.getX();\n yCameraOffset = offset.getY();\n }", "public native GSize getPixelOffset(GInfoWindow self)/*-{\r\n\t\treturn self.getPixelOffset();\r\n\t}-*/;", "private void setUpStartPosition()\n {\n \tthis.xPos = startTile.xPos;\n this.yPos = startTile.yPos - startTile.tileHeight;\n yPos--;\n \n System.out.println(\"Player is on level \" + level + \n \" at position x: \" + xPos + \", y: \" + yPos); \n }", "public double getAbsPosition() {\n double distCM = ToFSerial.get() - startDist;\n //System.out.println(\"Dist in CM \" + distCM);\n\n double distIn = distCM * Constants.k_CMtoIn;\n //System.out.println(\"Dist in In \" + distIn);\n\n return (int) (1000 * distIn); \n\n }", "@Override\r\n\t\tpublic long dmr_getCurPlayPosition() throws RemoteException {\n\t\t\tif (mVideoContrl != null && mVideoContrl.isMediaPlayerPrepared()) {\r\n\t\t\t\tint currentPostion = mVideoContrl.getCurrentPosition();\r\n\t\t\t\tUtils.printLog(TAG, \"dmr_getCurPlayPosition()\" + currentPostion);\r\n\t\t\t\tif (currentPostion != VideoPlayerContrlConsts.GET_CURRENTPOSITION_ERROR) {\r\n\t\t\t\t\treturn currentPostion;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t}", "DVector3C getOffsetPosition();", "public static double potOffset() {\n\t\t\treturn Preferences.getInstance().getDouble(\"potOffset\", 45);\n\t\t}", "private void calculateCameraPosition(float hDistance, float vDistance)\n\t{\n\t\tfloat theta=player.getRotY()+angleAroundPlayer;\n\t\tfloat offsetX=hDistance*(float)Math.sin(Math.toRadians(theta));\n\t\tfloat offsetZ=hDistance*(float)Math.cos(Math.toRadians(theta));\n\t\t\n\t\t//calculate camera position\n\t\tposition.x=player.getPosition().x-offsetX;\n\t\tposition.z=player.getPosition().z-offsetZ;\n\t\tposition.y=player.getPosition().y+vDistance;\n\t}", "public double getUserFriendlyXPos(){\n return xPos - myGrid.getWidth()/ HALF;\n }", "Location getPlayerLocation();", "public int getPotionOffset()\n {\n if (!Minecraft.getMinecraft().thePlayer.getActivePotionEffects().isEmpty())\n {\n this.initWithPotion = true;\n return 60 + getPotionOffsetNEI();\n }\n\n // No potions, no offset needed\n this.initWithPotion = false;\n return 0;\n }", "int getStartPosition();", "int getStartPosition();", "protected Vector3D getStartPosition(){\r\n\t\treturn new Vector3D(\r\n\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + pnlSubDeviceButtons.getHeightXY( TransformSpace.GLOBAL)\r\n\t\t);\r\n\t}", "public int getScreenY()\r\n\t{\r\n\t\treturn mScreen.getY();\r\n\t}", "private Vector3f calcPosition() {\r\n float y = (float) (distance * Math.sin(Math.toRadians(pitch)));\r\n float xzDistance = (float) (distance * Math.cos(Math.toRadians(pitch)));\r\n float x = (float) (xzDistance * Math.sin(Math.toRadians(rotation)));\r\n float z = (float) (xzDistance * Math.cos(Math.toRadians(rotation)));\r\n return new Vector3f(x + center.x, y + center.y, z + center.z);\r\n }", "private void handleScreenBoundaries() {\n\t\tif (tiledMapHelper.getCamera().position.x < screenWidth / 2) {\n\t\t\ttiledMapHelper.getCamera().position.x = screenWidth / 2;\n\t\t}\n\t\tif (tiledMapHelper.getCamera().position.x >= tiledMapHelper.getWidth()\n\t\t\t\t- screenWidth / 2) {\n\t\t\ttiledMapHelper.getCamera().position.x = tiledMapHelper.getWidth()\n\t\t\t\t\t- screenWidth / 2;\n\t\t}\n\n\t\tif (tiledMapHelper.getCamera().position.y < screenHeight / 2) {\n\t\t\ttiledMapHelper.getCamera().position.y = screenHeight / 2;\n\t\t}\n\t\tif (tiledMapHelper.getCamera().position.y >= tiledMapHelper.getHeight()\n\t\t\t\t- screenHeight / 2) {\n\t\t\ttiledMapHelper.getCamera().position.y = tiledMapHelper.getHeight()\n\t\t\t\t\t- screenHeight / 2;\n\t\t}\n\t}", "public int getCurrentPosition(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn 0;\r\n \t\treturn mediaplayer.getCurrentPosition();\r\n \t}", "public void calculateRenderCoords() {\n\t\tif(!enabled())\n\t\t\treturn;\n\t\t\n\t\tdouble xSpeed = -(startX - tarX);\n\t\tdouble ySpeed = -(startY - tarY);\n\t\t\n\t\tdouble fpsPerTick = 0;\n\t\tif(USE_EXPECTED)\n\t\t\tfpsPerTick = (double) Screen.expectedFps / Updater.expectedUps;\n\t\telse\n\t\t\tfpsPerTick = (double) Screen.fps / Updater.ups;\n\t\t\n\t\tdouble moveX = xSpeed / fpsPerTick;\n\t\tdouble moveY = ySpeed / fpsPerTick;\n\t\t\n\t\tif(isValidDouble(moveX))\n\t\t\trenderX += moveX;\n\t\tif(isValidDouble(moveY))\n\t\t\trenderY += moveY;\n\t\t\n\t\tif((int) renderX == (int) track.getX() || (int) renderX == (int) tarX)\n\t\t\tstartX = renderX;\n\t\tif((int) renderY == (int) track.getY() || (int) renderY == (int) tarY)\n\t\t\tstartY = renderY;\n\t}", "private Vector3f calculateVectorDirectionBetweenEyeAndCenter() {\n\t\tVector3f br = new Vector3f();\n\n\t\tbr.x = player.getPosition().x - camera.getPosition().x;\n\t\tbr.y = player.getPosition().y - camera.getPosition().y;\n\t\tbr.z = player.getPosition().z - camera.getPosition().z;\n\n\t\treturn br;\n\t}", "public float getPos() {\n return (spos - xpos) / (swidth - sheight);\n }", "public static int offset_min() {\n return (56 / 8);\n }", "String getLawnPosition();", "double getOffset();", "double getMapPositionY();", "private Point2D getBoardPosition() {\n double size = getCellSize();\n double x = canvas.getWidth() / 2 - board.getWidth() * size / 2;\n double y = canvas.getHeight() / 2 - board.getHeight() * size / 2;\n\n return new Point2D(x, y);\n }", "double compute_lift_pos () {\n return AC_OFFSET_K * this.chord + \n (convert_moments_to_AC_offset ? -1*this.moment/this.lift : 0);\n }", "public int getScrollOffset() {\n return visibility.getValue();\n }", "public void setPlayerPosition(Player player) {\n if (player.getPositionX() < 0 && (player.getPositionY() > screenHeight / 2 - doorSize && player.getPositionY() < screenHeight / 2 + doorSize)) {\n //left exit to right entry\n player.position.x = screenWidth - wallSize - player.getRadius();\n player.position.y = player.getPositionY();\n } else if ((player.getPositionX() > screenWidth / 2 - doorSize && player.getPositionX() < screenWidth / 2 + doorSize) && player.getPositionY() < 0) {\n //top exit to bottom entry\n player.position.x = player.getPositionX();\n player.position.y = screenHeight - wallSize - player.getRadius();\n } else if (player.getPositionX() > screenWidth && (player.getPositionY() > screenHeight / 2 - doorSize && player.getPositionY() < screenHeight / 2 + doorSize)) {\n //right exit to left entry\n player.position.x = wallSize + player.getRadius();\n player.position.y = player.getPositionY();\n } else {\n //bottom exit to top entry\n player.position.x = player.getPositionX();\n player.position.y = wallSize + player.getRadius();\n }\n }", "@Override\r\n\tpublic int getCurrentPosition() {\n\t\treturn mediaPlayer.getCurrentPosition();\r\n\t}", "public float[] GetStartPosition(int playerId)\r\n/* 515: */ {\r\n/* 516:621 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 517:623 */ for (int y = 0; y < getHeightInTiles(); y++) {\r\n/* 518:625 */ if (tilePlayerPlacable(x, y, playerId)) {\r\n/* 519:627 */ return new float[] { x, y };\r\n/* 520: */ }\r\n/* 521: */ }\r\n/* 522: */ }\r\n/* 523:631 */ return new float[] { 0.0F, 0.0F };\r\n/* 524: */ }", "double getPositionY();", "double getPositionY();", "double getPositionY();", "private double yPos(double yMetres){\r\n\t\treturn -yMetres*14+canvas.getHeight();\r\n\t}", "public void updatePlayerXPos(){\n\t\tif(goRight&&Player.getxPlayerLoc()<=(screenWidth - (Player.getPlayerImage().getWidth()* Player.getPlayerScale() ) ) ){\n\t\t\tPlayer.updateXPos(true);\n\t\t\tPlayer.setPlayerImage(true);\n\t\t\t\n\t\t}\n\t\tif(goLeft&&Player.getxPlayerLoc() >=( (Player.getPlayerImage().getWidth() / 2) * Player.getPlayerScale() ) ){\n\t\t\tPlayer.updateXPos(false);\n\t\t\tPlayer.setPlayerImage(false);\n\t\t}\n\t}", "public int getxOnScreen(){\n this.xOnScreen = xMaze * moverStepSizeOnScreen;\n return this.xOnScreen;\n }", "private static void m14759c(C8368ah c8368ah) {\n int[] iArr = new int[2];\n c8368ah.view.getLocationOnScreen(iArr);\n c8368ah.values.put(\"android:slide:screenPosition\", iArr);\n }", "public int getViewportOffsetY() {\n return viewport.getY();\n }", "public int getMovementOffset() {\n\t\treturn movementOffset;\n\t}", "public int getYOffset();", "private int visible2ScreenX(float x){\n float tmp, m, b;\n m = gamePanel.getWidth() / gameControl.visibleWidth;\n b = gamePanel.getWidth() / 2;\n tmp = m*(x - gameControl.visibleX) + b;\n return (int)tmp;\n }", "private void setWallpaperOffset()\n\t{\n\t\tif( DefaultLayout.enable_configmenu_for_move_wallpaper )\n\t\t{\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( SetupMenu.getContext() );\n\t\t\tif( prefs.getBoolean( SetupMenu.getKey( RR.string.desktop_wallpaper_mv ) , true ) == false )\n\t\t\t{\n\t\t\t\t//当菜单中设置壁纸不随滑动而滚动时,不需要设置offset\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t//teapotXu add end\n\t\tif( animView.getUser() == targetOffset || targetOffset == -1 )\n\t\t\treturn;\n\t\tIBinder token = launcher.getWindow().getCurrentFocus().getWindowToken();\n\t\tif( token == null )\n\t\t\treturn;\n\t\tmWallpaperManager.setWallpaperOffsets( token , animView.getUser() , 0 );\n\t}", "public int getSeekPosition() {\n if(mMediaPlayer != null) {\n return mMediaPlayer.getCurrentPosition();\n }\n return 0;\n }", "public final double getScreenY() {\n return screenY;\n }", "public float getSecsOffset(int sr, int pos) {\n\t\treturn (float)(framelength * pos) / (float)(32 * sr);\n\t}", "public void setStartPosition() {\n bounds.offsetTo((SanitizorGame.mSurfaceWidth - bounds.width()) / 2,\n SanitizorGame.mSurfaceHeight - (BOTTOM_PADDING + bounds.height()));\n }", "double transformYScreenLengthToWorld(final double screen);", "public long correctedPosition() {\n\t\tif (audioOut == null)\n\t\t\treturn currentPosition;\n\t\treturn currentPosition - (outputBufferSize - audioOut.available());\n\t}", "@Override\n\tpublic Point calculatePositionForPreview(Keyboard.Key key, View keyboardView, PreviewPopupTheme theme, int[] windowOffset) {\n\t\treturn new Point(keyboardView.getLeft() + keyboardView.getWidth()/2, keyboardView.getTop());\n\t}", "private void setupPlayerPosition() {\n\t\tHashMap<Suspect, Coordinates> startPositions = new HashMap<Suspect, Coordinates>();\r\n\t\tstartPositions.put(Suspect.KasandraScarlet, new Coordinates(18, 28));\r\n\t\tstartPositions.put(Suspect.JackMustard, new Coordinates(7, 28));\r\n\t\tstartPositions.put(Suspect.DianeWhite, new Coordinates(0, 19));\r\n\t\tstartPositions.put(Suspect.JacobGreen, new Coordinates(0, 9));\r\n\t\tstartPositions.put(Suspect.EleanorPeacock, new Coordinates(6, 0));\r\n\t\tstartPositions.put(Suspect.VictorPlum, new Coordinates(20, 0));\r\n\r\n\t\tfor (int i = 0; i < this.listOfPlayer.size(); i++) {\r\n\t\t\tPlayer p = this.listOfPlayer.get(i);\r\n\t\t\tSuspect sus = p.getSuspect().getData();\r\n\t\t\tboolean b = p.setCoord(startPositions.get(sus), this.grid);\r\n\t\t\t// should always be able to put character on starting position\r\n\t\t}\r\n\t\tSystem.out.println(\"Initial player starting positions set\");\r\n\t}", "public AccessPoint calculateAccessPointPosition() {\n\t\twifiScanner.scanStart();\n\t\tapList = wifiScanner.getApList();\n\t\treturn apList.get(0);\n\t}", "public Integer getYOffset() {\n\t\tdouble frameHeight = this.pixy.getFrameHeight();\n\t\tdouble blockY = this.getY();\n\n\t\treturn (int) (frameHeight / 2 + blockY);\n\t}", "public int[] getPlayerInitialPosition() \n\t{\n\t\treturn player_initial_position;\n\t}", "public int getPlayerPosition(int player)\n {\n return players[player];\n }", "private Rectangle getControllerScreenPosition(){\n \t \t\n\t \tProperties props = getAppSettings();\n\t \t\n\t\tDimension2D oDim = Toolkit.getDefaultToolkit().getScreenSize();\t\n\t\n\t\tString x1 = props.getProperty(PREFIX+DSC_WIN_X);\n\t\tString y1 = props.getProperty(PREFIX+DSC_WIN_Y);\n\t\tString w1 = props.getProperty(PREFIX+DSC_WIN_W);\n\t\tString h1 = props.getProperty(PREFIX+DSC_WIN_H);\n\t\t\n\t\tint x2 = x1 != null && x1.length()>0 ? Integer.valueOf(x1).intValue() : 0;\t\t\n\t\tint y2 = y1 != null && y1.length()>0 ? Integer.valueOf(y1).intValue() : 0;\n\t\tint w2 = w1 != null && w1.length()>0 ? Integer.valueOf(w1).intValue() : (int)oDim.getWidth()*43/64;\n\t\tint h2 = h1 != null && h1.length()>0 ? Integer.valueOf(h1).intValue() : (int)oDim.getHeight()*45/64;\n\t\t\n\t \tRectangle rec = new Rectangle(x2, y2, w2, h2);\n\t \t \t\n\t \tAppLogger.debug2(\"net.sourceforge.dscsim.gui.AppFrame \" + rec.toString());\n\t \treturn rec;\n\n }", "void setPlayerXRelative(int x) {\n }", "public Point getLocationOnScreen(View v) {\r\n //DisplayMetrics dm = new DisplayMetrics();\r\n //((Activity) getContext()).getWindowManager().getDefaultDisplay().getMetrics(dm);\r\n //DisplayMetrics dm2 = getResources().getDisplayMetrics();\r\n int[] location = new int[2];\r\n v.getLocationOnScreen(location);\r\n\r\n return new Point(location[0], location[1]);\r\n }", "org.mojolang.mojo.lang.Position getStartPosition();", "MazePoint getActivePlayerCoordinates();", "public float getTextureYOffset() {\n\t\tint row = index / texture.getNumberOfRows();\n\t\treturn (float) row / (float) texture.getNumberOfRows();\n\t}", "public int getPlayPoints() {\n return localPlayPoints;\n }", "public float getInitialBattlePosition()\n {\n return initialBattlePosition;\n }", "public PlayerPosition getWhitePosition()\n {\n return whitePosition;\n }", "double transformXScreenLengthToWorld(final double screen);", "private int getOffsetByResolution(int width) {\n Const.CURRENT_WIDTH = width;\n int result;\n int num = width / 160;\n result = num * 20;\n return result;\n }" ]
[ "0.71471494", "0.67375624", "0.6664695", "0.6661132", "0.6299352", "0.6164257", "0.60620844", "0.60612684", "0.6008677", "0.59967804", "0.59705675", "0.59466416", "0.59377503", "0.5930909", "0.5929961", "0.5910995", "0.5902639", "0.58847475", "0.5862417", "0.584977", "0.5836454", "0.5828608", "0.5819577", "0.5817623", "0.5812299", "0.5800892", "0.57947254", "0.57923925", "0.57775754", "0.57733995", "0.5747039", "0.5736414", "0.57275885", "0.5725725", "0.5711753", "0.57038444", "0.5691062", "0.5681124", "0.56724757", "0.56689924", "0.56683165", "0.56478834", "0.56450355", "0.56324065", "0.5616249", "0.5613705", "0.5613705", "0.55980045", "0.5594379", "0.55934614", "0.5584953", "0.55718756", "0.5571404", "0.55612797", "0.5552736", "0.5551885", "0.5542386", "0.5541969", "0.55416435", "0.55279726", "0.5500585", "0.549695", "0.5495153", "0.5484264", "0.5482323", "0.5481859", "0.5481859", "0.5481859", "0.54770637", "0.5471489", "0.54644436", "0.54640245", "0.54607016", "0.54558", "0.545318", "0.5451632", "0.545015", "0.54457295", "0.5444694", "0.5441351", "0.54173774", "0.5416391", "0.5413739", "0.5400275", "0.53964573", "0.53953904", "0.53951573", "0.53888345", "0.5366474", "0.5365887", "0.5362319", "0.5358333", "0.5358061", "0.5353368", "0.53482425", "0.53440654", "0.53344685", "0.5323568", "0.5323069", "0.53169966" ]
0.80994636
0